diff --git a/dist/index.js b/dist/index.js index df95ece..bad6ece 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1 +1,352638 @@ -module.exports=function(e,t){"use strict";var s={};function __webpack_require__(t){if(s[t]){return s[t].exports}var r=s[t]={i:t,l:false,exports:{}};var o=true;try{e[t].call(r.exports,r,r.exports,__webpack_require__);o=false}finally{if(o)delete s[t]}r.l=true;return r.exports}__webpack_require__.ab=__dirname+"/";function startup(){return __webpack_require__(104)}t(__webpack_require__);return startup()}([function(e,t,s){var r=s(239);s(220);s(152);var o=e.exports=r.hmac=r.hmac||{};o.create=function(){var e=null;var t=null;var s=null;var o=null;var n={};n.start=function(n,i){if(n!==null){if(typeof n==="string"){n=n.toLowerCase();if(n in r.md.algorithms){t=r.md.algorithms[n].create()}else{throw new Error('Unknown hash algorithm "'+n+'"')}}else{t=n}}if(i===null){i=e}else{if(typeof i==="string"){i=r.util.createBuffer(i)}else if(r.util.isArray(i)){var c=i;i=r.util.createBuffer();for(var u=0;ut.blockLength){t.start();t.update(i.bytes());i=t.digest()}s=r.util.createBuffer();o=r.util.createBuffer();a=i.length();for(var u=0;u>>0,c>>>0];for(var u=o.fullMessageLength.length-1;u>=0;--u){o.fullMessageLength[u]+=c[1];c[1]=c[0]+(o.fullMessageLength[u]/4294967296>>>0);o.fullMessageLength[u]=o.fullMessageLength[u]>>>0;c[0]=c[1]/4294967296>>>0}t.putBytes(n);_update(e,s,t);if(t.read>2048||t.length()===0){t.compact()}return o};o.digest=function(){var i=r.util.createBuffer();i.putBytes(t.bytes());var c=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize;var u=c&o.blockLength-1;i.putBytes(n.substr(0,o.blockLength-u));var a,f;var p=o.fullMessageLength[0]*8;for(var h=0;h>>0;p+=f;i.putInt32(p>>>0);p=a>>>0}i.putInt32(p);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4,h5:e.h5,h6:e.h6,h7:e.h7};_update(d,s,i);var l=r.util.createBuffer();l.putInt32(d.h0);l.putInt32(d.h1);l.putInt32(d.h2);l.putInt32(d.h3);l.putInt32(d.h4);l.putInt32(d.h5);l.putInt32(d.h6);l.putInt32(d.h7);return l};return o};var n=null;var i=false;var c=null;function _init(){n=String.fromCharCode(128);n+=r.util.fillString(String.fromCharCode(0),64);c=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];i=true}function _update(e,t,s){var r,o,n,i,u,a,f,p,h,d,l,P,y,I,R;var g=s.length();while(g>=64){for(f=0;f<16;++f){t[f]=s.getInt32()}for(;f<64;++f){r=t[f-2];r=(r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10;o=t[f-15];o=(o>>>7|o<<25)^(o>>>18|o<<14)^o>>>3;t[f]=r+t[f-7]+o+t[f-16]|0}p=e.h0;h=e.h1;d=e.h2;l=e.h3;P=e.h4;y=e.h5;I=e.h6;R=e.h7;for(f=0;f<64;++f){i=(P>>>6|P<<26)^(P>>>11|P<<21)^(P>>>25|P<<7);u=I^P&(y^I);n=(p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10);a=p&h|d&(p^h);r=R+i+u+c[f]+t[f];o=n+a;R=I;I=y;y=P;P=l+r>>>0;l=d;d=h;h=p;p=r+o>>>0}e.h0=e.h0+p|0;e.h1=e.h1+h|0;e.h2=e.h2+d|0;e.h3=e.h3+l|0;e.h4=e.h4+P|0;e.h5=e.h5+y|0;e.h6=e.h6+I|0;e.h7=e.h7+R|0;g-=64}}},function(e,t,s){"use strict";var r=s(897);var o=s(755);var n=s(719);e.exports={formats:n,parse:o,stringify:r}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudfunctions_v1=void 0;const r=s(927);var o;(function(e){class Cloudfunctions{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Cloudfunctions=Cloudfunctions;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.functions=new Resource$Projects$Locations$Functions(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Functions{constructor(e){this.context=e}call(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:call").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+location}/functions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["location"],pathParams:["location"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateDownloadUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:generateDownloadUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateUploadUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/functions:generateUploadUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/functions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Functions=Resource$Projects$Locations$Functions})(o=t.cloudfunctions_v1||(t.cloudfunctions_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.doubleclicksearch=t.VERSIONS=void 0;const r=s(927);const o=s(919);t.VERSIONS={v2:o.doubleclicksearch_v2.Doubleclicksearch};function doubleclicksearch(e){return r.getAPI("doubleclicksearch",e,t.VERSIONS,this)}t.doubleclicksearch=doubleclicksearch;const n=new r.AuthPlus;t.auth=n},function(e){e.exports=require("tls")},function(e,t,s){"use strict";var r=s(563).codes.ERR_STREAM_PREMATURE_CLOSE;function once(e){var t=false;return function(){if(t)return;t=true;for(var s=arguments.length,r=new Array(s),o=0;o>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(){return this.rawSize}}e.exports=CRC32Stream},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.driveactivity=t.VERSIONS=void 0;const r=s(927);const o=s(488);t.VERSIONS={v2:o.driveactivity_v2.Driveactivity};function driveactivity(e){return r.getAPI("driveactivity",e,t.VERSIONS,this)}t.driveactivity=driveactivity;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupsmigration_v1=void 0;const r=s(927);var o;(function(e){class Groupsmigration{constructor(e,t){this.context={_options:e||{},google:t};this.archive=new Resource$Archive(this.context)}}e.Groupsmigration=Groupsmigration;class Resource$Archive{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/groups/v1/groups/{groupId}/archive").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/groups/v1/groups/{groupId}/archive").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["groupId"],pathParams:["groupId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Archive=Resource$Archive})(o=t.groupsmigration_v1||(t.groupsmigration_v1={}))},function(e){var t="[object Object]";function isHostObject(e){var t=false;if(e!=null&&typeof e.toString!="function"){try{t=!!(e+"")}catch(e){}}return t}function overArg(e,t){return function(s){return e(t(s))}}var s=Function.prototype,r=Object.prototype;var o=s.toString;var n=r.hasOwnProperty;var i=o.call(Object);var c=r.toString;var u=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return!!e&&typeof e=="object"}function isPlainObject(e){if(!isObjectLike(e)||c.call(e)!=t||isHostObject(e)){return false}var s=u(e);if(s===null){return true}var r=n.call(s,"constructor")&&s.constructor;return typeof r=="function"&&r instanceof r&&o.call(r)==i}e.exports=isPlainObject},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=[0,8801531,9098509,825846,9692897,1419802,1651692,10452759,10584377,2608578,2839604,11344079,3303384,11807523,12104405,4128302,12930697,4391538,5217156,13227903,5679208,13690003,14450021,5910942,6606768,14844747,15604413,6837830,16197969,7431594,8256604,16494759,840169,9084178,8783076,18463,10434312,1670131,1434117,9678590,11358416,2825259,2590173,10602790,4109873,12122826,11821884,3289031,13213536,5231515,4409965,12912278,5929345,14431610,13675660,5693559,6823513,15618722,14863188,6588335,16513208,8238147,7417269,16212302,1680338,10481449,9664223,1391140,9061683,788936,36926,8838341,12067563,4091408,3340262,11844381,2868234,11372785,10555655,2579964,14478683,5939616,5650518,13661357,5180346,13190977,12967607,4428364,8219746,16457881,16234863,7468436,15633027,6866552,6578062,14816117,1405499,9649856,10463030,1698765,8819930,55329,803287,9047340,11858690,3325945,4072975,12086004,2561507,10574104,11387118,2853909,13647026,5664841,5958079,14460228,4446803,12949160,13176670,5194661,7454091,16249200,16476294,8201341,14834538,6559633,6852199,15647388,3360676,11864927,12161705,4185682,10527045,2551230,2782280,11286707,9619101,1346150,1577872,10379115,73852,8875143,9172337,899466,16124205,7357910,8182816,16421083,6680524,14918455,15678145,6911546,5736468,13747439,14507289,5968354,12873461,4334094,5159928,13170435,4167245,12180150,11879232,3346363,11301036,2767959,2532769,10545498,10360692,1596303,1360505,9604738,913813,9157998,8856728,92259,16439492,8164415,7343561,16138546,6897189,15692510,14936872,6662099,5986813,14488838,13733104,5750795,13156124,5174247,4352529,12855018,2810998,11315341,10498427,2522496,12124823,4148844,3397530,11901793,9135439,862644,110658,8912057,1606574,10407765,9590435,1317464,15706879,6940164,6651890,14889737,8145950,16384229,16161043,7394792,5123014,13133629,12910283,4370992,14535975,5997020,5707818,13718737,2504095,10516836,11329682,2796649,11916158,3383173,4130419,12143240,8893606,129117,876971,9121104,1331783,9576124,10389322,1625009,14908182,6633453,6925851,15721184,7380471,16175372,16402682,8127489,4389423,12891860,13119266,5137369,13704398,5722165,6015427,14517560];if(typeof Int32Array!=="undefined")u=new Int32Array(u);var a=(0,c.default)("crc-24",function(e,t){if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=typeof t!=="undefined"?~~t:11994318;for(var o=0;o>16^i)&255]^s<<8)&16777215}return s});t.default=a},function(e,t,s){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=s(141)}else{e.exports=s(411)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.language_v1=void 0;const r=s(927);var o;(function(e){class Language{constructor(e,t){this.context={_options:e||{},google:t};this.documents=new Resource$Documents(this.context)}}e.Language=Language;class Resource$Documents{constructor(e){this.context=e}analyzeEntities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:analyzeEntities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeEntitySentiment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:analyzeEntitySentiment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSentiment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:analyzeSentiment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSyntax(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:analyzeSyntax").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}annotateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:annotateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}classifyText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents:classifyText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Documents=Resource$Documents})(o=t.language_v1||(t.language_v1={}))},function(e,t,s){var r=s(149).Buffer;var o=s(413);var n=s(669);function DataStream(e){this.buffer=null;this.writable=true;this.readable=true;if(!e){this.buffer=r.alloc(0);return this}if(typeof e.pipe==="function"){this.buffer=r.alloc(0);e.pipe(this);return this}if(e.length||typeof e==="object"){this.buffer=e;this.writable=false;process.nextTick(function(){this.emit("end",e);this.readable=false;this.emit("close")}.bind(this));return this}throw new TypeError("Unexpected data type ("+typeof e+")")}n.inherits(DataStream,o);DataStream.prototype.write=function write(e){this.buffer=r.concat([this.buffer,r.from(e)]);this.emit("data",e)};DataStream.prototype.end=function end(e){if(e)this.write(e);this.emit("end",e);this.emit("close");this.writable=false;this.readable=false};e.exports=DataStream},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firebaserules_v1=void 0;const r=s(927);var o;(function(e){class Firebaserules{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Firebaserules=Firebaserules;class Resource$Projects{constructor(e){this.context=e;this.releases=new Resource$Projects$Releases(this.context);this.rulesets=new Resource$Projects$Rulesets(this.context)}test(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:test").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Releases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getExecutable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:getExecutable").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Releases=Resource$Projects$Releases;class Resource$Projects$Rulesets{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/rulesets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaserules.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/rulesets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Rulesets=Resource$Projects$Rulesets})(o=t.firebaserules_v1||(t.firebaserules_v1={}))},,function(e,t,s){"use strict";e.exports=s(909).default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.monitoring_v3=void 0;const r=s(927);var o;(function(e){class Monitoring{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context);this.services=new Resource$Services(this.context);this.uptimeCheckIps=new Resource$Uptimecheckips(this.context)}}e.Monitoring=Monitoring;class Resource$Projects{constructor(e){this.context=e;this.alertPolicies=new Resource$Projects$Alertpolicies(this.context);this.collectdTimeSeries=new Resource$Projects$Collectdtimeseries(this.context);this.groups=new Resource$Projects$Groups(this.context);this.metricDescriptors=new Resource$Projects$Metricdescriptors(this.context);this.monitoredResourceDescriptors=new Resource$Projects$Monitoredresourcedescriptors(this.context);this.notificationChannelDescriptors=new Resource$Projects$Notificationchanneldescriptors(this.context);this.notificationChannels=new Resource$Projects$Notificationchannels(this.context);this.timeSeries=new Resource$Projects$Timeseries(this.context);this.uptimeCheckConfigs=new Resource$Projects$Uptimecheckconfigs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Alertpolicies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/alertPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/alertPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Alertpolicies=Resource$Projects$Alertpolicies;class Resource$Projects$Collectdtimeseries{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/collectdTimeSeries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Collectdtimeseries=Resource$Projects$Collectdtimeseries;class Resource$Projects$Groups{constructor(e){this.context=e;this.members=new Resource$Projects$Groups$Members(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/groups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/groups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Groups=Resource$Projects$Groups;class Resource$Projects$Groups$Members{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/members").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Groups$Members=Resource$Projects$Groups$Members;class Resource$Projects$Metricdescriptors{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/metricDescriptors").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/metricDescriptors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Metricdescriptors=Resource$Projects$Metricdescriptors;class Resource$Projects$Monitoredresourcedescriptors{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/monitoredResourceDescriptors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Monitoredresourcedescriptors=Resource$Projects$Monitoredresourcedescriptors;class Resource$Projects$Notificationchanneldescriptors{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/notificationChannelDescriptors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Notificationchanneldescriptors=Resource$Projects$Notificationchanneldescriptors;class Resource$Projects$Notificationchannels{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/notificationChannels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getVerificationCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:getVerificationCode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/notificationChannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendVerificationCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:sendVerificationCode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:verify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Notificationchannels=Resource$Projects$Notificationchannels;class Resource$Projects$Timeseries{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/timeSeries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/timeSeries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/timeSeries:query").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Timeseries=Resource$Projects$Timeseries;class Resource$Projects$Uptimecheckconfigs{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/uptimeCheckConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/uptimeCheckConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Uptimecheckconfigs=Resource$Projects$Uptimecheckconfigs;class Resource$Services{constructor(e){this.context=e;this.serviceLevelObjectives=new Resource$Services$Servicelevelobjectives(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services;class Resource$Services$Servicelevelobjectives{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/serviceLevelObjectives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/serviceLevelObjectives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Servicelevelobjectives=Resource$Services$Servicelevelobjectives;class Resource$Uptimecheckips{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/uptimeCheckIps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Uptimecheckips=Resource$Uptimecheckips})(o=t.monitoring_v3||(t.monitoring_v3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.kgsearch_v1=void 0;const r=s(927);var o;(function(e){class Kgsearch{constructor(e,t){this.context={_options:e||{},google:t};this.entities=new Resource$Entities(this.context)}}e.Kgsearch=Kgsearch;class Resource$Entities{constructor(e){this.context=e}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://kgsearch.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/entities:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Entities=Resource$Entities})(o=t.kgsearch_v1||(t.kgsearch_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.videointelligence_v1p2beta1=void 0;const r=s(927);var o;(function(e){class Videointelligence{constructor(e,t){this.context={_options:e||{},google:t};this.videos=new Resource$Videos(this.context)}}e.Videointelligence=Videointelligence;class Resource$Videos{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/videos:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videos=Resource$Videos})(o=t.videointelligence_v1p2beta1||(t.videointelligence_v1p2beta1={}))},function(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){function adopt(e){return e instanceof s?e:new s(function(t){t(e)})}return new(s||(s=Promise))(function(s,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){o(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const n=o(s(631));const i=o(s(16));const c=o(s(835));const u=o(s(357));const a=o(s(30));const f=s(443);const p=o(s(428));const h=a.default("https-proxy-agent:agent");class HttpsProxyAgent extends f.Agent{constructor(e){let t;if(typeof e==="string"){t=c.default.parse(e)}else{t=e}if(!t){throw new Error("an HTTP(S) proxy server `host` and `port` must be specified!")}h("creating new HttpsProxyAgent instance: %o",t);super(t);const s=Object.assign({},t);this.secureProxy=t.secureProxy||isHTTPS(s.protocol);s.host=s.hostname||s.host;if(typeof s.port==="string"){s.port=parseInt(s.port,10)}if(!s.port&&s.host){s.port=this.secureProxy?443:80}if(this.secureProxy&&!("ALPNProtocols"in s)){s.ALPNProtocols=["http 1.1"]}if(s.host&&s.path){delete s.path;delete s.pathname}this.proxy=s}callback(e,t){return r(this,void 0,void 0,function*(){const{proxy:s,secureProxy:r}=this;let o;if(r){h("Creating `tls.Socket`: %o",s);o=i.default.connect(s)}else{h("Creating `net.Socket`: %o",s);o=n.default.connect(s)}const c=Object.assign({},s.headers);const a=`${t.host}:${t.port}`;let f=`CONNECT ${a} HTTP/1.1\r\n`;if(s.auth){c["Proxy-Authorization"]=`Basic ${Buffer.from(s.auth).toString("base64")}`}let{host:d,port:l,secureEndpoint:P}=t;if(!isDefaultPort(l,P)){d+=`:${l}`}c.Host=d;c.Connection="close";for(const e of Object.keys(c)){f+=`${e}: ${c[e]}\r\n`}const y=p.default(o);o.write(`${f}\r\n`);const{statusCode:I,buffered:R}=yield y;if(I===200){e.once("socket",resume);if(t.secureEndpoint){const e=t.servername||t.host;if(!e){throw new Error('Could not determine "servername"')}h("Upgrading socket connection to TLS");return i.default.connect(Object.assign(Object.assign({},omit(t,"host","hostname","path","port")),{socket:o,servername:e}))}return o}o.destroy();const g=new n.default.Socket;g.readable=true;e.once("socket",e=>{h("replaying proxy buffer for failed request");u.default(e.listenerCount("data")>0);e.push(R);e.push(null)});return g})}}t.default=HttpsProxyAgent;function resume(e){e.resume()}function isDefaultPort(e,t){return Boolean(!t&&e===80||t&&e===443)}function isHTTPS(e){return typeof e==="string"?/^https:?$/i.test(e):false}function omit(e,...t){const s={};let r;for(r in e){if(!t.includes(r)){s[r]=e[r]}}return s}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.accessapproval_v1=void 0;const r=s(927);var o;(function(e){class Accessapproval{constructor(e,t){this.context={_options:e||{},google:t};this.folders=new Resource$Folders(this.context);this.organizations=new Resource$Organizations(this.context);this.projects=new Resource$Projects(this.context)}}e.Accessapproval=Accessapproval;class Resource$Folders{constructor(e){this.context=e;this.approvalRequests=new Resource$Folders$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders=Resource$Folders;class Resource$Folders$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders$Approvalrequests=Resource$Folders$Approvalrequests;class Resource$Organizations{constructor(e){this.context=e;this.approvalRequests=new Resource$Organizations$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations=Resource$Organizations;class Resource$Organizations$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Approvalrequests=Resource$Organizations$Approvalrequests;class Resource$Projects{constructor(e){this.context=e;this.approvalRequests=new Resource$Projects$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Approvalrequests=Resource$Projects$Approvalrequests})(o=t.accessapproval_v1||(t.accessapproval_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudsearch=t.VERSIONS=void 0;const r=s(927);const o=s(620);t.VERSIONS={v1:o.cloudsearch_v1.Cloudsearch};function cloudsearch(e){return r.getAPI("cloudsearch",e,t.VERSIONS,this)}t.cloudsearch=cloudsearch;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.securitycenter_v1p1alpha1=void 0;const r=s(927);var o;(function(e){class Securitycenter{constructor(e,t){this.context={_options:e||{},google:t};this.organizations=new Resource$Organizations(this.context)}}e.Securitycenter=Securitycenter;class Resource$Organizations{constructor(e){this.context=e;this.operations=new Resource$Organizations$Operations(this.context)}}e.Resource$Organizations=Resource$Organizations;class Resource$Organizations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://securitycenter.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1alpha1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://securitycenter.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://securitycenter.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://securitycenter.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Operations=Resource$Organizations$Operations})(o=t.securitycenter_v1p1alpha1||(t.securitycenter_v1p1alpha1={}))},function(e,t,s){"use strict";var r=s(822);e.exports=Readable;var o=s(262);var n;Readable.ReadableState=ReadableState;var i=s(614).EventEmitter;var c=function(e,t){return e.listeners(t).length};var u=s(135);var a=s(371).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=Object.create(s(683));p.inherits=s(689);var h=s(669);var d=void 0;if(h&&h.debuglog){d=h.debuglog("stream")}else{d=function(){}}var l=s(800);var P=s(506);var y;p.inherits(Readable,u);var I=["error","close","destroy","pause","resume"];function prependListener(e,t,s){if(typeof e.prependListener==="function")return e.prependListener(t,s);if(!e._events||!e._events[t])e.on(t,s);else if(o(e._events[t]))e._events[t].unshift(s);else e._events[t]=[s,e._events[t]]}function ReadableState(e,t){n=n||s(512);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.readableObjectMode;var o=e.highWaterMark;var i=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new l;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=s(432).StringDecoder;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||s(512);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}u.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=P.destroy;Readable.prototype._undestroy=P.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var s=this._readableState;var r;if(!s.objectMode){if(typeof e==="string"){t=t||s.defaultEncoding;if(t!==s.encoding){e=a.from(e,t);t=""}r=true}}else{r=true}return readableAddChunk(this,e,t,false,r)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,s,r,o){var n=e._readableState;if(t===null){n.reading=false;onEofChunk(e,n)}else{var i;if(!o)i=chunkInvalid(n,t);if(i){e.emit("error",i)}else if(n.objectMode||t&&t.length>0){if(typeof t!=="string"&&!n.objectMode&&Object.getPrototypeOf(t)!==a.prototype){t=_uint8ArrayToBuffer(t)}if(r){if(n.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,n,t,true)}else if(n.ended){e.emit("error",new Error("stream.push() after EOF"))}else{n.reading=false;if(n.decoder&&!s){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!r){n.reading=false}}return needMoreData(n)}function addChunk(e,t,s,r){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",s);e.read(0)}else{t.length+=t.objectMode?1:s.length;if(r)t.buffer.unshift(s);else t.buffer.push(s);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var s;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=R){e=R}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var t=this._readableState;var s=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){d("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var r=t.needReadable;d("need readable",r);if(t.length===0||t.length-e0)o=fromList(e,t);else o=null;if(o===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(s!==e&&t.ended)endReadable(this)}if(o!==null)this.emit("data",o);return o};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var s=t.decoder.end();if(s&&s.length){t.buffer.push(s);t.length+=t.objectMode?1:s.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){d("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)r.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){d("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;r.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var s=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(o.pipes,e)!==-1)&&!a){d("false write response, pause",s._readableState.awaitDrain);s._readableState.awaitDrain++;f=true}s.pause()}}function onerror(t){d("onerror",t);unpipe();e.removeListener("error",onerror);if(c(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");s.unpipe(e)}e.emit("pipe",s);if(!o.flowing){d("pipe resume");s.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&c(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var s={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,s);return this}if(!e){var r=t.pipes;var o=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var n=0;n=t.length){if(t.decoder)s=t.buffer.join("");else if(t.buffer.length===1)s=t.buffer.head.data;else s=t.buffer.concat(t.length);t.buffer.clear()}else{s=fromListPartial(e,t.buffer,t.decoder)}return s}function fromListPartial(e,t,s){var r;if(en.length?n.length:e;if(i===n.length)o+=n;else o+=n.slice(0,e);e-=i;if(e===0){if(i===n.length){++r;if(s.next)t.head=s.next;else t.head=t.tail=null}else{t.head=s;s.data=n.slice(i)}break}++r}t.length-=r;return o}function copyFromBuffer(e,t){var s=a.allocUnsafe(e);var r=t.head;var o=1;r.data.copy(s);e-=r.data.length;while(r=r.next){var n=r.data;var i=e>n.length?n.length:e;n.copy(s,s.length-e,0,i);e-=i;if(e===0){if(i===n.length){++o;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=n.slice(i)}break}++o}t.length-=o;return s}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;r.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var s=0,r=e.length;sa){var f=new Error("RSAES-OAEP input message length is too long.");f.length=t.length;f.maxLength=a;throw f}if(!o){o=""}i.update(o,"raw");var p=i.digest();var h="";var d=a-t.length;for(var l=0;l>24&255,i>>16&255,i>>8&255,i&255);s.start();s.update(e+c);o+=s.digest().getBytes()}return o.substring(0,t)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.translate_v3=void 0;const r=s(927);var o;(function(e){class Translate{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Translate=Translate;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}detectLanguage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}:detectLanguage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSupportedLanguages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/supportedLanguages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}translateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}:translateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.glossaries=new Resource$Projects$Locations$Glossaries(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}batchTranslateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}:batchTranslateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detectLanguage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}:detectLanguage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSupportedLanguages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/supportedLanguages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}translateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}:translateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Glossaries{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/glossaries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/glossaries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Glossaries=Resource$Projects$Locations$Glossaries;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.translate_v3||(t.translate_v3={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.firestore=t.VERSIONS=void 0;const r=s(927);const o=s(920);const n=s(494);const i=s(485);t.VERSIONS={v1:o.firestore_v1.Firestore,v1beta1:n.firestore_v1beta1.Firestore,v1beta2:i.firestore_v1beta2.Firestore};function firestore(e){return r.getAPI("firestore",e,t.VERSIONS,this)}t.firestore=firestore;const c=new r.AuthPlus;t.auth=c},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.memcache=t.VERSIONS=void 0;const r=s(927);const o=s(134);t.VERSIONS={v1beta2:o.memcache_v1beta2.Memcache};function memcache(e){return r.getAPI("memcache",e,t.VERSIONS,this)}t.memcache=memcache;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined")u=new Int32Array(u);var a=(0,c.default)("jam",function(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:-1;if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=t===0?0:~~t;for(var o=0;o>>8}return s});t.default=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.servicenetworking_v1=void 0;const r=s(927);var o;(function(e){class Servicenetworking{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.services=new Resource$Services(this.context)}}e.Servicenetworking=Servicenetworking;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Services{constructor(e){this.context=e;this.connections=new Resource$Services$Connections(this.context);this.roles=new Resource$Services$Roles(this.context)}addSubnetwork(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:addSubnetwork").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disableVpcServiceControls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:disableVpcServiceControls").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enableVpcServiceControls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:enableVpcServiceControls").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchRange(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:searchRange").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services;class Resource$Services$Connections{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Connections=Resource$Services$Connections;class Resource$Services$Roles{constructor(e){this.context=e}add(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicenetworking.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/roles:add").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Roles=Resource$Services$Roles})(o=t.servicenetworking_v1||(t.servicenetworking_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.androidenterprise_v1=void 0;const r=s(927);var o;(function(e){class Androidenterprise{constructor(e,t){this.context={_options:e||{},google:t};this.devices=new Resource$Devices(this.context);this.enterprises=new Resource$Enterprises(this.context);this.entitlements=new Resource$Entitlements(this.context);this.grouplicenses=new Resource$Grouplicenses(this.context);this.grouplicenseusers=new Resource$Grouplicenseusers(this.context);this.installs=new Resource$Installs(this.context);this.managedconfigurationsfordevice=new Resource$Managedconfigurationsfordevice(this.context);this.managedconfigurationsforuser=new Resource$Managedconfigurationsforuser(this.context);this.managedconfigurationssettings=new Resource$Managedconfigurationssettings(this.context);this.permissions=new Resource$Permissions(this.context);this.products=new Resource$Products(this.context);this.serviceaccountkeys=new Resource$Serviceaccountkeys(this.context);this.storelayoutclusters=new Resource$Storelayoutclusters(this.context);this.storelayoutpages=new Resource$Storelayoutpages(this.context);this.users=new Resource$Users(this.context);this.webapps=new Resource$Webapps(this.context)}}e.Androidenterprise=Androidenterprise;class Resource$Devices{constructor(e){this.context=e}forceReportUpload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getState(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setState(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Devices=Resource$Devices;class Resource$Enterprises{constructor(e){this.context=e}acknowledgeNotificationSet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/acknowledgeNotificationSet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}completeSignup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/completeSignup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createWebToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enroll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/enroll").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["token"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateSignupUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/signupUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getServiceAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getStoreLayout(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["domain"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pullNotificationSet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/pullNotificationSet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendTestPushNotification(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/account").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setStoreLayout(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unenroll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/unenroll").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises=Resource$Enterprises;class Resource$Entitlements{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId","entitlementId"],pathParams:["enterpriseId","entitlementId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","entitlementId"],pathParams:["enterpriseId","entitlementId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","entitlementId"],pathParams:["enterpriseId","entitlementId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Entitlements=Resource$Entitlements;class Resource$Grouplicenses{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","groupLicenseId"],pathParams:["enterpriseId","groupLicenseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Grouplicenses=Resource$Grouplicenses;class Resource$Grouplicenseusers{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","groupLicenseId"],pathParams:["enterpriseId","groupLicenseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Grouplicenseusers=Resource$Grouplicenseusers;class Resource$Installs{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","installId"],pathParams:["deviceId","enterpriseId","installId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","installId"],pathParams:["deviceId","enterpriseId","installId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","installId"],pathParams:["deviceId","enterpriseId","installId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Installs=Resource$Installs;class Resource$Managedconfigurationsfordevice{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","managedConfigurationForDeviceId"],pathParams:["deviceId","enterpriseId","managedConfigurationForDeviceId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","managedConfigurationForDeviceId"],pathParams:["deviceId","enterpriseId","managedConfigurationForDeviceId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","deviceId"],pathParams:["deviceId","enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","deviceId","managedConfigurationForDeviceId"],pathParams:["deviceId","enterpriseId","managedConfigurationForDeviceId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedconfigurationsfordevice=Resource$Managedconfigurationsfordevice;class Resource$Managedconfigurationsforuser{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId","managedConfigurationForUserId"],pathParams:["enterpriseId","managedConfigurationForUserId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId","managedConfigurationForUserId"],pathParams:["enterpriseId","managedConfigurationForUserId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId","managedConfigurationForUserId"],pathParams:["enterpriseId","managedConfigurationForUserId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedconfigurationsforuser=Resource$Managedconfigurationsforuser;class Resource$Managedconfigurationssettings{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedconfigurationssettings=Resource$Managedconfigurationssettings;class Resource$Permissions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["permissionId"],pathParams:["permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Permissions=Resource$Permissions;class Resource$Products{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateApprovalUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAppRestrictionsSchema(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unapprove(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","productId"],pathParams:["enterpriseId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Products=Resource$Products;class Resource$Serviceaccountkeys{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","keyId"],pathParams:["enterpriseId","keyId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Serviceaccountkeys=Resource$Serviceaccountkeys;class Resource$Storelayoutclusters{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","pageId","clusterId"],pathParams:["clusterId","enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","pageId","clusterId"],pathParams:["clusterId","enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","pageId"],pathParams:["enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","pageId"],pathParams:["enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","pageId","clusterId"],pathParams:["clusterId","enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Storelayoutclusters=Resource$Storelayoutclusters;class Resource$Storelayoutpages{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","pageId"],pathParams:["enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","pageId"],pathParams:["enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","pageId"],pathParams:["enterpriseId","pageId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Storelayoutpages=Resource$Storelayoutpages;class Resource$Users{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateAuthenticationToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAvailableProductSet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","email"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revokeDeviceAccess(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revokeToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAvailableProductSet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","userId"],pathParams:["enterpriseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users=Resource$Users;class Resource$Webapps{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["enterpriseId","webAppId"],pathParams:["enterpriseId","webAppId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId","webAppId"],pathParams:["enterpriseId","webAppId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["enterpriseId"],pathParams:["enterpriseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["enterpriseId","webAppId"],pathParams:["enterpriseId","webAppId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Webapps=Resource$Webapps})(o=t.androidenterprise_v1||(t.androidenterprise_v1={}))},function(e,t,s){var r=s(239);s(152);var o=e.exports=r.pem=r.pem||{};o.encode=function(e,t){t=t||{};var s="-----BEGIN "+e.type+"-----\r\n";var o;if(e.procType){o={name:"Proc-Type",values:[String(e.procType.version),e.procType.type]};s+=foldHeader(o)}if(e.contentDomain){o={name:"Content-Domain",values:[e.contentDomain]};s+=foldHeader(o)}if(e.dekInfo){o={name:"DEK-Info",values:[e.dekInfo.algorithm]};if(e.dekInfo.parameters){o.values.push(e.dekInfo.parameters)}s+=foldHeader(o)}if(e.headers){for(var n=0;n65&&i!==-1){var c=t[i];if(c===","){++i;t=t.substr(0,i)+"\r\n "+t.substr(i)}else{t=t.substr(0,i)+"\r\n"+c+t.substr(i+1)}n=o-i-1;i=-1;++o}else if(t[o]===" "||t[o]==="\t"||t[o]===","){i=o}}return t}function ltrim(e){return e.replace(/^\s+/,"")}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adsensehost_v4_1=void 0;const r=s(927);var o;(function(e){class Adsensehost{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.adclients=new Resource$Adclients(this.context);this.associationsessions=new Resource$Associationsessions(this.context);this.customchannels=new Resource$Customchannels(this.context);this.reports=new Resource$Reports(this.context);this.urlchannels=new Resource$Urlchannels(this.context)}}e.Adsensehost=Adsensehost;class Resource$Accounts{constructor(e){this.context=e;this.adclients=new Resource$Accounts$Adclients(this.context);this.adunits=new Resource$Accounts$Adunits(this.context);this.reports=new Resource$Accounts$Reports(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterAdClientId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Adclients{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Adclients=Resource$Accounts$Adclients;class Resource$Accounts$Adunits{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAdCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Adunits=Resource$Accounts$Adunits;class Resource$Accounts$Reports{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/accounts/{accountId}/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","startDate","endDate"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Reports=Resource$Accounts$Reports;class Resource$Adclients{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Adclients=Resource$Adclients;class Resource$Associationsessions{constructor(e){this.context=e}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/associationsessions/start").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["productCode","websiteUrl"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/associationsessions/verify").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["token"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Associationsessions=Resource$Associationsessions;class Resource$Customchannels{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["adClientId","customChannelId"],pathParams:["adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","customChannelId"],pathParams:["adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["adClientId","customChannelId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customchannels=Resource$Customchannels;class Resource$Reports{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["startDate","endDate"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports;class Resource$Urlchannels{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["adClientId","urlChannelId"],pathParams:["adClientId","urlChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/urlchannels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsensehost/v4.1/adclients/{adClientId}/urlchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Urlchannels=Resource$Urlchannels})(o=t.adsensehost_v4_1||(t.adsensehost_v4_1={}))},function(e,t,s){var r=s(293);var o=r.Buffer;function copyProps(e,t){for(var s in e){t[s]=e[s]}}if(o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,s){return o(e,t,s)}copyProps(o,SafeBuffer);SafeBuffer.from=function(e,t,s){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return o(e,t,s)};SafeBuffer.alloc=function(e,t,s){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=o(e);if(t!==undefined){if(typeof s==="string"){r.fill(t,s)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return o(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},function(e,t,s){"use strict";var r=s(293).Buffer;var o=s(293).SlowBuffer;e.exports=bufferEq;function bufferEq(e,t){if(!r.isBuffer(e)||!r.isBuffer(t)){return false}if(e.length!==t.length){return false}var s=0;for(var o=0;o1024*64){throw new TypeError("pattern is too long")}var s=this.options;if(!s.noglobstar&&e==="**")return o;if(e==="")return"";var r="";var n=!!s.nocase;var a=false;var f=[];var h=[];var l;var P=false;var y=-1;var I=-1;var R=e.charAt(0)==="."?"":s.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)";var g=this;function clearStateChar(){if(l){switch(l){case"*":r+=u;n=true;break;case"?":r+=c;n=true;break;default:r+="\\"+l;break}g.debug("clearStateChar %j %j",l,r);l=false}}for(var q=0,x=e.length,$;q-1;T--){var E=h[T];var S=r.slice(0,E.reStart);var U=r.slice(E.reStart,E.reEnd-8);var b=r.slice(E.reEnd-8,E.reEnd);var C=r.slice(E.reEnd);b+=C;var G=S.split("(").length-1;var L=C;for(q=0;q=0;i--){n=e[i];if(n)break}for(i=0;i>> no match, partial?",e,p,t,h);if(p===c)return true}return false}var l;if(typeof a==="string"){if(r.nocase){l=f.toLowerCase()===a.toLowerCase()}else{l=f===a}this.debug("string match",a,f,l)}else{l=f.match(a);this.debug("pattern match",a,f,l)}if(!l)return false}if(n===c&&i===u){return true}else if(n===c){return s}else if(i===u){var P=n===c-1&&e[n]==="";return P}throw new Error("wtf?")};function globUnescape(e){return e.replace(/\\(.)/g,"$1")}function regExpEscape(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.managedidentities_v1=void 0;const r=s(927);var o;(function(e){class Managedidentities{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Managedidentities=Managedidentities;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.global=new Resource$Projects$Locations$Global(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Global{constructor(e){this.context=e;this.domains=new Resource$Projects$Locations$Global$Domains(this.context);this.operations=new Resource$Projects$Locations$Global$Operations(this.context)}}e.Resource$Projects$Locations$Global=Resource$Projects$Locations$Global;class Resource$Projects$Locations$Global$Domains{constructor(e){this.context=e}attachTrust(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:attachTrust").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachTrust(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:detachTrust").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reconfigureTrust(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:reconfigureTrust").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resetAdminPassword(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:resetAdminPassword").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validateTrust(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:validateTrust").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Global$Domains=Resource$Projects$Locations$Global$Domains;class Resource$Projects$Locations$Global$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://managedidentities.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Global$Operations=Resource$Projects$Locations$Global$Operations})(o=t.managedidentities_v1||(t.managedidentities_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.serviceusage=t.VERSIONS=void 0;const r=s(927);const o=s(826);const n=s(952);t.VERSIONS={v1:o.serviceusage_v1.Serviceusage,v1beta1:n.serviceusage_v1beta1.Serviceusage};function serviceusage(e){return r.getAPI("serviceusage",e,t.VERSIONS,this)}t.serviceusage=serviceusage;const i=new r.AuthPlus;t.auth=i},function(e,t,s){e.exports=glob;var r=s(747);var o=s(302);var n=s(93);var i=n.Minimatch;var c=s(689);var u=s(614).EventEmitter;var a=s(622);var f=s(357);var p=s(350);var h=s(245);var d=s(856);var l=d.alphasort;var P=d.alphasorti;var y=d.setopts;var I=d.ownProp;var R=s(634);var g=s(669);var q=d.childrenIgnored;var x=d.isIgnored;var $=s(49);function glob(e,t,s){if(typeof t==="function")s=t,t={};if(!t)t={};if(t.sync){if(s)throw new TypeError("callback provided to sync glob");return h(e,t)}return new Glob(e,t,s)}glob.sync=h;var j=glob.GlobSync=h.GlobSync;glob.glob=glob;function extend(e,t){if(t===null||typeof t!=="object"){return e}var s=Object.keys(t);var r=s.length;while(r--){e[s[r]]=t[s[r]]}return e}glob.hasMagic=function(e,t){var s=extend({},t);s.noprocess=true;var r=new Glob(e,s);var o=r.minimatch.set;if(!e)return false;if(o.length>1)return true;for(var n=0;nthis.maxLength)return t();if(!this.stat&&I(this.cache,s)){var n=this.cache[s];if(Array.isArray(n))n="DIR";if(!o||n==="DIR")return t(null,n);if(o&&n==="FILE")return t()}var i;var c=this.statCache[s];if(c!==undefined){if(c===false)return t(null,c);else{var u=c.isDirectory()?"DIR":"FILE";if(o&&u==="FILE")return t();else return t(null,u,c)}}var a=this;var f=R("stat\0"+s,lstatcb_);if(f)r.lstat(s,f);function lstatcb_(o,n){if(n&&n.isSymbolicLink()){return r.stat(s,function(r,o){if(r)a._stat2(e,s,null,n,t);else a._stat2(e,s,r,o,t)})}else{a._stat2(e,s,o,n,t)}}};Glob.prototype._stat2=function(e,t,s,r,o){if(s&&(s.code==="ENOENT"||s.code==="ENOTDIR")){this.statCache[t]=false;return o()}var n=e.slice(-1)==="/";this.statCache[t]=r;if(t.slice(-1)==="/"&&r&&!r.isDirectory())return o(null,false,r);var i=true;if(r)i=r.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||i;if(n&&i==="FILE")return o();return o(null,i,r)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tagmanager_v1=void 0;const r=s(927);var o;(function(e){class Tagmanager{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context)}}e.Tagmanager=Tagmanager;class Resource$Accounts{constructor(e){this.context=e;this.containers=new Resource$Accounts$Containers(this.context);this.permissions=new Resource$Accounts$Permissions(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Containers{constructor(e){this.context=e;this.environments=new Resource$Accounts$Containers$Environments(this.context);this.folders=new Resource$Accounts$Containers$Folders(this.context);this.move_folders=new Resource$Accounts$Containers$Move_folders(this.context);this.reauthorize_environments=new Resource$Accounts$Containers$Reauthorize_environments(this.context);this.tags=new Resource$Accounts$Containers$Tags(this.context);this.triggers=new Resource$Accounts$Containers$Triggers(this.context);this.variables=new Resource$Accounts$Containers$Variables(this.context);this.versions=new Resource$Accounts$Containers$Versions(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers=Resource$Accounts$Containers;class Resource$Accounts$Containers$Environments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","environmentId"],pathParams:["accountId","containerId","environmentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","environmentId"],pathParams:["accountId","containerId","environmentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","environmentId"],pathParams:["accountId","containerId","environmentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Environments=Resource$Accounts$Containers$Environments;class Resource$Accounts$Containers$Folders{constructor(e){this.context=e;this.entities=new Resource$Accounts$Containers$Folders$Entities(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","folderId"],pathParams:["accountId","containerId","folderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","folderId"],pathParams:["accountId","containerId","folderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","folderId"],pathParams:["accountId","containerId","folderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Folders=Resource$Accounts$Containers$Folders;class Resource$Accounts$Containers$Folders$Entities{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","folderId"],pathParams:["accountId","containerId","folderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Folders$Entities=Resource$Accounts$Containers$Folders$Entities;class Resource$Accounts$Containers$Move_folders{constructor(e){this.context=e}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","folderId"],pathParams:["accountId","containerId","folderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Move_folders=Resource$Accounts$Containers$Move_folders;class Resource$Accounts$Containers$Reauthorize_environments{constructor(e){this.context=e}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","environmentId"],pathParams:["accountId","containerId","environmentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Reauthorize_environments=Resource$Accounts$Containers$Reauthorize_environments;class Resource$Accounts$Containers$Tags{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","tagId"],pathParams:["accountId","containerId","tagId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","tagId"],pathParams:["accountId","containerId","tagId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","tagId"],pathParams:["accountId","containerId","tagId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Tags=Resource$Accounts$Containers$Tags;class Resource$Accounts$Containers$Triggers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","triggerId"],pathParams:["accountId","containerId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","triggerId"],pathParams:["accountId","containerId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","triggerId"],pathParams:["accountId","containerId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Triggers=Resource$Accounts$Containers$Triggers;class Resource$Accounts$Containers$Variables{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","variableId"],pathParams:["accountId","containerId","variableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","variableId"],pathParams:["accountId","containerId","variableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","variableId"],pathParams:["accountId","containerId","variableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Variables=Resource$Accounts$Containers$Variables;class Resource$Accounts$Containers$Versions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","containerId"],pathParams:["accountId","containerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}publish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}restore(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","containerId","containerVersionId"],pathParams:["accountId","containerId","containerVersionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Versions=Resource$Accounts$Containers$Versions;class Resource$Accounts$Permissions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/permissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","permissionId"],pathParams:["accountId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","permissionId"],pathParams:["accountId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/permissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","permissionId"],pathParams:["accountId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Permissions=Resource$Accounts$Permissions})(o=t.tagmanager_v1||(t.tagmanager_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.servicemanagement_v1=void 0;const r=s(927);var o;(function(e){class Servicemanagement{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.services=new Resource$Services(this.context)}}e.Servicemanagement=Servicemanagement;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Services{constructor(e){this.context=e;this.configs=new Resource$Services$Configs(this.context);this.consumers=new Resource$Services$Consumers(this.context);this.rollouts=new Resource$Services$Rollouts(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:disable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:enable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateConfigReport(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services:generateConfigReport").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/config").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services;class Resource$Services$Configs{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/configs/{configId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName","configId"],pathParams:["configId","serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}submit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/configs:submit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Configs=Resource$Services$Configs;class Resource$Services$Consumers{constructor(e){this.context=e}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumers=Resource$Services$Consumers;class Resource$Services$Rollouts{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/rollouts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/rollouts/{rolloutId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName","rolloutId"],pathParams:["rolloutId","serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicemanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}/rollouts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Rollouts=Resource$Services$Rollouts})(o=t.servicemanagement_v1||(t.servicemanagement_v1={}))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudtrace_v1=void 0;const r=s(927);var o;(function(e){class Cloudtrace{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudtrace=Cloudtrace;class Resource$Projects{constructor(e){this.context=e;this.traces=new Resource$Projects$Traces(this.context)}patchTraces(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtrace.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/traces").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Traces{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtrace.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/traces/{traceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","traceId"],pathParams:["projectId","traceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtrace.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/traces").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Traces=Resource$Projects$Traces})(o=t.cloudtrace_v1||(t.cloudtrace_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.GoogleApis=t.AuthPlus=void 0;const r=s(442);const o=s(927);Object.defineProperty(t,"AuthPlus",{enumerable:true,get:function(){return o.AuthPlus}});class GoogleApis extends r.GeneratedAPIs{constructor(e){super();this._discovery=new o.Discovery({debug:false,includePrivate:false});this.auth=new o.AuthPlus;this._options={};this.options(e)}getSupportedAPIs(){const e={};Object.keys(r.APIS).forEach(t=>{e[t]=Object.keys(r.APIS[t])});return e}options(e){this._options=e||{}}addAPIs(e){for(const t in e){if(e.hasOwnProperty(t)){this[t]=e[t].bind(this)}}}discover(e,t){if(t){this.discoverAsync(e).then(()=>t()).catch(t)}else{return this.discoverAsync(e)}}async discoverAsync(e){const t=await this._discovery.discoverAllAPIs(e);this.addAPIs(t)}async discoverAPI(e,t={}){const s=await this._discovery.discoverAPI(e);const r=s(t,this);r.google=this;return Object.freeze(r)}}t.GoogleApis=GoogleApis},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigtableadmin_v1=void 0;var s;(function(e){class Bigtableadmin{constructor(e,t){this.context={_options:e||{},google:t}}}e.Bigtableadmin=Bigtableadmin})(s=t.bigtableadmin_v1||(t.bigtableadmin_v1={}))},function(e,t,s){const r=s(470);const{google:o}=s(819);const n=s(747);const i=s(436);const c=r.getInput("credentials",{required:true});const u=r.getInput("folder",{required:true});const a=r.getInput("target",{required:true});const f=r.getInput("name",{required:false});const p="link";const h=JSON.parse(Buffer.from(c,"base64").toString());const d=["https://www.googleapis.com/auth/drive"];const l=new o.auth.JWT(h.client_email,null,h.private_key,d);const P=o.drive({version:"v3",auth:l});const y=`https://drive.google.com/drive/folders/${u}`;let I=a.split("/").pop();async function main(){r.setOutput(p,y);if(n.lstatSync(a).isDirectory()){I=`${f||a}.zip`;r.info(`Folder detected in ${a}`);r.info(`Zipping ${a}...`);zipDirectory(a,I).then(()=>uploadToDrive()).catch(e=>{r.error("Zip failed");throw e})}else uploadToDrive()}function zipDirectory(e,t){const s=i("zip",{zlib:{level:9}});const o=n.createWriteStream(t);return new Promise((t,n)=>{s.directory(e,false).on("error",e=>n(e)).pipe(o);o.on("close",()=>{r.info(`Folder successfully zipped: ${s.pointer()} total bytes written`);return t()});s.finalize()})}function uploadToDrive(){r.info("Uploading file to Goole Drive...");P.files.create({requestBody:{name:I,parents:[u]},media:{body:n.createReadStream(`${f||a}${n.lstatSync(a).isDirectory()?".zip":""}`)}}).then(()=>r.info("File uploaded successfully")).catch(e=>{r.error("Upload failed");throw e})}main().catch(e=>r.setFailed(e))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.lifesciences=t.VERSIONS=void 0;const r=s(927);const o=s(48);t.VERSIONS={v2beta:o.lifesciences_v2beta.Lifesciences};function lifesciences(e){return r.getAPI("lifesciences",e,t.VERSIONS,this)}t.lifesciences=lifesciences;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(79);var o=s(149).Buffer;var n=s(417);var i=s(815);var c=s(669);var u='"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".';var a="secret must be a string or buffer";var f="key must be a string or a buffer";var p="key must be a string, a buffer or an object";var h=typeof n.createPublicKey==="function";if(h){f+=" or a KeyObject";a+="or a KeyObject"}function checkIsPublicKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return}if(!h){throw typeError(f)}if(typeof e!=="object"){throw typeError(f)}if(typeof e.type!=="string"){throw typeError(f)}if(typeof e.asymmetricKeyType!=="string"){throw typeError(f)}if(typeof e.export!=="function"){throw typeError(f)}}function checkIsPrivateKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return}if(typeof e==="object"){return}throw typeError(p)}function checkIsSecretKey(e){if(o.isBuffer(e)){return}if(typeof e==="string"){return e}if(!h){throw typeError(a)}if(typeof e!=="object"){throw typeError(a)}if(e.type!=="secret"){throw typeError(a)}if(typeof e.export!=="function"){throw typeError(a)}}function fromBase64(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function toBase64(e){e=e.toString();var t=4-e.length%4;if(t!==4){for(var s=0;s>>0};s.signed=t;s.unsigned=s;s.model=e;return s}},,function(e,t,s){var r=s(239);s(152);var o=null;if(r.util.isNodejs&&!r.options.usePureJavaScript&&!process.versions["node-webkit"]){o=s(417)}var n=e.exports=r.prng=r.prng||{};n.create=function(e){var t={plugin:e,key:null,seed:null,time:null,reseeds:0,generated:0,keyBytes:""};var s=e.md;var n=new Array(32);for(var i=0;i<32;++i){n[i]=s.create()}t.pools=n;t.pool=0;t.generate=function(e,s){if(!s){return t.generateSync(e)}var o=t.plugin.cipher;var n=t.plugin.increment;var i=t.plugin.formatKey;var c=t.plugin.formatSeed;var u=r.util.createBuffer();t.key=null;generate();function generate(a){if(a){return s(a)}if(u.length()>=e){return s(null,u.getBytes(e))}if(t.generated>1048575){t.key=null}if(t.key===null){return r.util.nextTick(function(){_reseed(generate)})}var f=o(t.key,t.seed);t.generated+=f.length;u.putBytes(f);t.key=i(o(t.key,n(t.seed)));t.seed=c(o(t.key,t.seed));r.util.setImmediate(generate)}};t.generateSync=function(e){var s=t.plugin.cipher;var o=t.plugin.increment;var n=t.plugin.formatKey;var i=t.plugin.formatSeed;t.key=null;var c=r.util.createBuffer();while(c.length()1048575){t.key=null}if(t.key===null){_reseedSync()}var u=s(t.key,t.seed);t.generated+=u.length;c.putBytes(u);t.key=n(s(t.key,o(t.seed)));t.seed=i(s(t.key,t.seed))}return c.getBytes(e)};function _reseed(e){if(t.pools[0].messageLength>=32){_seed();return e()}var s=32-t.pools[0].messageLength<<5;t.seedFile(s,function(s,r){if(s){return e(s)}t.collect(r);_seed();e()})}function _reseedSync(){if(t.pools[0].messageLength>=32){return _seed()}var e=32-t.pools[0].messageLength<<5;t.collect(t.seedFileSync(e));_seed()}function _seed(){t.reseeds=t.reseeds===4294967295?0:t.reseeds+1;var e=t.plugin.md.create();e.update(t.keyBytes);var s=1;for(var r=0;r<32;++r){if(t.reseeds%s===0){e.update(t.pools[r].digest().getBytes());t.pools[r].start()}s=s<<1}t.keyBytes=e.digest().getBytes();e.start();e.update(t.keyBytes);var o=e.digest().getBytes();t.key=t.plugin.formatKey(t.keyBytes);t.seed=t.plugin.formatSeed(o);t.generated=0}function defaultSeedFile(e){var t=null;var s=r.util.globalScope;var o=s.crypto||s.msCrypto;if(o&&o.getRandomValues){t=function(e){return o.getRandomValues(e)}}var n=r.util.createBuffer();if(t){while(n.length()>16);f+=(a&32767)<<16;f+=a>>15;f=(f&2147483647)+(f>>31);h=f&4294967295;for(var u=0;u<3;++u){p=h>>>(u<<3);p^=Math.floor(Math.random()*256);n.putByte(String.fromCharCode(p&255))}}}return n.getBytes(e)}if(o){t.seedFile=function(e,t){o.randomBytes(e,function(e,s){if(e){return t(e)}t(null,s.toString())})};t.seedFileSync=function(e){return o.randomBytes(e).toString()}}else{t.seedFile=function(e,t){try{t(null,defaultSeedFile(e))}catch(e){t(e)}};t.seedFileSync=defaultSeedFile}t.collect=function(e){var s=e.length;for(var r=0;r>o&255)}t.collect(r)};t.registerWorker=function(e){if(e===self){t.seedFile=function(e,t){function listener(e){var s=e.data;if(s.forge&&s.forge.prng){self.removeEventListener("message",listener);t(s.forge.prng.err,s.forge.prng.bytes)}}self.addEventListener("message",listener);self.postMessage({forge:{prng:{needed:e}}})}}else{var s=function(s){var r=s.data;if(r.forge&&r.forge.prng){t.seedFile(r.forge.prng.needed,function(t,s){e.postMessage({forge:{prng:{err:t,bytes:s}}})})}};e.addEventListener("message",s)}};return t}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.androidmanagement=t.VERSIONS=void 0;const r=s(927);const o=s(901);t.VERSIONS={v1:o.androidmanagement_v1.Androidmanagement};function androidmanagement(e){return r.getAPI("androidmanagement",e,t.VERSIONS,this)}t.androidmanagement=androidmanagement;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(239);e.exports=r.debug=r.debug||{};r.debug.storage={};r.debug.get=function(e,t){var s;if(typeof e==="undefined"){s=r.debug.storage}else if(e in r.debug.storage){if(typeof t==="undefined"){s=r.debug.storage[e]}else{s=r.debug.storage[e][t]}}return s};r.debug.set=function(e,t,s){if(!(e in r.debug.storage)){r.debug.storage[e]={}}r.debug.storage[e][t]=s};r.debug.clear=function(e,t){if(typeof e==="undefined"){r.debug.storage={}}else if(e in r.debug.storage){if(typeof t==="undefined"){delete r.debug.storage[e]}else{delete r.debug.storage[e][t]}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=(0,c.default)("crc1",function(e,t){if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=~~t;var o=0;for(var i=0;i=0};function messageToNativeBuffer(e){var t=e.message;if(t instanceof Uint8Array||t instanceof a){return t}var s=e.encoding;if(t===undefined){if(e.md){t=e.md.digest().getBytes();s="binary"}else{throw new TypeError('"options.message" or "options.md" not specified.')}}if(typeof t==="string"&&!s){throw new TypeError('"options.encoding" must be "binary" or "utf8".')}if(typeof t==="string"){if(typeof Buffer!=="undefined"){return Buffer.from(t,s)}t=new u(t,s)}else if(!(t instanceof u)){throw new TypeError('"options.message" must be a node.js Buffer, a Uint8Array, a forge '+'ByteBuffer, or a string with "options.encoding" specifying its '+"encoding.")}var r=new a(t.length());for(var o=0;o=32;--r){s=0;for(o=r-32,n=r-12;o>8;t[o]-=s*256}t[o]+=s;t[r]=0}s=0;for(o=0;o<32;++o){t[o]+=s-(t[31]>>4)*I[o];s=t[o]>>8;t[o]&=255}for(o=0;o<32;++o){t[o]-=s*I[o]}for(r=0;r<32;++r){t[r+1]+=t[r]>>8;e[r]=t[r]&255}}function reduce(e){var t=new Float64Array(64);for(var s=0;s<64;++s){t[s]=e[s];e[s]=0}modL(e,t)}function add(e,t){var s=gf(),r=gf(),o=gf(),n=gf(),i=gf(),c=gf(),u=gf(),a=gf(),f=gf();Z(s,e[1],e[0]);Z(f,t[1],t[0]);M(s,s,f);A(r,e[0],e[1]);A(f,t[0],t[1]);M(r,r,f);M(o,e[3],t[3]);M(o,o,l);M(n,e[2],t[2]);A(n,n,n);Z(i,r,s);Z(c,n,o);A(u,n,o);A(a,r,s);M(e[0],i,c);M(e[1],a,u);M(e[2],u,c);M(e[3],i,a)}function cswap(e,t,s){for(var r=0;r<4;++r){sel25519(e[r],t[r],s)}}function pack(e,t){var s=gf(),r=gf(),o=gf();inv25519(o,t[2]);M(s,t[0],o);M(r,t[1],o);pack25519(e,r);e[31]^=par25519(s)<<7}function pack25519(e,t){var s,r,o;var n=gf(),i=gf();for(s=0;s<16;++s){i[s]=t[s]}car25519(i);car25519(i);car25519(i);for(r=0;r<2;++r){n[0]=i[0]-65517;for(s=1;s<15;++s){n[s]=i[s]-65535-(n[s-1]>>16&1);n[s-1]&=65535}n[15]=i[15]-32767-(n[14]>>16&1);o=n[15]>>16&1;n[14]&=65535;sel25519(i,n,1-o)}for(s=0;s<16;s++){e[2*s]=i[s]&255;e[2*s+1]=i[s]>>8}}function unpackneg(e,t){var s=gf(),r=gf(),o=gf(),n=gf(),i=gf(),c=gf(),u=gf();set25519(e[2],h);unpack25519(e[1],t);S(o,e[1]);M(n,o,d);Z(o,o,e[2]);A(n,e[2],n);S(i,n);S(c,i);M(u,c,i);M(s,u,o);M(s,s,n);pow2523(s,s);M(s,s,o);M(s,s,n);M(s,s,n);M(e[0],s,n);S(r,e[0]);M(r,r,n);if(neq25519(r,o)){M(e[0],e[0],R)}S(r,e[0]);M(r,r,n);if(neq25519(r,o)){return-1}if(par25519(e[0])===t[31]>>7){Z(e[0],p,e[0])}M(e[3],e[0],e[1]);return 0}function unpack25519(e,t){var s;for(s=0;s<16;++s){e[s]=t[2*s]+(t[2*s+1]<<8)}e[15]&=32767}function pow2523(e,t){var s=gf();var r;for(r=0;r<16;++r){s[r]=t[r]}for(r=250;r>=0;--r){S(s,s);if(r!==1){M(s,s,t)}}for(r=0;r<16;++r){e[r]=s[r]}}function neq25519(e,t){var s=new a(32);var r=new a(32);pack25519(s,e);pack25519(r,t);return crypto_verify_32(s,0,r,0)}function crypto_verify_32(e,t,s,r){return vn(e,t,s,r,32)}function vn(e,t,s,r,o){var n,i=0;for(n=0;n>>8)-1}function par25519(e){var t=new a(32);pack25519(t,e);return t[0]&1}function scalarmult(e,t,s){var r,o;set25519(e[0],p);set25519(e[1],h);set25519(e[2],h);set25519(e[3],p);for(o=255;o>=0;--o){r=s[o/8|0]>>(o&7)&1;cswap(e,t,r);add(t,e);add(e,e);cswap(e,t,r)}}function scalarbase(e,t){var s=[gf(),gf(),gf(),gf()];set25519(s[0],P);set25519(s[1],y);set25519(s[2],h);M(s[3],P,y);scalarmult(e,s,t)}function set25519(e,t){var s;for(s=0;s<16;s++){e[s]=t[s]|0}}function inv25519(e,t){var s=gf();var r;for(r=0;r<16;++r){s[r]=t[r]}for(r=253;r>=0;--r){S(s,s);if(r!==2&&r!==4){M(s,s,t)}}for(r=0;r<16;++r){e[r]=s[r]}}function car25519(e){var t,s,r=1;for(t=0;t<16;++t){s=e[t]+r+65535;r=Math.floor(s/65536);e[t]=s-r*65536}e[0]+=r-1+37*(r-1)}function sel25519(e,t,s){var r,o=~(s-1);for(var n=0;n<16;++n){r=o&(e[n]^t[n]);e[n]^=r;t[n]^=r}}function gf(e){var t,s=new Float64Array(16);if(e){for(t=0;t=0;u--){T=T>>8;T+=A.at(u)+w.at(u);w.setAt(u,T&255)}O.putBuffer(w)}q=O;p.putBuffer(j)}p.truncate(p.length()-n);return p};i.pbe.getCipher=function(e,t,s){switch(e){case i.oids["pkcs5PBES2"]:return i.pbe.getCipherForPBES2(e,t,s);case i.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:case i.oids["pbewithSHAAnd40BitRC2-CBC"]:return i.pbe.getCipherForPKCS12PBE(e,t,s);default:var r=new Error("Cannot read encrypted PBE data block. Unsupported OID.");r.oid=e;r.supportedOids=["pkcs5PBES2","pbeWithSHAAnd3-KeyTripleDES-CBC","pbewithSHAAnd40BitRC2-CBC"];throw r}};i.pbe.getCipherForPBES2=function(e,t,s){var o={};var c=[];if(!n.validate(t,a,o,c)){var u=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");u.errors=c;throw u}e=n.derToOid(o.kdfOid);if(e!==i.oids["pkcs5PBKDF2"]){var u=new Error("Cannot read encrypted private key. "+"Unsupported key derivation function OID.");u.oid=e;u.supportedOids=["pkcs5PBKDF2"];throw u}e=n.derToOid(o.encOid);if(e!==i.oids["aes128-CBC"]&&e!==i.oids["aes192-CBC"]&&e!==i.oids["aes256-CBC"]&&e!==i.oids["des-EDE3-CBC"]&&e!==i.oids["desCBC"]){var u=new Error("Cannot read encrypted private key. "+"Unsupported encryption scheme OID.");u.oid=e;u.supportedOids=["aes128-CBC","aes192-CBC","aes256-CBC","des-EDE3-CBC","desCBC"];throw u}var f=o.kdfSalt;var p=r.util.createBuffer(o.kdfIterationCount);p=p.getInt(p.length()<<3);var h;var d;switch(i.oids[e]){case"aes128-CBC":h=16;d=r.aes.createDecryptionCipher;break;case"aes192-CBC":h=24;d=r.aes.createDecryptionCipher;break;case"aes256-CBC":h=32;d=r.aes.createDecryptionCipher;break;case"des-EDE3-CBC":h=24;d=r.des.createDecryptionCipher;break;case"desCBC":h=8;d=r.des.createDecryptionCipher;break}var l=prfOidToMessageDigest(o.prfOid);var P=r.pkcs5.pbkdf2(s,f,p,h,l);var y=o.encIv;var I=d(P);I.start(y);return I};i.pbe.getCipherForPKCS12PBE=function(e,t,s){var o={};var c=[];if(!n.validate(t,f,o,c)){var u=new Error("Cannot read password-based-encryption algorithm "+"parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.");u.errors=c;throw u}var a=r.util.createBuffer(o.salt);var p=r.util.createBuffer(o.iterations);p=p.getInt(p.length()<<3);var h,d,l;switch(e){case i.oids["pbeWithSHAAnd3-KeyTripleDES-CBC"]:h=24;d=8;l=r.des.startDecrypting;break;case i.oids["pbewithSHAAnd40BitRC2-CBC"]:h=5;d=8;l=function(e,t){var s=r.rc2.createDecryptionCipher(e,40);s.start(t,null);return s};break;default:var u=new Error("Cannot read PKCS #12 PBE data block. Unsupported OID.");u.oid=e;throw u}var P=prfOidToMessageDigest(o.prfOid);var y=i.pbe.generatePkcs12Key(s,a,1,p,h,P);P.start();var I=i.pbe.generatePkcs12Key(s,a,2,p,d,P);return l(y,I)};i.pbe.opensslDeriveBytes=function(e,t,s,o){if(typeof o==="undefined"||o===null){if(!("md5"in r.md)){throw new Error('"md5" hash algorithm unavailable.')}o=r.md.md5.create()}if(t===null){t=""}var n=[hash(o,e+t)];for(var i=16,c=1;i=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let r=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}r++;if(e==="%c"){o=r}});t.splice(o,0,s)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=s(783)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.language_v1beta2=void 0;const r=s(927);var o;(function(e){class Language{constructor(e,t){this.context={_options:e||{},google:t};this.documents=new Resource$Documents(this.context)}}e.Language=Language;class Resource$Documents{constructor(e){this.context=e}analyzeEntities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:analyzeEntities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeEntitySentiment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:analyzeEntitySentiment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSentiment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:analyzeSentiment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSyntax(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:analyzeSyntax").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}annotateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:annotateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}classifyText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/documents:classifyText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Documents=Resource$Documents})(o=t.language_v1beta2||(t.language_v1beta2={}))},function(e,t,s){var r=s(239);s(152);s(707);s(349);e.exports=r.kem=r.kem||{};var o=r.jsbn.BigInteger;r.kem.rsa={};r.kem.rsa.create=function(e,t){t=t||{};var s=t.prng||r.random;var n={};n.encrypt=function(t,n){var i=Math.ceil(t.n.bitLength()/8);var c;do{c=new o(r.util.bytesToHex(s.getBytesSync(i)),16).mod(t.n)}while(c.compareTo(o.ONE)<=0);c=r.util.hexToBytes(c.toString(16));var u=i-c.length;if(u>0){c=r.util.fillString(String.fromCharCode(0),u)+c}var a=t.encrypt(c,"NONE");var f=e.generate(c,n);return{encapsulation:a,key:f}};n.decrypt=function(t,s,r){var o=t.decrypt(s,"NONE");return e.generate(o,r)};return n};r.kem.kdf1=function(e,t){_createKDF(this,e,0,t||e.digestLength)};r.kem.kdf2=function(e,t){_createKDF(this,e,1,t||e.digestLength)};function _createKDF(e,t,s,o){e.generate=function(e,n){var i=new r.util.ByteBuffer;var c=Math.ceil(n/o)+s;var u=new r.util.ByteBuffer;for(var a=s;a15){s=Date.now();i(e)}else{t.push(e);if(t.length===1){o.setAttribute("a",r=!r)}}}}n.nextTick=n.setImmediate})();n.isNodejs=typeof process!=="undefined"&&process.versions&&process.versions.node;n.globalScope=function(){if(n.isNodejs){return global}return typeof self==="undefined"?window:self}();n.isArray=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};n.isArrayBuffer=function(e){return typeof ArrayBuffer!=="undefined"&&e instanceof ArrayBuffer};n.isArrayBufferView=function(e){return e&&n.isArrayBuffer(e.buffer)&&e.byteLength!==undefined};function _checkBitsParam(e){if(!(e===8||e===16||e===24||e===32)){throw new Error("Only 8, 16, 24, or 32 bits supported: "+e)}}n.ByteBuffer=ByteStringBuffer;function ByteStringBuffer(e){this.data="";this.read=0;if(typeof e==="string"){this.data=e}else if(n.isArrayBuffer(e)||n.isArrayBufferView(e)){if(typeof Buffer!=="undefined"&&e instanceof Buffer){this.data=e.toString("binary")}else{var t=new Uint8Array(e);try{this.data=String.fromCharCode.apply(null,t)}catch(e){for(var s=0;si){this.data.substr(0,1);this._constructedStringLength=0}};n.ByteStringBuffer.prototype.length=function(){return this.data.length-this.read};n.ByteStringBuffer.prototype.isEmpty=function(){return this.length()<=0};n.ByteStringBuffer.prototype.putByte=function(e){return this.putBytes(String.fromCharCode(e))};n.ByteStringBuffer.prototype.fillWithByte=function(e,t){e=String.fromCharCode(e);var s=this.data;while(t>0){if(t&1){s+=e}t>>>=1;if(t>0){e+=e}}this.data=s;this._optimizeConstructedString(t);return this};n.ByteStringBuffer.prototype.putBytes=function(e){this.data+=e;this._optimizeConstructedString(e.length);return this};n.ByteStringBuffer.prototype.putString=function(e){return this.putBytes(n.encodeUtf8(e))};n.ByteStringBuffer.prototype.putInt16=function(e){return this.putBytes(String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};n.ByteStringBuffer.prototype.putInt24=function(e){return this.putBytes(String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};n.ByteStringBuffer.prototype.putInt32=function(e){return this.putBytes(String.fromCharCode(e>>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255))};n.ByteStringBuffer.prototype.putInt16Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255))};n.ByteStringBuffer.prototype.putInt24Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255))};n.ByteStringBuffer.prototype.putInt32Le=function(e){return this.putBytes(String.fromCharCode(e&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>24&255))};n.ByteStringBuffer.prototype.putInt=function(e,t){_checkBitsParam(t);var s="";do{t-=8;s+=String.fromCharCode(e>>t&255)}while(t>0);return this.putBytes(s)};n.ByteStringBuffer.prototype.putSignedInt=function(e,t){if(e<0){e+=2<0);return t};n.ByteStringBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e);var s=2<=s){t-=s<<1}return t};n.ByteStringBuffer.prototype.getBytes=function(e){var t;if(e){e=Math.min(this.length(),e);t=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){t=""}else{t=this.read===0?this.data:this.data.slice(this.read);this.clear()}return t};n.ByteStringBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};n.ByteStringBuffer.prototype.at=function(e){return this.data.charCodeAt(this.read+e)};n.ByteStringBuffer.prototype.setAt=function(e,t){this.data=this.data.substr(0,this.read+e)+String.fromCharCode(t)+this.data.substr(this.read+e+1);return this};n.ByteStringBuffer.prototype.last=function(){return this.data.charCodeAt(this.data.length-1)};n.ByteStringBuffer.prototype.copy=function(){var e=n.createBuffer(this.data);e.read=this.read;return e};n.ByteStringBuffer.prototype.compact=function(){if(this.read>0){this.data=this.data.slice(this.read);this.read=0}return this};n.ByteStringBuffer.prototype.clear=function(){this.data="";this.read=0;return this};n.ByteStringBuffer.prototype.truncate=function(e){var t=Math.max(0,this.length()-e);this.data=this.data.substr(this.read,t);this.read=0;return this};n.ByteStringBuffer.prototype.toHex=function(){var e="";for(var t=this.read;t=e){return this}t=Math.max(t||this.growSize,e);var s=new Uint8Array(this.data.buffer,this.data.byteOffset,this.data.byteLength);var r=new Uint8Array(this.length()+t);r.set(s);this.data=new DataView(r.buffer);return this};n.DataBuffer.prototype.putByte=function(e){this.accommodate(1);this.data.setUint8(this.write++,e);return this};n.DataBuffer.prototype.fillWithByte=function(e,t){this.accommodate(t);for(var s=0;s>8&65535);this.data.setInt8(this.write,e>>16&255);this.write+=3;return this};n.DataBuffer.prototype.putInt32=function(e){this.accommodate(4);this.data.setInt32(this.write,e);this.write+=4;return this};n.DataBuffer.prototype.putInt16Le=function(e){this.accommodate(2);this.data.setInt16(this.write,e,true);this.write+=2;return this};n.DataBuffer.prototype.putInt24Le=function(e){this.accommodate(3);this.data.setInt8(this.write,e>>16&255);this.data.setInt16(this.write,e>>8&65535,true);this.write+=3;return this};n.DataBuffer.prototype.putInt32Le=function(e){this.accommodate(4);this.data.setInt32(this.write,e,true);this.write+=4;return this};n.DataBuffer.prototype.putInt=function(e,t){_checkBitsParam(t);this.accommodate(t/8);do{t-=8;this.data.setInt8(this.write++,e>>t&255)}while(t>0);return this};n.DataBuffer.prototype.putSignedInt=function(e,t){_checkBitsParam(t);this.accommodate(t/8);if(e<0){e+=2<0);return t};n.DataBuffer.prototype.getSignedInt=function(e){var t=this.getInt(e);var s=2<=s){t-=s<<1}return t};n.DataBuffer.prototype.getBytes=function(e){var t;if(e){e=Math.min(this.length(),e);t=this.data.slice(this.read,this.read+e);this.read+=e}else if(e===0){t=""}else{t=this.read===0?this.data:this.data.slice(this.read);this.clear()}return t};n.DataBuffer.prototype.bytes=function(e){return typeof e==="undefined"?this.data.slice(this.read):this.data.slice(this.read,this.read+e)};n.DataBuffer.prototype.at=function(e){return this.data.getUint8(this.read+e)};n.DataBuffer.prototype.setAt=function(e,t){this.data.setUint8(e,t);return this};n.DataBuffer.prototype.last=function(){return this.data.getUint8(this.write-1)};n.DataBuffer.prototype.copy=function(){return new n.DataBuffer(this)};n.DataBuffer.prototype.compact=function(){if(this.read>0){var e=new Uint8Array(this.data.buffer,this.read);var t=new Uint8Array(e.byteLength);t.set(e);this.data=new DataView(t);this.write-=this.read;this.read=0}return this};n.DataBuffer.prototype.clear=function(){this.data=new DataView(new ArrayBuffer(0));this.read=this.write=0;return this};n.DataBuffer.prototype.truncate=function(e){this.write=Math.max(0,this.length()-e);this.read=Math.min(this.read,this.write);return this};n.DataBuffer.prototype.toHex=function(){var e="";for(var t=this.read;t0){if(t&1){s+=e}t>>>=1;if(t>0){e+=e}}return s};n.xorBytes=function(e,t,s){var r="";var o="";var n="";var i=0;var c=0;for(;s>0;--s,++i){o=e.charCodeAt(i)^t.charCodeAt(i);if(c>=10){r+=n;n="";c=0}n+=String.fromCharCode(o);++c}r+=n;return r};n.hexToBytes=function(e){var t="";var s=0;if(e.length&1==1){s=1;t+=String.fromCharCode(parseInt(e[0],16))}for(;s>24&255)+String.fromCharCode(e>>16&255)+String.fromCharCode(e>>8&255)+String.fromCharCode(e&255)};var c="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";var u=[62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,64,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51];var a="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";n.encode64=function(e,t){var s="";var r="";var o,n,i;var u=0;while(u>2);s+=c.charAt((o&3)<<4|n>>4);if(isNaN(n)){s+="=="}else{s+=c.charAt((n&15)<<2|i>>6);s+=isNaN(i)?"=":c.charAt(i&63)}if(t&&s.length>t){r+=s.substr(0,t)+"\r\n";s=s.substr(t)}}r+=s;return r};n.decode64=function(e){e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");var t="";var s,r,o,n;var i=0;while(i>4);if(o!==64){t+=String.fromCharCode((r&15)<<4|o>>2);if(n!==64){t+=String.fromCharCode((o&3)<<6|n)}}}return t};n.encodeUtf8=function(e){return unescape(encodeURIComponent(e))};n.decodeUtf8=function(e){return decodeURIComponent(escape(e))};n.binary={raw:{},hex:{},base64:{},base58:{},baseN:{encode:o.encode,decode:o.decode}};n.binary.raw.encode=function(e){return String.fromCharCode.apply(null,e)};n.binary.raw.decode=function(e,t,s){var r=t;if(!r){r=new Uint8Array(e.length)}s=s||0;var o=s;for(var n=0;n>2);s+=c.charAt((o&3)<<4|n>>4);if(isNaN(n)){s+="=="}else{s+=c.charAt((n&15)<<2|i>>6);s+=isNaN(i)?"=":c.charAt(i&63)}if(t&&s.length>t){r+=s.substr(0,t)+"\r\n";s=s.substr(t)}}r+=s;return r};n.binary.base64.decode=function(e,t,s){var r=t;if(!r){r=new Uint8Array(Math.ceil(e.length/4)*3)}e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");s=s||0;var o,n,i,c;var a=0,f=s;while(a>4;if(i!==64){r[f++]=(n&15)<<4|i>>2;if(c!==64){r[f++]=(i&3)<<6|c}}}return t?f-s:r.subarray(0,f)};n.binary.base58.encode=function(e,t){return n.binary.baseN.encode(e,a,t)};n.binary.base58.decode=function(e,t){return n.binary.baseN.decode(e,a,t)};n.text={utf8:{},utf16:{}};n.text.utf8.encode=function(e,t,s){e=n.encodeUtf8(e);var r=t;if(!r){r=new Uint8Array(e.length)}s=s||0;var o=s;for(var i=0;i0){n=s[r].substring(0,o);i=s[r].substring(o+1)}else{n=s[r];i=null}if(!(n in t)){t[n]=[]}if(!(n in Object.prototype)&&i!==null){t[n].push(unescape(i))}}return t};var s;if(typeof e==="undefined"){if(I===null){if(typeof window!=="undefined"&&window.location&&window.location.search){I=t(window.location.search.substring(1))}else{I={}}}s=I}else{s=t(e)}return s};n.parseFragment=function(e){var t=e;var s="";var r=e.indexOf("?");if(r>0){t=e.substring(0,r);s=e.substring(r+1)}var o=t.split("/");if(o.length>0&&o[0]===""){o.shift()}var i=s===""?{}:n.getQueryVariables(s);return{pathString:t,queryString:s,path:o,query:i}};n.makeRequest=function(e){var t=n.parseFragment(e);var s={path:t.pathString,query:t.queryString,getPath:function(e){return typeof e==="undefined"?t.path:t.path[e]},getQuery:function(e,s){var r;if(typeof e==="undefined"){r=t.query}else{r=t.query[e];if(r&&typeof s!=="undefined"){r=r[s]}}return r},getQueryLast:function(e,t){var r;var o=s.getQuery(e);if(o){r=o[o.length-1]}else{r=t}return r}};return s};n.makeLink=function(e,t,s){e=jQuery.isArray(e)?e.join("/"):e;var r=jQuery.param(t||{});s=s||"";return e+(r.length>0?"?"+r:"")+(s.length>0?"#"+s:"")};n.setPath=function(e,t,s){if(typeof e==="object"&&e!==null){var r=0;var o=t.length;while(r0){n.push(r)}i=t.lastIndex;var c=s[0][1];switch(c){case"s":case"o":if(o")}break;case"%":n.push("%");break;default:n.push("<%"+c+"?>")}}n.push(e.substring(i));return n.join("")};n.formatNumber=function(e,t,s,r){var o=e,n=isNaN(t=Math.abs(t))?2:t;var i=s===undefined?",":s;var c=r===undefined?".":r,u=o<0?"-":"";var a=parseInt(o=Math.abs(+o||0).toFixed(n),10)+"";var f=a.length>3?a.length%3:0;return u+(f?a.substr(0,f)+c:"")+a.substr(f).replace(/(\d{3})(?=\d)/g,"$1"+c)+(n?i+Math.abs(o-a).toFixed(n).slice(2):"")};n.formatSize=function(e){if(e>=1073741824){e=n.formatNumber(e/1073741824,2,".","")+" GiB"}else if(e>=1048576){e=n.formatNumber(e/1048576,2,".","")+" MiB"}else if(e>=1024){e=n.formatNumber(e/1024,0)+" KiB"}else{e=n.formatNumber(e,0)+" bytes"}return e};n.bytesFromIP=function(e){if(e.indexOf(".")!==-1){return n.bytesFromIPv4(e)}if(e.indexOf(":")!==-1){return n.bytesFromIPv6(e)}return null};n.bytesFromIPv4=function(e){e=e.split(".");if(e.length!==4){return null}var t=n.createBuffer();for(var s=0;ss[r].end-s[r].start){r=s.length-1}}}t.push(i)}if(s.length>0){var a=s[r];if(a.end-a.start>0){t.splice(a.start,a.end-a.start+1,"");if(a.start===0){t.unshift("")}if(a.end===7){t.push("")}}}return t.join(":")};n.estimateCores=function(e,t){if(typeof e==="function"){t=e;e={}}e=e||{};if("cores"in n&&!e.update){return t(null,n.cores)}if(typeof navigator!=="undefined"&&"hardwareConcurrency"in navigator&&navigator.hardwareConcurrency>0){n.cores=navigator.hardwareConcurrency;return t(null,n.cores)}if(typeof Worker==="undefined"){n.cores=1;return t(null,n.cores)}if(typeof Blob==="undefined"){n.cores=2;return t(null,n.cores)}var s=URL.createObjectURL(new Blob(["(",function(){self.addEventListener("message",function(e){var t=Date.now();var s=t+4;while(Date.now()c.st&&o.sto.st&&c.st=2044){return 2141175677}var r={year:s,month:t?e.getMonth():e.getUTCMonth(),date:t?e.getDate():e.getUTCDate(),hours:t?e.getHours():e.getUTCHours(),minutes:t?e.getMinutes():e.getUTCMinutes(),seconds:t?e.getSeconds():e.getUTCSeconds()};return r.year-1980<<25|r.month+1<<21|r.date<<16|r.hours<<11|r.minutes<<5|r.seconds/2};t.dosToDate=function(e){return new Date((e>>25&127)+1980,(e>>21&15)-1,e>>16&31,e>>11&31,e>>5&63,(e&31)<<1)};t.fromDosTime=function(e){return t.dosToDate(e.readUInt32LE(0))};t.getEightBytes=function(e){var t=Buffer.alloc(8);t.writeUInt32LE(e%4294967296,0);t.writeUInt32LE(e/4294967296|0,4);return t};t.getShortBytes=function(e){var t=Buffer.alloc(2);t.writeUInt16LE((e&65535)>>>0,0);return t};t.getShortBytesValue=function(e,t){return e.readUInt16LE(t)};t.getLongBytes=function(e){var t=Buffer.alloc(4);t.writeUInt32LE((e&4294967295)>>>0,0);return t};t.getLongBytesValue=function(e,t){return e.readUInt32LE(t)};t.toDosTime=function(e){return t.getLongBytes(t.dateToDos(e))}},function(e){"use strict";const t=e=>{if(e===null||e===undefined){return[]}if(Array.isArray(e)){return e}if(typeof e==="string"){return[e]}if(typeof e[Symbol.iterator]==="function"){return[...e]}return[e]};e.exports=t},,,function(e,t,s){var r=s(239);s(152);r.cipher=r.cipher||{};var o=e.exports=r.cipher.modes=r.cipher.modes||{};o.ecb=function(e){e=e||{};this.name="ECB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};o.ecb.prototype.start=function(e){};o.ecb.prototype.encrypt=function(e,t,s){if(e.length()0)){return true}for(var r=0;r0)){return true}for(var r=0;r0){return false}var s=e.length();var r=e.at(s-1);if(r>this.blockSize<<2){return false}e.truncate(r);return true};o.cbc=function(e){e=e||{};this.name="CBC";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints)};o.cbc.prototype.start=function(e){if(e.iv===null){if(!this._prev){throw new Error("Invalid IV parameter.")}this._iv=this._prev.slice(0)}else if(!("iv"in e)){throw new Error("Invalid IV parameter.")}else{this._iv=transformIV(e.iv,this.blockSize);this._prev=this._iv.slice(0)}};o.cbc.prototype.encrypt=function(e,t,s){if(e.length()0)){return true}for(var r=0;r0)){return true}for(var r=0;r0){return false}var s=e.length();var r=e.at(s-1);if(r>this.blockSize<<2){return false}e.truncate(r);return true};o.cfb=function(e){e=e||{};this.name="CFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialBlock=new Array(this._ints);this._partialOutput=r.util.createBuffer();this._partialBytes=0};o.cfb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};o.cfb.prototype.encrypt=function(e,t,s){var r=e.length();if(r===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&r>=this.blockSize){for(var o=0;o0){n=this.blockSize-n}this._partialOutput.clear();for(var o=0;o0){e.read-=this.blockSize}else{for(var o=0;o0){this._partialOutput.getBytes(this._partialBytes)}if(n>0&&!s){t.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=n;return true}t.putBytes(this._partialOutput.getBytes(r-this._partialBytes));this._partialBytes=0};o.cfb.prototype.decrypt=function(e,t,s){var r=e.length();if(r===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&r>=this.blockSize){for(var o=0;o0){n=this.blockSize-n}this._partialOutput.clear();for(var o=0;o0){e.read-=this.blockSize}else{for(var o=0;o0){this._partialOutput.getBytes(this._partialBytes)}if(n>0&&!s){t.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=n;return true}t.putBytes(this._partialOutput.getBytes(r-this._partialBytes));this._partialBytes=0};o.ofb=function(e){e=e||{};this.name="OFB";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=r.util.createBuffer();this._partialBytes=0};o.ofb.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};o.ofb.prototype.encrypt=function(e,t,s){var r=e.length();if(e.length()===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&r>=this.blockSize){for(var o=0;o0){n=this.blockSize-n}this._partialOutput.clear();for(var o=0;o0){e.read-=this.blockSize}else{for(var o=0;o0){this._partialOutput.getBytes(this._partialBytes)}if(n>0&&!s){t.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=n;return true}t.putBytes(this._partialOutput.getBytes(r-this._partialBytes));this._partialBytes=0};o.ofb.prototype.decrypt=o.ofb.prototype.encrypt;o.ctr=function(e){e=e||{};this.name="CTR";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=null;this._outBlock=new Array(this._ints);this._partialOutput=r.util.createBuffer();this._partialBytes=0};o.ctr.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}this._iv=transformIV(e.iv,this.blockSize);this._inBlock=this._iv.slice(0);this._partialBytes=0};o.ctr.prototype.encrypt=function(e,t,s){var r=e.length();if(r===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&r>=this.blockSize){for(var o=0;o0){n=this.blockSize-n}this._partialOutput.clear();for(var o=0;o0){e.read-=this.blockSize}if(this._partialBytes>0){this._partialOutput.getBytes(this._partialBytes)}if(n>0&&!s){t.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=n;return true}t.putBytes(this._partialOutput.getBytes(r-this._partialBytes));this._partialBytes=0}inc32(this._inBlock)};o.ctr.prototype.decrypt=o.ctr.prototype.encrypt;o.gcm=function(e){e=e||{};this.name="GCM";this.cipher=e.cipher;this.blockSize=e.blockSize||16;this._ints=this.blockSize/4;this._inBlock=new Array(this._ints);this._outBlock=new Array(this._ints);this._partialOutput=r.util.createBuffer();this._partialBytes=0;this._R=3774873600};o.gcm.prototype.start=function(e){if(!("iv"in e)){throw new Error("Invalid IV parameter.")}var t=r.util.createBuffer(e.iv);this._cipherLength=0;var s;if("additionalData"in e){s=r.util.createBuffer(e.additionalData)}else{s=r.util.createBuffer()}if("tagLength"in e){this._tagLength=e.tagLength}else{this._tagLength=128}this._tag=null;if(e.decrypt){this._tag=r.util.createBuffer(e.tag).getBytes();if(this._tag.length!==this._tagLength/8){throw new Error("Authentication tag does not match tag length.")}}this._hashBlock=new Array(this._ints);this.tag=null;this._hashSubkey=new Array(this._ints);this.cipher.encrypt([0,0,0,0],this._hashSubkey);this.componentBits=4;this._m=this.generateHashTable(this._hashSubkey,this.componentBits);var o=t.length();if(o===12){this._j0=[t.getInt32(),t.getInt32(),t.getInt32(),1]}else{this._j0=[0,0,0,0];while(t.length()>0){this._j0=this.ghash(this._hashSubkey,this._j0,[t.getInt32(),t.getInt32(),t.getInt32(),t.getInt32()])}this._j0=this.ghash(this._hashSubkey,this._j0,[0,0].concat(from64To32(o*8)))}this._inBlock=this._j0.slice(0);inc32(this._inBlock);this._partialBytes=0;s=r.util.createBuffer(s);this._aDataLength=from64To32(s.length()*8);var n=s.length()%this.blockSize;if(n){s.fillWithByte(0,this.blockSize-n)}this._s=[0,0,0,0];while(s.length()>0){this._s=this.ghash(this._hashSubkey,this._s,[s.getInt32(),s.getInt32(),s.getInt32(),s.getInt32()])}};o.gcm.prototype.encrypt=function(e,t,s){var r=e.length();if(r===0){return true}this.cipher.encrypt(this._inBlock,this._outBlock);if(this._partialBytes===0&&r>=this.blockSize){for(var o=0;o0){n=this.blockSize-n}this._partialOutput.clear();for(var o=0;o0){this._partialOutput.getBytes(this._partialBytes)}if(n>0&&!s){e.read-=this.blockSize;t.putBytes(this._partialOutput.getBytes(n-this._partialBytes));this._partialBytes=n;return true}t.putBytes(this._partialOutput.getBytes(r-this._partialBytes));this._partialBytes=0}this._s=this.ghash(this._hashSubkey,this._s,this._outBlock);inc32(this._inBlock)};o.gcm.prototype.decrypt=function(e,t,s){var r=e.length();if(r0)){return true}this.cipher.encrypt(this._inBlock,this._outBlock);inc32(this._inBlock);this._hashBlock[0]=e.getInt32();this._hashBlock[1]=e.getInt32();this._hashBlock[2]=e.getInt32();this._hashBlock[3]=e.getInt32();this._s=this.ghash(this._hashSubkey,this._s,this._hashBlock);for(var o=0;o0;--r){t[r]=e[r]>>>1|(e[r-1]&1)<<31}t[0]=e[0]>>>1;if(s){t[0]^=this._R}};o.gcm.prototype.tableMultiply=function(e){var t=[0,0,0,0];for(var s=0;s<32;++s){var r=s/8|0;var o=e[r]>>>(7-s%8)*4&15;var n=this._m[s][o];t[0]^=n[0];t[1]^=n[1];t[2]^=n[2];t[3]^=n[3]}return t};o.gcm.prototype.ghash=function(e,t,s){t[0]^=s[0];t[1]^=s[1];t[2]^=s[2];t[3]^=s[3];return this.tableMultiply(t)};o.gcm.prototype.generateHashTable=function(e,t){var s=8/t;var r=4*s;var o=16*s;var n=new Array(o);for(var i=0;i>>1;var o=new Array(s);o[r]=e.slice(0);var n=r>>>1;while(n>0){this.pow(o[2*n],o[n]=[]);n>>=1}n=2;while(n4){var s=e;e=r.util.createBuffer();for(var o=0;o>8^i)&255]^s<<8)&65535}return s});t.default=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.spanner_v1=void 0;const r=s(927);var o;(function(e){class Spanner{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Spanner=Spanner;class Resource$Projects{constructor(e){this.context=e;this.instanceConfigs=new Resource$Projects$Instanceconfigs(this.context);this.instances=new Resource$Projects$Instances(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Instanceconfigs{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instanceconfigs=Resource$Projects$Instanceconfigs;class Resource$Projects$Instances{constructor(e){this.context=e;this.backupOperations=new Resource$Projects$Instances$Backupoperations(this.context);this.backups=new Resource$Projects$Instances$Backups(this.context);this.databaseOperations=new Resource$Projects$Instances$Databaseoperations(this.context);this.databases=new Resource$Projects$Instances$Databases(this.context);this.operations=new Resource$Projects$Instances$Operations(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances=Resource$Projects$Instances;class Resource$Projects$Instances$Backupoperations{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/backupOperations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Backupoperations=Resource$Projects$Instances$Backupoperations;class Resource$Projects$Instances$Backups{constructor(e){this.context=e;this.operations=new Resource$Projects$Instances$Backups$Operations(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/backups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/backups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Backups=Resource$Projects$Instances$Backups;class Resource$Projects$Instances$Backups$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Backups$Operations=Resource$Projects$Instances$Backups$Operations;class Resource$Projects$Instances$Databaseoperations{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/databaseOperations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Databaseoperations=Resource$Projects$Instances$Databaseoperations;class Resource$Projects$Instances$Databases{constructor(e){this.context=e;this.operations=new Resource$Projects$Instances$Databases$Operations(this.context);this.sessions=new Resource$Projects$Instances$Databases$Sessions(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/databases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dropDatabase(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getDdl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/ddl").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/databases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}restore(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/databases:restore").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateDdl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/ddl").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Databases=Resource$Projects$Instances$Databases;class Resource$Projects$Instances$Databases$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Databases$Operations=Resource$Projects$Instances$Databases$Operations;class Resource$Projects$Instances$Databases$Sessions{constructor(e){this.context=e}batchCreate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/sessions:batchCreate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}beginTransaction(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:beginTransaction").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}commit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:commit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/sessions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}executeBatchDml(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:executeBatchDml").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}executeSql(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:executeSql").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}executeStreamingSql(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:executeStreamingSql").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/sessions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}partitionQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:partitionQuery").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}partitionRead(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:partitionRead").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}read(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:read").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}streamingRead(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+session}:streamingRead").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["session"],pathParams:["session"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Databases$Sessions=Resource$Projects$Instances$Databases$Sessions;class Resource$Projects$Instances$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://spanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Operations=Resource$Projects$Instances$Operations})(o=t.spanner_v1||(t.spanner_v1={}))},function(e,t,s){var r=s(669);var o=s(362);e.exports={Readable:Readable,Writable:Writable};r.inherits(Readable,o);r.inherits(Writable,o);function beforeFirstCall(e,t,s){e[t]=function(){delete e[t];s.apply(this,arguments);return this[t].apply(this,arguments)}}function Readable(e,t){if(!(this instanceof Readable))return new Readable(e,t);o.call(this,t);beforeFirstCall(this,"_read",function(){var s=e.call(this,t);var r=this.emit.bind(this,"error");s.on("error",r);s.pipe(this)});this.emit("readable")}function Writable(e,t){if(!(this instanceof Writable))return new Writable(e,t);o.call(this,t);beforeFirstCall(this,"_write",function(){var s=e.call(this,t);var r=this.emit.bind(this,"error");s.on("error",r);this.pipe(s)});this.emit("writable")}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.displayvideo_v1=void 0;const r=s(927);var o;(function(e){class Displayvideo{constructor(e,t){this.context={_options:e||{},google:t};this.advertisers=new Resource$Advertisers(this.context);this.combinedAudiences=new Resource$Combinedaudiences(this.context);this.customLists=new Resource$Customlists(this.context);this.firstAndThirdPartyAudiences=new Resource$Firstandthirdpartyaudiences(this.context);this.floodlightGroups=new Resource$Floodlightgroups(this.context);this.googleAudiences=new Resource$Googleaudiences(this.context);this.inventorySourceGroups=new Resource$Inventorysourcegroups(this.context);this.inventorySources=new Resource$Inventorysources(this.context);this.media=new Resource$Media(this.context);this.partners=new Resource$Partners(this.context);this.sdfdownloadtasks=new Resource$Sdfdownloadtasks(this.context);this.targetingTypes=new Resource$Targetingtypes(this.context)}}e.Displayvideo=Displayvideo;class Resource$Advertisers{constructor(e){this.context=e;this.assets=new Resource$Advertisers$Assets(this.context);this.campaigns=new Resource$Advertisers$Campaigns(this.context);this.channels=new Resource$Advertisers$Channels(this.context);this.creatives=new Resource$Advertisers$Creatives(this.context);this.insertionOrders=new Resource$Advertisers$Insertionorders(this.context);this.lineItems=new Resource$Advertisers$Lineitems(this.context);this.locationLists=new Resource$Advertisers$Locationlists(this.context);this.negativeKeywordLists=new Resource$Advertisers$Negativekeywordlists(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers=Resource$Advertisers;class Resource$Advertisers$Assets{constructor(e){this.context=e}upload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/assets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/v1/advertisers/{+advertiserId}/assets").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Assets=Resource$Advertisers$Assets;class Resource$Advertisers$Campaigns{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId","campaignId"],pathParams:["advertiserId","campaignId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","campaignId"],pathParams:["advertiserId","campaignId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["advertiserId","campaignId"],pathParams:["advertiserId","campaignId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Campaigns=Resource$Advertisers$Campaigns;class Resource$Advertisers$Channels{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/channels/{+channelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","channelId"],pathParams:["advertiserId","channelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/channels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Channels=Resource$Advertisers$Channels;class Resource$Advertisers$Creatives{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/creatives/{+creativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId","creativeId"],pathParams:["advertiserId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/creatives/{+creativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","creativeId"],pathParams:["advertiserId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/creatives/{+creativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["advertiserId","creativeId"],pathParams:["advertiserId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Creatives=Resource$Advertisers$Creatives;class Resource$Advertisers$Insertionorders{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/insertionOrders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId","insertionOrderId"],pathParams:["advertiserId","insertionOrderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","insertionOrderId"],pathParams:["advertiserId","insertionOrderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/insertionOrders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["advertiserId","insertionOrderId"],pathParams:["advertiserId","insertionOrderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Insertionorders=Resource$Advertisers$Insertionorders;class Resource$Advertisers$Lineitems{constructor(e){this.context=e;this.targetingTypes=new Resource$Advertisers$Lineitems$Targetingtypes(this.context)}bulkEditLineItemAssignedTargetingOptions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId","lineItemId"],pathParams:["advertiserId","lineItemId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}bulkListLineItemAssignedTargetingOptions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkListLineItemAssignedTargetingOptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","lineItemId"],pathParams:["advertiserId","lineItemId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId","lineItemId"],pathParams:["advertiserId","lineItemId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","lineItemId"],pathParams:["advertiserId","lineItemId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["advertiserId","lineItemId"],pathParams:["advertiserId","lineItemId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Lineitems=Resource$Advertisers$Lineitems;class Resource$Advertisers$Lineitems$Targetingtypes{constructor(e){this.context=e;this.assignedTargetingOptions=new Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions(this.context)}}e.Resource$Advertisers$Lineitems$Targetingtypes=Resource$Advertisers$Lineitems$Targetingtypes;class Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["advertiserId","lineItemId","targetingType"],pathParams:["advertiserId","lineItemId","targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["advertiserId","lineItemId","targetingType","assignedTargetingOptionId"],pathParams:["advertiserId","assignedTargetingOptionId","lineItemId","targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","lineItemId","targetingType","assignedTargetingOptionId"],pathParams:["advertiserId","assignedTargetingOptionId","lineItemId","targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","lineItemId","targetingType"],pathParams:["advertiserId","lineItemId","targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions=Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions;class Resource$Advertisers$Locationlists{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/locationLists/{+locationListId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","locationListId"],pathParams:["advertiserId","locationListId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/locationLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Locationlists=Resource$Advertisers$Locationlists;class Resource$Advertisers$Negativekeywordlists{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId","negativeKeywordListId"],pathParams:["advertiserId","negativeKeywordListId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/advertisers/{+advertiserId}/negativeKeywordLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["advertiserId"],pathParams:["advertiserId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers$Negativekeywordlists=Resource$Advertisers$Negativekeywordlists;class Resource$Combinedaudiences{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/combinedAudiences/{+combinedAudienceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["combinedAudienceId"],pathParams:["combinedAudienceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/combinedAudiences").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Combinedaudiences=Resource$Combinedaudiences;class Resource$Customlists{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/customLists/{+customListId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["customListId"],pathParams:["customListId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/customLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customlists=Resource$Customlists;class Resource$Firstandthirdpartyaudiences{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["firstAndThirdPartyAudienceId"],pathParams:["firstAndThirdPartyAudienceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/firstAndThirdPartyAudiences").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Firstandthirdpartyaudiences=Resource$Firstandthirdpartyaudiences;class Resource$Floodlightgroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/floodlightGroups/{+floodlightGroupId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["floodlightGroupId"],pathParams:["floodlightGroupId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/floodlightGroups/{floodlightGroupId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["floodlightGroupId"],pathParams:["floodlightGroupId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Floodlightgroups=Resource$Floodlightgroups;class Resource$Googleaudiences{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/googleAudiences/{+googleAudienceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["googleAudienceId"],pathParams:["googleAudienceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/googleAudiences").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Googleaudiences=Resource$Googleaudiences;class Resource$Inventorysourcegroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/inventorySourceGroups/{+inventorySourceGroupId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["inventorySourceGroupId"],pathParams:["inventorySourceGroupId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/inventorySourceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Inventorysourcegroups=Resource$Inventorysourcegroups;class Resource$Inventorysources{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/inventorySources/{+inventorySourceId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["inventorySourceId"],pathParams:["inventorySourceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/inventorySources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Inventorysources=Resource$Inventorysources;class Resource$Media{constructor(e){this.context=e}download(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/download/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Media=Resource$Media;class Resource$Partners{constructor(e){this.context=e;this.channels=new Resource$Partners$Channels(this.context)}}e.Resource$Partners=Resource$Partners;class Resource$Partners$Channels{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/partners/{+partnerId}/channels/{+channelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["partnerId","channelId"],pathParams:["channelId","partnerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/partners/{+partnerId}/channels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["partnerId"],pathParams:["partnerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Partners$Channels=Resource$Partners$Channels;class Resource$Sdfdownloadtasks{constructor(e){this.context=e;this.operations=new Resource$Sdfdownloadtasks$Operations(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/sdfdownloadtasks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sdfdownloadtasks=Resource$Sdfdownloadtasks;class Resource$Sdfdownloadtasks$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sdfdownloadtasks$Operations=Resource$Sdfdownloadtasks$Operations;class Resource$Targetingtypes{constructor(e){this.context=e;this.targetingOptions=new Resource$Targetingtypes$Targetingoptions(this.context)}}e.Resource$Targetingtypes=Resource$Targetingtypes;class Resource$Targetingtypes$Targetingoptions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["targetingType","targetingOptionId"],pathParams:["targetingOptionId","targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://displayvideo.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/targetingTypes/{+targetingType}/targetingOptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["targetingType"],pathParams:["targetingType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetingtypes$Targetingoptions=Resource$Targetingtypes$Targetingoptions})(o=t.displayvideo_v1||(t.displayvideo_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Endpoint=void 0;const r=s(276);class Endpoint{constructor(e){this._options=e||{}}applySchema(e,t,s,r){this.applyMethodsFromSchema(e,t,s,r);if(s.resources){for(const o in s.resources){if(Object.prototype.hasOwnProperty.call(s.resources,o)){const n=s.resources[o];if(!e[o]){e[o]={}}this.applySchema(e[o],t,n,r)}}}}applyMethodsFromSchema(e,t,s,r){if(s.methods){for(const o in s.methods){if(Object.prototype.hasOwnProperty.call(s.methods,o)){const n=s.methods[o];e[o]=this.makeMethod(t,n,r)}}}}makeMethod(e,t,s){return(o,n)=>{const i=typeof o==="function"?{}:o;n=typeof o==="function"?o:n;const c=buildurl(e.rootUrl+e.servicePath+t.path);const u={options:{url:c.substring(1,c.length-1),method:t.httpMethod},params:i,requiredParams:t.parameterOrder||[],pathParams:this.getPathParams(t.parameters),context:s};if(t.mediaUpload&&t.mediaUpload.protocols&&t.mediaUpload.protocols.simple&&t.mediaUpload.protocols.simple.path){const s=buildurl(e.rootUrl+t.mediaUpload.protocols.simple.path);u.mediaUrl=s.substring(1,s.length-1)}if(!n){return r.createAPIRequest(u)}r.createAPIRequest(u,n);return}}getPathParams(e){const t=new Array;if(typeof e!=="object"){e={}}Object.keys(e).forEach(s=>{if(e[s].location==="path"){t.push(s)}});return t}}t.Endpoint=Endpoint;function buildurl(e){return e?`'${e}'`.replace(/([^:]\/)\/+/g,"$1"):""}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dns_v1beta2=void 0;const r=s(927);var o;(function(e){class Dns{constructor(e,t){this.context={_options:e||{},google:t};this.changes=new Resource$Changes(this.context);this.dnsKeys=new Resource$Dnskeys(this.context);this.managedZoneOperations=new Resource$Managedzoneoperations(this.context);this.managedZones=new Resource$Managedzones(this.context);this.policies=new Resource$Policies(this.context);this.projects=new Resource$Projects(this.context);this.resourceRecordSets=new Resource$Resourcerecordsets(this.context)}}e.Dns=Dns;class Resource$Changes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","changeId"],pathParams:["changeId","managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Changes=Resource$Changes;class Resource$Dnskeys{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","dnsKeyId"],pathParams:["dnsKeyId","managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Dnskeys=Resource$Dnskeys;class Resource$Managedzoneoperations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","operation"],pathParams:["managedZone","operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedzoneoperations=Resource$Managedzoneoperations;class Resource$Managedzones{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedzones=Resource$Managedzones;class Resource$Policies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Policies=Resource$Policies;class Resource$Projects{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Resourcerecordsets{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resourcerecordsets=Resource$Resourcerecordsets})(o=t.dns_v1beta2||(t.dns_v1beta2={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=[0,7,14,9,28,27,18,21,56,63,54,49,36,35,42,45,112,119,126,121,108,107,98,101,72,79,70,65,84,83,90,93,224,231,238,233,252,251,242,245,216,223,214,209,196,195,202,205,144,151,158,153,140,139,130,133,168,175,166,161,180,179,186,189,199,192,201,206,219,220,213,210,255,248,241,246,227,228,237,234,183,176,185,190,171,172,165,162,143,136,129,134,147,148,157,154,39,32,41,46,59,60,53,50,31,24,17,22,3,4,13,10,87,80,89,94,75,76,69,66,111,104,97,102,115,116,125,122,137,142,135,128,149,146,155,156,177,182,191,184,173,170,163,164,249,254,247,240,229,226,235,236,193,198,207,200,221,218,211,212,105,110,103,96,117,114,123,124,81,86,95,88,77,74,67,68,25,30,23,16,5,2,11,12,33,38,47,40,61,58,51,52,78,73,64,71,82,85,92,91,118,113,120,127,106,109,100,99,62,57,48,55,34,37,44,43,6,1,8,15,26,29,20,19,174,169,160,167,178,181,188,187,150,145,152,159,138,141,132,131,222,217,208,215,194,197,204,203,230,225,232,239,250,253,244,243];if(typeof Int32Array!=="undefined")u=new Int32Array(u);var a=(0,c.default)("crc-8",function(e,t){if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=~~t;for(var o=0;o>1;var c=i+(e.length&1);var u=e.substr(0,c);var a=e.substr(i,c);var f=r.util.createBuffer();var p=r.hmac.create();s=t+s;var h=Math.ceil(o/16);var d=Math.ceil(o/20);p.start("MD5",u);var l=r.util.createBuffer();f.putBytes(s);for(var P=0;P0){p.queue(e,p.createAlert(e,{level:p.Alert.Level.warning,description:p.Alert.Description.no_renegotiation}));p.flush(e)}e.process()};p.parseHelloMessage=function(e,t,s){var o=null;var n=e.entity===p.ConnectionEnd.client;if(s<38){e.error(e,{message:n?"Invalid ServerHello message. Message too short.":"Invalid ClientHello message. Message too short.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}})}else{var i=t.fragment;var c=i.length();o={version:{major:i.getByte(),minor:i.getByte()},random:r.util.createBuffer(i.getBytes(32)),session_id:a(i,1),extensions:[]};if(n){o.cipher_suite=i.getBytes(2);o.compression_method=i.getByte()}else{o.cipher_suites=a(i,2);o.compression_methods=a(i,1)}c=s-(c-i.length());if(c>0){var u=a(i,2);while(u.length()>0){o.extensions.push({type:[u.getByte(),u.getByte()],data:a(u,2)})}if(!n){for(var f=0;f0){var l=d.getByte();if(l!==0){break}e.session.extensions.server_name.serverNameList.push(a(d,2).getBytes())}}}}}if(e.session.version){if(o.version.major!==e.session.version.major||o.version.minor!==e.session.version.minor){return e.error(e,{message:"TLS version change is disallowed during renegotiation.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}})}}if(n){e.session.cipherSuite=p.getCipherSuite(o.cipher_suite)}else{var P=r.util.createBuffer(o.cipher_suites.bytes());while(P.length()>0){e.session.cipherSuite=p.getCipherSuite(P.getBytes(2));if(e.session.cipherSuite!==null){break}}}if(e.session.cipherSuite===null){return e.error(e,{message:"No cipher suites in common.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.handshake_failure},cipherSuite:r.util.bytesToHex(o.cipher_suite)})}if(n){e.session.compressionMethod=o.compression_method}else{e.session.compressionMethod=p.CompressionMethod.none}}return o};p.createSecurityParameters=function(e,t){var s=e.entity===p.ConnectionEnd.client;var r=t.random.bytes();var o=s?e.session.sp.client_random:r;var n=s?r:p.createRandom().getBytes();e.session.sp={entity:e.entity,prf_algorithm:p.PRFAlgorithm.tls_prf_sha256,bulk_cipher_algorithm:null,cipher_type:null,enc_key_length:null,block_length:null,fixed_iv_length:null,record_iv_length:null,mac_algorithm:null,mac_length:null,mac_key_length:null,compression_algorithm:e.session.compressionMethod,pre_master_secret:null,master_secret:null,client_random:o,server_random:n}};p.handleServerHello=function(e,t,s){var r=p.parseHelloMessage(e,t,s);if(e.fail){return}if(r.version.minor<=e.version.minor){e.version.minor=r.version.minor}else{return e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}})}e.session.version=e.version;var o=r.session_id.bytes();if(o.length>0&&o===e.session.id){e.expect=I;e.session.resuming=true;e.session.sp.server_random=r.random.bytes()}else{e.expect=d;e.session.resuming=false;p.createSecurityParameters(e,r)}e.session.id=o;e.process()};p.handleClientHello=function(e,t,s){var o=p.parseHelloMessage(e,t,s);if(e.fail){return}var n=o.session_id.bytes();var i=null;if(e.sessionCache){i=e.sessionCache.getSession(n);if(i===null){n=""}else if(i.version.major!==o.version.major||i.version.minor>o.version.minor){i=null;n=""}}if(n.length===0){n=r.random.getBytes(32)}e.session.id=n;e.session.clientHelloVersion=o.version;e.session.sp={};if(i){e.version=e.session.version=i.version;e.session.sp=i.sp}else{var c;for(var u=1;u0){i=a(n.certificate_list,3);c=r.asn1.fromDer(i);i=r.pki.certificateFromAsn1(c,true);u.push(i)}}catch(t){return e.error(e,{message:"Could not parse certificate list.",cause:t,send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.bad_certificate}})}var f=e.entity===p.ConnectionEnd.client;if((f||e.verifyClient===true)&&u.length===0){e.error(e,{message:f?"No server certificate provided.":"No client certificate provided.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}})}else if(u.length===0){e.expect=f?l:j}else{if(f){e.session.serverCertificate=u[0]}else{e.session.clientCertificate=u[0]}if(p.verifyCertificateChain(e,u)){e.expect=f?l:j}}e.process()};p.handleServerKeyExchange=function(e,t,s){if(s>0){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unsupported_certificate}})}e.expect=P;e.process()};p.handleClientKeyExchange=function(e,t,s){if(s<48){return e.error(e,{message:"Invalid key parameters. Only RSA is supported.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.unsupported_certificate}})}var o=t.fragment;var n={enc_pre_master_secret:a(o,2).getBytes()};var i=null;if(e.getPrivateKey){try{i=e.getPrivateKey(e,e.session.serverCertificate);i=r.pki.privateKeyFromPem(i)}catch(t){e.error(e,{message:"Could not get private key.",cause:t,send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}}if(i===null){return e.error(e,{message:"No private key set.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}try{var c=e.session.sp;c.pre_master_secret=i.decrypt(n.enc_pre_master_secret);var u=e.session.clientHelloVersion;if(u.major!==c.pre_master_secret.charCodeAt(0)||u.minor!==c.pre_master_secret.charCodeAt(1)){throw new Error("TLS version rollback attack detected.")}}catch(e){c.pre_master_secret=r.random.getBytes(48)}e.expect=A;if(e.session.clientCertificate!==null){e.expect=v}e.process()};p.handleCertificateRequest=function(e,t,s){if(s<3){return e.error(e,{message:"Invalid CertificateRequest. Message too short.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}})}var r=t.fragment;var o={certificate_types:a(r,1),certificate_authorities:a(r,2)};e.session.certificateRequest=o;e.expect=y;e.process()};p.handleCertificateVerify=function(e,t,s){if(s<2){return e.error(e,{message:"Invalid CertificateVerify. Message too short.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}})}var o=t.fragment;o.read-=4;var n=o.bytes();o.read+=4;var i={signature:a(o,2).getBytes()};var c=r.util.createBuffer();c.putBuffer(e.session.md5.digest());c.putBuffer(e.session.sha1.digest());c=c.getBytes();try{var u=e.session.clientCertificate;if(!u.publicKey.verify(c,i.signature,"NONE")){throw new Error("CertificateVerify signature does not match.")}e.session.md5.update(n);e.session.sha1.update(n)}catch(t){return e.error(e,{message:"Bad signature in CertificateVerify.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.handshake_failure}})}e.expect=A;e.process()};p.handleServerHelloDone=function(e,t,s){if(s>0){return e.error(e,{message:"Invalid ServerHelloDone message. Invalid length.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.record_overflow}})}if(e.serverCertificate===null){var o={message:"No server certificate provided. Not enough security.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.insufficient_security}};var n=0;var i=e.verify(e,o.alert.description,n,[]);if(i!==true){if(i||i===0){if(typeof i==="object"&&!r.util.isArray(i)){if(i.message){o.message=i.message}if(i.alert){o.alert.description=i.alert}}else if(typeof i==="number"){o.alert.description=i}}return e.error(e,o)}}if(e.session.certificateRequest!==null){t=p.createRecord(e,{type:p.ContentType.handshake,data:p.createCertificate(e)});p.queue(e,t)}t=p.createRecord(e,{type:p.ContentType.handshake,data:p.createClientKeyExchange(e)});p.queue(e,t);e.expect=q;var c=function(e,t){if(e.session.certificateRequest!==null&&e.session.clientCertificate!==null){p.queue(e,p.createRecord(e,{type:p.ContentType.handshake,data:p.createCertificateVerify(e,t)}))}p.queue(e,p.createRecord(e,{type:p.ContentType.change_cipher_spec,data:p.createChangeCipherSpec()}));e.state.pending=p.createConnectionState(e);e.state.current.write=e.state.pending.write;p.queue(e,p.createRecord(e,{type:p.ContentType.handshake,data:p.createFinished(e)}));e.expect=I;p.flush(e);e.process()};if(e.session.certificateRequest===null||e.session.clientCertificate===null){return c(e,null)}p.getClientSignature(e,c)};p.handleChangeCipherSpec=function(e,t){if(t.fragment.getByte()!==1){return e.error(e,{message:"Invalid ChangeCipherSpec message received.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.illegal_parameter}})}var s=e.entity===p.ConnectionEnd.client;if(e.session.resuming&&s||!e.session.resuming&&!s){e.state.pending=p.createConnectionState(e)}e.state.current.read=e.state.pending.read;if(!e.session.resuming&&s||e.session.resuming&&!s){e.state.pending=null}e.expect=s?R:m;e.process()};p.handleFinished=function(e,t,s){var n=t.fragment;n.read-=4;var i=n.bytes();n.read+=4;var c=t.fragment.getBytes();n=r.util.createBuffer();n.putBuffer(e.session.md5.digest());n.putBuffer(e.session.sha1.digest());var u=e.entity===p.ConnectionEnd.client;var a=u?"server finished":"client finished";var f=e.session.sp;var h=12;var d=o;n=d(f.master_secret,a,n.getBytes(),h);if(n.getBytes()!==c){return e.error(e,{message:"Invalid verify_data in Finished message.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.decrypt_error}})}e.session.md5.update(i);e.session.sha1.update(i);if(e.session.resuming&&u||!e.session.resuming&&!u){p.queue(e,p.createRecord(e,{type:p.ContentType.change_cipher_spec,data:p.createChangeCipherSpec()}));e.state.current.write=e.state.pending.write;e.state.pending=null;p.queue(e,p.createRecord(e,{type:p.ContentType.handshake,data:p.createFinished(e)}))}e.expect=u?g:O;e.handshaking=false;++e.handshakes;e.peerCertificate=u?e.session.serverCertificate:e.session.clientCertificate;p.flush(e);e.isConnected=true;e.connected(e);e.process()};p.handleAlert=function(e,t){var s=t.fragment;var r={level:s.getByte(),description:s.getByte()};var o;switch(r.description){case p.Alert.Description.close_notify:o="Connection closed.";break;case p.Alert.Description.unexpected_message:o="Unexpected message.";break;case p.Alert.Description.bad_record_mac:o="Bad record MAC.";break;case p.Alert.Description.decryption_failed:o="Decryption failed.";break;case p.Alert.Description.record_overflow:o="Record overflow.";break;case p.Alert.Description.decompression_failure:o="Decompression failed.";break;case p.Alert.Description.handshake_failure:o="Handshake failure.";break;case p.Alert.Description.bad_certificate:o="Bad certificate.";break;case p.Alert.Description.unsupported_certificate:o="Unsupported certificate.";break;case p.Alert.Description.certificate_revoked:o="Certificate revoked.";break;case p.Alert.Description.certificate_expired:o="Certificate expired.";break;case p.Alert.Description.certificate_unknown:o="Certificate unknown.";break;case p.Alert.Description.illegal_parameter:o="Illegal parameter.";break;case p.Alert.Description.unknown_ca:o="Unknown certificate authority.";break;case p.Alert.Description.access_denied:o="Access denied.";break;case p.Alert.Description.decode_error:o="Decode error.";break;case p.Alert.Description.decrypt_error:o="Decrypt error.";break;case p.Alert.Description.export_restriction:o="Export restriction.";break;case p.Alert.Description.protocol_version:o="Unsupported protocol version.";break;case p.Alert.Description.insufficient_security:o="Insufficient security.";break;case p.Alert.Description.internal_error:o="Internal error.";break;case p.Alert.Description.user_canceled:o="User canceled.";break;case p.Alert.Description.no_renegotiation:o="Renegotiation not supported.";break;default:o="Unknown error.";break}if(r.description===p.Alert.Description.close_notify){return e.close()}e.error(e,{message:o,send:false,origin:e.entity===p.ConnectionEnd.client?"server":"client",alert:r});e.process()};p.handleHandshake=function(e,t){var s=t.fragment;var o=s.getByte();var n=s.getInt24();if(n>s.length()){e.fragmented=t;t.fragment=r.util.createBuffer();s.read-=4;return e.process()}e.fragmented=null;s.read-=4;var i=s.bytes(n+4);s.read+=4;if(o in F[e.entity][e.expect]){if(e.entity===p.ConnectionEnd.server&&!e.open&&!e.fail){e.handshaking=true;e.session={version:null,extensions:{server_name:{serverNameList:[]}},cipherSuite:null,compressionMethod:null,serverCertificate:null,clientCertificate:null,md5:r.md.md5.create(),sha1:r.md.sha1.create()}}if(o!==p.HandshakeType.hello_request&&o!==p.HandshakeType.certificate_verify&&o!==p.HandshakeType.finished){e.session.md5.update(i);e.session.sha1.update(i)}F[e.entity][e.expect][o](e,t,n)}else{p.handleUnexpected(e,t)}};p.handleApplicationData=function(e,t){e.data.putBuffer(t.fragment);e.dataReady(e);e.process()};p.handleHeartbeat=function(e,t){var s=t.fragment;var o=s.getByte();var n=s.getInt16();var i=s.getBytes(n);if(o===p.HeartbeatMessageType.heartbeat_request){if(e.handshaking||n>i.length){return e.process()}p.queue(e,p.createRecord(e,{type:p.ContentType.heartbeat,data:p.createHeartbeat(p.HeartbeatMessageType.heartbeat_response,i)}));p.flush(e)}else if(o===p.HeartbeatMessageType.heartbeat_response){if(i!==e.expectedHeartbeatPayload){return e.process()}if(e.heartbeatReceived){e.heartbeatReceived(e,r.util.createBuffer(i))}}e.process()};var h=0;var d=1;var l=2;var P=3;var y=4;var I=5;var R=6;var g=7;var q=8;var x=0;var $=1;var j=2;var v=3;var A=4;var m=5;var O=6;var w=7;var T=p.handleUnexpected;var E=p.handleChangeCipherSpec;var S=p.handleAlert;var U=p.handleHandshake;var b=p.handleApplicationData;var C=p.handleHeartbeat;var G=[];G[p.ConnectionEnd.client]=[[T,S,U,T,C],[T,S,U,T,C],[T,S,U,T,C],[T,S,U,T,C],[T,S,U,T,C],[E,S,T,T,C],[T,S,U,T,C],[T,S,U,b,C],[T,S,U,T,C]];G[p.ConnectionEnd.server]=[[T,S,U,T,C],[T,S,U,T,C],[T,S,U,T,C],[T,S,U,T,C],[E,S,T,T,C],[T,S,U,T,C],[T,S,U,b,C],[T,S,U,T,C]];var L=p.handleHelloRequest;var D=p.handleServerHello;var N=p.handleCertificate;var B=p.handleServerKeyExchange;var M=p.handleCertificateRequest;var z=p.handleServerHelloDone;var V=p.handleFinished;var F=[];F[p.ConnectionEnd.client]=[[T,T,D,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,N,B,M,z,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,B,M,z,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,T,M,z,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,T,T,z,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,V],[L,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[L,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]];var H=p.handleClientHello;var W=p.handleClientKeyExchange;var K=p.handleCertificateVerify;F[p.ConnectionEnd.server]=[[T,H,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,N,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,W,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,K,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,V],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T],[T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T,T]];p.generateKeys=function(e,t){var s=o;var r=t.client_random+t.server_random;if(!e.session.resuming){t.master_secret=s(t.pre_master_secret,"master secret",r,48).bytes();t.pre_master_secret=null}r=t.server_random+t.client_random;var n=2*t.mac_key_length+2*t.enc_key_length;var i=e.version.major===p.Versions.TLS_1_0.major&&e.version.minor===p.Versions.TLS_1_0.minor;if(i){n+=2*t.fixed_iv_length}var c=s(t.master_secret,"key expansion",r,n);var u={client_write_MAC_key:c.getBytes(t.mac_key_length),server_write_MAC_key:c.getBytes(t.mac_key_length),client_write_key:c.getBytes(t.enc_key_length),server_write_key:c.getBytes(t.enc_key_length)};if(i){u.client_write_IV=c.getBytes(t.fixed_iv_length);u.server_write_IV=c.getBytes(t.fixed_iv_length)}return u};p.createConnectionState=function(e){var t=e.entity===p.ConnectionEnd.client;var s=function(){var e={sequenceNumber:[0,0],macKey:null,macLength:0,macFunction:null,cipherState:null,cipherFunction:function(e){return true},compressionState:null,compressFunction:function(e){return true},updateSequenceNumber:function(){if(e.sequenceNumber[1]===4294967295){e.sequenceNumber[1]=0;++e.sequenceNumber[0]}else{++e.sequenceNumber[1]}}};return e};var r={read:s(),write:s()};r.read.update=function(e,t){if(!r.read.cipherFunction(t,r.read)){e.error(e,{message:"Could not decrypt record or bad MAC.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.bad_record_mac}})}else if(!r.read.compressFunction(e,t,r.read)){e.error(e,{message:"Could not decompress record.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.decompression_failure}})}return!e.fail};r.write.update=function(e,t){if(!r.write.compressFunction(e,t,r.write)){e.error(e,{message:"Could not compress record.",send:false,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}else if(!r.write.cipherFunction(t,r.write)){e.error(e,{message:"Could not encrypt record.",send:false,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}return!e.fail};if(e.session){var o=e.session.sp;e.session.cipherSuite.initSecurityParameters(o);o.keys=p.generateKeys(e,o);r.read.macKey=t?o.keys.server_write_MAC_key:o.keys.client_write_MAC_key;r.write.macKey=t?o.keys.client_write_MAC_key:o.keys.server_write_MAC_key;e.session.cipherSuite.initConnectionState(r,e,o);switch(o.compression_algorithm){case p.CompressionMethod.none:break;case p.CompressionMethod.deflate:r.read.compressFunction=u;r.write.compressFunction=c;break;default:throw new Error("Unsupported compression algorithm.")}}return r};p.createRandom=function(){var e=new Date;var t=+e+e.getTimezoneOffset()*6e4;var s=r.util.createBuffer();s.putInt32(t);s.putBytes(r.random.getBytes(28));return s};p.createRecord=function(e,t){if(!t.data){return null}var s={type:t.type,version:{major:e.version.major,minor:e.version.minor},length:t.data.length(),fragment:t.data};return s};p.createAlert=function(e,t){var s=r.util.createBuffer();s.putByte(t.level);s.putByte(t.description);return p.createRecord(e,{type:p.ContentType.alert,data:s})};p.createClientHello=function(e){e.session.clientHelloVersion={major:e.version.major,minor:e.version.minor};var t=r.util.createBuffer();for(var s=0;s0){l+=2}var P=e.session.id;var y=P.length+1+2+4+28+2+n+1+c+l;var I=r.util.createBuffer();I.putByte(p.HandshakeType.client_hello);I.putInt24(y);I.putByte(e.version.major);I.putByte(e.version.minor);I.putBytes(e.session.sp.client_random);f(I,1,r.util.createBuffer(P));f(I,2,t);f(I,1,i);if(l>0){f(I,2,u)}return I};p.createServerHello=function(e){var t=e.session.id;var s=t.length+1+2+4+28+2+1;var o=r.util.createBuffer();o.putByte(p.HandshakeType.server_hello);o.putInt24(s);o.putByte(e.version.major);o.putByte(e.version.minor);o.putBytes(e.session.sp.server_random);f(o,1,r.util.createBuffer(t));o.putByte(e.session.cipherSuite.id[0]);o.putByte(e.session.cipherSuite.id[1]);o.putByte(e.session.compressionMethod);return o};p.createCertificate=function(e){var t=e.entity===p.ConnectionEnd.client;var s=null;if(e.getCertificate){var o;if(t){o=e.session.certificateRequest}else{o=e.session.extensions.server_name.serverNameList}s=e.getCertificate(e,o)}var n=r.util.createBuffer();if(s!==null){try{if(!r.util.isArray(s)){s=[s]}var i=null;for(var c=0;c0){s.putByte(p.HandshakeType.server_key_exchange);s.putInt24(t)}return s};p.getClientSignature=function(e,t){var s=r.util.createBuffer();s.putBuffer(e.session.md5.digest());s.putBuffer(e.session.sha1.digest());s=s.getBytes();e.getSignature=e.getSignature||function(e,t,s){var o=null;if(e.getPrivateKey){try{o=e.getPrivateKey(e,e.session.clientCertificate);o=r.pki.privateKeyFromPem(o)}catch(t){e.error(e,{message:"Could not get private key.",cause:t,send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}}if(o===null){e.error(e,{message:"No private key set.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.internal_error}})}else{t=o.sign(t,null)}s(e,t)};e.getSignature(e,s,t)};p.createCertificateVerify=function(e,t){var s=t.length+2;var o=r.util.createBuffer();o.putByte(p.HandshakeType.certificate_verify);o.putInt24(s);o.putInt16(t.length);o.putBytes(t);return o};p.createCertificateRequest=function(e){var t=r.util.createBuffer();t.putByte(1);var s=r.util.createBuffer();for(var o in e.caStore.certs){var n=e.caStore.certs[o];var i=r.pki.distinguishedNameToAsn1(n.subject);var c=r.asn1.toDer(i);s.putInt16(c.length());s.putBuffer(c)}var u=1+t.length()+2+s.length();var a=r.util.createBuffer();a.putByte(p.HandshakeType.certificate_request);a.putInt24(u);f(a,1,t);f(a,2,s);return a};p.createServerHelloDone=function(e){var t=r.util.createBuffer();t.putByte(p.HandshakeType.server_hello_done);t.putInt24(0);return t};p.createChangeCipherSpec=function(){var e=r.util.createBuffer();e.putByte(1);return e};p.createFinished=function(e){var t=r.util.createBuffer();t.putBuffer(e.session.md5.digest());t.putBuffer(e.session.sha1.digest());var s=e.entity===p.ConnectionEnd.client;var n=e.session.sp;var i=12;var c=o;var u=s?"client finished":"server finished";t=c(n.master_secret,u,t.getBytes(),i);var a=r.util.createBuffer();a.putByte(p.HandshakeType.finished);a.putInt24(t.length());a.putBuffer(t);return a};p.createHeartbeat=function(e,t,s){if(typeof s==="undefined"){s=t.length}var o=r.util.createBuffer();o.putByte(e);o.putInt16(s);o.putBytes(t);var n=o.length();var i=Math.max(16,n-s-3);o.putBytes(r.random.getBytes(i));return o};p.queue=function(e,t){if(!t){return}if(t.fragment.length()===0){if(t.type===p.ContentType.handshake||t.type===p.ContentType.alert||t.type===p.ContentType.change_cipher_spec){return}}if(t.type===p.ContentType.handshake){var s=t.fragment.bytes();e.session.md5.update(s);e.session.sha1.update(s);s=null}var o;if(t.fragment.length()<=p.MaxFragment){o=[t]}else{o=[];var n=t.fragment.bytes();while(n.length>p.MaxFragment){o.push(p.createRecord(e,{type:t.type,data:r.util.createBuffer(n.slice(0,p.MaxFragment))}));n=n.slice(p.MaxFragment)}if(n.length>0){o.push(p.createRecord(e,{type:t.type,data:r.util.createBuffer(n)}))}}for(var i=0;i0){o=s.order[0]}if(o!==null&&o in s.cache){t=s.cache[o];delete s.cache[o];for(var n in s.order){if(s.order[n]===o){s.order.splice(n,1);break}}}return t};s.setSession=function(e,t){if(s.order.length===s.capacity){var o=s.order.shift();delete s.cache[o]}var o=r.util.bytesToHex(e);s.order.push(o);s.cache[o]=t}}return s};p.createConnection=function(e){var t=null;if(e.caStore){if(r.util.isArray(e.caStore)){t=r.pki.createCaStore(e.caStore)}else{t=e.caStore}}else{t=r.pki.createCaStore()}var s=e.cipherSuites||null;if(s===null){s=[];for(var o in p.CipherSuites){s.push(p.CipherSuites[o])}}var n=e.server||false?p.ConnectionEnd.server:p.ConnectionEnd.client;var i=e.sessionCache?p.createSessionCache(e.sessionCache):null;var c={version:{major:p.Version.major,minor:p.Version.minor},entity:n,sessionId:e.sessionId,caStore:t,sessionCache:i,cipherSuites:s,connected:e.connected,virtualHost:e.virtualHost||null,verifyClient:e.verifyClient||false,verify:e.verify||function(e,t,s,r){return t},verifyOptions:e.verifyOptions||{},getCertificate:e.getCertificate||null,getPrivateKey:e.getPrivateKey||null,getSignature:e.getSignature||null,input:r.util.createBuffer(),tlsData:r.util.createBuffer(),data:r.util.createBuffer(),tlsDataReady:e.tlsDataReady,dataReady:e.dataReady,heartbeatReceived:e.heartbeatReceived,closed:e.closed,error:function(t,s){s.origin=s.origin||(t.entity===p.ConnectionEnd.client?"client":"server");if(s.send){p.queue(t,p.createAlert(t,s.alert));p.flush(t)}var r=s.fatal!==false;if(r){t.fail=true}e.error(t,s);if(r){t.close(false)}},deflate:e.deflate||null,inflate:e.inflate||null};c.reset=function(e){c.version={major:p.Version.major,minor:p.Version.minor};c.record=null;c.session=null;c.peerCertificate=null;c.state={pending:null,current:null};c.expect=c.entity===p.ConnectionEnd.client?h:x;c.fragmented=null;c.records=[];c.open=false;c.handshakes=0;c.handshaking=false;c.isConnected=false;c.fail=!(e||typeof e==="undefined");c.input.clear();c.tlsData.clear();c.data.clear();c.state.current=p.createConnectionState(c)};c.reset();var u=function(e,t){var s=t.type-p.ContentType.change_cipher_spec;var r=G[e.entity][e.expect];if(s in r){r[s](e,t)}else{p.handleUnexpected(e,t)}};var a=function(e){var t=0;var s=e.input;var o=s.length();if(o<5){t=5-o}else{e.record={type:s.getByte(),version:{major:s.getByte(),minor:s.getByte()},length:s.getInt16(),fragment:r.util.createBuffer(),ready:false};var n=e.record.version.major===e.version.major;if(n&&e.session&&e.session.version){n=e.record.version.minor===e.version.minor}if(!n){e.error(e,{message:"Incompatible TLS version.",send:true,alert:{level:p.Alert.Level.fatal,description:p.Alert.Description.protocol_version}})}}return t};var f=function(e){var t=0;var s=e.input;var r=s.length();if(r0){if(c.sessionCache){t=c.sessionCache.getSession(e)}if(t===null){e=""}}if(e.length===0&&c.sessionCache){t=c.sessionCache.getSession();if(t!==null){e=t.id}}c.session={id:e,version:null,cipherSuite:null,compressionMethod:null,serverCertificate:null,certificateRequest:null,clientCertificate:null,sp:{},md5:r.md.md5.create(),sha1:r.md.sha1.create()};if(t){c.version=t.version;c.session.sp=t.sp}c.session.sp.client_random=p.createRandom().getBytes();c.open=true;p.queue(c,p.createRecord(c,{type:p.ContentType.handshake,data:p.createClientHello(c)}));p.flush(c)}};c.process=function(e){var t=0;if(e){c.input.putBytes(e)}if(!c.fail){if(c.record!==null&&c.record.ready&&c.record.fragment.isEmpty()){c.record=null}if(c.record===null){t=a(c)}if(!c.fail&&c.record!==null&&!c.record.ready){t=f(c)}if(!c.fail&&c.record!==null&&c.record.ready){u(c,c.record)}}return t};c.prepare=function(e){p.queue(c,p.createRecord(c,{type:p.ContentType.application_data,data:r.util.createBuffer(e)}));return p.flush(c)};c.prepareHeartbeatRequest=function(e,t){if(e instanceof r.util.ByteBuffer){e=e.bytes()}if(typeof t==="undefined"){t=e.length}c.expectedHeartbeatPayload=e;p.queue(c,p.createRecord(c,{type:p.ContentType.heartbeat,data:p.createHeartbeat(p.HeartbeatMessageType.heartbeat_request,e,t)}));return p.flush(c)};c.close=function(e){if(!c.fail&&c.sessionCache&&c.session){var t={id:c.session.id,version:c.session.version,sp:c.session.sp};t.sp.keys=null;c.sessionCache.setSession(t.id,t)}if(c.open){c.open=false;c.input.clear();if(c.isConnected||c.handshaking){c.isConnected=c.handshaking=false;p.queue(c,p.createAlert(c,{level:p.Alert.Level.warning,description:p.Alert.Description.close_notify}));p.flush(c)}c.closed(c)}c.reset(e)};return c};e.exports=r.tls=r.tls||{};for(var J in p){if(typeof p[J]!=="function"){r.tls[J]=p[J]}}r.tls.prf_tls1=o;r.tls.hmac_sha1=i;r.tls.createSessionCache=p.createSessionCache;r.tls.createConnection=p.createConnection},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.classroom=t.VERSIONS=void 0;const r=s(927);const o=s(565);t.VERSIONS={v1:o.classroom_v1.Classroom};function classroom(e){return r.getAPI("classroom",e,t.VERSIONS,this)}t.classroom=classroom;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.webfonts_v1=void 0;const r=s(927);var o;(function(e){class Webfonts{constructor(e,t){this.context={_options:e||{},google:t};this.webfonts=new Resource$Webfonts(this.context)}}e.Webfonts=Webfonts;class Resource$Webfonts{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/webfonts/v1/webfonts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Webfonts=Resource$Webfonts})(o=t.webfonts_v1||(t.webfonts_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.websecurityscanner_v1=void 0;const r=s(927);var o;(function(e){class Websecurityscanner{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Websecurityscanner=Websecurityscanner;class Resource$Projects{constructor(e){this.context=e;this.scanConfigs=new Resource$Projects$Scanconfigs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Scanconfigs{constructor(e){this.context=e;this.scanRuns=new Resource$Projects$Scanconfigs$Scanruns(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/scanConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/scanConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs=Resource$Projects$Scanconfigs;class Resource$Projects$Scanconfigs$Scanruns{constructor(e){this.context=e;this.crawledUrls=new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context);this.findings=new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context);this.findingTypeStats=new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/scanRuns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns=Resource$Projects$Scanconfigs$Scanruns;class Resource$Projects$Scanconfigs$Scanruns$Crawledurls{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/crawledUrls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Crawledurls=Resource$Projects$Scanconfigs$Scanruns$Crawledurls;class Resource$Projects$Scanconfigs$Scanruns$Findings{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/findings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Findings=Resource$Projects$Scanconfigs$Scanruns$Findings;class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/findingTypeStats").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats=Resource$Projects$Scanconfigs$Scanruns$Findingtypestats})(o=t.websecurityscanner_v1||(t.websecurityscanner_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redis_v1beta1=void 0;const r=s(927);var o;(function(e){class Redis{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Redis=Redis;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.instances=new Resource$Projects$Locations$Instances(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Instances{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}failover(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:failover").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}upgrade(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:upgrade").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Instances=Resource$Projects$Locations$Instances;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.redis_v1beta1||(t.redis_v1beta1={}))},function(e,t,s){"use strict";function asyncGeneratorStep(e,t,s,r,o,n,i){try{var c=e[n](i);var u=c.value}catch(e){s(e);return}if(c.done){t(u)}else{Promise.resolve(u).then(r,o)}}function _asyncToGenerator(e){return function(){var t=this,s=arguments;return new Promise(function(r,o){var n=e.apply(t,s);function _next(e){asyncGeneratorStep(n,r,o,_next,_throw,"next",e)}function _throw(e){asyncGeneratorStep(n,r,o,_next,_throw,"throw",e)}_next(undefined)})}}function ownKeys(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});s.push.apply(s,r)}return s}function _objectSpread(e){for(var t=1;t0){c.push(a%n);a=a/n|0}}for(o=0;e[o]===0&&o=0;--o){r+=t[c[o]]}}if(s){var f=new RegExp(".{1,"+s+"}","g");r=r.match(f).join("\r\n")}return r};t.decode=function(e,t){if(typeof e!=="string"){throw new TypeError('"input" must be a string.')}if(typeof t!=="string"){throw new TypeError('"alphabet" must be a string.')}var r=s[t];if(!r){r=s[t]=[];for(var o=0;o>=8}while(f>0){c.push(f&255);f>>=8}}for(var p=0;e[p]===i&&p0){n.push(c%r);c=c/r|0}}var u="";for(s=0;e.at(s)===0&&s=0;--s){u+=t[n[s]]}return u}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.vault_v1=void 0;const r=s(927);var o;(function(e){class Vault{constructor(e,t){this.context={_options:e||{},google:t};this.matters=new Resource$Matters(this.context);this.operations=new Resource$Operations(this.context)}}e.Vault=Vault;class Resource$Matters{constructor(e){this.context=e;this.exports=new Resource$Matters$Exports(this.context);this.holds=new Resource$Matters$Holds(this.context);this.savedQueries=new Resource$Matters$Savedqueries(this.context)}addPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}:addPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}close(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}:close").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removePermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}:removePermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reopen(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}:reopen").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Matters=Resource$Matters;class Resource$Matters$Exports{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/exports").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/exports/{exportId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["matterId","exportId"],pathParams:["exportId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/exports/{exportId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId","exportId"],pathParams:["exportId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/exports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Matters$Exports=Resource$Matters$Exports;class Resource$Matters$Holds{constructor(e){this.context=e;this.accounts=new Resource$Matters$Holds$Accounts(this.context)}addHeldAccounts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeHeldAccounts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Matters$Holds=Resource$Matters$Holds;class Resource$Matters$Holds$Accounts{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["matterId","holdId","accountId"],pathParams:["accountId","holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/holds/{holdId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId","holdId"],pathParams:["holdId","matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Matters$Holds$Accounts=Resource$Matters$Holds$Accounts;class Resource$Matters$Savedqueries{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/savedQueries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/savedQueries/{savedQueryId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["matterId","savedQueryId"],pathParams:["matterId","savedQueryId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/savedQueries/{savedQueryId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId","savedQueryId"],pathParams:["matterId","savedQueryId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/matters/{matterId}/savedQueries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matterId"],pathParams:["matterId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Matters$Savedqueries=Resource$Matters$Savedqueries;class Resource$Operations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vault.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.vault_v1||(t.vault_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.discovery=t.VERSIONS=void 0;const r=s(927);const o=s(358);t.VERSIONS={v1:o.discovery_v1.Discovery};function discovery(e){return r.getAPI("discovery",e,t.VERSIONS,this)}t.discovery=discovery;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(239);s(592);e.exports=r.mgf=r.mgf||{};r.mgf.mgf1=r.mgf1},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudtasks_v2beta3=void 0;const r=s(927);var o;(function(e){class Cloudtasks{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudtasks=Cloudtasks;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.queues=new Resource$Projects$Locations$Queues(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Queues{constructor(e){this.context=e;this.tasks=new Resource$Projects$Locations$Queues$Tasks(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+parent}/queues").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+parent}/queues").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pause(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}:pause").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}purge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}:purge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}:resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Queues=Resource$Projects$Locations$Queues;class Resource$Projects$Locations$Queues$Tasks{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+parent}/tasks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+parent}/tasks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta3/{+name}:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Queues$Tasks=Resource$Projects$Locations$Queues$Tasks})(o=t.cloudtasks_v2beta3||(t.cloudtasks_v2beta3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.ml=t.VERSIONS=void 0;const r=s(927);const o=s(905);t.VERSIONS={v1:o.ml_v1.Ml};function ml(e){return r.getAPI("ml",e,t.VERSIONS,this)}t.ml=ml;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storagetransfer_v1=void 0;const r=s(927);var o;(function(e){class Storagetransfer{constructor(e,t){this.context={_options:e||{},google:t};this.googleServiceAccounts=new Resource$Googleserviceaccounts(this.context);this.transferJobs=new Resource$Transferjobs(this.context);this.transferOperations=new Resource$Transferoperations(this.context)}}e.Storagetransfer=Storagetransfer;class Resource$Googleserviceaccounts{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/googleServiceAccounts/{projectId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Googleserviceaccounts=Resource$Googleserviceaccounts;class Resource$Transferjobs{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/transferJobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+jobName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["jobName"],pathParams:["jobName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/transferJobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+jobName}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["jobName"],pathParams:["jobName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Transferjobs=Resource$Transferjobs;class Resource$Transferoperations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pause(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:pause").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storagetransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Transferoperations=Resource$Transferoperations})(o=t.storagetransfer_v1||(t.storagetransfer_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.clouderrorreporting=t.VERSIONS=void 0;const r=s(927);const o=s(313);t.VERSIONS={v1beta1:o.clouderrorreporting_v1beta1.Clouderrorreporting};function clouderrorreporting(e){return r.getAPI("clouderrorreporting",e,t.VERSIONS,this)}t.clouderrorreporting=clouderrorreporting;const n=new r.AuthPlus;t.auth=n},function(e){e.exports=require("querystring")},function(e){"use strict";function getParamSize(e){var t=(e/8|0)+(e%8===0?0:1);return t}var t={ES256:getParamSize(256),ES384:getParamSize(384),ES512:getParamSize(521)};function getParamBytesForAlg(e){var s=t[e];if(s){return s}throw new Error('Unknown algorithm "'+e+'"')}e.exports=getParamBytesForAlg},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.binaryauthorization=t.VERSIONS=void 0;const r=s(927);const o=s(966);const n=s(542);t.VERSIONS={v1:o.binaryauthorization_v1.Binaryauthorization,v1beta1:n.binaryauthorization_v1beta1.Binaryauthorization};function binaryauthorization(e){return r.getAPI("binaryauthorization",e,t.VERSIONS,this)}t.binaryauthorization=binaryauthorization;const i=new r.AuthPlus;t.auth=i},,,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.people=t.VERSIONS=void 0;const r=s(927);const o=s(258);t.VERSIONS={v1:o.people_v1.People};function people(e){return r.getAPI("people",e,t.VERSIONS,this)}t.people=people;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.streetviewpublish=t.VERSIONS=void 0;const r=s(927);const o=s(500);t.VERSIONS={v1:o.streetviewpublish_v1.Streetviewpublish};function streetviewpublish(e){return r.getAPI("streetviewpublish",e,t.VERSIONS,this)}t.streetviewpublish=streetviewpublish;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(669).inherits;var o=s(538);var{CRC32Stream:n}=s(146);var{DeflateCRC32Stream:i}=s(146);var c=s(453);var u=s(572);var a=s(92);var f=s(133);var p=s(872);var h=s(154);var d=e.exports=function(e){if(!(this instanceof d)){return new d(e)}e=this.options=this._defaults(e);c.call(this,e);this._entry=null;this._entries=[];this._archive={centralLength:0,centralOffset:0,comment:"",finish:false,finished:false,processing:false,forceZip64:e.forceZip64,forceLocalTime:e.forceLocalTime}};r(d,c);d.prototype._afterAppend=function(e){this._entries.push(e);if(e.getGeneralPurposeBit().usesDataDescriptor()){this._writeDataDescriptor(e)}this._archive.processing=false;this._entry=null;if(this._archive.finish&&!this._archive.finished){this._finish()}};d.prototype._appendBuffer=function(e,t,s){if(t.length===0){e.setMethod(f.METHOD_STORED)}var r=e.getMethod();if(r===f.METHOD_STORED){e.setSize(t.length);e.setCompressedSize(t.length);e.setCrc(o.unsigned(t))}this._writeLocalFileHeader(e);if(r===f.METHOD_STORED){this.write(t);this._afterAppend(e);s(null,e);return}else if(r===f.METHOD_DEFLATED){this._smartStream(e,s).end(t);return}else{s(new Error("compression method "+r+" not implemented"));return}};d.prototype._appendStream=function(e,t,s){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_DATA_DESCRIPTOR);this._writeLocalFileHeader(e);var r=this._smartStream(e,s);t.once("error",function(e){r.emit("error",e);r.end()});t.pipe(r)};d.prototype._defaults=function(e){if(typeof e!=="object"){e={}}if(typeof e.zlib!=="object"){e.zlib={}}if(typeof e.zlib.level!=="number"){e.zlib.level=f.ZLIB_BEST_SPEED}e.forceZip64=!!e.forceZip64;e.forceLocalTime=!!e.forceLocalTime;return e};d.prototype._finish=function(){this._archive.centralOffset=this.offset;this._entries.forEach(function(e){this._writeCentralFileHeader(e)}.bind(this));this._archive.centralLength=this.offset-this._archive.centralOffset;if(this.isZip64()){this._writeCentralDirectoryZip64()}this._writeCentralDirectoryEnd();this._archive.processing=false;this._archive.finish=true;this._archive.finished=true;this.end()};d.prototype._normalizeEntry=function(e){if(e.getMethod()===-1){e.setMethod(f.METHOD_DEFLATED)}if(e.getMethod()===f.METHOD_DEFLATED){e.getGeneralPurposeBit().useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_DATA_DESCRIPTOR)}if(e.getTime()===-1){e.setTime(new Date,this._archive.forceLocalTime)}e._offsets={file:0,data:0,contents:0}};d.prototype._smartStream=function(e,t){var s=e.getMethod()===f.METHOD_DEFLATED;var r=s?new i(this.options.zlib):new n;var o=null;function handleStuff(){var s=r.digest().readUInt32BE(0);e.setCrc(s);e.setSize(r.size());e.setCompressedSize(r.size(true));this._afterAppend(e);t(o,e)}r.once("end",handleStuff.bind(this));r.once("error",function(e){o=e});r.pipe(this,{end:false});return r};d.prototype._writeCentralDirectoryEnd=function(){var e=this._entries.length;var t=this._archive.centralLength;var s=this._archive.centralOffset;if(this.isZip64()){e=f.ZIP64_MAGIC_SHORT;t=f.ZIP64_MAGIC;s=f.ZIP64_MAGIC}this.write(h.getLongBytes(f.SIG_EOCD));this.write(f.SHORT_ZERO);this.write(f.SHORT_ZERO);this.write(h.getShortBytes(e));this.write(h.getShortBytes(e));this.write(h.getLongBytes(t));this.write(h.getLongBytes(s));var r=this.getComment();var o=Buffer.byteLength(r);this.write(h.getShortBytes(o));this.write(r)};d.prototype._writeCentralDirectoryZip64=function(){this.write(h.getLongBytes(f.SIG_ZIP64_EOCD));this.write(h.getEightBytes(44));this.write(h.getShortBytes(f.MIN_VERSION_ZIP64));this.write(h.getShortBytes(f.MIN_VERSION_ZIP64));this.write(f.LONG_ZERO);this.write(f.LONG_ZERO);this.write(h.getEightBytes(this._entries.length));this.write(h.getEightBytes(this._entries.length));this.write(h.getEightBytes(this._archive.centralLength));this.write(h.getEightBytes(this._archive.centralOffset));this.write(h.getLongBytes(f.SIG_ZIP64_EOCD_LOC));this.write(f.LONG_ZERO);this.write(h.getEightBytes(this._archive.centralOffset+this._archive.centralLength));this.write(h.getLongBytes(1))};d.prototype._writeCentralFileHeader=function(e){var t=e.getGeneralPurposeBit();var s=e.getMethod();var r=e._offsets;var o=e.getSize();var n=e.getCompressedSize();if(e.isZip64()||r.file>f.ZIP64_MAGIC){o=f.ZIP64_MAGIC;n=f.ZIP64_MAGIC;e.setVersionNeededToExtract(f.MIN_VERSION_ZIP64);var i=Buffer.concat([h.getShortBytes(f.ZIP64_EXTRA_ID),h.getShortBytes(24),h.getEightBytes(e.getSize()),h.getEightBytes(e.getCompressedSize()),h.getEightBytes(r.file)],28);e.setExtra(i)}this.write(h.getLongBytes(f.SIG_CFH));this.write(h.getShortBytes(e.getPlatform()<<8|f.VERSION_MADEBY));this.write(h.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(h.getShortBytes(s));this.write(h.getLongBytes(e.getTimeDos()));this.write(h.getLongBytes(e.getCrc()));this.write(h.getLongBytes(n));this.write(h.getLongBytes(o));var c=e.getName();var u=e.getComment();var a=e.getCentralDirectoryExtra();if(t.usesUTF8ForNames()){c=Buffer.from(c);u=Buffer.from(u)}this.write(h.getShortBytes(c.length));this.write(h.getShortBytes(a.length));this.write(h.getShortBytes(u.length));this.write(f.SHORT_ZERO);this.write(h.getShortBytes(e.getInternalAttributes()));this.write(h.getLongBytes(e.getExternalAttributes()));if(r.file>f.ZIP64_MAGIC){this.write(h.getLongBytes(f.ZIP64_MAGIC))}else{this.write(h.getLongBytes(r.file))}this.write(c);this.write(a);this.write(u)};d.prototype._writeDataDescriptor=function(e){this.write(h.getLongBytes(f.SIG_DD));this.write(h.getLongBytes(e.getCrc()));if(e.isZip64()){this.write(h.getEightBytes(e.getCompressedSize()));this.write(h.getEightBytes(e.getSize()))}else{this.write(h.getLongBytes(e.getCompressedSize()));this.write(h.getLongBytes(e.getSize()))}};d.prototype._writeLocalFileHeader=function(e){var t=e.getGeneralPurposeBit();var s=e.getMethod();var r=e.getName();var o=e.getLocalFileDataExtra();if(e.isZip64()){t.useDataDescriptor(true);e.setVersionNeededToExtract(f.MIN_VERSION_ZIP64)}if(t.usesUTF8ForNames()){r=Buffer.from(r)}e._offsets.file=this.offset;this.write(h.getLongBytes(f.SIG_LFH));this.write(h.getShortBytes(e.getVersionNeededToExtract()));this.write(t.encode());this.write(h.getShortBytes(s));this.write(h.getLongBytes(e.getTimeDos()));e._offsets.data=this.offset;if(t.usesDataDescriptor()){this.write(f.LONG_ZERO);this.write(f.LONG_ZERO);this.write(f.LONG_ZERO)}else{this.write(h.getLongBytes(e.getCrc()));this.write(h.getLongBytes(e.getCompressedSize()));this.write(h.getLongBytes(e.getSize()))}this.write(h.getShortBytes(r.length));this.write(h.getShortBytes(o.length));this.write(r);this.write(o);e._offsets.contents=this.offset};d.prototype.getComment=function(e){return this._archive.comment!==null?this._archive.comment:""};d.prototype.isZip64=function(){return this._archive.forceZip64||this._entries.length>f.ZIP64_MAGIC_SHORT||this._archive.centralLength>f.ZIP64_MAGIC||this._archive.centralOffset>f.ZIP64_MAGIC};d.prototype.setComment=function(e){this._archive.comment=e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudbuild_v1=void 0;const r=s(927);var o;(function(e){class Cloudbuild{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Cloudbuild=Cloudbuild;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.builds=new Resource$Projects$Builds(this.context);this.triggers=new Resource$Projects$Triggers(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Builds{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/builds/{id}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","id"],pathParams:["id","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/builds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/builds/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","id"],pathParams:["id","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/builds").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retry(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/builds/{id}:retry").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","id"],pathParams:["id","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Builds=Resource$Projects$Builds;class Resource$Projects$Triggers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","triggerId"],pathParams:["projectId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","triggerId"],pathParams:["projectId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers/{triggerId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","triggerId"],pathParams:["projectId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/triggers/{triggerId}:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","triggerId"],pathParams:["projectId","triggerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Triggers=Resource$Projects$Triggers})(o=t.cloudbuild_v1||(t.cloudbuild_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firebasehosting_v1beta1=void 0;const r=s(927);var o;(function(e){class Firebasehosting{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context);this.sites=new Resource$Sites(this.context)}}e.Firebasehosting=Firebasehosting;class Resource$Projects{constructor(e){this.context=e;this.operations=new Resource$Projects$Operations(this.context);this.sites=new Resource$Projects$Sites(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations;class Resource$Projects$Sites{constructor(e){this.context=e;this.channels=new Resource$Projects$Sites$Channels(this.context);this.domains=new Resource$Projects$Sites$Domains(this.context);this.releases=new Resource$Projects$Sites$Releases(this.context);this.versions=new Resource$Projects$Sites$Versions(this.context)}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites=Resource$Projects$Sites;class Resource$Projects$Sites$Channels{constructor(e){this.context=e;this.releases=new Resource$Projects$Sites$Channels$Releases(this.context)}}e.Resource$Projects$Sites$Channels=Resource$Projects$Sites$Channels;class Resource$Projects$Sites$Channels$Releases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites$Channels$Releases=Resource$Projects$Sites$Channels$Releases;class Resource$Projects$Sites$Domains{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites$Domains=Resource$Projects$Sites$Domains;class Resource$Projects$Sites$Releases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites$Releases=Resource$Projects$Sites$Releases;class Resource$Projects$Sites$Versions{constructor(e){this.context=e;this.files=new Resource$Projects$Sites$Versions$Files(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}populateFiles(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:populateFiles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites$Versions=Resource$Projects$Sites$Versions;class Resource$Projects$Sites$Versions$Files{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/files").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Sites$Versions$Files=Resource$Projects$Sites$Versions$Files;class Resource$Sites{constructor(e){this.context=e;this.channels=new Resource$Sites$Channels(this.context);this.domains=new Resource$Sites$Domains(this.context);this.releases=new Resource$Sites$Releases(this.context);this.versions=new Resource$Sites$Versions(this.context)}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites=Resource$Sites;class Resource$Sites$Channels{constructor(e){this.context=e;this.releases=new Resource$Sites$Channels$Releases(this.context)}}e.Resource$Sites$Channels=Resource$Sites$Channels;class Resource$Sites$Channels$Releases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites$Channels$Releases=Resource$Sites$Channels$Releases;class Resource$Sites$Domains{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/domains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites$Domains=Resource$Sites$Domains;class Resource$Sites$Releases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/releases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites$Releases=Resource$Sites$Releases;class Resource$Sites$Versions{constructor(e){this.context=e;this.files=new Resource$Sites$Versions$Files(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}populateFiles(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:populateFiles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites$Versions=Resource$Sites$Versions;class Resource$Sites$Versions$Files{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasehosting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/files").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites$Versions$Files=Resource$Sites$Versions$Files})(o=t.firebasehosting_v1beta1||(t.firebasehosting_v1beta1={}))},,,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adsense_v1_4=void 0;const r=s(927);var o;(function(e){class Adsense{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.adclients=new Resource$Adclients(this.context);this.adunits=new Resource$Adunits(this.context);this.alerts=new Resource$Alerts(this.context);this.customchannels=new Resource$Customchannels(this.context);this.metadata=new Resource$Metadata(this.context);this.payments=new Resource$Payments(this.context);this.reports=new Resource$Reports(this.context);this.savedadstyles=new Resource$Savedadstyles(this.context);this.urlchannels=new Resource$Urlchannels(this.context)}}e.Adsense=Adsense;class Resource$Accounts{constructor(e){this.context=e;this.adclients=new Resource$Accounts$Adclients(this.context);this.adunits=new Resource$Accounts$Adunits(this.context);this.alerts=new Resource$Accounts$Alerts(this.context);this.customchannels=new Resource$Accounts$Customchannels(this.context);this.payments=new Resource$Accounts$Payments(this.context);this.reports=new Resource$Accounts$Reports(this.context);this.savedadstyles=new Resource$Accounts$Savedadstyles(this.context);this.urlchannels=new Resource$Accounts$Urlchannels(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Adclients{constructor(e){this.context=e}getAdCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adcode").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Adclients=Resource$Accounts$Adclients;class Resource$Accounts$Adunits{constructor(e){this.context=e;this.customchannels=new Resource$Accounts$Adunits$Customchannels(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAdCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Adunits=Resource$Accounts$Adunits;class Resource$Accounts$Adunits$Customchannels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","adUnitId"],pathParams:["accountId","adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Adunits$Customchannels=Resource$Accounts$Adunits$Customchannels;class Resource$Accounts$Alerts{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/alerts/{alertId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","alertId"],pathParams:["accountId","alertId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/alerts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Alerts=Resource$Accounts$Alerts;class Resource$Accounts$Customchannels{constructor(e){this.context=e;this.adunits=new Resource$Accounts$Customchannels$Adunits(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","customChannelId"],pathParams:["accountId","adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Customchannels=Resource$Accounts$Customchannels;class Resource$Accounts$Customchannels$Adunits{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/customchannels/{customChannelId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId","customChannelId"],pathParams:["accountId","adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Customchannels$Adunits=Resource$Accounts$Customchannels$Adunits;class Resource$Accounts$Payments{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/payments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Payments=Resource$Accounts$Payments;class Resource$Accounts$Reports{constructor(e){this.context=e;this.saved=new Resource$Accounts$Reports$Saved(this.context)}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","startDate","endDate"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Reports=Resource$Accounts$Reports;class Resource$Accounts$Reports$Saved{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/reports/{savedReportId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","savedReportId"],pathParams:["accountId","savedReportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/reports/saved").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Reports$Saved=Resource$Accounts$Reports$Saved;class Resource$Accounts$Savedadstyles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/savedadstyles/{savedAdStyleId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","savedAdStyleId"],pathParams:["accountId","savedAdStyleId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/savedadstyles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Savedadstyles=Resource$Accounts$Savedadstyles;class Resource$Accounts$Urlchannels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/accounts/{accountId}/adclients/{adClientId}/urlchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","adClientId"],pathParams:["accountId","adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Urlchannels=Resource$Accounts$Urlchannels;class Resource$Adclients{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Adclients=Resource$Adclients;class Resource$Adunits{constructor(e){this.context=e;this.customchannels=new Resource$Adunits$Customchannels(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","adUnitId"],pathParams:["adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAdCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/adcode").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","adUnitId"],pathParams:["adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Adunits=Resource$Adunits;class Resource$Adunits$Customchannels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/adunits/{adUnitId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","adUnitId"],pathParams:["adClientId","adUnitId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Adunits$Customchannels=Resource$Adunits$Customchannels;class Resource$Alerts{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/alerts/{alertId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["alertId"],pathParams:["alertId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/alerts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Alerts=Resource$Alerts;class Resource$Customchannels{constructor(e){this.context=e;this.adunits=new Resource$Customchannels$Adunits(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","customChannelId"],pathParams:["adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/customchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customchannels=Resource$Customchannels;class Resource$Customchannels$Adunits{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/customchannels/{customChannelId}/adunits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId","customChannelId"],pathParams:["adClientId","customChannelId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customchannels$Adunits=Resource$Customchannels$Adunits;class Resource$Metadata{constructor(e){this.context=e;this.dimensions=new Resource$Metadata$Dimensions(this.context);this.metrics=new Resource$Metadata$Metrics(this.context)}}e.Resource$Metadata=Resource$Metadata;class Resource$Metadata$Dimensions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/metadata/dimensions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Metadata$Dimensions=Resource$Metadata$Dimensions;class Resource$Metadata$Metrics{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/metadata/metrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Metadata$Metrics=Resource$Metadata$Metrics;class Resource$Payments{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/payments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Payments=Resource$Payments;class Resource$Reports{constructor(e){this.context=e;this.saved=new Resource$Reports$Saved(this.context)}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["startDate","endDate"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports;class Resource$Reports$Saved{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/reports/{savedReportId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["savedReportId"],pathParams:["savedReportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/reports/saved").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports$Saved=Resource$Reports$Saved;class Resource$Savedadstyles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/savedadstyles/{savedAdStyleId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["savedAdStyleId"],pathParams:["savedAdStyleId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/savedadstyles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Savedadstyles=Resource$Savedadstyles;class Resource$Urlchannels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adsense/v1.4/adclients/{adClientId}/urlchannels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["adClientId"],pathParams:["adClientId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Urlchannels=Resource$Urlchannels})(o=t.adsense_v1_4||(t.adsense_v1_4={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class LoginTicket{constructor(e,t){this.envelope=e;this.payload=t}getEnvelope(){return this.envelope}getPayload(){return this.payload}getUserId(){const e=this.getPayload();if(e&&e.sub){return e.sub}return null}getAttributes(){return{envelope:this.getEnvelope(),payload:this.getPayload()}}}t.LoginTicket=LoginTicket},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(s(212));var o=_interopRequireDefault(s(803));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}const n=(0,r.default)("v3",48,o.default);var i=n;t.default=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.identitytoolkit_v3=void 0;const r=s(927);var o;(function(e){class Identitytoolkit{constructor(e,t){this.context={_options:e||{},google:t};this.relyingparty=new Resource$Relyingparty(this.context)}}e.Identitytoolkit=Identitytoolkit;class Resource$Relyingparty{constructor(e){this.context=e}createAuthUri(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/createAuthUri").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/deleteAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}downloadAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/downloadAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}emailLinkSignin(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/emailLinkSignin").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccountInfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/getAccountInfo").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getOobConfirmationCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/getOobConfirmationCode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getProjectConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/getProjectConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getPublicKeys(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/publicKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRecaptchaParam(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/getRecaptchaParam").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resetPassword(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/resetPassword").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendVerificationCode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/sendVerificationCode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAccountInfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/setAccountInfo").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setProjectConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/setProjectConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signOutUser(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/signOutUser").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signupNewUser(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/signupNewUser").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}uploadAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/uploadAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verifyAssertion(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/verifyAssertion").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verifyCustomToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/verifyCustomToken").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verifyPassword(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/verifyPassword").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verifyPhoneNumber(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/identitytoolkit/v3/relyingparty/verifyPhoneNumber").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Relyingparty=Resource$Relyingparty})(o=t.identitytoolkit_v3||(t.identitytoolkit_v3={}))},function(e){e.exports=require("https")},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=_default;t.URL=t.DNS=void 0;var r=_interopRequireDefault(s(939));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function uuidToBytes(e){const t=[];e.replace(/[a-fA-F0-9]{2}/g,function(e){t.push(parseInt(e,16))});return t}function stringToBytes(e){e=unescape(encodeURIComponent(e));const t=[];for(let s=0;s-1&&e%1==0&&e<=m}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var O={};function noop(){}function once(e){return function(){if(e===null)return;var t=e;e=null;t.apply(this,arguments)}}var w=typeof Symbol==="function"&&Symbol.iterator;var T=function(e){return w&&e[w]&&e[w]()};function baseTimes(e,t){var s=-1,r=Array(e);while(++s-1&&e%1==0&&e2){r=slice(arguments,1)}if(t){var o={};baseForOwn(n,function(e,t){o[t]=e});o[e]=r;c=true;u=Object.create(null);s(t,o)}else{n[e]=r;taskComplete(e)}});i++;var o=wrapAsync(t[t.length-1]);if(t.length>1){o(n,r)}else{o(r)}}function checkForDeadlocks(){var e;var t=0;while(f.length){e=f.pop();t++;arrayEach(getDependents(e),function(e){if(--p[e]===0){f.push(e)}})}if(t!==o){throw new Error("async.auto cannot execute tasks due to a recursive dependency")}}function getDependents(t){var s=[];baseForOwn(e,function(e,r){if(G(e)&&baseIndexOf(e,t,0)>=0){s.push(r)}});return s}};function arrayMap(e,t){var s=-1,r=e==null?0:e.length,o=Array(r);while(++so?0:o+t}s=s>o?o:s;if(s<0){s+=o}o=t>s?0:s-t>>>0;t>>>=0;var n=Array(o);while(++r=r?e:baseSlice(e,t,s)}function charsEndIndex(e,t){var s=e.length;while(s--&&baseIndexOf(t,e[s],0)>-1){}return s}function charsStartIndex(e,t){var s=-1,r=e.length;while(++s-1){}return s}function asciiToArray(e){return e.split("")}var ze="\\ud800-\\udfff";var Ve="\\u0300-\\u036f";var Fe="\\ufe20-\\ufe2f";var He="\\u20d0-\\u20ff";var We=Ve+Fe+He;var Ke="\\ufe0e\\ufe0f";var Ze="\\u200d";var Qe=RegExp("["+Ze+ze+We+Ke+"]");function hasUnicode(e){return Qe.test(e)}var Je="\\ud800-\\udfff";var Ye="\\u0300-\\u036f";var Xe="\\ufe20-\\ufe2f";var ke="\\u20d0-\\u20ff";var _e=Ye+Xe+ke;var et="\\ufe0e\\ufe0f";var tt="["+Je+"]";var st="["+_e+"]";var rt="\\ud83c[\\udffb-\\udfff]";var ot="(?:"+st+"|"+rt+")";var nt="[^"+Je+"]";var it="(?:\\ud83c[\\udde6-\\uddff]){2}";var ct="[\\ud800-\\udbff][\\udc00-\\udfff]";var ut="\\u200d";var at=ot+"?";var ft="["+et+"]?";var pt="(?:"+ut+"(?:"+[nt,it,ct].join("|")+")"+ft+at+")*";var ht=ft+at+pt;var dt="(?:"+[nt+st+"?",st,it,ct,tt].join("|")+")";var lt=RegExp(rt+"(?="+rt+")|"+dt+ht,"g");function unicodeToArray(e){return e.match(lt)||[]}function stringToArray(e){return hasUnicode(e)?unicodeToArray(e):asciiToArray(e)}function toString(e){return e==null?"":baseToString(e)}var Pt=/^\s+|\s+$/g;function trim(e,t,s){e=toString(e);if(e&&(s||t===undefined)){return e.replace(Pt,"")}if(!e||!(t=baseToString(t))){return e}var r=stringToArray(e),o=stringToArray(t),n=charsStartIndex(r,o),i=charsEndIndex(r,o)+1;return castSlice(r,n,i).join("")}var yt=/^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m;var It=/,/;var Rt=/(=.+)?(\s*)$/;var gt=/((\/\/.*$)|(\/\*[\s\S]*?\*\/))/gm;function parseParams(e){e=e.toString().replace(gt,"");e=e.match(yt)[2].replace(" ","");e=e?e.split(It):[];e=e.map(function(e){return trim(e.replace(Rt,""))});return e}function autoInject(e,t){var s={};baseForOwn(e,function(e,t){var r;var o=isAsync(e);var n=!o&&e.length===1||o&&e.length===0;if(G(e)){r=e.slice(0,-1);e=e[e.length-1];s[t]=r.concat(r.length>0?newTask:e)}else if(n){s[t]=e}else{r=parseParams(e);if(e.length===0&&!o&&r.length===0){throw new Error("autoInject task functions require explicit parameters.")}if(!o)r.pop();s[t]=r.concat(newTask)}function newTask(t,s){var o=arrayMap(r,function(e){return t[e]});o.push(s);wrapAsync(e).apply(null,o)}});Le(s,t)}function DLL(){this.head=this.tail=null;this.length=0}function setInitial(e,t){e.length=1;e.head=e.tail=t}DLL.prototype.removeLink=function(e){if(e.prev)e.prev.next=e.next;else this.head=e.next;if(e.next)e.next.prev=e.prev;else this.tail=e.prev;e.prev=e.next=null;this.length-=1;return e};DLL.prototype.empty=function(){while(this.head)this.shift();return this};DLL.prototype.insertAfter=function(e,t){t.prev=e;t.next=e.next;if(e.next)e.next.prev=t;else this.tail=t;e.next=t;this.length+=1};DLL.prototype.insertBefore=function(e,t){t.prev=e.prev;t.next=e;if(e.prev)e.prev.next=t;else this.head=t;e.prev=t;this.length+=1};DLL.prototype.unshift=function(e){if(this.head)this.insertBefore(this.head,e);else setInitial(this,e)};DLL.prototype.push=function(e){if(this.tail)this.insertAfter(this.tail,e);else setInitial(this,e)};DLL.prototype.shift=function(){return this.head&&this.removeLink(this.head)};DLL.prototype.pop=function(){return this.tail&&this.removeLink(this.tail)};DLL.prototype.toArray=function(){var e=Array(this.length);var t=this.head;for(var s=0;s0){n.splice(c,1)}i.callback.apply(i,arguments);if(t!=null){a.error(t,i.data)}}if(o<=a.concurrency-a.buffer){a.unsaturated()}if(a.idle()){a.drain()}a.process()}}var u=false;var a={_tasks:new DLL,concurrency:t,payload:s,saturated:noop,unsaturated:noop,buffer:t/4,empty:noop,drain:noop,error:noop,started:false,paused:false,push:function(e,t){_insert(e,false,t)},kill:function(){a.drain=noop;a._tasks.empty()},unshift:function(e,t){_insert(e,true,t)},remove:function(e){a._tasks.remove(e)},process:function(){if(u){return}u=true;while(!a.paused&&o2){o=slice(arguments,1)}r[t]=o;s(e)})},function(e){s(e,r)})}function parallelLimit(e,t){_parallel(Te,e,t)}function parallelLimit$1(e,t,s){_parallel(_eachOfLimit(t),e,s)}var Kt=function(e,t){var s=wrapAsync(e);return queue(function(e,t){s(e[0],t)},t,1)};var Zt=function(e,t){var s=Kt(e,t);s.push=function(e,t,r){if(r==null)r=noop;if(typeof r!=="function"){throw new Error("task callback must be a function")}s.started=true;if(!G(e)){e=[e]}if(e.length===0){return c(function(){s.drain()})}t=t||0;var o=s._tasks.head;while(o&&t>=o.priority){o=o.next}for(var n=0,i=e.length;nr?1:0}}function timeout(e,t,s){var o=wrapAsync(e);return r(function(r,n){var i=false;var c;function timeoutCallback(){var t=e.name||"anonymous";var r=new Error('Callback function "'+t+'" timed out.');r.code="ETIMEDOUT";if(s){r.info=s}i=true;n(r)}r.push(function(){if(!i){n.apply(null,arguments);clearTimeout(c)}});c=setTimeout(timeoutCallback,t);o.apply(null,r)})}var ts=Math.ceil;var ss=Math.max;function baseRange(e,t,s,r){var o=-1,n=ss(ts((t-e)/(s||1)),0),i=Array(n);while(n--){i[r?n:++o]=e;e+=s}return i}function timeLimit(e,t,s,r){var o=wrapAsync(s);Ue(baseRange(0,e,1),t,o,r)}var rs=doLimit(timeLimit,Infinity);var os=doLimit(timeLimit,1);function transform(e,t,s,r){if(arguments.length<=3){r=s;s=t;t=G(e)?[]:{}}r=once(r||noop);var o=wrapAsync(s);Te(e,function(e,s,r){o(t,e,s,r)},function(e){r(e,t)})}function tryEach(e,t){var s=null;var r;t=t||noop;St(e,function(e,t){wrapAsync(e)(function(e,o){if(arguments.length>2){r=slice(arguments,1)}else{r=o}s=e;t(!e)})},function(){t(s,r)})}function unmemoize(e){return function(){return(e.unmemoized||e).apply(null,arguments)}}function whilst(e,t,s){s=onlyOnce(s||noop);var r=wrapAsync(t);if(!e())return s(null);var o=function(t){if(t)return s(t);if(e())return r(o);var n=slice(arguments,1);s.apply(null,[null].concat(n))};r(o)}function until(e,t,s){whilst(function(){return!e.apply(this,arguments)},t,s)}var ns=function(e,t){t=once(t||noop);if(!G(e))return t(new Error("First argument to waterfall must be an array of functions"));if(!e.length)return t();var s=0;function nextTask(t){var r=wrapAsync(e[s++]);t.push(onlyOnce(next));r.apply(null,t)}function next(r){if(r||s===e.length){return t.apply(null,arguments)}nextTask(slice(arguments,1))}nextTask([])};var is={apply:s,applyEach:Se,applyEachSeries:Ce,asyncify:asyncify,auto:Le,autoInject:autoInject,cargo:cargo,compose:xt,concat:vt,concatLimit:jt,concatSeries:At,constant:mt,detect:Ot,detectLimit:wt,detectSeries:Tt,dir:Et,doDuring:doDuring,doUntil:doUntil,doWhilst:doWhilst,during:during,each:eachLimit,eachLimit:eachLimit$1,eachOf:Te,eachOfLimit:eachOfLimit,eachOfSeries:qt,eachSeries:St,ensureAsync:ensureAsync,every:Ut,everyLimit:bt,everySeries:Ct,filter:Gt,filterLimit:Lt,filterSeries:Dt,forever:forever,groupBy:Bt,groupByLimit:Nt,groupBySeries:Mt,log:zt,map:Ee,mapLimit:Ue,mapSeries:be,mapValues:Vt,mapValuesLimit:mapValuesLimit,mapValuesSeries:Ft,memoize:memoize,nextTick:Wt,parallel:parallelLimit,parallelLimit:parallelLimit$1,priorityQueue:Zt,queue:Kt,race:race,reduce:reduce,reduceRight:reduceRight,reflect:reflect,reflectAll:reflectAll,reject:Qt,rejectLimit:Jt,rejectSeries:Yt,retry:retry,retryable:Xt,seq:seq,series:series,setImmediate:c,some:kt,someLimit:_t,someSeries:es,sortBy:sortBy,timeout:timeout,times:rs,timesLimit:timeLimit,timesSeries:os,transform:transform,tryEach:tryEach,unmemoize:unmemoize,until:until,waterfall:ns,whilst:whilst,all:Ut,allLimit:bt,allSeries:Ct,any:kt,anyLimit:_t,anySeries:es,find:Ot,findLimit:wt,findSeries:Tt,forEach:eachLimit,forEachSeries:St,forEachLimit:eachLimit$1,forEachOf:Te,forEachOfSeries:qt,forEachOfLimit:eachOfLimit,inject:reduce,foldl:reduce,foldr:reduceRight,select:Gt,selectLimit:Lt,selectSeries:Dt,wrapSync:asyncify};t["default"]=is;t.apply=s;t.applyEach=Se;t.applyEachSeries=Ce;t.asyncify=asyncify;t.auto=Le;t.autoInject=autoInject;t.cargo=cargo;t.compose=xt;t.concat=vt;t.concatLimit=jt;t.concatSeries=At;t.constant=mt;t.detect=Ot;t.detectLimit=wt;t.detectSeries=Tt;t.dir=Et;t.doDuring=doDuring;t.doUntil=doUntil;t.doWhilst=doWhilst;t.during=during;t.each=eachLimit;t.eachLimit=eachLimit$1;t.eachOf=Te;t.eachOfLimit=eachOfLimit;t.eachOfSeries=qt;t.eachSeries=St;t.ensureAsync=ensureAsync;t.every=Ut;t.everyLimit=bt;t.everySeries=Ct;t.filter=Gt;t.filterLimit=Lt;t.filterSeries=Dt;t.forever=forever;t.groupBy=Bt;t.groupByLimit=Nt;t.groupBySeries=Mt;t.log=zt;t.map=Ee;t.mapLimit=Ue;t.mapSeries=be;t.mapValues=Vt;t.mapValuesLimit=mapValuesLimit;t.mapValuesSeries=Ft;t.memoize=memoize;t.nextTick=Wt;t.parallel=parallelLimit;t.parallelLimit=parallelLimit$1;t.priorityQueue=Zt;t.queue=Kt;t.race=race;t.reduce=reduce;t.reduceRight=reduceRight;t.reflect=reflect;t.reflectAll=reflectAll;t.reject=Qt;t.rejectLimit=Jt;t.rejectSeries=Yt;t.retry=retry;t.retryable=Xt;t.seq=seq;t.series=series;t.setImmediate=c;t.some=kt;t.someLimit=_t;t.someSeries=es;t.sortBy=sortBy;t.timeout=timeout;t.times=rs;t.timesLimit=timeLimit;t.timesSeries=os;t.transform=transform;t.tryEach=tryEach;t.unmemoize=unmemoize;t.until=until;t.waterfall=ns;t.whilst=whilst;t.all=Ut;t.allLimit=bt;t.allSeries=Ct;t.any=kt;t.anyLimit=_t;t.anySeries=es;t.find=Ot;t.findLimit=wt;t.findSeries=Tt;t.forEach=eachLimit;t.forEachSeries=St;t.forEachLimit=eachLimit$1;t.forEachOf=Te;t.forEachOfSeries=qt;t.forEachOfLimit=eachOfLimit;t.inject=reduce;t.foldl=reduce;t.foldr=reduceRight;t.select=Gt;t.selectLimit=Lt;t.selectSeries=Dt;t.wrapSync=asyncify;Object.defineProperty(t,"__esModule",{value:true})})},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigtableadmin_v2=void 0;const r=s(927);var o;(function(e){class Bigtableadmin{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Bigtableadmin=Bigtableadmin;class Resource$Operations{constructor(e){this.context=e;this.projects=new Resource$Operations$Projects(this.context)}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Operations$Projects{constructor(e){this.context=e;this.operations=new Resource$Operations$Projects$Operations(this.context)}}e.Resource$Operations$Projects=Resource$Operations$Projects;class Resource$Operations$Projects$Operations{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations$Projects$Operations=Resource$Operations$Projects$Operations;class Resource$Projects{constructor(e){this.context=e;this.instances=new Resource$Projects$Instances(this.context);this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Instances{constructor(e){this.context=e;this.appProfiles=new Resource$Projects$Instances$Appprofiles(this.context);this.clusters=new Resource$Projects$Instances$Clusters(this.context);this.tables=new Resource$Projects$Instances$Tables(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}partialUpdateInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances=Resource$Projects$Instances;class Resource$Projects$Instances$Appprofiles{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/appProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/appProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Appprofiles=Resource$Projects$Instances$Appprofiles;class Resource$Projects$Instances$Clusters{constructor(e){this.context=e;this.backups=new Resource$Projects$Instances$Clusters$Backups(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Clusters=Resource$Projects$Instances$Clusters;class Resource$Projects$Instances$Clusters$Backups{constructor(e){this.context=e}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Clusters$Backups=Resource$Projects$Instances$Clusters$Backups;class Resource$Projects$Instances$Tables{constructor(e){this.context=e}checkConsistency(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:checkConsistency").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/tables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dropRowRange(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:dropRowRange").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateConsistencyToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:generateConsistencyToken").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/tables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyColumnFamilies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:modifyColumnFamilies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances$Tables=Resource$Projects$Instances$Tables;class Resource$Projects$Locations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigtableadmin.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations})(o=t.bigtableadmin_v2||(t.bigtableadmin_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.accesscontextmanager_v1=void 0;const r=s(927);var o;(function(e){class Accesscontextmanager{constructor(e,t){this.context={_options:e||{},google:t};this.accessPolicies=new Resource$Accesspolicies(this.context);this.operations=new Resource$Operations(this.context)}}e.Accesscontextmanager=Accesscontextmanager;class Resource$Accesspolicies{constructor(e){this.context=e;this.accessLevels=new Resource$Accesspolicies$Accesslevels(this.context);this.servicePerimeters=new Resource$Accesspolicies$Serviceperimeters(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/accessPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/accessPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies=Resource$Accesspolicies;class Resource$Accesspolicies$Accesslevels{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/accessLevels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/accessLevels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/accessLevels:replaceAll").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies$Accesslevels=Resource$Accesspolicies$Accesslevels;class Resource$Accesspolicies$Serviceperimeters{constructor(e){this.context=e}commit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/servicePerimeters:commit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/servicePerimeters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/servicePerimeters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/servicePerimeters:replaceAll").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies$Serviceperimeters=Resource$Accesspolicies$Serviceperimeters;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.accesscontextmanager_v1||(t.accesscontextmanager_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.groupsmigration=t.VERSIONS=void 0;const r=s(927);const o=s(27);t.VERSIONS={v1:o.groupsmigration_v1.Groupsmigration};function groupsmigration(e){return r.getAPI("groupsmigration",e,t.VERSIONS,this)}t.groupsmigration=groupsmigration;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.composer_v1beta1=void 0;const r=s(927);var o;(function(e){class Composer{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Composer=Composer;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.environments=new Resource$Projects$Locations$Environments(this.context);this.imageVersions=new Resource$Projects$Locations$Imageversions(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Environments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Environments=Resource$Projects$Locations$Environments;class Resource$Projects$Locations$Imageversions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/imageVersions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Imageversions=Resource$Projects$Locations$Imageversions;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://composer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.composer_v1beta1||(t.composer_v1beta1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oslogin_v1beta=void 0;const r=s(927);var o;(function(e){class Oslogin{constructor(e,t){this.context={_options:e||{},google:t};this.users=new Resource$Users(this.context)}}e.Oslogin=Oslogin;class Resource$Users{constructor(e){this.context=e;this.projects=new Resource$Users$Projects(this.context);this.sshPublicKeys=new Resource$Users$Sshpublickeys(this.context)}getLoginProfile(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/loginProfile").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}importSshPublicKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}:importSshPublicKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users=Resource$Users;class Resource$Users$Projects{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users$Projects=Resource$Users$Projects;class Resource$Users$Sshpublickeys{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users$Sshpublickeys=Resource$Users$Sshpublickeys})(o=t.oslogin_v1beta||(t.oslogin_v1beta={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compute_beta=void 0;const r=s(927);var o;(function(e){class Compute{constructor(e,t){this.context={_options:e||{},google:t};this.acceleratorTypes=new Resource$Acceleratortypes(this.context);this.addresses=new Resource$Addresses(this.context);this.autoscalers=new Resource$Autoscalers(this.context);this.backendBuckets=new Resource$Backendbuckets(this.context);this.backendServices=new Resource$Backendservices(this.context);this.disks=new Resource$Disks(this.context);this.diskTypes=new Resource$Disktypes(this.context);this.externalVpnGateways=new Resource$Externalvpngateways(this.context);this.firewalls=new Resource$Firewalls(this.context);this.forwardingRules=new Resource$Forwardingrules(this.context);this.globalAddresses=new Resource$Globaladdresses(this.context);this.globalForwardingRules=new Resource$Globalforwardingrules(this.context);this.globalNetworkEndpointGroups=new Resource$Globalnetworkendpointgroups(this.context);this.globalOperations=new Resource$Globaloperations(this.context);this.globalOrganizationOperations=new Resource$Globalorganizationoperations(this.context);this.healthChecks=new Resource$Healthchecks(this.context);this.httpHealthChecks=new Resource$Httphealthchecks(this.context);this.httpsHealthChecks=new Resource$Httpshealthchecks(this.context);this.images=new Resource$Images(this.context);this.instanceGroupManagers=new Resource$Instancegroupmanagers(this.context);this.instanceGroups=new Resource$Instancegroups(this.context);this.instances=new Resource$Instances(this.context);this.instanceTemplates=new Resource$Instancetemplates(this.context);this.interconnectAttachments=new Resource$Interconnectattachments(this.context);this.interconnectLocations=new Resource$Interconnectlocations(this.context);this.interconnects=new Resource$Interconnects(this.context);this.licenseCodes=new Resource$Licensecodes(this.context);this.licenses=new Resource$Licenses(this.context);this.machineImages=new Resource$Machineimages(this.context);this.machineTypes=new Resource$Machinetypes(this.context);this.networkEndpointGroups=new Resource$Networkendpointgroups(this.context);this.networks=new Resource$Networks(this.context);this.nodeGroups=new Resource$Nodegroups(this.context);this.nodeTemplates=new Resource$Nodetemplates(this.context);this.nodeTypes=new Resource$Nodetypes(this.context);this.organizationSecurityPolicies=new Resource$Organizationsecuritypolicies(this.context);this.packetMirrorings=new Resource$Packetmirrorings(this.context);this.projects=new Resource$Projects(this.context);this.regionAutoscalers=new Resource$Regionautoscalers(this.context);this.regionBackendServices=new Resource$Regionbackendservices(this.context);this.regionCommitments=new Resource$Regioncommitments(this.context);this.regionDisks=new Resource$Regiondisks(this.context);this.regionDiskTypes=new Resource$Regiondisktypes(this.context);this.regionHealthChecks=new Resource$Regionhealthchecks(this.context);this.regionHealthCheckServices=new Resource$Regionhealthcheckservices(this.context);this.regionInstanceGroupManagers=new Resource$Regioninstancegroupmanagers(this.context);this.regionInstanceGroups=new Resource$Regioninstancegroups(this.context);this.regionNotificationEndpoints=new Resource$Regionnotificationendpoints(this.context);this.regionOperations=new Resource$Regionoperations(this.context);this.regions=new Resource$Regions(this.context);this.regionSslCertificates=new Resource$Regionsslcertificates(this.context);this.regionTargetHttpProxies=new Resource$Regiontargethttpproxies(this.context);this.regionTargetHttpsProxies=new Resource$Regiontargethttpsproxies(this.context);this.regionUrlMaps=new Resource$Regionurlmaps(this.context);this.reservations=new Resource$Reservations(this.context);this.resourcePolicies=new Resource$Resourcepolicies(this.context);this.routers=new Resource$Routers(this.context);this.routes=new Resource$Routes(this.context);this.securityPolicies=new Resource$Securitypolicies(this.context);this.snapshots=new Resource$Snapshots(this.context);this.sslCertificates=new Resource$Sslcertificates(this.context);this.sslPolicies=new Resource$Sslpolicies(this.context);this.subnetworks=new Resource$Subnetworks(this.context);this.targetHttpProxies=new Resource$Targethttpproxies(this.context);this.targetHttpsProxies=new Resource$Targethttpsproxies(this.context);this.targetInstances=new Resource$Targetinstances(this.context);this.targetPools=new Resource$Targetpools(this.context);this.targetSslProxies=new Resource$Targetsslproxies(this.context);this.targetTcpProxies=new Resource$Targettcpproxies(this.context);this.targetVpnGateways=new Resource$Targetvpngateways(this.context);this.urlMaps=new Resource$Urlmaps(this.context);this.vpnGateways=new Resource$Vpngateways(this.context);this.vpnTunnels=new Resource$Vpntunnels(this.context);this.zoneOperations=new Resource$Zoneoperations(this.context);this.zones=new Resource$Zones(this.context)}}e.Compute=Compute;class Resource$Acceleratortypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","acceleratorType"],pathParams:["acceleratorType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Acceleratortypes=Resource$Acceleratortypes;class Resource$Addresses{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","address"],pathParams:["address","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","address"],pathParams:["address","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Addresses=Resource$Addresses;class Resource$Autoscalers{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","autoscaler"],pathParams:["autoscaler","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","autoscaler"],pathParams:["autoscaler","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Autoscalers=Resource$Autoscalers;class Resource$Backendbuckets{constructor(e){this.context=e}addSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendBucket","keyName"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Backendbuckets=Resource$Backendbuckets;class Resource$Backendservices{constructor(e){this.context=e}addSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService","keyName"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSecurityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Backendservices=Resource$Backendservices;class Resource$Disks{constructor(e){this.context=e}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSnapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Disks=Resource$Disks;class Resource$Disktypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","diskType"],pathParams:["diskType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Disktypes=Resource$Disktypes;class Resource$Externalvpngateways{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","externalVpnGateway"],pathParams:["externalVpnGateway","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","externalVpnGateway"],pathParams:["externalVpnGateway","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Externalvpngateways=Resource$Externalvpngateways;class Resource$Firewalls{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Firewalls=Resource$Firewalls;class Resource$Forwardingrules{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTarget(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Forwardingrules=Resource$Forwardingrules;class Resource$Globaladdresses{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","address"],pathParams:["address","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","address"],pathParams:["address","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globaladdresses=Resource$Globaladdresses;class Resource$Globalforwardingrules{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTarget(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalforwardingrules=Resource$Globalforwardingrules;class Resource$Globalnetworkendpointgroups{constructor(e){this.context=e}attachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalnetworkendpointgroups=Resource$Globalnetworkendpointgroups;class Resource$Globaloperations{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globaloperations=Resource$Globaloperations;class Resource$Globalorganizationoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["operation"],pathParams:["operation"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["operation"],pathParams:["operation"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalorganizationoperations=Resource$Globalorganizationoperations;class Resource$Healthchecks{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Healthchecks=Resource$Healthchecks;class Resource$Httphealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Httphealthchecks=Resource$Httphealthchecks;class Resource$Httpshealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Httpshealthchecks=Resource$Httpshealthchecks;class Resource$Images{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{image}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deprecate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{image}/deprecate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{image}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getFromFamily(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/family/{family}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","family"],pathParams:["family","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Images=Resource$Images;class Resource$Instancegroupmanagers{constructor(e){this.context=e}abandonInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}applyUpdatesToInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deletePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listErrors(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listManagedInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}recreateInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager","size"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resizeAdvanced(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoHealingPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setInstanceTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTargetPools(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancegroupmanagers=Resource$Instancegroupmanagers;class Resource$Instancegroups{constructor(e){this.context=e}addInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNamedPorts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancegroups=Resource$Instancegroups;class Resource$Instances{constructor(e){this.context=e}addAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}attachDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","accessConfig","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","deviceName"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveFirewalls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getGuestAttributes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getScreenshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSerialPortOutput(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getShieldedInstanceIdentity(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getShieldedVmIdentity(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listReferrers(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reset(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDeletionProtection(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDiskAutoDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","autoDelete","deviceName"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMachineResources(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMachineType(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMinCpuPlatform(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setScheduling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setServiceAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setShieldedInstanceIntegrityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setShieldedVmIntegrityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTags(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}simulateMaintenanceEvent(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startWithEncryptionKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}suspend(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateDisplayDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateNetworkInterface(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateShieldedInstanceConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateShieldedVmConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instances=Resource$Instances;class Resource$Instancetemplates{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instanceTemplate"],pathParams:["instanceTemplate","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instanceTemplate"],pathParams:["instanceTemplate","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancetemplates=Resource$Instancetemplates;class Resource$Interconnectattachments{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnectattachments=Resource$Interconnectattachments;class Resource$Interconnectlocations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnectLocation"],pathParams:["interconnectLocation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnectLocations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnectlocations=Resource$Interconnectlocations;class Resource$Interconnects{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getDiagnostics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnects=Resource$Interconnects;class Resource$Licensecodes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","licenseCode"],pathParams:["licenseCode","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Licensecodes=Resource$Licensecodes;class Resource$Licenses{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses/{license}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","license"],pathParams:["license","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses/{license}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","license"],pathParams:["license","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Licenses=Resource$Licenses;class Resource$Machineimages{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages/{machineImage}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","machineImage"],pathParams:["machineImage","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages/{machineImage}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","machineImage"],pathParams:["machineImage","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Machineimages=Resource$Machineimages;class Resource$Machinetypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/machineTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","machineType"],pathParams:["machineType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/machineTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Machinetypes=Resource$Machinetypes;class Resource$Networkendpointgroups{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}attachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Networkendpointgroups=Resource$Networkendpointgroups;class Resource$Networks{constructor(e){this.context=e}addPeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/addPeering").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveFirewalls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPeeringRoutes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removePeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/removePeering").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}switchToCustomMode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/networks/{network}/updatePeering").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Networks=Resource$Networks;class Resource$Nodegroups{constructor(e){this.context=e}addNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","initialNodeCount"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNodeTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodegroups=Resource$Nodegroups;class Resource$Nodetemplates{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","nodeTemplate"],pathParams:["nodeTemplate","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","nodeTemplate"],pathParams:["nodeTemplate","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodetemplates=Resource$Nodetemplates;class Resource$Nodetypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/nodeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","nodeType"],pathParams:["nodeType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/nodeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodetypes=Resource$Nodetypes;class Resource$Organizationsecuritypolicies{constructor(e){this.context=e}addAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}copyRules(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/copyRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getRule").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAssociations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/listAssociations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/patchRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizationsecuritypolicies=Resource$Organizationsecuritypolicies;class Resource$Packetmirrorings{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Packetmirrorings=Resource$Packetmirrorings;class Resource$Projects{constructor(e){this.context=e}disableXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/disableXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disableXpnResource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/disableXpnResource").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enableXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/enableXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enableXpnResource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/enableXpnResource").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/getXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getXpnResources(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/getXpnResources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listXpnHosts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/listXpnHosts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}moveDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/moveDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}moveInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/moveInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setCommonInstanceMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/setCommonInstanceMetadata").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDefaultNetworkTier(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/setDefaultNetworkTier").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUsageExportBucket(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/setUsageExportBucket").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Regionautoscalers{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","autoscaler"],pathParams:["autoscaler","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","autoscaler"],pathParams:["autoscaler","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionautoscalers=Resource$Regionautoscalers;class Resource$Regionbackendservices{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionbackendservices=Resource$Regionbackendservices;class Resource$Regioncommitments{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","commitment"],pathParams:["commitment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateReservations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","commitment"],pathParams:["commitment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioncommitments=Resource$Regioncommitments;class Resource$Regiondisks{constructor(e){this.context=e}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSnapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiondisks=Resource$Regiondisks;class Resource$Regiondisktypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","diskType"],pathParams:["diskType","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiondisktypes=Resource$Regiondisktypes;class Resource$Regionhealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionhealthchecks=Resource$Regionhealthchecks;class Resource$Regionhealthcheckservices{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthCheckServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthCheckServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionhealthcheckservices=Resource$Regionhealthcheckservices;class Resource$Regioninstancegroupmanagers{constructor(e){this.context=e}abandonInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}applyUpdatesToInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deletePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listErrors(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listManagedInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}recreateInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager","size"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoHealingPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setInstanceTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTargetPools(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninstancegroupmanagers=Resource$Regioninstancegroupmanagers;class Resource$Regioninstancegroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNamedPorts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninstancegroups=Resource$Regioninstancegroups;class Resource$Regionnotificationendpoints{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","notificationEndpoint"],pathParams:["notificationEndpoint","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","notificationEndpoint"],pathParams:["notificationEndpoint","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/notificationEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/notificationEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionnotificationendpoints=Resource$Regionnotificationendpoints;class Resource$Regionoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionoperations=Resource$Regionoperations;class Resource$Regions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regions=Resource$Regions;class Resource$Regionsslcertificates{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","sslCertificate"],pathParams:["project","region","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","sslCertificate"],pathParams:["project","region","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionsslcertificates=Resource$Regionsslcertificates;class Resource$Regiontargethttpproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiontargethttpproxies=Resource$Regiontargethttpproxies;class Resource$Regiontargethttpsproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiontargethttpsproxies=Resource$Regiontargethttpsproxies;class Resource$Regionurlmaps{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}invalidateCache(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionurlmaps=Resource$Regionurlmaps;class Resource$Reservations{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reservations=Resource$Reservations;class Resource$Resourcepolicies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","resourcePolicy"],pathParams:["project","region","resourcePolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resourcePolicy"],pathParams:["project","region","resourcePolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resourcepolicies=Resource$Resourcepolicies;class Resource$Routers{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/routers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getNatMappingInfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRouterStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}preview(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}/preview").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Routers=Resource$Routers;class Resource$Routes{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/routes/{route}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","route"],pathParams:["project","route"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/routes/{route}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","route"],pathParams:["project","route"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/routes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/routes/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Routes=Resource$Routes;class Resource$Securitypolicies{constructor(e){this.context=e}addRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPreconfiguredExpressionSets(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Securitypolicies=Resource$Securitypolicies;class Resource$Snapshots{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{snapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","snapshot"],pathParams:["project","snapshot"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{snapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","snapshot"],pathParams:["project","snapshot"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Snapshots=Resource$Snapshots;class Resource$Sslcertificates{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","sslCertificate"],pathParams:["project","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","sslCertificate"],pathParams:["project","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sslcertificates=Resource$Sslcertificates;class Resource$Sslpolicies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAvailableFeatures(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/sslPolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sslpolicies=Resource$Sslpolicies;class Resource$Subnetworks{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}expandIpCidrRange(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listUsable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/subnetworks/listUsable").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setPrivateIpGoogleAccess(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subnetworks=Resource$Subnetworks;class Resource$Targethttpproxies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targethttpproxies=Resource$Targethttpproxies;class Resource$Targethttpsproxies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setQuicOverride(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targethttpsproxies=Resource$Targethttpsproxies;class Resource$Targetinstances{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","targetInstance"],pathParams:["project","targetInstance","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","targetInstance"],pathParams:["project","targetInstance","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetinstances=Resource$Targetinstances;class Resource$Targetpools{constructor(e){this.context=e}addHealthCheck(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeHealthCheck(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetpools=Resource$Targetpools;class Resource$Targetsslproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackendService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setProxyHeader(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetsslproxies=Resource$Targetsslproxies;class Resource$Targettcpproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackendService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setProxyHeader(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targettcpproxies=Resource$Targettcpproxies;class Resource$Targetvpngateways{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetVpnGateway"],pathParams:["project","region","targetVpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetVpnGateway"],pathParams:["project","region","targetVpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetvpngateways=Resource$Targetvpngateways;class Resource$Urlmaps{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}invalidateCache(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Urlmaps=Resource$Urlmaps;class Resource$Vpngateways{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Vpngateways=Resource$Vpngateways;class Resource$Vpntunnels{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/aggregated/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","vpnTunnel"],pathParams:["project","region","vpnTunnel"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnTunnel"],pathParams:["project","region","vpnTunnel"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Vpntunnels=Resource$Vpntunnels;class Resource$Zoneoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Zoneoperations=Resource$Zoneoperations;class Resource$Zones{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones/{zone}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/beta/projects/{project}/zones").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Zones=Resource$Zones})(o=t.compute_beta||(t.compute_beta={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.datastore_v1beta1=void 0;const r=s(927);var o;(function(e){class Datastore{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Datastore=Datastore;class Resource$Projects{constructor(e){this.context=e}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}:export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects})(o=t.datastore_v1beta1||(t.datastore_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.prod_tt_sasportal=t.VERSIONS=void 0;const r=s(927);const o=s(467);t.VERSIONS={v1alpha1:o.prod_tt_sasportal_v1alpha1.Prod_tt_sasportal};function prod_tt_sasportal(e){return r.getAPI("prod_tt_sasportal",e,t.VERSIONS,this)}t.prod_tt_sasportal=prod_tt_sasportal;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){var r=s(239);s(220);s(152);var o=e.exports=r.md5=r.md5||{};r.md.md5=r.md.algorithms.md5=o;o.create=function(){if(!a){_init()}var e=null;var t=r.util.createBuffer();var s=new Array(16);var o={algorithm:"md5",blockLength:64,digestLength:16,messageLength:0,fullMessageLength:null,messageLengthSize:8};o.start=function(){o.messageLength=0;o.fullMessageLength=o.messageLength64=[];var s=o.messageLengthSize/4;for(var n=0;n>>0,c>>>0];for(var u=o.fullMessageLength.length-1;u>=0;--u){o.fullMessageLength[u]+=c[1];c[1]=c[0]+(o.fullMessageLength[u]/4294967296>>>0);o.fullMessageLength[u]=o.fullMessageLength[u]>>>0;c[0]=c[1]/4294967296>>>0}t.putBytes(n);_update(e,s,t);if(t.read>2048||t.length()===0){t.compact()}return o};o.digest=function(){var i=r.util.createBuffer();i.putBytes(t.bytes());var c=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize;var u=c&o.blockLength-1;i.putBytes(n.substr(0,o.blockLength-u));var a,f=0;for(var p=o.fullMessageLength.length-1;p>=0;--p){a=o.fullMessageLength[p]*8+f;f=a/4294967296>>>0;i.putInt32Le(a>>>0)}var h={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3};_update(h,s,i);var d=r.util.createBuffer();d.putInt32Le(h.h0);d.putInt32Le(h.h1);d.putInt32Le(h.h2);d.putInt32Le(h.h3);return d};return o};var n=null;var i=null;var c=null;var u=null;var a=false;function _init(){n=String.fromCharCode(128);n+=r.util.fillString(String.fromCharCode(0),64);i=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,1,6,11,0,5,10,15,4,9,14,3,8,13,2,7,12,5,8,11,14,1,4,7,10,13,0,3,6,9,12,15,2,0,7,14,5,12,3,10,1,8,15,6,13,4,11,2,9];c=[7,12,17,22,7,12,17,22,7,12,17,22,7,12,17,22,5,9,14,20,5,9,14,20,5,9,14,20,5,9,14,20,4,11,16,23,4,11,16,23,4,11,16,23,4,11,16,23,6,10,15,21,6,10,15,21,6,10,15,21,6,10,15,21];u=new Array(64);for(var e=0;e<64;++e){u[e]=Math.floor(Math.abs(Math.sin(e+1))*4294967296)}a=true}function _update(e,t,s){var r,o,n,a,f,p,h,d;var l=s.length();while(l>=64){o=e.h0;n=e.h1;a=e.h2;f=e.h3;for(d=0;d<16;++d){t[d]=s.getInt32Le();p=f^n&(a^f);r=o+p+u[d]+t[d];h=c[d];o=f;f=a;a=n;n+=r<>>32-h}for(;d<32;++d){p=a^f&(n^a);r=o+p+u[d]+t[i[d]];h=c[d];o=f;f=a;a=n;n+=r<>>32-h}for(;d<48;++d){p=n^a^f;r=o+p+u[d]+t[i[d]];h=c[d];o=f;f=a;a=n;n+=r<>>32-h}for(;d<64;++d){p=a^(n|~f);r=o+p+u[d]+t[i[d]];h=c[d];o=f;f=a;a=n;n+=r<>>32-h}e.h0=e.h0+o|0;e.h1=e.h1+n|0;e.h2=e.h2+a|0;e.h3=e.h3+f|0;l-=64}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run_v1alpha1=void 0;const r=s(927);var o;(function(e){class Run{constructor(e,t){this.context={_options:e||{},google:t};this.namespaces=new Resource$Namespaces(this.context);this.projects=new Resource$Projects(this.context)}}e.Run=Run;class Resource$Namespaces{constructor(e){this.context=e;this.authorizeddomains=new Resource$Namespaces$Authorizeddomains(this.context);this.cloudauditlogssources=new Resource$Namespaces$Cloudauditlogssources(this.context);this.cloudpubsubsources=new Resource$Namespaces$Cloudpubsubsources(this.context);this.cloudschedulersources=new Resource$Namespaces$Cloudschedulersources(this.context);this.cloudstoragesources=new Resource$Namespaces$Cloudstoragesources(this.context);this.configurations=new Resource$Namespaces$Configurations(this.context);this.domainmappings=new Resource$Namespaces$Domainmappings(this.context);this.revisions=new Resource$Namespaces$Revisions(this.context);this.routes=new Resource$Namespaces$Routes(this.context);this.services=new Resource$Namespaces$Services(this.context);this.triggers=new Resource$Namespaces$Triggers(this.context)}}e.Resource$Namespaces=Resource$Namespaces;class Resource$Namespaces$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Authorizeddomains=Resource$Namespaces$Authorizeddomains;class Resource$Namespaces$Cloudauditlogssources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Cloudauditlogssources=Resource$Namespaces$Cloudauditlogssources;class Resource$Namespaces$Cloudpubsubsources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Cloudpubsubsources=Resource$Namespaces$Cloudpubsubsources;class Resource$Namespaces$Cloudschedulersources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceCloudSchedulerSource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Cloudschedulersources=Resource$Namespaces$Cloudschedulersources;class Resource$Namespaces$Cloudstoragesources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceCloudStorageSource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/events.cloud.google.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Cloudstoragesources=Resource$Namespaces$Cloudstoragesources;class Resource$Namespaces$Configurations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+parent}/configurations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Configurations=Resource$Namespaces$Configurations;class Resource$Namespaces$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Domainmappings=Resource$Namespaces$Domainmappings;class Resource$Namespaces$Revisions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+parent}/revisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Revisions=Resource$Namespaces$Revisions;class Resource$Namespaces$Routes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+parent}/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Routes=Resource$Namespaces$Routes;class Resource$Namespaces$Services{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Services=Resource$Namespaces$Services;class Resource$Namespaces$Triggers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/eventing.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/eventing.knative.dev/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Triggers=Resource$Namespaces$Triggers;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.authorizeddomains=new Resource$Projects$Locations$Authorizeddomains(this.context);this.cloudauditlogssources=new Resource$Projects$Locations$Cloudauditlogssources(this.context);this.cloudpubsubsources=new Resource$Projects$Locations$Cloudpubsubsources(this.context);this.cloudschedulersources=new Resource$Projects$Locations$Cloudschedulersources(this.context);this.cloudstoragesources=new Resource$Projects$Locations$Cloudstoragesources(this.context);this.configurations=new Resource$Projects$Locations$Configurations(this.context);this.domainmappings=new Resource$Projects$Locations$Domainmappings(this.context);this.revisions=new Resource$Projects$Locations$Revisions(this.context);this.routes=new Resource$Projects$Locations$Routes(this.context);this.services=new Resource$Projects$Locations$Services(this.context);this.triggers=new Resource$Projects$Locations$Triggers(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/authorizeddomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Authorizeddomains=Resource$Projects$Locations$Authorizeddomains;class Resource$Projects$Locations$Cloudauditlogssources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudauditlogssources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudauditlogssources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Cloudauditlogssources=Resource$Projects$Locations$Cloudauditlogssources;class Resource$Projects$Locations$Cloudpubsubsources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudpubsubsources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudpubsubsources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Cloudpubsubsources=Resource$Projects$Locations$Cloudpubsubsources;class Resource$Projects$Locations$Cloudschedulersources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudschedulersources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudschedulersources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceCloudSchedulerSource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Cloudschedulersources=Resource$Projects$Locations$Cloudschedulersources;class Resource$Projects$Locations$Cloudstoragesources{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudstoragesources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/cloudstoragesources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceCloudStorageSource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Cloudstoragesources=Resource$Projects$Locations$Cloudstoragesources;class Resource$Projects$Locations$Configurations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/configurations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Configurations=Resource$Projects$Locations$Configurations;class Resource$Projects$Locations$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Domainmappings=Resource$Projects$Locations$Domainmappings;class Resource$Projects$Locations$Revisions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/revisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Revisions=Resource$Projects$Locations$Revisions;class Resource$Projects$Locations$Routes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Routes=Resource$Projects$Locations$Routes;class Resource$Projects$Locations$Services{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Services=Resource$Projects$Locations$Services;class Resource$Projects$Locations$Triggers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Triggers=Resource$Projects$Locations$Triggers})(o=t.run_v1alpha1||(t.run_v1alpha1={}))},function(e){e.exports={options:{usePureJavaScript:false}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.jobs=t.VERSIONS=void 0;const r=s(927);const o=s(787);const n=s(924);const i=s(910);t.VERSIONS={v2:o.jobs_v2.Jobs,v3:n.jobs_v3.Jobs,v3p1beta1:i.jobs_v3p1beta1.Jobs};function jobs(e){return r.getAPI("jobs",e,t.VERSIONS,this)}t.jobs=jobs;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.playcustomapp_v1=void 0;const r=s(927);var o;(function(e){class Playcustomapp{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context)}}e.Playcustomapp=Playcustomapp;class Resource$Accounts{constructor(e){this.context=e;this.customApps=new Resource$Accounts$Customapps(this.context)}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Customapps{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/playcustomapp/v1/accounts/{account}/customApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/playcustomapp/v1/accounts/{account}/customApps").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["account"],pathParams:["account"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Customapps=Resource$Accounts$Customapps})(o=t.playcustomapp_v1||(t.playcustomapp_v1={}))},function(e,t,s){"use strict";e.exports=Readable;var r;Readable.ReadableState=ReadableState;var o=s(614).EventEmitter;var n=function EElistenerCount(e,t){return e.listeners(t).length};var i=s(427);var c=s(293).Buffer;var u=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return c.from(e)}function _isUint8Array(e){return c.isBuffer(e)||e instanceof u}var a=s(669);var f;if(a&&a.debuglog){f=a.debuglog("stream")}else{f=function debug(){}}var p=s(912);var h=s(546);var d=s(216),l=d.getHighWaterMark;var P=s(563).codes,y=P.ERR_INVALID_ARG_TYPE,I=P.ERR_STREAM_PUSH_AFTER_EOF,R=P.ERR_METHOD_NOT_IMPLEMENTED,g=P.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;var q;var x;var $;s(689)(Readable,i);var j=h.errorOrDestroy;var v=["error","close","destroy","pause","resume"];function prependListener(e,t,s){if(typeof e.prependListener==="function")return e.prependListener(t,s);if(!e._events||!e._events[t])e.on(t,s);else if(Array.isArray(e._events[t]))e._events[t].unshift(s);else e._events[t]=[s,e._events[t]]}function ReadableState(e,t,o){r=r||s(831);e=e||{};if(typeof o!=="boolean")o=t instanceof r;this.objectMode=!!e.objectMode;if(o)this.objectMode=this.objectMode||!!e.readableObjectMode;this.highWaterMark=l(this,e,"readableHighWaterMark",o);this.buffer=new p;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.paused=true;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!q)q=s(432).StringDecoder;this.decoder=new q(e.encoding);this.encoding=e.encoding}}function Readable(e){r=r||s(831);if(!(this instanceof Readable))return new Readable(e);var t=this instanceof r;this._readableState=new ReadableState(e,this,t);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}i.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{enumerable:false,get:function get(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function set(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=h.destroy;Readable.prototype._undestroy=h.undestroy;Readable.prototype._destroy=function(e,t){t(e)};Readable.prototype.push=function(e,t){var s=this._readableState;var r;if(!s.objectMode){if(typeof e==="string"){t=t||s.defaultEncoding;if(t!==s.encoding){e=c.from(e,t);t=""}r=true}}else{r=true}return readableAddChunk(this,e,t,false,r)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,s,r,o){f("readableAddChunk",t);var n=e._readableState;if(t===null){n.reading=false;onEofChunk(e,n)}else{var i;if(!o)i=chunkInvalid(n,t);if(i){j(e,i)}else if(n.objectMode||t&&t.length>0){if(typeof t!=="string"&&!n.objectMode&&Object.getPrototypeOf(t)!==c.prototype){t=_uint8ArrayToBuffer(t)}if(r){if(n.endEmitted)j(e,new g);else addChunk(e,n,t,true)}else if(n.ended){j(e,new I)}else if(n.destroyed){return false}else{n.reading=false;if(n.decoder&&!s){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!r){n.reading=false;maybeReadMore(e,n)}}return!n.ended&&(n.length=A){e=A}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){f("read",e);e=parseInt(e,10);var t=this._readableState;var s=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&((t.highWaterMark!==0?t.length>=t.highWaterMark:t.length>0)||t.ended)){f("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var r=t.needReadable;f("need readable",r);if(t.length===0||t.length-e0)o=fromList(e,t);else o=null;if(o===null){t.needReadable=t.length<=t.highWaterMark;e=0}else{t.length-=e;t.awaitDrain=0}if(t.length===0){if(!t.ended)t.needReadable=true;if(s!==e&&t.ended)endReadable(this)}if(o!==null)this.emit("data",o);return o};function onEofChunk(e,t){f("onEofChunk");if(t.ended)return;if(t.decoder){var s=t.decoder.end();if(s&&s.length){t.buffer.push(s);t.length+=t.objectMode?1:s.length}}t.ended=true;if(t.sync){emitReadable(e)}else{t.needReadable=false;if(!t.emittedReadable){t.emittedReadable=true;emitReadable_(e)}}}function emitReadable(e){var t=e._readableState;f("emitReadable",t.needReadable,t.emittedReadable);t.needReadable=false;if(!t.emittedReadable){f("emitReadable",t.flowing);t.emittedReadable=true;process.nextTick(emitReadable_,e)}}function emitReadable_(e){var t=e._readableState;f("emitReadable_",t.destroyed,t.length,t.ended);if(!t.destroyed&&(t.length||t.ended)){e.emit("readable");t.emittedReadable=false}t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark;flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;process.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){while(!t.reading&&!t.ended&&(t.length1&&indexOf(r.pipes,e)!==-1)&&!u){f("false write response, pause",r.awaitDrain);r.awaitDrain++}s.pause()}}function onerror(t){f("onerror",t);unpipe();e.removeListener("error",onerror);if(n(e,"error")===0)j(e,t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){f("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){f("unpipe");s.unpipe(e)}e.emit("pipe",s);if(!r.flowing){f("pipe resume");s.resume()}return e};function pipeOnDrain(e){return function pipeOnDrainFunctionResult(){var t=e._readableState;f("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&n(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var s={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,s);return this}if(!e){var r=t.pipes;var o=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var n=0;n0;if(r.flowing!==false)this.resume()}else if(e==="readable"){if(!r.endEmitted&&!r.readableListening){r.readableListening=r.needReadable=true;r.flowing=false;r.emittedReadable=false;f("on readable",r.length,r.reading);if(r.length){emitReadable(this)}else if(!r.reading){process.nextTick(nReadingNextTick,this)}}}return s};Readable.prototype.addListener=Readable.prototype.on;Readable.prototype.removeListener=function(e,t){var s=i.prototype.removeListener.call(this,e,t);if(e==="readable"){process.nextTick(updateReadableListening,this)}return s};Readable.prototype.removeAllListeners=function(e){var t=i.prototype.removeAllListeners.apply(this,arguments);if(e==="readable"||e===undefined){process.nextTick(updateReadableListening,this)}return t};function updateReadableListening(e){var t=e._readableState;t.readableListening=e.listenerCount("readable")>0;if(t.resumeScheduled&&!t.paused){t.flowing=true}else if(e.listenerCount("data")>0){e.resume()}}function nReadingNextTick(e){f("readable nexttick read 0");e.read(0)}Readable.prototype.resume=function(){var e=this._readableState;if(!e.flowing){f("resume");e.flowing=!e.readableListening;resume(this,e)}e.paused=false;return this};function resume(e,t){if(!t.resumeScheduled){t.resumeScheduled=true;process.nextTick(resume_,e,t)}}function resume_(e,t){f("resume",t.reading);if(!t.reading){e.read(0)}t.resumeScheduled=false;e.emit("resume");flow(e);if(t.flowing&&!t.reading)e.read(0)}Readable.prototype.pause=function(){f("call pause flowing=%j",this._readableState.flowing);if(this._readableState.flowing!==false){f("pause");this._readableState.flowing=false;this.emit("pause")}this._readableState.paused=true;return this};function flow(e){var t=e._readableState;f("flow",t.flowing);while(t.flowing&&e.read()!==null){}}Readable.prototype.wrap=function(e){var t=this;var s=this._readableState;var r=false;e.on("end",function(){f("wrapped end");if(s.decoder&&!s.ended){var e=s.decoder.end();if(e&&e.length)t.push(e)}t.push(null)});e.on("data",function(o){f("wrapped data");if(s.decoder)o=s.decoder.write(o);if(s.objectMode&&(o===null||o===undefined))return;else if(!s.objectMode&&(!o||!o.length))return;var n=t.push(o);if(!n){r=true;e.pause()}});for(var o in e){if(this[o]===undefined&&typeof e[o]==="function"){this[o]=function methodWrap(t){return function methodWrapReturnFunction(){return e[t].apply(e,arguments)}}(o)}}for(var n=0;n=t.length){if(t.decoder)s=t.buffer.join("");else if(t.buffer.length===1)s=t.buffer.first();else s=t.buffer.concat(t.length);t.buffer.clear()}else{s=t.buffer.consume(e,t.decoder)}return s}function endReadable(e){var t=e._readableState;f("endReadable",t.endEmitted);if(!t.endEmitted){t.ended=true;process.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){f("endReadableNT",e.endEmitted,e.length);if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end");if(e.autoDestroy){var s=t._writableState;if(!s||s.autoDestroy&&s.finished){t.destroy()}}}}if(typeof Symbol==="function"){Readable.from=function(e,t){if($===undefined){$=s(176)}return $(Readable,e,t)}}function indexOf(e,t){for(var s=0,r=e.length;sthis.maxLength)return false;if(!this.stat&&y(this.cache,t)){var o=this.cache[t];if(Array.isArray(o))o="DIR";if(!s||o==="DIR")return o;if(s&&o==="FILE")return false}var n;var i=this.statCache[t];if(!i){var c;try{c=r.lstatSync(t)}catch(e){if(e&&(e.code==="ENOENT"||e.code==="ENOTDIR")){this.statCache[t]=false;return false}}if(c&&c.isSymbolicLink()){try{i=r.statSync(t)}catch(e){i=c}}else{i=c}}this.statCache[t]=i;var o=true;if(i)o=i.isDirectory()?"DIR":"FILE";this.cache[t]=this.cache[t]||o;if(s&&o==="FILE")return false;return o};GlobSync.prototype._mark=function(e){return h.mark(this,e)};GlobSync.prototype._makeAbs=function(e){return h.makeAbs(this,e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.translate=t.VERSIONS=void 0;const r=s(927);const o=s(504);const n=s(66);const i=s(697);t.VERSIONS={v2:o.translate_v2.Translate,v3:n.translate_v3.Translate,v3beta1:i.translate_v3beta1.Translate};function translate(e){return r.getAPI("translate",e,t.VERSIONS,this)}t.translate=translate;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.drive=t.VERSIONS=void 0;const r=s(927);const o=s(583);const n=s(776);t.VERSIONS={v2:o.drive_v2.Drive,v3:n.drive_v3.Drive};function drive(e){return r.getAPI("drive",e,t.VERSIONS,this)}t.drive=drive;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.vision=t.VERSIONS=void 0;const r=s(927);const o=s(807);const n=s(493);const i=s(781);t.VERSIONS={v1:o.vision_v1.Vision,v1p1beta1:n.vision_v1p1beta1.Vision,v1p2beta1:i.vision_v1p2beta1.Vision};function vision(e){return r.getAPI("vision",e,t.VERSIONS,this)}t.vision=vision;const c=new r.AuthPlus;t.auth=c},function(e,t,s){var r=s(239);s(828);s(784);s(794);s(220);s(185);s(988);s(76);s(705);s(526);s(152);var o=r.asn1;var n=e.exports=r.pki=r.pki||{};var i=n.oids;var c={};c["CN"]=i["commonName"];c["commonName"]="CN";c["C"]=i["countryName"];c["countryName"]="C";c["L"]=i["localityName"];c["localityName"]="L";c["ST"]=i["stateOrProvinceName"];c["stateOrProvinceName"]="ST";c["O"]=i["organizationName"];c["organizationName"]="O";c["OU"]=i["organizationalUnitName"];c["organizationalUnitName"]="OU";c["E"]=i["emailAddress"];c["emailAddress"]="E";var u=r.pki.rsa.publicKeyValidator;var a={name:"Certificate",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"tbsCertificate",value:[{name:"Certificate.TBSCertificate.version",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.version.integer",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"certVersion"}]},{name:"Certificate.TBSCertificate.serialNumber",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"certSerialNumber"},{name:"Certificate.TBSCertificate.signature",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.signature.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"certinfoSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:o.Class.UNIVERSAL,optional:true,captureAsn1:"certinfoSignatureParams"}]},{name:"Certificate.TBSCertificate.issuer",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"certIssuer"},{name:"Certificate.TBSCertificate.validity",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.TBSCertificate.validity.notBefore (utc)",tagClass:o.Class.UNIVERSAL,type:o.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity1UTCTime"},{name:"Certificate.TBSCertificate.validity.notBefore (generalized)",tagClass:o.Class.UNIVERSAL,type:o.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity2GeneralizedTime"},{name:"Certificate.TBSCertificate.validity.notAfter (utc)",tagClass:o.Class.UNIVERSAL,type:o.Type.UTCTIME,constructed:false,optional:true,capture:"certValidity3UTCTime"},{name:"Certificate.TBSCertificate.validity.notAfter (generalized)",tagClass:o.Class.UNIVERSAL,type:o.Type.GENERALIZEDTIME,constructed:false,optional:true,capture:"certValidity4GeneralizedTime"}]},{name:"Certificate.TBSCertificate.subject",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"certSubject"},u,{name:"Certificate.TBSCertificate.issuerUniqueID",tagClass:o.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.issuerUniqueID.id",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,captureBitStringValue:"certIssuerUniqueId"}]},{name:"Certificate.TBSCertificate.subjectUniqueID",tagClass:o.Class.CONTEXT_SPECIFIC,type:2,constructed:true,optional:true,value:[{name:"Certificate.TBSCertificate.subjectUniqueID.id",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,captureBitStringValue:"certSubjectUniqueId"}]},{name:"Certificate.TBSCertificate.extensions",tagClass:o.Class.CONTEXT_SPECIFIC,type:3,constructed:true,captureAsn1:"certExtensions",optional:true}]},{name:"Certificate.signatureAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"Certificate.signatureAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"certSignatureOid"},{name:"Certificate.TBSCertificate.signature.parameters",tagClass:o.Class.UNIVERSAL,optional:true,captureAsn1:"certSignatureParams"}]},{name:"Certificate.signatureValue",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,captureBitStringValue:"certSignature"}]};var f={name:"rsapss",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.hashAlgorithm",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,constructed:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier",tagClass:o.Class.UNIVERSAL,type:o.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"hashOid"}]}]},{name:"rsapss.maskGenAlgorithm",tagClass:o.Class.CONTEXT_SPECIFIC,type:1,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier",tagClass:o.Class.UNIVERSAL,type:o.Class.SEQUENCE,constructed:true,optional:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"maskGenOid"},{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"maskGenHashOid"}]}]}]},{name:"rsapss.saltLength",tagClass:o.Class.CONTEXT_SPECIFIC,type:2,optional:true,value:[{name:"rsapss.saltLength.saltLength",tagClass:o.Class.UNIVERSAL,type:o.Class.INTEGER,constructed:false,capture:"saltLength"}]},{name:"rsapss.trailerField",tagClass:o.Class.CONTEXT_SPECIFIC,type:3,optional:true,value:[{name:"rsapss.trailer.trailer",tagClass:o.Class.UNIVERSAL,type:o.Class.INTEGER,constructed:false,capture:"trailer"}]}]};var p={name:"CertificationRequestInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfo",value:[{name:"CertificationRequestInfo.integer",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"certificationRequestInfoVersion"},{name:"CertificationRequestInfo.subject",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"certificationRequestInfoSubject"},u,{name:"CertificationRequestInfo.attributes",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"certificationRequestInfoAttributes",value:[{name:"CertificationRequestInfo.attributes",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequestInfo.attributes.type",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false},{name:"CertificationRequestInfo.attributes.value",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:true}]}]}]};var h={name:"CertificationRequest",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"csr",value:[p,{name:"CertificationRequest.signatureAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"CertificationRequest.signatureAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"csrSignatureOid"},{name:"CertificationRequest.signatureAlgorithm.parameters",tagClass:o.Class.UNIVERSAL,optional:true,captureAsn1:"csrSignatureParams"}]},{name:"CertificationRequest.signature",tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,captureBitStringValue:"csrSignature"}]};n.RDNAttributesAsArray=function(e,t){var s=[];var r,n,u;for(var a=0;a2){throw new Error("Cannot read notBefore/notAfter validity times; more "+"than two times were provided in the certificate.")}if(l.length<2){throw new Error("Cannot read notBefore/notAfter validity times; they "+"were not provided as either UTCTime or GeneralizedTime.")}p.validity.notBefore=l[0];p.validity.notAfter=l[1];p.tbsCertificate=s.tbsCertificate;if(t){p.md=null;if(p.signatureOid in i){var f=i[p.signatureOid];switch(f){case"sha1WithRSAEncryption":p.md=r.md.sha1.create();break;case"md5WithRSAEncryption":p.md=r.md.md5.create();break;case"sha256WithRSAEncryption":p.md=r.md.sha256.create();break;case"sha384WithRSAEncryption":p.md=r.md.sha384.create();break;case"sha512WithRSAEncryption":p.md=r.md.sha512.create();break;case"RSASSA-PSS":p.md=r.md.sha256.create();break}}if(p.md===null){var u=new Error("Could not compute certificate digest. "+"Unknown signature OID.");u.signatureOid=p.signatureOid;throw u}var P=o.toDer(p.tbsCertificate);p.md.update(P.getBytes())}var y=r.md.sha1.create();p.issuer.getField=function(e){return _getAttribute(p.issuer,e)};p.issuer.addField=function(e){_fillMissingFields([e]);p.issuer.attributes.push(e)};p.issuer.attributes=n.RDNAttributesAsArray(s.certIssuer,y);if(s.certIssuerUniqueId){p.issuer.uniqueId=s.certIssuerUniqueId}p.issuer.hash=y.digest().toHex();var I=r.md.sha1.create();p.subject.getField=function(e){return _getAttribute(p.subject,e)};p.subject.addField=function(e){_fillMissingFields([e]);p.subject.attributes.push(e)};p.subject.attributes=n.RDNAttributesAsArray(s.certSubject,I);if(s.certSubjectUniqueId){p.subject.uniqueId=s.certSubjectUniqueId}p.subject.hash=I.digest().toHex();if(s.certExtensions){p.extensions=n.certificateExtensionsFromAsn1(s.certExtensions)}else{p.extensions=[]}p.publicKey=n.publicKeyFromAsn1(s.subjectPublicKeyInfo);return p};n.certificateExtensionsFromAsn1=function(e){var t=[];for(var s=0;s1){n=s.value.charCodeAt(1);c=s.value.length>2?s.value.charCodeAt(2):0}t.digitalSignature=(n&128)===128;t.nonRepudiation=(n&64)===64;t.keyEncipherment=(n&32)===32;t.dataEncipherment=(n&16)===16;t.keyAgreement=(n&8)===8;t.keyCertSign=(n&4)===4;t.cRLSign=(n&2)===2;t.encipherOnly=(n&1)===1;t.decipherOnly=(c&128)===128}else if(t.name==="basicConstraints"){var s=o.fromDer(t.value);if(s.value.length>0&&s.value[0].type===o.Type.BOOLEAN){t.cA=s.value[0].value.charCodeAt(0)!==0}else{t.cA=false}var u=null;if(s.value.length>0&&s.value[0].type===o.Type.INTEGER){u=s.value[0].value}else if(s.value.length>1){u=s.value[1].value}if(u!==null){t.pathLenConstraint=o.derToInteger(u)}}else if(t.name==="extKeyUsage"){var s=o.fromDer(t.value);for(var a=0;a1){n=s.value.charCodeAt(1)}t.client=(n&128)===128;t.server=(n&64)===64;t.email=(n&32)===32;t.objsign=(n&16)===16;t.reserved=(n&8)===8;t.sslCA=(n&4)===4;t.emailCA=(n&2)===2;t.objCA=(n&1)===1}else if(t.name==="subjectAltName"||t.name==="issuerAltName"){t.altNames=[];var p;var s=o.fromDer(t.value);for(var h=0;h128){throw new Error('Invalid "nsComment" content.')}e.value=o.create(o.Class.UNIVERSAL,o.Type.IA5STRING,false,e.comment)}else if(e.name==="subjectKeyIdentifier"&&t.cert){var P=t.cert.generateSubjectKeyIdentifier();e.subjectKeyIdentifier=P.toHex();e.value=o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,P.getBytes())}else if(e.name==="authorityKeyIdentifier"&&t.cert){e.value=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);var p=e.value.value;if(e.keyIdentifier){var y=e.keyIdentifier===true?t.cert.generateSubjectKeyIdentifier().getBytes():e.keyIdentifier;p.push(o.create(o.Class.CONTEXT_SPECIFIC,0,false,y))}if(e.authorityCertIssuer){var I=[o.create(o.Class.CONTEXT_SPECIFIC,4,true,[_dnToAsn1(e.authorityCertIssuer===true?t.cert.issuer:e.authorityCertIssuer)])];p.push(o.create(o.Class.CONTEXT_SPECIFIC,1,true,I))}if(e.serialNumber){var R=r.util.hexToBytes(e.serialNumber===true?t.cert.serialNumber:e.serialNumber);p.push(o.create(o.Class.CONTEXT_SPECIFIC,2,false,R))}}else if(e.name==="cRLDistributionPoints"){e.value=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);var p=e.value.value;var g=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);var q=o.create(o.Class.CONTEXT_SPECIFIC,0,true,[]);var d;for(var l=0;l=l&&e0){i.value.push(n.certificateExtensionsToAsn1(e.extensions))}return i};n.getCertificationRequestInfo=function(e){var t=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(e.version).getBytes()),_dnToAsn1(e.subject),n.publicKeyToAsn1(e.publicKey),_CRIAttributesToAsn1(e)]);return t};n.distinguishedNameToAsn1=function(e){return _dnToAsn1(e)};n.certificateToAsn1=function(e){var t=e.tbsCertificate||n.getTBSCertificate(e);return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[t,o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(e.signatureOid).getBytes()),_signatureParametersToAsn1(e.signatureOid,e.signatureParameters)]),o.create(o.Class.UNIVERSAL,o.Type.BITSTRING,false,String.fromCharCode(0)+e.signature)])};n.certificateExtensionsToAsn1=function(e){var t=o.create(o.Class.CONTEXT_SPECIFIC,3,true,[]);var s=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[]);t.value.push(s);for(var r=0;rf.validity.notAfter){u={message:"Certificate is not valid yet or has expired.",error:n.certificateError.certificate_expired,notBefore:f.validity.notBefore,notAfter:f.validity.notAfter,now:i}}}if(u===null){p=t[0]||e.getIssuer(f);if(p===null){if(f.isIssuer(f)){h=true;p=f}}if(p){var d=p;if(!r.util.isArray(d)){d=[d]}var l=false;while(!l&&d.length>0){p=d.shift();try{l=p.verify(f)}catch(e){}}if(!l){u={message:"Certificate signature is invalid.",error:n.certificateError.bad_certificate}}}if(u===null&&(!p||h)&&!e.hasCertificate(f)){u={message:"Certificate is not trusted.",error:n.certificateError.unknown_ca}}}if(u===null&&p&&!f.isIssuer(p)){u={message:"Certificate issuer is invalid.",error:n.certificateError.bad_certificate}}if(u===null){var P={keyUsage:true,basicConstraints:true};for(var y=0;u===null&&yR.pathLenConstraint){u={message:"Certificate basicConstraints pathLenConstraint violated.",error:n.certificateError.bad_certificate}}}}var x=u===null?true:u.error;var $=s.verify?s.verify(x,a,o):x;if($===true){u=null}else{if(x===true){u={message:"The application rejected the certificate.",error:n.certificateError.bad_certificate}}if($||$===0){if(typeof $==="object"&&!r.util.isArray($)){if($.message){u.message=$.message}if($.error){u.error=$.error}}else if(typeof $==="string"){u.error=$}}throw u}c=false;++a}while(t.length>0);return true}},function(e,t,s){var r=s(721);var o=process.cwd;var n=null;var i=process.env.GRACEFUL_FS_PLATFORM||process.platform;process.cwd=function(){if(!n)n=o.call(process);return n};try{process.cwd()}catch(e){}var c=process.chdir;process.chdir=function(e){n=null;c.call(process,e)};e.exports=patch;function patch(e){if(r.hasOwnProperty("O_SYMLINK")&&process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)){patchLchmod(e)}if(!e.lutimes){patchLutimes(e)}e.chown=chownFix(e.chown);e.fchown=chownFix(e.fchown);e.lchown=chownFix(e.lchown);e.chmod=chmodFix(e.chmod);e.fchmod=chmodFix(e.fchmod);e.lchmod=chmodFix(e.lchmod);e.chownSync=chownFixSync(e.chownSync);e.fchownSync=chownFixSync(e.fchownSync);e.lchownSync=chownFixSync(e.lchownSync);e.chmodSync=chmodFixSync(e.chmodSync);e.fchmodSync=chmodFixSync(e.fchmodSync);e.lchmodSync=chmodFixSync(e.lchmodSync);e.stat=statFix(e.stat);e.fstat=statFix(e.fstat);e.lstat=statFix(e.lstat);e.statSync=statFixSync(e.statSync);e.fstatSync=statFixSync(e.fstatSync);e.lstatSync=statFixSync(e.lstatSync);if(!e.lchmod){e.lchmod=function(e,t,s){if(s)process.nextTick(s)};e.lchmodSync=function(){}}if(!e.lchown){e.lchown=function(e,t,s,r){if(r)process.nextTick(r)};e.lchownSync=function(){}}if(i==="win32"){e.rename=function(t){return function(s,r,o){var n=Date.now();var i=0;t(s,r,function CB(c){if(c&&(c.code==="EACCES"||c.code==="EPERM")&&Date.now()-n<6e4){setTimeout(function(){e.stat(r,function(e,n){if(e&&e.code==="ENOENT")t(s,r,CB);else o(c)})},i);if(i<100)i+=10;return}if(o)o(c)})}}(e.rename)}e.read=function(t){function read(s,r,o,n,i,c){var u;if(c&&typeof c==="function"){var a=0;u=function(f,p,h){if(f&&f.code==="EAGAIN"&&a<10){a++;return t.call(e,s,r,o,n,i,u)}c.apply(this,arguments)}}return t.call(e,s,r,o,n,i,u)}read.__proto__=t;return read}(e.read);e.readSync=function(t){return function(s,r,o,n,i){var c=0;while(true){try{return t.call(e,s,r,o,n,i)}catch(e){if(e.code==="EAGAIN"&&c<10){c++;continue}throw e}}}}(e.readSync);function patchLchmod(e){e.lchmod=function(t,s,o){e.open(t,r.O_WRONLY|r.O_SYMLINK,s,function(t,r){if(t){if(o)o(t);return}e.fchmod(r,s,function(t){e.close(r,function(e){if(o)o(t||e)})})})};e.lchmodSync=function(t,s){var o=e.openSync(t,r.O_WRONLY|r.O_SYMLINK,s);var n=true;var i;try{i=e.fchmodSync(o,s);n=false}finally{if(n){try{e.closeSync(o)}catch(e){}}else{e.closeSync(o)}}return i}}function patchLutimes(e){if(r.hasOwnProperty("O_SYMLINK")){e.lutimes=function(t,s,o,n){e.open(t,r.O_SYMLINK,function(t,r){if(t){if(n)n(t);return}e.futimes(r,s,o,function(t){e.close(r,function(e){if(n)n(t||e)})})})};e.lutimesSync=function(t,s,o){var n=e.openSync(t,r.O_SYMLINK);var i;var c=true;try{i=e.futimesSync(n,s,o);c=false}finally{if(c){try{e.closeSync(n)}catch(e){}}else{e.closeSync(n)}}return i}}else{e.lutimes=function(e,t,s,r){if(r)process.nextTick(r)};e.lutimesSync=function(){}}}function chmodFix(t){if(!t)return t;return function(s,r,o){return t.call(e,s,r,function(e){if(chownErOk(e))e=null;if(o)o.apply(this,arguments)})}}function chmodFixSync(t){if(!t)return t;return function(s,r){try{return t.call(e,s,r)}catch(e){if(!chownErOk(e))throw e}}}function chownFix(t){if(!t)return t;return function(s,r,o,n){return t.call(e,s,r,o,function(e){if(chownErOk(e))e=null;if(n)n.apply(this,arguments)})}}function chownFixSync(t){if(!t)return t;return function(s,r,o){try{return t.call(e,s,r,o)}catch(e){if(!chownErOk(e))throw e}}}function statFix(t){if(!t)return t;return function(s,r,o){if(typeof r==="function"){o=r;r=null}function callback(e,t){if(t){if(t.uid<0)t.uid+=4294967296;if(t.gid<0)t.gid+=4294967296}if(o)o.apply(this,arguments)}return r?t.call(e,s,r,callback):t.call(e,s,callback)}}function statFixSync(t){if(!t)return t;return function(s,r){var o=r?t.call(e,s,r):t.call(e,s);if(o.uid<0)o.uid+=4294967296;if(o.gid<0)o.gid+=4294967296;return o}}function chownErOk(e){if(!e)return true;if(e.code==="ENOSYS")return true;var t=!process.getuid||process.getuid()!==0;if(t){if(e.code==="EINVAL"||e.code==="EPERM")return true}return false}}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.billingbudgets=t.VERSIONS=void 0;const r=s(927);const o=s(136);t.VERSIONS={v1beta1:o.billingbudgets_v1beta1.Billingbudgets};function billingbudgets(e){return r.getAPI("billingbudgets",e,t.VERSIONS,this)}t.billingbudgets=billingbudgets;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudasset_v1p1beta1=void 0;const r=s(927);var o;(function(e){class Cloudasset{constructor(e,t){this.context={_options:e||{},google:t};this.iamPolicies=new Resource$Iampolicies(this.context);this.resources=new Resource$Resources(this.context)}}e.Cloudasset=Cloudasset;class Resource$Iampolicies{constructor(e){this.context=e}searchAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudasset.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+scope}/iamPolicies:searchAll").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scope"],pathParams:["scope"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Iampolicies=Resource$Iampolicies;class Resource$Resources{constructor(e){this.context=e}searchAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudasset.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+scope}/resources:searchAll").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scope"],pathParams:["scope"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resources=Resource$Resources})(o=t.cloudasset_v1p1beta1||(t.cloudasset_v1p1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AuthPlus=void 0;const r=s(668);class AuthPlus extends r.GoogleAuth{constructor(){super(...arguments);this.JWT=r.JWT;this.Compute=r.Compute;this.OAuth2=r.OAuth2Client;this.GoogleAuth=r.GoogleAuth}async getClient(e){this._cachedAuth=new r.GoogleAuth(e);return this._cachedAuth.getClient()}getProjectId(e){if(e){return this._cachedAuth?this._cachedAuth.getProjectId(e):super.getProjectId(e)}else{return this._cachedAuth?this._cachedAuth.getProjectId():super.getProjectId()}}}t.AuthPlus=AuthPlus},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.pubsub_v1beta1a=void 0;const r=s(927);var o;(function(e){class Pubsub{constructor(e,t){this.context={_options:e||{},google:t};this.subscriptions=new Resource$Subscriptions(this.context);this.topics=new Resource$Topics(this.context)}}e.Pubsub=Pubsub;class Resource$Subscriptions{constructor(e){this.context=e}acknowledge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/acknowledge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/{+subscription}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["subscription"],pathParams:["subscription"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/{+subscription}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["subscription"],pathParams:["subscription"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyAckDeadline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/modifyAckDeadline").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyPushConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/modifyPushConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pull(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/pull").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pullBatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/subscriptions/pullBatch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subscriptions=Resource$Subscriptions;class Resource$Topics{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics/{+topic}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["topic"],pathParams:["topic"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics/{+topic}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["topic"],pathParams:["topic"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}publish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics/publish").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}publishBatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://pubsub.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1a/topics/publishBatch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Topics=Resource$Topics})(o=t.pubsub_v1beta1a||(t.pubsub_v1beta1a={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.adexchangebuyer2=t.VERSIONS=void 0;const r=s(927);const o=s(328);t.VERSIONS={v2beta1:o.adexchangebuyer2_v2beta1.Adexchangebuyer2};function adexchangebuyer2(e){return r.getAPI("adexchangebuyer2",e,t.VERSIONS,this)}t.adexchangebuyer2=adexchangebuyer2;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.people_v1=void 0;const r=s(927);var o;(function(e){class People{constructor(e,t){this.context={_options:e||{},google:t};this.contactGroups=new Resource$Contactgroups(this.context);this.people=new Resource$People(this.context)}}e.People=People;class Resource$Contactgroups{constructor(e){this.context=e;this.members=new Resource$Contactgroups$Members(this.context)}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/contactGroups:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/contactGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Contactgroups=Resource$Contactgroups;class Resource$Contactgroups$Members{constructor(e){this.context=e}modify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}/members:modify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Contactgroups$Members=Resource$Contactgroups$Members;class Resource$People{constructor(e){this.context=e;this.connections=new Resource$People$Connections(this.context)}createContact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/people:createContact").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteContact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}:deleteContact").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteContactPhoto(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}:deleteContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getBatchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/people:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateContact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}:updateContact").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateContactPhoto(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}:updateContactPhoto").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$People=Resource$People;class Resource$People$Connections{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://people.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resourceName}/connections").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$People$Connections=Resource$People$Connections})(o=t.people_v1||(t.people_v1={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class GaxiosError extends Error{constructor(e,t,s){super(e);this.response=s;this.config=t;this.code=s.status.toString()}}t.GaxiosError=GaxiosError},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.groupssettings=t.VERSIONS=void 0;const r=s(927);const o=s(652);t.VERSIONS={v1:o.groupssettings_v1.Groupssettings};function groupssettings(e){return r.getAPI("groupssettings",e,t.VERSIONS,this)}t.groupssettings=groupssettings;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.youtube_v3=void 0;const r=s(927);var o;(function(e){class Youtube{constructor(e,t){this.context={_options:e||{},google:t};this.activities=new Resource$Activities(this.context);this.captions=new Resource$Captions(this.context);this.channelBanners=new Resource$Channelbanners(this.context);this.channels=new Resource$Channels(this.context);this.channelSections=new Resource$Channelsections(this.context);this.comments=new Resource$Comments(this.context);this.commentThreads=new Resource$Commentthreads(this.context);this.guideCategories=new Resource$Guidecategories(this.context);this.i18nLanguages=new Resource$I18nlanguages(this.context);this.i18nRegions=new Resource$I18nregions(this.context);this.liveBroadcasts=new Resource$Livebroadcasts(this.context);this.liveChatBans=new Resource$Livechatbans(this.context);this.liveChatMessages=new Resource$Livechatmessages(this.context);this.liveChatModerators=new Resource$Livechatmoderators(this.context);this.liveStreams=new Resource$Livestreams(this.context);this.members=new Resource$Members(this.context);this.membershipsLevels=new Resource$Membershipslevels(this.context);this.playlistItems=new Resource$Playlistitems(this.context);this.playlists=new Resource$Playlists(this.context);this.search=new Resource$Search(this.context);this.sponsors=new Resource$Sponsors(this.context);this.subscriptions=new Resource$Subscriptions(this.context);this.superChatEvents=new Resource$Superchatevents(this.context);this.thumbnails=new Resource$Thumbnails(this.context);this.videoAbuseReportReasons=new Resource$Videoabusereportreasons(this.context);this.videoCategories=new Resource$Videocategories(this.context);this.videos=new Resource$Videos(this.context);this.watermarks=new Resource$Watermarks(this.context)}}e.Youtube=Youtube;class Resource$Activities{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/activities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/activities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Activities=Resource$Activities;class Resource$Captions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}download(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/captions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part","videoId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/captions").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Captions=Resource$Captions;class Resource$Channelbanners{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channelBanners/insert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/channelBanners/insert").replace(/([^:]\/)\/+/g,"$1"),requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Channelbanners=Resource$Channelbanners;class Resource$Channels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channels").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Channels=Resource$Channels;class Resource$Channelsections{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channelSections").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channelSections").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channelSections").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/channelSections").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Channelsections=Resource$Channelsections;class Resource$Comments{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}markAsSpam(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments/markAsSpam").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setModerationStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments/setModerationStatus").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id","moderationStatus"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/comments").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Comments=Resource$Comments;class Resource$Commentthreads{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/commentThreads").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/commentThreads").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/commentThreads").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Commentthreads=Resource$Commentthreads;class Resource$Guidecategories{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/guideCategories").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Guidecategories=Resource$Guidecategories;class Resource$I18nlanguages{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/i18nLanguages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$I18nlanguages=Resource$I18nlanguages;class Resource$I18nregions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/i18nRegions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$I18nregions=Resource$I18nregions;class Resource$Livebroadcasts{constructor(e){this.context=e}bind(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts/bind").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id","part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}control(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts/control").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id","part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}transition(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts/transition").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["broadcastStatus","id","part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveBroadcasts").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Livebroadcasts=Resource$Livebroadcasts;class Resource$Livechatbans{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/bans").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/bans").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Livechatbans=Resource$Livechatbans;class Resource$Livechatmessages{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/messages").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/messages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/messages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["liveChatId","part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Livechatmessages=Resource$Livechatmessages;class Resource$Livechatmoderators{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/moderators").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/moderators").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveChat/moderators").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["liveChatId","part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Livechatmoderators=Resource$Livechatmoderators;class Resource$Livestreams{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveStreams").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveStreams").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveStreams").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/liveStreams").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Livestreams=Resource$Livestreams;class Resource$Members{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/members").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Members=Resource$Members;class Resource$Membershipslevels{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/membershipsLevels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Membershipslevels=Resource$Membershipslevels;class Resource$Playlistitems{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlistItems").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlistItems").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlistItems").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlistItems").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Playlistitems=Resource$Playlistitems;class Resource$Playlists{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlists").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlists").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/playlists").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Playlists=Resource$Playlists;class Resource$Search{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Search=Resource$Search;class Resource$Sponsors{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/sponsors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sponsors=Resource$Sponsors;class Resource$Subscriptions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subscriptions=Resource$Subscriptions;class Resource$Superchatevents{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/superChatEvents").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Superchatevents=Resource$Superchatevents;class Resource$Thumbnails{constructor(e){this.context=e}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/thumbnails/set").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/thumbnails/set").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["videoId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Thumbnails=Resource$Thumbnails;class Resource$Videoabusereportreasons{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videoAbuseReportReasons").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videoabusereportreasons=Resource$Videoabusereportreasons;class Resource$Videocategories{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videoCategories").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videocategories=Resource$Videocategories;class Resource$Videos{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRating(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos/getRating").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/videos").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos/rate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id","rating"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reportAbuse(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos/reportAbuse").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/videos").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["part"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videos=Resource$Videos;class Resource$Watermarks{constructor(e){this.context=e}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/watermarks/set").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/youtube/v3/watermarks/set").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["channelId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unset(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/youtube/v3/watermarks/unset").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["channelId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Watermarks=Resource$Watermarks})(o=t.youtube_v3||(t.youtube_v3={}))},function(e){var t={}.toString;e.exports=Array.isArray||function(e){return t.call(e)=="[object Array]"}},,function(e,t,s){"use strict";var r=s(822);var o=Object.keys||function(e){var t=[];for(var s in e){t.push(s)}return t};e.exports=Duplex;var n=Object.create(s(683));n.inherits=s(689);var i=s(676);var c=s(272);n.inherits(Duplex,i);{var u=o(c.prototype);for(var a=0;a>>8&255;c^=i&255;c^=c>>>4;s=s<<8&65535;s^=c;c=c<<5&65535;s^=c;c=c<<7&65535;s^=c}return s});t.default=u},function(e,t,s){"use strict";var r=s(822);e.exports=Writable;function WriteReq(e,t,s){this.chunk=e;this.encoding=t;this.callback=s;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;var n;Writable.WritableState=WritableState;var i=Object.create(s(683));i.inherits=s(689);var c={deprecate:s(917)};var u=s(265);var a=s(965).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=s(283);i.inherits(Writable,u);function nop(){}function WritableState(e,t){n=n||s(264);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.writableObjectMode;var o=e.highWaterMark;var i=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var h;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){h=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(h.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{h=function(e){return e instanceof this}}function Writable(e){n=n||s(264);if(!h.call(Writable,this)&&!(this instanceof n)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var s=new Error("write after end");e.emit("error",s);r.nextTick(t,s)}function validChunk(e,t,s,o){var n=true;var i=false;if(s===null){i=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!t.objectMode){i=new TypeError("Invalid non-string/buffer chunk")}if(i){e.emit("error",i);r.nextTick(o,i);n=false}return n}Writable.prototype.write=function(e,t,s){var r=this._writableState;var o=false;var n=!r.objectMode&&_isUint8Array(e);if(n&&!a.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){s=t;t=null}if(n)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof s!=="function")s=nop;if(r.ended)writeAfterEnd(this,s);else if(n||validChunk(this,r,e,s)){r.pendingcb++;o=writeOrBuffer(this,r,n,e,t,s)}return o};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,s){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=a.from(t,s)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,s,r,o,n){if(!s){var i=decodeChunk(t,r,o);if(r!==i){s=true;o="buffer";r=i}}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length{if(e[t]===undefined){s.push(t)}});return s.length>0?s:null}function createAPIRequest(e,t){if(t){createAPIRequestAsync(e).then(e=>t(null,e),t)}else{return createAPIRequestAsync(e)}}t.createAPIRequest=createAPIRequest;async function createAPIRequestAsync(e){const t=Object.assign({},e.options);const s=e.context.google&&e.context.google._options&&e.context.google._options.params?e.context.google._options.params:{};const h=e.context&&e.context._options&&e.context._options.params?e.context._options.params:{};const d=Object.assign({},s,h,e.params);const l=e.context.google&&e.context.google._options&&e.context.google._options.userAgentDirectives?e.context.google._options.userAgentDirectives:[];const P=e.context&&e.context._options&&e.context._options.userAgentDirectives?e.context._options.userAgentDirectives:[];const y=Object.assign([],l,P,e.options.userAgentDirectives)||[];const I=d.media||{};let R=d.requestBody;if(!d.requestBody&&d.resource&&(!e.requiredParams.includes("resource")||typeof d.resource!=="string")){R=d.resource;delete d.resource}delete d.requestBody;let g=d.auth||e.context._options.auth||(e.context.google?e.context.google._options.auth:null);const q=typeof I.body==="string"?"text/plain":"application/octet-stream";delete d.media;delete d.auth;const x=d.headers||{};populateAPIHeader(x);delete d.headers;Object.keys(d).forEach(e=>{if(e.slice(-1)==="_"){const t=e.slice(0,-1);d[t]=d[e];delete d[e]}});const $=getMissingParams(d,e.requiredParams);if($){throw new Error("Missing required parameters: "+$.join(", "))}if(t.url){t.url=i.parse(t.url).expand(d)}if(e.mediaUrl){e.mediaUrl=i.parse(e.mediaUrl).expand(d)}if(e.context._options.rootUrl!==undefined&&t.url!==undefined){const s=t.url.slice(e.context._options.rootUrl.length);t.url=f.resolve(e.context._options.rootUrl,s)}t.paramsSerializer=(e=>{return o.stringify(e,{arrayFormat:"repeat"})});e.pathParams.forEach(t=>{delete d[t];if(e.context&&e.context._options&&e.context._options.params){delete e.context._options.params[t]}});if(typeof g==="string"){d.key=d.key||g;g=undefined}function multipartUpload(e){const s=c.v4();const r=`--${s}--`;const o=new n.PassThrough({flush(e){this.push("\r\n");this.push(r);e()}});const i=new ProgressStream;const u=isReadableStream(e[1].body);x["Content-Type"]=`multipart/related; boundary=${s}`;for(const r of e){const e=`--${s}\r\nContent-Type: ${r["Content-Type"]}\r\n\r\n`;o.push(e);if(typeof r.body==="string"){o.push(r.body);o.push("\r\n")}else{i.on("progress",e=>{if(t.onUploadProgress){t.onUploadProgress({bytesRead:e})}});r.body.pipe(i).pipe(o)}}if(!u){o.push(r);o.push(null)}t.data=o}function browserMultipartUpload(e){const s=c.v4();const r=`--${s}--`;x["Content-Type"]=`multipart/related; boundary=${s}`;let o="";for(const t of e){const e=`--${s}\r\nContent-Type: ${t["Content-Type"]}\r\n\r\n`;o+=e;if(typeof t.body==="string"){o+=t.body;o+="\r\n"}}o+=r;t.data=o}if(e.mediaUrl&&I.body){t.url=e.mediaUrl;if(R){d.uploadType="multipart";const e=[{"Content-Type":"application/json",body:JSON.stringify(R)},{"Content-Type":I.mimeType||R&&R.mimeType||q,body:I.body}];if(!a.isBrowser()){multipartUpload(e)}else{browserMultipartUpload(e)}}else{d.uploadType="media";Object.assign(x,{"Content-Type":I.mimeType||q});t.data=I.body}}else{t.data=R||undefined}t.headers=u(true,t.headers||{},x);t.params=d;if(!a.isBrowser()){t.headers["Accept-Encoding"]="gzip";y.push({product:"google-api-nodejs-client",version:p.version,comment:"gzip"});const e=y.map(e=>{let t=`${e.product}/${e.version}`;if(e.comment){t+=` (${e.comment})`}return t}).join(" ");t.headers["User-Agent"]=e}if(!t.validateStatus){t.validateStatus=(e=>{return e>=200&&e<300||e===304})}t.retry=t.retry===undefined?true:t.retry;const j=u(true,{},e.context.google?e.context.google._options:{},e.context._options,t);delete j.auth;if(g&&typeof g==="object"){return g.request(j)}else{return(new r.DefaultTransporter).request(j)}}class ProgressStream extends n.Transform{constructor(){super(...arguments);this.bytesRead=0}_transform(e,t,s){this.bytesRead+=e.length;this.emit("progress",this.bytesRead);this.push(e);s()}}function populateAPIHeader(e){if(!a.isBrowser()){e["x-goog-api-client"]=`gdcl/${p.version} gl-node/${process.versions.node}`}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.docs=t.VERSIONS=void 0;const r=s(927);const o=s(655);t.VERSIONS={v1:o.docs_v1.Docs};function docs(e){return r.getAPI("docs",e,t.VERSIONS,this)}t.docs=docs;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(421);var o=e.exports;(function(){"use strict";function f(e){return e<10?"0"+e:e}var e=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,s,n,i={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},c;function quote(e){t.lastIndex=0;return t.test(e)?'"'+e.replace(t,function(e){var t=i[e];return typeof t==="string"?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function str(e,t){var o,i,u,a,f=s,p,h=t[e],d=h!=null&&(h instanceof r||r.isBigNumber(h));if(h&&typeof h==="object"&&typeof h.toJSON==="function"){h=h.toJSON(e)}if(typeof c==="function"){h=c.call(t,e,h)}switch(typeof h){case"string":if(d){return h}else{return quote(h)}case"number":return isFinite(h)?String(h):"null";case"boolean":case"null":return String(h);case"object":if(!h){return"null"}s+=n;p=[];if(Object.prototype.toString.apply(h)==="[object Array]"){a=h.length;for(o=0;o=t}function expand(e,t){var s=[];var n=o("{","}",e);if(!n||/\$$/.test(n.pre))return[e];var i=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body);var u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body);var a=i||u;var f=n.body.indexOf(",")>=0;if(!a&&!f){if(n.post.match(/,.*\}/)){e=n.pre+"{"+n.body+c+n.post;return expand(e)}return[e]}var p;if(a){p=n.body.split(/\.\./)}else{p=parseCommaParts(n.body);if(p.length===1){p=expand(p[0],false).map(embrace);if(p.length===1){var h=n.post.length?expand(n.post,false):[""];return h.map(function(e){return n.pre+p[0]+e})}}}var d=n.pre;var h=n.post.length?expand(n.post,false):[""];var l;if(a){var P=numeric(p[0]);var y=numeric(p[1]);var I=Math.max(p[0].length,p[1].length);var R=p.length==3?Math.abs(numeric(p[2])):1;var g=lte;var q=y0){var A=new Array(v+1).join("0");if($<0)j="-"+A+j.slice(1);else j=A+j}}}l.push(j)}}else{l=r(p,function(e){return expand(e,false)})}for(var m=0;m0){e.params={scopes:this.scopes.join(",")}}s=await o.instance(e)}catch(e){e.message=`Could not refresh access token: ${e.message}`;this.wrapError(e);throw e}const r=s;if(s&&s.expires_in){r.expiry_date=(new Date).getTime()+s.expires_in*1e3;delete r.expires_in}this.emit("tokens",r);return{tokens:r,res:null}}async fetchIdToken(e){const t=`service-accounts/${this.serviceAccountEmail}/identity`+`?format=full&audience=${e}`;let s;try{const e={property:t};s=await o.instance(e)}catch(e){e.message=`Could not fetch ID token: ${e.message}`;throw e}return s}wrapError(e){const t=e.response;if(t&&t.status){e.code=t.status.toString();if(t.status===403){e.message="A Forbidden error was returned while attempting to retrieve an access "+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have the correct permission scopes specified: "+e.message}else if(t.status===404){e.message="A Not Found error was returned while attempting to retrieve an access"+"token for the Compute Engine built-in service account. This may be because the Compute "+"Engine instance does not have any permission scopes specified: "+e.message}}}}t.Compute=Compute},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.oauth2=t.VERSIONS=void 0;const r=s(927);const o=s(980);t.VERSIONS={v2:o.oauth2_v2.Oauth2};function oauth2(e){return r.getAPI("oauth2",e,t.VERSIONS,this)}t.oauth2=oauth2;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.games=t.VERSIONS=void 0;const r=s(927);const o=s(437);t.VERSIONS={v1:o.games_v1.Games};function games(e){return r.getAPI("games",e,t.VERSIONS,this)}t.games=games;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clouderrorreporting_v1beta1=void 0;const r=s(927);var o;(function(e){class Clouderrorreporting{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Clouderrorreporting=Clouderrorreporting;class Resource$Projects{constructor(e){this.context=e;this.events=new Resource$Projects$Events(this.context);this.groups=new Resource$Projects$Groups(this.context);this.groupStats=new Resource$Projects$Groupstats(this.context)}deleteEvents(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+projectName}/events").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectName"],pathParams:["projectName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Events{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+projectName}/events").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectName"],pathParams:["projectName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}report(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+projectName}/events:report").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectName"],pathParams:["projectName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Events=Resource$Projects$Events;class Resource$Projects$Groups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+groupName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["groupName"],pathParams:["groupName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Groups=Resource$Projects$Groups;class Resource$Projects$Groupstats{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouderrorreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+projectName}/groupStats").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectName"],pathParams:["projectName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Groupstats=Resource$Projects$Groupstats})(o=t.clouderrorreporting_v1beta1||(t.clouderrorreporting_v1beta1={}))},function(e,t,s){"use strict";var r=s(822);e.exports=Writable;function WriteReq(e,t,s){this.chunk=e;this.encoding=t;this.callback=s;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var o=!process.browser&&["v0.10","v0.9."].indexOf(process.version.slice(0,5))>-1?setImmediate:r.nextTick;var n;Writable.WritableState=WritableState;var i=Object.create(s(683));i.inherits=s(689);var c={deprecate:s(917)};var u=s(903);var a=s(78).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=s(874);i.inherits(Writable,u);function nop(){}function WritableState(e,t){n=n||s(722);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.writableObjectMode;var o=e.highWaterMark;var i=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var h;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){h=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(h.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{h=function(e){return e instanceof this}}function Writable(e){n=n||s(722);if(!h.call(Writable,this)&&!(this instanceof n)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var s=new Error("write after end");e.emit("error",s);r.nextTick(t,s)}function validChunk(e,t,s,o){var n=true;var i=false;if(s===null){i=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!t.objectMode){i=new TypeError("Invalid non-string/buffer chunk")}if(i){e.emit("error",i);r.nextTick(o,i);n=false}return n}Writable.prototype.write=function(e,t,s){var r=this._writableState;var o=false;var n=!r.objectMode&&_isUint8Array(e);if(n&&!a.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){s=t;t=null}if(n)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof s!=="function")s=nop;if(r.ended)writeAfterEnd(this,s);else if(n||validChunk(this,r,e,s)){r.pendingcb++;o=writeOrBuffer(this,r,n,e,t,s)}return o};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,s){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=a.from(t,s)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,s,r,o,n){if(!s){var i=decodeChunk(t,r,o);if(r!==i){s=true;o="buffer";r=i}}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length0){return parse(e)}else if(s==="number"&&isFinite(e)){return t.long?fmtLong(e):fmtShort(e)}throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function parse(e){e=String(e);if(e.length>100){return}var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(!c){return}var u=parseFloat(c[1]);var a=(c[2]||"ms").toLowerCase();switch(a){case"years":case"year":case"yrs":case"yr":case"y":return u*i;case"weeks":case"week":case"w":return u*n;case"days":case"day":case"d":return u*o;case"hours":case"hour":case"hrs":case"hr":case"h":return u*r;case"minutes":case"minute":case"mins":case"min":case"m":return u*s;case"seconds":case"second":case"secs":case"sec":case"s":return u*t;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return u;default:return undefined}}function fmtShort(e){var n=Math.abs(e);if(n>=o){return Math.round(e/o)+"d"}if(n>=r){return Math.round(e/r)+"h"}if(n>=s){return Math.round(e/s)+"m"}if(n>=t){return Math.round(e/t)+"s"}return e+"ms"}function fmtLong(e){var n=Math.abs(e);if(n>=o){return plural(e,n,o,"day")}if(n>=r){return plural(e,n,r,"hour")}if(n>=s){return plural(e,n,s,"minute")}if(n>=t){return plural(e,n,t,"second")}return e+" ms"}function plural(e,t,s,r){var o=t>=s*1.5;return Math.round(e/s)+" "+r+(o?"s":"")}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudprofiler_v2=void 0;const r=s(927);var o;(function(e){class Cloudprofiler{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudprofiler=Cloudprofiler;class Resource$Projects{constructor(e){this.context=e;this.profiles=new Resource$Projects$Profiles(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Profiles{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudprofiler.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/profiles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createOffline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudprofiler.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/profiles:createOffline").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudprofiler.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Profiles=Resource$Projects$Profiles})(o=t.cloudprofiler_v2||(t.cloudprofiler_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.appengine=t.VERSIONS=void 0;const r=s(927);const o=s(840);const n=s(765);const i=s(682);t.VERSIONS={v1:o.appengine_v1.Appengine,v1alpha:n.appengine_v1alpha.Appengine,v1beta:i.appengine_v1beta.Appengine};function appengine(e){return r.getAPI("appengine",e,t.VERSIONS,this)}t.appengine=appengine;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudasset_v1p4beta1=void 0;const r=s(927);var o;(function(e){class Cloudasset{constructor(e,t){this.context={_options:e||{},google:t};this.v1p4beta1=new Resource$V1p4beta1(this.context)}}e.Cloudasset=Cloudasset;class Resource$V1p4beta1{constructor(e){this.context=e}analyzeIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudasset.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p4beta1/{+parent}:analyzeIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}exportIamPolicyAnalysis(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudasset.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p4beta1/{+parent}:exportIamPolicyAnalysis").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$V1p4beta1=Resource$V1p4beta1})(o=t.cloudasset_v1p4beta1||(t.cloudasset_v1p4beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.kgsearch=t.VERSIONS=void 0;const r=s(927);const o=s(38);t.VERSIONS={v1:o.kgsearch_v1.Kgsearch};function kgsearch(e){return r.getAPI("kgsearch",e,t.VERSIONS,this)}t.kgsearch=kgsearch;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.admob=t.VERSIONS=void 0;const r=s(927);const o=s(549);t.VERSIONS={v1:o.admob_v1.Admob};function admob(e){return r.getAPI("admob",e,t.VERSIONS,this)}t.admob=admob;const n=new r.AuthPlus;t.auth=n},function(e){"use strict";const t=e=>e!==null&&typeof e==="object"&&typeof e.pipe==="function";t.writable=(e=>t(e)&&e.writable!==false&&typeof e._write==="function"&&typeof e._writableState==="object");t.readable=(e=>t(e)&&e.readable!==false&&typeof e._read==="function"&&typeof e._readableState==="object");t.duplex=(e=>t.writable(e)&&t.readable(e));t.transform=(e=>t.duplex(e)&&typeof e._transform==="function"&&typeof e._transformState==="object");e.exports=t},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.storagetransfer=t.VERSIONS=void 0;const r=s(927);const o=s(189);t.VERSIONS={v1:o.storagetransfer_v1.Storagetransfer};function storagetransfer(e){return r.getAPI("storagetransfer",e,t.VERSIONS,this)}t.storagetransfer=storagetransfer;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudbuild_v1alpha1=void 0;const r=s(927);var o;(function(e){class Cloudbuild{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudbuild=Cloudbuild;class Resource$Projects{constructor(e){this.context=e;this.workerPools=new Resource$Projects$Workerpools(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Workerpools{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/workerPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/workerPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Workerpools=Resource$Projects$Workerpools})(o=t.cloudbuild_v1alpha1||(t.cloudbuild_v1alpha1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adexchangebuyer2_v2beta1=void 0;const r=s(927);var o;(function(e){class Adexchangebuyer2{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.bidders=new Resource$Bidders(this.context)}}e.Adexchangebuyer2=Adexchangebuyer2;class Resource$Accounts{constructor(e){this.context=e;this.clients=new Resource$Accounts$Clients(this.context);this.creatives=new Resource$Accounts$Creatives(this.context);this.finalizedProposals=new Resource$Accounts$Finalizedproposals(this.context);this.products=new Resource$Accounts$Products(this.context);this.proposals=new Resource$Accounts$Proposals(this.context);this.publisherProfiles=new Resource$Accounts$Publisherprofiles(this.context)}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Clients{constructor(e){this.context=e;this.invitations=new Resource$Accounts$Clients$Invitations(this.context);this.users=new Resource$Accounts$Clients$Users(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","clientAccountId"],pathParams:["accountId","clientAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","clientAccountId"],pathParams:["accountId","clientAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Clients=Resource$Accounts$Clients;class Resource$Accounts$Clients$Invitations{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","clientAccountId"],pathParams:["accountId","clientAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","clientAccountId","invitationId"],pathParams:["accountId","clientAccountId","invitationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","clientAccountId"],pathParams:["accountId","clientAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Clients$Invitations=Resource$Accounts$Clients$Invitations;class Resource$Accounts$Clients$Users{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","clientAccountId","userId"],pathParams:["accountId","clientAccountId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","clientAccountId"],pathParams:["accountId","clientAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","clientAccountId","userId"],pathParams:["accountId","clientAccountId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Clients$Users=Resource$Accounts$Clients$Users;class Resource$Accounts$Creatives{constructor(e){this.context=e;this.dealAssociations=new Resource$Accounts$Creatives$Dealassociations(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stopWatching(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}watch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Creatives=Resource$Accounts$Creatives;class Resource$Accounts$Creatives$Dealassociations{constructor(e){this.context=e}add(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}remove(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","creativeId"],pathParams:["accountId","creativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Creatives$Dealassociations=Resource$Accounts$Creatives$Dealassociations;class Resource$Accounts$Finalizedproposals{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/finalizedProposals").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Finalizedproposals=Resource$Accounts$Finalizedproposals;class Resource$Accounts$Products{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","productId"],pathParams:["accountId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/products").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Products=Resource$Accounts$Products;class Resource$Accounts$Proposals{constructor(e){this.context=e}accept(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addNote(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}cancelNegotiation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}completeSetup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pause(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/proposals/{proposalId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","proposalId"],pathParams:["accountId","proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Proposals=Resource$Accounts$Proposals;class Resource$Accounts$Publisherprofiles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","publisherProfileId"],pathParams:["accountId","publisherProfileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/accounts/{accountId}/publisherProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Publisherprofiles=Resource$Accounts$Publisherprofiles;class Resource$Bidders{constructor(e){this.context=e;this.accounts=new Resource$Bidders$Accounts(this.context);this.filterSets=new Resource$Bidders$Filtersets(this.context)}}e.Resource$Bidders=Resource$Bidders;class Resource$Bidders$Accounts{constructor(e){this.context=e;this.filterSets=new Resource$Bidders$Accounts$Filtersets(this.context)}}e.Resource$Bidders$Accounts=Resource$Bidders$Accounts;class Resource$Bidders$Accounts$Filtersets{constructor(e){this.context=e;this.bidMetrics=new Resource$Bidders$Accounts$Filtersets$Bidmetrics(this.context);this.bidResponseErrors=new Resource$Bidders$Accounts$Filtersets$Bidresponseerrors(this.context);this.bidResponsesWithoutBids=new Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids(this.context);this.filteredBidRequests=new Resource$Bidders$Accounts$Filtersets$Filteredbidrequests(this.context);this.filteredBids=new Resource$Bidders$Accounts$Filtersets$Filteredbids(this.context);this.impressionMetrics=new Resource$Bidders$Accounts$Filtersets$Impressionmetrics(this.context);this.losingBids=new Resource$Bidders$Accounts$Filtersets$Losingbids(this.context);this.nonBillableWinningBids=new Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+ownerName}/filterSets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["ownerName"],pathParams:["ownerName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+ownerName}/filterSets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["ownerName"],pathParams:["ownerName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets=Resource$Bidders$Accounts$Filtersets;class Resource$Bidders$Accounts$Filtersets$Bidmetrics{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Bidmetrics=Resource$Bidders$Accounts$Filtersets$Bidmetrics;class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidResponseErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Bidresponseerrors=Resource$Bidders$Accounts$Filtersets$Bidresponseerrors;class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidResponsesWithoutBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids=Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids;class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBidRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Filteredbidrequests=Resource$Bidders$Accounts$Filtersets$Filteredbidrequests;class Resource$Bidders$Accounts$Filtersets$Filteredbids{constructor(e){this.context=e;this.creatives=new Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives(this.context);this.details=new Resource$Bidders$Accounts$Filtersets$Filteredbids$Details(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Filteredbids=Resource$Bidders$Accounts$Filtersets$Filteredbids;class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName","creativeStatusId"],pathParams:["creativeStatusId","filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives=Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives;class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName","creativeStatusId"],pathParams:["creativeStatusId","filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Filteredbids$Details=Resource$Bidders$Accounts$Filtersets$Filteredbids$Details;class Resource$Bidders$Accounts$Filtersets$Impressionmetrics{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/impressionMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Impressionmetrics=Resource$Bidders$Accounts$Filtersets$Impressionmetrics;class Resource$Bidders$Accounts$Filtersets$Losingbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/losingBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Losingbids=Resource$Bidders$Accounts$Filtersets$Losingbids;class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/nonBillableWinningBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids=Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids;class Resource$Bidders$Filtersets{constructor(e){this.context=e;this.bidMetrics=new Resource$Bidders$Filtersets$Bidmetrics(this.context);this.bidResponseErrors=new Resource$Bidders$Filtersets$Bidresponseerrors(this.context);this.bidResponsesWithoutBids=new Resource$Bidders$Filtersets$Bidresponseswithoutbids(this.context);this.filteredBidRequests=new Resource$Bidders$Filtersets$Filteredbidrequests(this.context);this.filteredBids=new Resource$Bidders$Filtersets$Filteredbids(this.context);this.impressionMetrics=new Resource$Bidders$Filtersets$Impressionmetrics(this.context);this.losingBids=new Resource$Bidders$Filtersets$Losingbids(this.context);this.nonBillableWinningBids=new Resource$Bidders$Filtersets$Nonbillablewinningbids(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+ownerName}/filterSets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["ownerName"],pathParams:["ownerName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+ownerName}/filterSets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["ownerName"],pathParams:["ownerName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets=Resource$Bidders$Filtersets;class Resource$Bidders$Filtersets$Bidmetrics{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Bidmetrics=Resource$Bidders$Filtersets$Bidmetrics;class Resource$Bidders$Filtersets$Bidresponseerrors{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidResponseErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Bidresponseerrors=Resource$Bidders$Filtersets$Bidresponseerrors;class Resource$Bidders$Filtersets$Bidresponseswithoutbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/bidResponsesWithoutBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Bidresponseswithoutbids=Resource$Bidders$Filtersets$Bidresponseswithoutbids;class Resource$Bidders$Filtersets$Filteredbidrequests{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBidRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Filteredbidrequests=Resource$Bidders$Filtersets$Filteredbidrequests;class Resource$Bidders$Filtersets$Filteredbids{constructor(e){this.context=e;this.creatives=new Resource$Bidders$Filtersets$Filteredbids$Creatives(this.context);this.details=new Resource$Bidders$Filtersets$Filteredbids$Details(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Filteredbids=Resource$Bidders$Filtersets$Filteredbids;class Resource$Bidders$Filtersets$Filteredbids$Creatives{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName","creativeStatusId"],pathParams:["creativeStatusId","filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Filteredbids$Creatives=Resource$Bidders$Filtersets$Filteredbids$Creatives;class Resource$Bidders$Filtersets$Filteredbids$Details{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName","creativeStatusId"],pathParams:["creativeStatusId","filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Filteredbids$Details=Resource$Bidders$Filtersets$Filteredbids$Details;class Resource$Bidders$Filtersets$Impressionmetrics{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/impressionMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Impressionmetrics=Resource$Bidders$Filtersets$Impressionmetrics;class Resource$Bidders$Filtersets$Losingbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/losingBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Losingbids=Resource$Bidders$Filtersets$Losingbids;class Resource$Bidders$Filtersets$Nonbillablewinningbids{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexchangebuyer.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+filterSetName}/nonBillableWinningBids").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["filterSetName"],pathParams:["filterSetName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bidders$Filtersets$Nonbillablewinningbids=Resource$Bidders$Filtersets$Nonbillablewinningbids})(o=t.adexchangebuyer2_v2beta1||(t.adexchangebuyer2_v2beta1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.secretmanager=t.VERSIONS=void 0;const r=s(927);const o=s(589);const n=s(2);t.VERSIONS={v1:o.secretmanager_v1.Secretmanager,v1beta1:n.secretmanager_v1beta1.Secretmanager};function secretmanager(e){return r.getAPI("secretmanager",e,t.VERSIONS,this)}t.secretmanager=secretmanager;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(449);class IdTokenClient extends r.OAuth2Client{constructor(e){super();this.targetAudience=e.targetAudience;this.idTokenProvider=e.idTokenProvider}async getRequestMetadataAsync(e){if(!this.credentials.id_token||(this.credentials.expiry_date||0)="0"&&n<="9"){o+=n;a()}if(n==="."){o+=".";while(a()&&n>="0"&&n<="9"){o+=n}}if(n==="e"||n==="E"){o+=n;a();if(n==="-"||n==="+"){o+=n;a()}while(n>="0"&&n<="9"){o+=n;a()}}e=+o;if(!isFinite(e)){u("Bad number")}else{if(r==null)r=s(421);if(o.length>15)return t.storeAsString===true?o:new r(o);return e}},p=function(){var e,t,s="",r;if(n==='"'){while(a()){if(n==='"'){a();return s}if(n==="\\"){a();if(n==="u"){r=0;for(t=0;t<4;t+=1){e=parseInt(a(),16);if(!isFinite(e)){break}r=r*16+e}s+=String.fromCharCode(r)}else if(typeof i[n]==="string"){s+=i[n]}else{break}}else{s+=n}}}u("Bad string")},h=function(){while(n&&n<=" "){a()}},d=function(){switch(n){case"t":a("t");a("r");a("u");a("e");return true;case"f":a("f");a("a");a("l");a("s");a("e");return false;case"n":a("n");a("u");a("l");a("l");return null}u("Unexpected '"+n+"'")},l,P=function(){var e=[];if(n==="["){a("[");h();if(n==="]"){a("]");return e}while(n){e.push(l());h();if(n==="]"){a("]");return e}a(",");h()}}u("Bad array")},y=function(){var e,s={};if(n==="{"){a("{");h();if(n==="}"){a("}");return s}while(n){e=p();h();a(":");if(t.strict===true&&Object.hasOwnProperty.call(s,e)){u('Duplicate key "'+e+'"')}s[e]=l();h();if(n==="}"){a("}");return s}a(",");h()}}u("Bad object")};l=function(){h();switch(n){case"{":return y();case"[":return P();case'"':return p();case"-":return f();default:return n>="0"&&n<="9"?f():d()}};return function(e,t){var s;c=e+"";o=0;n=" ";s=l();h();if(n){u("Syntax error")}return typeof t==="function"?function walk(e,s){var r,o,n=e[s];if(n&&typeof n==="object"){Object.keys(n).forEach(function(e){o=walk(n,e);if(o!==undefined){n[e]=o}else{delete n[e]}})}return t.call(e,s,n)}({"":s},""):s}};e.exports=o},function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};const o=r(s(40));function createHttpsProxyAgent(e){return new o.default(e)}(function(e){e.HttpsProxyAgent=o.default;e.prototype=o.default.prototype})(createHttpsProxyAgent||(createHttpsProxyAgent={}));e.exports=createHttpsProxyAgent},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.deploymentmanager_v2beta=void 0;const r=s(927);var o;(function(e){class Deploymentmanager{constructor(e,t){this.context={_options:e||{},google:t};this.compositeTypes=new Resource$Compositetypes(this.context);this.deployments=new Resource$Deployments(this.context);this.manifests=new Resource$Manifests(this.context);this.operations=new Resource$Operations(this.context);this.resources=new Resource$Resources(this.context);this.typeProviders=new Resource$Typeproviders(this.context);this.types=new Resource$Types(this.context)}}e.Deploymentmanager=Deploymentmanager;class Resource$Compositetypes{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","compositeType"],pathParams:["compositeType","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","compositeType"],pathParams:["compositeType","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","compositeType"],pathParams:["compositeType","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","compositeType"],pathParams:["compositeType","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Compositetypes=Resource$Compositetypes;class Resource$Deployments{constructor(e){this.context=e}cancelPreview(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Deployments=Resource$Deployments;class Resource$Manifests{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","deployment","manifest"],pathParams:["deployment","manifest","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Manifests=Resource$Manifests;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Resources{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","deployment","resource"],pathParams:["deployment","project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","deployment"],pathParams:["deployment","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resources=Resource$Resources;class Resource$Typeproviders{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","typeProvider"],pathParams:["project","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","typeProvider"],pathParams:["project","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getType(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","typeProvider","type"],pathParams:["project","type","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listTypes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","typeProvider"],pathParams:["project","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","typeProvider"],pathParams:["project","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","typeProvider"],pathParams:["project","typeProvider"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Typeproviders=Resource$Typeproviders;class Resource$Types{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/deploymentmanager/v2beta/projects/{project}/global/types").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Types=Resource$Types})(o=t.deploymentmanager_v2beta||(t.deploymentmanager_v2beta={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.slides=t.VERSIONS=void 0;const r=s(927);const o=s(759);t.VERSIONS={v1:o.slides_v1.Slides};function slides(e){return r.getAPI("slides",e,t.VERSIONS,this)}t.slides=slides;const n=new r.AuthPlus;t.auth=n},,,function(e,t,s){var r=s(413);if(process.env.READABLE_STREAM==="disable"&&r){e.exports=r;t=e.exports=r.Readable;t.Readable=r.Readable;t.Writable=r.Writable;t.Duplex=r.Duplex;t.Transform=r.Transform;t.PassThrough=r.PassThrough;t.Stream=r}else{t=e.exports=s(676);t.Stream=r||t;t.Readable=t;t.Writable=s(272);t.Duplex=s(264);t.Transform=s(392);t.PassThrough=s(958)}},,function(e){var t=9007199254740991;var s="[object Arguments]",r="[object Function]",o="[object GeneratorFunction]";var n=typeof global=="object"&&global&&global.Object===Object&&global;var i=typeof self=="object"&&self&&self.Object===Object&&self;var c=n||i||Function("return this")();function arrayPush(e,t){var s=-1,r=t.length,o=e.length;while(++s0&&s(c)){if(t>1){baseFlatten(c,t-1,s,r,o)}else{arrayPush(o,c)}}else if(!r){o[o.length]=c}}return o}function isFlattenable(e){return l(e)||isArguments(e)||!!(d&&e&&e[d])}function flatten(e){var t=e?e.length:0;return t?baseFlatten(e,1):[]}function isArguments(e){return isArrayLikeObject(e)&&a.call(e,"callee")&&(!h.call(e,"callee")||f.call(e)==s)}var l=Array.isArray;function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}function isArrayLikeObject(e){return isObjectLike(e)&&isArrayLike(e)}function isFunction(e){var t=isObject(e)?f.call(e):"";return t==r||t==o}function isLength(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=flatten},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(979);const o=s(702);const n={alg:"RS256",typ:"JWT"};class JWTAccess{constructor(e,t,s){this.cache=new o({max:500,maxAge:60*60*1e3});this.email=e;this.key=t;this.keyId=s}getRequestHeaders(e,t){const s=this.cache.get(e);if(s){return s}const o=Math.floor((new Date).getTime()/1e3);const i=o+3600;const c={iss:this.email,sub:this.email,aud:e,exp:i,iat:o};if(t){for(const e in c){if(t[e]){throw new Error(`The '${e}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`)}}}const u=this.keyId?{...n,kid:this.keyId}:n;const a=Object.assign(c,t);const f=r.sign({header:u,payload:a,secret:this.key});const p={Authorization:`Bearer ${f}`};this.cache.set(e,p);return p}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id}fromStream(e,t){if(t){this.fromStreamAsync(e).then(e=>t(),t)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise((t,s)=>{if(!e){s(new Error("Must pass in a stream containing the service account auth settings."))}let r="";e.setEncoding("utf8").on("data",e=>r+=e).on("error",s).on("end",()=>{try{const e=JSON.parse(r);this.fromJSON(e);t()}catch(e){s(e)}})})}}t.JWTAccess=JWTAccess},,,function(e,t,s){var r=s(239);e.exports=r.jsbn=r.jsbn||{};var o;var n=0xdeadbeefcafe;var i=(n&16777215)==15715070;function BigInteger(e,t,s){this.data=[];if(e!=null)if("number"==typeof e)this.fromNumber(e,t,s);else if(t==null&&"string"!=typeof e)this.fromString(e,256);else this.fromString(e,t)}r.jsbn.BigInteger=BigInteger;function nbi(){return new BigInteger(null)}function am1(e,t,s,r,o,n){while(--n>=0){var i=t*this.data[e++]+s.data[r]+o;o=Math.floor(i/67108864);s.data[r++]=i&67108863}return o}function am2(e,t,s,r,o,n){var i=t&32767,c=t>>15;while(--n>=0){var u=this.data[e]&32767;var a=this.data[e++]>>15;var f=c*u+a*i;u=i*u+((f&32767)<<15)+s.data[r]+(o&1073741823);o=(u>>>30)+(f>>>15)+c*a+(o>>>30);s.data[r++]=u&1073741823}return o}function am3(e,t,s,r,o,n){var i=t&16383,c=t>>14;while(--n>=0){var u=this.data[e]&16383;var a=this.data[e++]>>14;var f=c*u+a*i;u=i*u+((f&16383)<<14)+s.data[r]+o;o=(u>>28)+(f>>14)+c*a;s.data[r++]=u&268435455}return o}if(typeof navigator==="undefined"){BigInteger.prototype.am=am3;o=28}else if(i&&navigator.appName=="Microsoft Internet Explorer"){BigInteger.prototype.am=am2;o=30}else if(i&&navigator.appName!="Netscape"){BigInteger.prototype.am=am1;o=26}else{BigInteger.prototype.am=am3;o=28}BigInteger.prototype.DB=o;BigInteger.prototype.DM=(1<=0;--t)e.data[t]=this.data[t];e.t=this.t;e.s=this.s}function bnpFromInt(e){this.t=1;this.s=e<0?-1:0;if(e>0)this.data[0]=e;else if(e<-1)this.data[0]=e+this.DV;else this.t=0}function nbv(e){var t=nbi();t.fromInt(e);return t}function bnpFromString(e,t){var s;if(t==16)s=4;else if(t==8)s=3;else if(t==256)s=8;else if(t==2)s=1;else if(t==32)s=5;else if(t==4)s=2;else{this.fromRadix(e,t);return}this.t=0;this.s=0;var r=e.length,o=false,n=0;while(--r>=0){var i=s==8?e[r]&255:intAt(e,r);if(i<0){if(e.charAt(r)=="-")o=true;continue}o=false;if(n==0)this.data[this.t++]=i;else if(n+s>this.DB){this.data[this.t-1]|=(i&(1<>this.DB-n}else this.data[this.t-1]|=i<=this.DB)n-=this.DB}if(s==8&&(e[0]&128)!=0){this.s=-1;if(n>0)this.data[this.t-1]|=(1<0&&this.data[this.t-1]==e)--this.t}function bnToString(e){if(this.s<0)return"-"+this.negate().toString(e);var t;if(e==16)t=4;else if(e==8)t=3;else if(e==2)t=1;else if(e==32)t=5;else if(e==4)t=2;else return this.toRadix(e);var s=(1<0){if(c>c)>0){o=true;n=int2char(r)}while(i>=0){if(c>(c+=this.DB-t)}else{r=this.data[i]>>(c-=t)&s;if(c<=0){c+=this.DB;--i}}if(r>0)o=true;if(o)n+=int2char(r)}}return o?n:"0"}function bnNegate(){var e=nbi();BigInteger.ZERO.subTo(this,e);return e}function bnAbs(){return this.s<0?this.negate():this}function bnCompareTo(e){var t=this.s-e.s;if(t!=0)return t;var s=this.t;t=s-e.t;if(t!=0)return this.s<0?-t:t;while(--s>=0)if((t=this.data[s]-e.data[s])!=0)return t;return 0}function nbits(e){var t=1,s;if((s=e>>>16)!=0){e=s;t+=16}if((s=e>>8)!=0){e=s;t+=8}if((s=e>>4)!=0){e=s;t+=4}if((s=e>>2)!=0){e=s;t+=2}if((s=e>>1)!=0){e=s;t+=1}return t}function bnBitLength(){if(this.t<=0)return 0;return this.DB*(this.t-1)+nbits(this.data[this.t-1]^this.s&this.DM)}function bnpDLShiftTo(e,t){var s;for(s=this.t-1;s>=0;--s)t.data[s+e]=this.data[s];for(s=e-1;s>=0;--s)t.data[s]=0;t.t=this.t+e;t.s=this.s}function bnpDRShiftTo(e,t){for(var s=e;s=0;--c){t.data[c+n+1]=this.data[c]>>r|i;i=(this.data[c]&o)<=0;--c)t.data[c]=0;t.data[n]=i;t.t=this.t+n+1;t.s=this.s;t.clamp()}function bnpRShiftTo(e,t){t.s=this.s;var s=Math.floor(e/this.DB);if(s>=this.t){t.t=0;return}var r=e%this.DB;var o=this.DB-r;var n=(1<>r;for(var i=s+1;i>r}if(r>0)t.data[this.t-s-1]|=(this.s&n)<>=this.DB}if(e.t>=this.DB}r+=this.s}else{r+=this.s;while(s>=this.DB}r-=e.s}t.s=r<0?-1:0;if(r<-1)t.data[s++]=this.DV+r;else if(r>0)t.data[s++]=r;t.t=s;t.clamp()}function bnpMultiplyTo(e,t){var s=this.abs(),r=e.abs();var o=s.t;t.t=o+r.t;while(--o>=0)t.data[o]=0;for(o=0;o=0)e.data[s]=0;for(s=0;s=t.DV){e.data[s+t.t]-=t.DV;e.data[s+t.t+1]=1}}if(e.t>0)e.data[e.t-1]+=t.am(s,t.data[s],e,2*s,0,1);e.s=0;e.clamp()}function bnpDivRemTo(e,t,s){var r=e.abs();if(r.t<=0)return;var o=this.abs();if(o.t0){r.lShiftTo(u,n);o.lShiftTo(u,s)}else{r.copyTo(n);o.copyTo(s)}var a=n.t;var f=n.data[a-1];if(f==0)return;var p=f*(1<1?n.data[a-2]>>this.F2:0);var h=this.FV/p,d=(1<=0){s.data[s.t++]=1;s.subTo(I,s)}BigInteger.ONE.dlShiftTo(a,I);I.subTo(n,n);while(n.t=0){var R=s.data[--P]==f?this.DM:Math.floor(s.data[P]*h+(s.data[P-1]+l)*d);if((s.data[P]+=n.am(0,R,s,y,0,a))0)s.rShiftTo(u,s);if(i<0)BigInteger.ZERO.subTo(s,s)}function bnMod(e){var t=nbi();this.abs().divRemTo(e,null,t);if(this.s<0&&t.compareTo(BigInteger.ZERO)>0)e.subTo(t,t);return t}function Classic(e){this.m=e}function cConvert(e){if(e.s<0||e.compareTo(this.m)>=0)return e.mod(this.m);else return e}function cRevert(e){return e}function cReduce(e){e.divRemTo(this.m,null,e)}function cMulTo(e,t,s){e.multiplyTo(t,s);this.reduce(s)}function cSqrTo(e,t){e.squareTo(t);this.reduce(t)}Classic.prototype.convert=cConvert;Classic.prototype.revert=cRevert;Classic.prototype.reduce=cReduce;Classic.prototype.mulTo=cMulTo;Classic.prototype.sqrTo=cSqrTo;function bnpInvDigit(){if(this.t<1)return 0;var e=this.data[0];if((e&1)==0)return 0;var t=e&3;t=t*(2-(e&15)*t)&15;t=t*(2-(e&255)*t)&255;t=t*(2-((e&65535)*t&65535))&65535;t=t*(2-e*t%this.DV)%this.DV;return t>0?this.DV-t:-t}function Montgomery(e){this.m=e;this.mp=e.invDigit();this.mpl=this.mp&32767;this.mph=this.mp>>15;this.um=(1<0)this.m.subTo(t,t);return t}function montRevert(e){var t=nbi();e.copyTo(t);this.reduce(t);return t}function montReduce(e){while(e.t<=this.mt2)e.data[e.t++]=0;for(var t=0;t>15)*this.mpl&this.um)<<15)&e.DM;s=t+this.m.t;e.data[s]+=this.m.am(0,r,e,t,0,this.m.t);while(e.data[s]>=e.DV){e.data[s]-=e.DV;e.data[++s]++}}e.clamp();e.drShiftTo(this.m.t,e);if(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function montSqrTo(e,t){e.squareTo(t);this.reduce(t)}function montMulTo(e,t,s){e.multiplyTo(t,s);this.reduce(s)}Montgomery.prototype.convert=montConvert;Montgomery.prototype.revert=montRevert;Montgomery.prototype.reduce=montReduce;Montgomery.prototype.mulTo=montMulTo;Montgomery.prototype.sqrTo=montSqrTo;function bnpIsEven(){return(this.t>0?this.data[0]&1:this.s)==0}function bnpExp(e,t){if(e>4294967295||e<1)return BigInteger.ONE;var s=nbi(),r=nbi(),o=t.convert(this),n=nbits(e)-1;o.copyTo(s);while(--n>=0){t.sqrTo(s,r);if((e&1<0)t.mulTo(r,o,s);else{var i=s;s=r;r=i}}return t.revert(s)}function bnModPowInt(e,t){var s;if(e<256||t.isEven())s=new Classic(t);else s=new Montgomery(t);return this.exp(e,s)}BigInteger.prototype.copyTo=bnpCopyTo;BigInteger.prototype.fromInt=bnpFromInt;BigInteger.prototype.fromString=bnpFromString;BigInteger.prototype.clamp=bnpClamp;BigInteger.prototype.dlShiftTo=bnpDLShiftTo;BigInteger.prototype.drShiftTo=bnpDRShiftTo;BigInteger.prototype.lShiftTo=bnpLShiftTo;BigInteger.prototype.rShiftTo=bnpRShiftTo;BigInteger.prototype.subTo=bnpSubTo;BigInteger.prototype.multiplyTo=bnpMultiplyTo;BigInteger.prototype.squareTo=bnpSquareTo;BigInteger.prototype.divRemTo=bnpDivRemTo;BigInteger.prototype.invDigit=bnpInvDigit;BigInteger.prototype.isEven=bnpIsEven;BigInteger.prototype.exp=bnpExp;BigInteger.prototype.toString=bnToString;BigInteger.prototype.negate=bnNegate;BigInteger.prototype.abs=bnAbs;BigInteger.prototype.compareTo=bnCompareTo;BigInteger.prototype.bitLength=bnBitLength;BigInteger.prototype.mod=bnMod;BigInteger.prototype.modPowInt=bnModPowInt;BigInteger.ZERO=nbv(0);BigInteger.ONE=nbv(1);function bnClone(){var e=nbi();this.copyTo(e);return e}function bnIntValue(){if(this.s<0){if(this.t==1)return this.data[0]-this.DV;else if(this.t==0)return-1}else if(this.t==1)return this.data[0];else if(this.t==0)return 0;return(this.data[1]&(1<<32-this.DB)-1)<>24}function bnShortValue(){return this.t==0?this.s:this.data[0]<<16>>16}function bnpChunkSize(e){return Math.floor(Math.LN2*this.DB/Math.log(e))}function bnSigNum(){if(this.s<0)return-1;else if(this.t<=0||this.t==1&&this.data[0]<=0)return 0;else return 1}function bnpToRadix(e){if(e==null)e=10;if(this.signum()==0||e<2||e>36)return"0";var t=this.chunkSize(e);var s=Math.pow(e,t);var r=nbv(s),o=nbi(),n=nbi(),i="";this.divRemTo(r,o,n);while(o.signum()>0){i=(s+n.intValue()).toString(e).substr(1)+i;o.divRemTo(r,o,n)}return n.intValue().toString(e)+i}function bnpFromRadix(e,t){this.fromInt(0);if(t==null)t=10;var s=this.chunkSize(t);var r=Math.pow(t,s),o=false,n=0,i=0;for(var c=0;c=s){this.dMultiply(r);this.dAddOffset(i,0);n=0;i=0}}if(n>0){this.dMultiply(Math.pow(t,n));this.dAddOffset(i,0)}if(o)BigInteger.ZERO.subTo(this,this)}function bnpFromNumber(e,t,s){if("number"==typeof t){if(e<2)this.fromInt(1);else{this.fromNumber(e,s);if(!this.testBit(e-1))this.bitwiseTo(BigInteger.ONE.shiftLeft(e-1),op_or,this);if(this.isEven())this.dAddOffset(1,0);while(!this.isProbablePrime(t)){this.dAddOffset(2,0);if(this.bitLength()>e)this.subTo(BigInteger.ONE.shiftLeft(e-1),this)}}}else{var r=new Array,o=e&7;r.length=(e>>3)+1;t.nextBytes(r);if(o>0)r[0]&=(1<0){if(s>s)!=(this.s&this.DM)>>s)t[o++]=r|this.s<=0){if(s<8){r=(this.data[e]&(1<>(s+=this.DB-8)}else{r=this.data[e]>>(s-=8)&255;if(s<=0){s+=this.DB;--e}}if((r&128)!=0)r|=-256;if(o==0&&(this.s&128)!=(r&128))++o;if(o>0||r!=this.s)t[o++]=r}}return t}function bnEquals(e){return this.compareTo(e)==0}function bnMin(e){return this.compareTo(e)<0?this:e}function bnMax(e){return this.compareTo(e)>0?this:e}function bnpBitwiseTo(e,t,s){var r,o,n=Math.min(e.t,this.t);for(r=0;r>=16;t+=16}if((e&255)==0){e>>=8;t+=8}if((e&15)==0){e>>=4;t+=4}if((e&3)==0){e>>=2;t+=2}if((e&1)==0)++t;return t}function bnGetLowestSetBit(){for(var e=0;e=this.t)return this.s!=0;return(this.data[t]&1<>=this.DB}if(e.t>=this.DB}r+=this.s}else{r+=this.s;while(s>=this.DB}r+=e.s}t.s=r<0?-1:0;if(r>0)t.data[s++]=r;else if(r<-1)t.data[s++]=this.DV+r;t.t=s;t.clamp()}function bnAdd(e){var t=nbi();this.addTo(e,t);return t}function bnSubtract(e){var t=nbi();this.subTo(e,t);return t}function bnMultiply(e){var t=nbi();this.multiplyTo(e,t);return t}function bnDivide(e){var t=nbi();this.divRemTo(e,t,null);return t}function bnRemainder(e){var t=nbi();this.divRemTo(e,null,t);return t}function bnDivideAndRemainder(e){var t=nbi(),s=nbi();this.divRemTo(e,t,s);return new Array(t,s)}function bnpDMultiply(e){this.data[this.t]=this.am(0,e-1,this,0,0,this.t);++this.t;this.clamp()}function bnpDAddOffset(e,t){if(e==0)return;while(this.t<=t)this.data[this.t++]=0;this.data[t]+=e;while(this.data[t]>=this.DV){this.data[t]-=this.DV;if(++t>=this.t)this.data[this.t++]=0;++this.data[t]}}function NullExp(){}function nNop(e){return e}function nMulTo(e,t,s){e.multiplyTo(t,s)}function nSqrTo(e,t){e.squareTo(t)}NullExp.prototype.convert=nNop;NullExp.prototype.revert=nNop;NullExp.prototype.mulTo=nMulTo;NullExp.prototype.sqrTo=nSqrTo;function bnPow(e){return this.exp(e,new NullExp)}function bnpMultiplyLowerTo(e,t,s){var r=Math.min(this.t+e.t,t);s.s=0;s.t=r;while(r>0)s.data[--r]=0;var o;for(o=s.t-this.t;r=0)s.data[r]=0;for(r=Math.max(t-this.t,0);r2*this.m.t)return e.mod(this.m);else if(e.compareTo(this.m)<0)return e;else{var t=nbi();e.copyTo(t);this.reduce(t);return t}}function barrettRevert(e){return e}function barrettReduce(e){e.drShiftTo(this.m.t-1,this.r2);if(e.t>this.m.t+1){e.t=this.m.t+1;e.clamp()}this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3);this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);while(e.compareTo(this.r2)<0)e.dAddOffset(1,this.m.t+1);e.subTo(this.r2,e);while(e.compareTo(this.m)>=0)e.subTo(this.m,e)}function barrettSqrTo(e,t){e.squareTo(t);this.reduce(t)}function barrettMulTo(e,t,s){e.multiplyTo(t,s);this.reduce(s)}Barrett.prototype.convert=barrettConvert;Barrett.prototype.revert=barrettRevert;Barrett.prototype.reduce=barrettReduce;Barrett.prototype.mulTo=barrettMulTo;Barrett.prototype.sqrTo=barrettSqrTo;function bnModPow(e,t){var s=e.bitLength(),r,o=nbv(1),n;if(s<=0)return o;else if(s<18)r=1;else if(s<48)r=3;else if(s<144)r=4;else if(s<768)r=5;else r=6;if(s<8)n=new Classic(t);else if(t.isEven())n=new Barrett(t);else n=new Montgomery(t);var i=new Array,c=3,u=r-1,a=(1<1){var f=nbi();n.sqrTo(i[1],f);while(c<=a){i[c]=nbi();n.mulTo(f,i[c-2],i[c]);c+=2}}var p=e.t-1,h,d=true,l=nbi(),P;s=nbits(e.data[p])-1;while(p>=0){if(s>=u)h=e.data[p]>>s-u&a;else{h=(e.data[p]&(1<0)h|=e.data[p-1]>>this.DB+s-u}c=r;while((h&1)==0){h>>=1;--c}if((s-=c)<0){s+=this.DB;--p}if(d){i[h].copyTo(o);d=false}else{while(c>1){n.sqrTo(o,l);n.sqrTo(l,o);c-=2}if(c>0)n.sqrTo(o,l);else{P=o;o=l;l=P}n.mulTo(l,i[h],o)}while(p>=0&&(e.data[p]&1<0){t.rShiftTo(n,t);s.rShiftTo(n,s)}while(t.signum()>0){if((o=t.getLowestSetBit())>0)t.rShiftTo(o,t);if((o=s.getLowestSetBit())>0)s.rShiftTo(o,s);if(t.compareTo(s)>=0){t.subTo(s,t);t.rShiftTo(1,t)}else{s.subTo(t,s);s.rShiftTo(1,s)}}if(n>0)s.lShiftTo(n,s);return s}function bnpModInt(e){if(e<=0)return 0;var t=this.DV%e,s=this.s<0?e-1:0;if(this.t>0)if(t==0)s=this.data[0]%e;else for(var r=this.t-1;r>=0;--r)s=(t*s+this.data[r])%e;return s}function bnModInverse(e){var t=e.isEven();if(this.isEven()&&t||e.signum()==0)return BigInteger.ZERO;var s=e.clone(),r=this.clone();var o=nbv(1),n=nbv(0),i=nbv(0),c=nbv(1);while(s.signum()!=0){while(s.isEven()){s.rShiftTo(1,s);if(t){if(!o.isEven()||!n.isEven()){o.addTo(this,o);n.subTo(e,n)}o.rShiftTo(1,o)}else if(!n.isEven())n.subTo(e,n);n.rShiftTo(1,n)}while(r.isEven()){r.rShiftTo(1,r);if(t){if(!i.isEven()||!c.isEven()){i.addTo(this,i);c.subTo(e,c)}i.rShiftTo(1,i)}else if(!c.isEven())c.subTo(e,c);c.rShiftTo(1,c)}if(s.compareTo(r)>=0){s.subTo(r,s);if(t)o.subTo(i,o);n.subTo(c,n)}else{r.subTo(s,r);if(t)i.subTo(o,i);c.subTo(n,c)}}if(r.compareTo(BigInteger.ONE)!=0)return BigInteger.ZERO;if(c.compareTo(e)>=0)return c.subtract(e);if(c.signum()<0)c.addTo(e,c);else return c;if(c.signum()<0)return c.add(e);else return c}var h=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509];var d=(1<<26)/h[h.length-1];function bnIsProbablePrime(e){var t,s=this.abs();if(s.t==1&&s.data[0]<=h[h.length-1]){for(t=0;t=0);var c=n.modPow(r,this);if(c.compareTo(BigInteger.ONE)!=0&&c.compareTo(t)!=0){var u=1;while(u++=10"},files:["build/src","!build/src/**/*.map"],homepage:"https://github.com/googleapis/nodejs-googleapis-common#readme",keywords:[],license:"Apache-2.0",main:"build/src/index.js",name:"googleapis-common",repository:{type:"git",url:"git+https://github.com/googleapis/nodejs-googleapis-common.git"},scripts:{"browser-test":"karma start",clean:"gts clean",compile:"tsc -p .",docs:"compodoc src/","docs-test":"linkinator docs",fix:"gts fix",lint:"gts check",precompile:"gts clean","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm install",prepare:"npm run compile","presystem-test":"npm run compile",pretest:"npm run compile","samples-test":"mocha build/samples-test","system-test":"mocha build/system-test",test:"c8 mocha build/test",webpack:"webpack"},types:"build/src/index.d.ts",version:"4.2.0"}},function(e,t,s){"use strict";var r;function once(e){var t=false;return function(){if(t)return;t=true;e.apply(void 0,arguments)}}var o=s(563).codes,n=o.ERR_MISSING_ARGS,i=o.ERR_STREAM_DESTROYED;function noop(e){if(e)throw e}function isRequest(e){return e.setHeader&&typeof e.abort==="function"}function destroyer(e,t,o,n){n=once(n);var c=false;e.on("close",function(){c=true});if(r===undefined)r=s(17);r(e,{readable:t,writable:o},function(e){if(e)return n(e);c=true;n()});var u=false;return function(t){if(c)return;if(u)return;u=true;if(isRequest(e))return e.abort();if(typeof e.destroy==="function")return e.destroy();n(t||new i("pipe"))}}function call(e){e()}function pipe(e,t){return e.pipe(t)}function popCallback(e){if(!e.length)return noop;if(typeof e[e.length-1]!=="function")return noop;return e.pop()}function pipeline(){for(var e=arguments.length,t=new Array(e),s=0;s0;return destroyer(e,n,c,function(e){if(!o)o=e;if(e)i.forEach(call);if(n)return;i.forEach(call);r(o)})});return t.reduce(pipe)}e.exports=pipeline},function(e,t,s){e.exports=s(533).PassThrough},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.bigquery=t.VERSIONS=void 0;const r=s(927);const o=s(895);t.VERSIONS={v2:o.bigquery_v2.Bigquery};function bigquery(e){return r.getAPI("bigquery",e,t.VERSIONS,this)}t.bigquery=bigquery;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gameservices_v1beta=void 0;const r=s(927);var o;(function(e){class Gameservices{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Gameservices=Gameservices;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.gameServerDeployments=new Resource$Projects$Locations$Gameserverdeployments(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context);this.realms=new Resource$Projects$Locations$Realms(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Gameserverdeployments{constructor(e){this.context=e;this.configs=new Resource$Projects$Locations$Gameserverdeployments$Configs(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/gameServerDeployments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}fetchDeploymentState(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:fetchDeploymentState").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRollout(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/rollout").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/gameServerDeployments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}previewRollout(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/rollout:preview").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateRollout(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/rollout").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Gameserverdeployments=Resource$Projects$Locations$Gameserverdeployments;class Resource$Projects$Locations$Gameserverdeployments$Configs{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Gameserverdeployments$Configs=Resource$Projects$Locations$Gameserverdeployments$Configs;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Locations$Realms{constructor(e){this.context=e;this.gameServerClusters=new Resource$Projects$Locations$Realms$Gameserverclusters(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/realms").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/realms").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}previewUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:previewUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Realms=Resource$Projects$Locations$Realms;class Resource$Projects$Locations$Realms$Gameserverclusters{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/gameServerClusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/gameServerClusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}previewCreate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/gameServerClusters:previewCreate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}previewDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:previewDelete").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}previewUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://gameservices.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:previewUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Realms$Gameserverclusters=Resource$Projects$Locations$Realms$Gameserverclusters})(o=t.gameservices_v1beta||(t.gameservices_v1beta={}))},,function(e,t,s){"use strict";e.exports=s(118).default},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.plus_v1=void 0;const r=s(927);var o;(function(e){class Plus{constructor(e,t){this.context={_options:e||{},google:t};this.activities=new Resource$Activities(this.context);this.comments=new Resource$Comments(this.context);this.people=new Resource$People(this.context)}}e.Plus=Plus;class Resource$Activities{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/activities/{activityId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["activityId"],pathParams:["activityId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/people/{userId}/activities/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["userId","collection"],pathParams:["collection","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/activities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["query"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Activities=Resource$Activities;class Resource$Comments{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/comments/{commentId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["commentId"],pathParams:["commentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/activities/{activityId}/comments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["activityId"],pathParams:["activityId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Comments=Resource$Comments;class Resource$People{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/people/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["userId"],pathParams:["userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/people/{userId}/people/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["userId","collection"],pathParams:["collection","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listByActivity(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/activities/{activityId}/people/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["activityId","collection"],pathParams:["activityId","collection"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/plus/v1/people").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["query"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$People=Resource$People})(o=t.plus_v1||(t.plus_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.civicinfo_v2=void 0;const r=s(927);var o;(function(e){class Civicinfo{constructor(e,t){this.context={_options:e||{},google:t};this.divisions=new Resource$Divisions(this.context);this.elections=new Resource$Elections(this.context);this.representatives=new Resource$Representatives(this.context)}}e.Civicinfo=Civicinfo;class Resource$Divisions{constructor(e){this.context=e}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/civicinfo/v2/divisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Divisions=Resource$Divisions;class Resource$Elections{constructor(e){this.context=e}electionQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/civicinfo/v2/elections").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}voterInfoQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/civicinfo/v2/voterinfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["address"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Elections=Resource$Elections;class Resource$Representatives{constructor(e){this.context=e}representativeInfoByAddress(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/civicinfo/v2/representatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}representativeInfoByDivision(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/civicinfo/v2/representatives/{ocdId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["ocdId"],pathParams:["ocdId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Representatives=Resource$Representatives})(o=t.civicinfo_v2||(t.civicinfo_v2={}))},,function(e,t,s){var r=s(293);var o=r.Buffer;function copyProps(e,t){for(var s in e){t[s]=e[s]}}if(o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow){e.exports=r}else{copyProps(r,t);t.Buffer=SafeBuffer}function SafeBuffer(e,t,s){return o(e,t,s)}copyProps(o,SafeBuffer);SafeBuffer.from=function(e,t,s){if(typeof e==="number"){throw new TypeError("Argument must not be a number")}return o(e,t,s)};SafeBuffer.alloc=function(e,t,s){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}var r=o(e);if(t!==undefined){if(typeof s==="string"){r.fill(t,s)}else{r.fill(t)}}else{r.fill(0)}return r};SafeBuffer.allocUnsafe=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return o(e)};SafeBuffer.allocUnsafeSlow=function(e){if(typeof e!=="number"){throw new TypeError("Argument must be a number")}return r.SlowBuffer(e)}},,function(e){var t=200;var s="__lodash_hash_undefined__";var r=1/0,o=9007199254740991;var n="[object Arguments]",i="[object Function]",c="[object GeneratorFunction]";var u=/[\\^$.*+?()[\]{}|]/g;var a=/^\[object .+?Constructor\]$/;var f=typeof global=="object"&&global&&global.Object===Object&&global;var p=typeof self=="object"&&self&&self.Object===Object&&self;var h=f||p||Function("return this")();function apply(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}function arrayIncludes(e,t){var s=e?e.length:0;return!!s&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,s){var r=-1,o=e?e.length:0;while(++r-1}function listCacheSet(e,t){var s=this.__data__,r=assocIndexOf(s,e);if(r<0){s.push([e,t])}else{s[r][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,s=e?e.length:0;this.clear();while(++t0&&s(c)){if(t>1){baseFlatten(c,t-1,s,r,o)}else{arrayPush(o,c)}}else if(!r){o[o.length]=c}}return o}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?x:a;return t.test(toSource(e))}function baseRest(e,t){t=m(t===undefined?e.length-1:t,0);return function(){var s=arguments,r=-1,o=m(s.length-t,0),n=Array(o);while(++r=t){var f=s?null:E(e);if(f){return setToArray(f)}c=false;n=cacheHas;a=new SetCache}else{a=s?[]:u}e:while(++o-1&&e%1==0&&e<=o}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}function noop(){}e.exports=S},function(e){"use strict";var t=Object.prototype.hasOwnProperty;var s=Object.prototype.toString;var r=Object.defineProperty;var o=Object.getOwnPropertyDescriptor;var n=function isArray(e){if(typeof Array.isArray==="function"){return Array.isArray(e)}return s.call(e)==="[object Array]"};var i=function isPlainObject(e){if(!e||s.call(e)!=="[object Object]"){return false}var r=t.call(e,"constructor");var o=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!o){return false}var n;for(n in e){}return typeof n==="undefined"||t.call(e,n)};var c=function setProperty(e,t){if(r&&t.name==="__proto__"){r(e,t.name,{enumerable:true,configurable:true,value:t.newValue,writable:true})}else{e[t.name]=t.newValue}};var u=function getProperty(e,s){if(s==="__proto__"){if(!t.call(e,s)){return void 0}else if(o){return o(e,s).value}}return e[s]};e.exports=function extend(){var e,t,s,r,o,a;var f=arguments[0];var p=1;var h=arguments.length;var d=false;if(typeof f==="boolean"){d=f;f=arguments[1]||{};p=2}if(f==null||typeof f!=="object"&&typeof f!=="function"){f={}}for(;p>16-t};var c=function(e,t){return(e&65535)>>t|e<<16-t&65535};e.exports=r.rc2=r.rc2||{};r.rc2.expandKey=function(e,t){if(typeof e==="string"){e=r.util.createBuffer(e)}t=t||128;var s=e;var n=e.length();var i=t;var c=Math.ceil(i/8);var u=255>>(i&7);var a;for(a=n;a<128;a++){s.putByte(o[s.at(a-1)+s.at(a-n)&255])}s.setAt(128-c,o[s.at(128-c)&u]);for(a=127-c;a>=0;a--){s.setAt(a,o[s.at(a+1)^s.at(a+c)])}return s};var u=function(e,t,s){var o=false,u=null,a=null,f=null;var p,h;var d,l,P=[];e=r.rc2.expandKey(e,t);for(d=0;d<64;d++){P.push(e.getInt16Le())}if(s){p=function(e){for(d=0;d<4;d++){e[d]+=P[l]+(e[(d+3)%4]&e[(d+2)%4])+(~e[(d+3)%4]&e[(d+1)%4]);e[d]=i(e[d],n[d]);l++}};h=function(e){for(d=0;d<4;d++){e[d]+=P[e[(d+3)%4]&63]}}}else{p=function(e){for(d=3;d>=0;d--){e[d]=c(e[d],n[d]);e[d]-=P[l]+(e[(d+3)%4]&e[(d+2)%4])+(~e[(d+3)%4]&e[(d+1)%4]);l--}};h=function(e){for(d=3;d>=0;d--){e[d]-=P[e[(d+3)%4]&63]}}}var y=function(e){var t=[];for(d=0;d<4;d++){var r=u.getInt16Le();if(f!==null){if(s){r^=f.getInt16Le()}else{f.putInt16Le(r)}}t.push(r&65535)}l=s?0:63;for(var o=0;o=8){y([[5,p],[1,h],[6,p],[1,h],[5,p]])}},finish:function(e){var t=true;if(s){if(e){t=e(8,u,!s)}else{var r=u.length()===8?8:8-u.length();u.fillWithByte(r,r)}}if(t){o=true;I.update()}if(!s){t=u.length()===0;if(t){if(e){t=e(8,a,!s)}else{var n=a.length();var i=a.at(n-1);if(i>n){t=false}else{a.truncate(i)}}}}return t}};return I};r.rc2.startEncrypting=function(e,t,s){var o=r.rc2.createEncryptionCipher(e,128);o.start(t,s);return o};r.rc2.createEncryptionCipher=function(e,t){return u(e,t,true)};r.rc2.startDecrypting=function(e,t,s){var o=r.rc2.createDecryptionCipher(e,128);o.start(t,s);return o};r.rc2.createDecryptionCipher=function(e,t){return u(e,t,false)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(417);class NodeCrypto{async sha256DigestBase64(e){return r.createHash("sha256").update(e).digest("base64")}randomBytesBase64(e){return r.randomBytes(e).toString("base64")}async verify(e,t,s){const o=r.createVerify("sha256");o.update(t);o.end();return o.verify(e,s,"base64")}async sign(e,t){const s=r.createSign("RSA-SHA256");s.update(t);s.end();return s.sign(e,"base64")}decodeBase64StringUtf8(e){return Buffer.from(e,"base64").toString("utf-8")}encodeBase64StringUtf8(e){return Buffer.from(e,"utf-8").toString("base64")}}t.NodeCrypto=NodeCrypto},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sasportal_v1alpha1=void 0;const r=s(927);var o;(function(e){class Sasportal{constructor(e,t){this.context={_options:e||{},google:t};this.customers=new Resource$Customers(this.context);this.installer=new Resource$Installer(this.context);this.nodes=new Resource$Nodes(this.context);this.policies=new Resource$Policies(this.context)}}e.Sasportal=Sasportal;class Resource$Customers{constructor(e){this.context=e;this.devices=new Resource$Customers$Devices(this.context);this.nodes=new Resource$Customers$Nodes(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/customers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers=Resource$Customers;class Resource$Customers$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:signDevice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:updateSigned").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Devices=Resource$Customers$Devices;class Resource$Customers$Nodes{constructor(e){this.context=e;this.nodes=new Resource$Customers$Nodes$Nodes(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Nodes=Resource$Customers$Nodes;class Resource$Customers$Nodes$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Nodes$Nodes=Resource$Customers$Nodes$Nodes;class Resource$Installer{constructor(e){this.context=e}generateSecret(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/installer:generateSecret").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/installer:validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Installer=Resource$Installer;class Resource$Nodes{constructor(e){this.context=e;this.devices=new Resource$Nodes$Devices(this.context);this.nodes=new Resource$Nodes$Nodes(this.context)}}e.Resource$Nodes=Resource$Nodes;class Resource$Nodes$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:signDevice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:updateSigned").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Devices=Resource$Nodes$Devices;class Resource$Nodes$Nodes{constructor(e){this.context=e;this.devices=new Resource$Nodes$Nodes$Devices(this.context);this.nodes=new Resource$Nodes$Nodes$Nodes(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes=Resource$Nodes$Nodes;class Resource$Nodes$Nodes$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes$Devices=Resource$Nodes$Nodes$Devices;class Resource$Nodes$Nodes$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes$Nodes=Resource$Nodes$Nodes$Nodes;class Resource$Policies{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:get").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:set").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}test(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:test").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Policies=Resource$Policies})(o=t.sasportal_v1alpha1||(t.sasportal_v1alpha1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dataproc_v1=void 0;const r=s(927);var o;(function(e){class Dataproc{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Dataproc=Dataproc;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context);this.regions=new Resource$Projects$Regions(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.autoscalingPolicies=new Resource$Projects$Locations$Autoscalingpolicies(this.context);this.workflowTemplates=new Resource$Projects$Locations$Workflowtemplates(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Autoscalingpolicies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/autoscalingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/autoscalingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Autoscalingpolicies=Resource$Projects$Locations$Autoscalingpolicies;class Resource$Projects$Locations$Workflowtemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}instantiate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:instantiate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}instantiateInline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates:instantiateInline").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Workflowtemplates=Resource$Projects$Locations$Workflowtemplates;class Resource$Projects$Regions{constructor(e){this.context=e;this.autoscalingPolicies=new Resource$Projects$Regions$Autoscalingpolicies(this.context);this.clusters=new Resource$Projects$Regions$Clusters(this.context);this.jobs=new Resource$Projects$Regions$Jobs(this.context);this.operations=new Resource$Projects$Regions$Operations(this.context);this.workflowTemplates=new Resource$Projects$Regions$Workflowtemplates(this.context)}}e.Resource$Projects$Regions=Resource$Projects$Regions;class Resource$Projects$Regions$Autoscalingpolicies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/autoscalingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/autoscalingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Regions$Autoscalingpolicies=Resource$Projects$Regions$Autoscalingpolicies;class Resource$Projects$Regions$Clusters{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","region"],pathParams:["projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","region","clusterName"],pathParams:["clusterName","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}diagnose(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","region","clusterName"],pathParams:["clusterName","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","region","clusterName"],pathParams:["clusterName","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","region"],pathParams:["projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","region","clusterName"],pathParams:["clusterName","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Regions$Clusters=Resource$Projects$Regions$Clusters;class Resource$Projects$Regions$Jobs{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","region","jobId"],pathParams:["jobId","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","region","jobId"],pathParams:["jobId","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","region","jobId"],pathParams:["jobId","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","region"],pathParams:["projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","region","jobId"],pathParams:["jobId","projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}submit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs:submit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","region"],pathParams:["projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}submitAsOperation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","region"],pathParams:["projectId","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Regions$Jobs=Resource$Projects$Regions$Jobs;class Resource$Projects$Regions$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Regions$Operations=Resource$Projects$Regions$Operations;class Resource$Projects$Regions$Workflowtemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}instantiate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:instantiate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}instantiateInline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates:instantiateInline").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/workflowTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataproc.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Regions$Workflowtemplates=Resource$Projects$Regions$Workflowtemplates})(o=t.dataproc_v1||(t.dataproc_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.container_v1beta1=void 0;const r=s(927);var o;(function(e){class Container{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Container=Container;class Resource$Projects{constructor(e){this.context=e;this.aggregated=new Resource$Projects$Aggregated(this.context);this.locations=new Resource$Projects$Locations(this.context);this.zones=new Resource$Projects$Zones(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Aggregated{constructor(e){this.context=e;this.usableSubnetworks=new Resource$Projects$Aggregated$Usablesubnetworks(this.context)}}e.Resource$Projects$Aggregated=Resource$Projects$Aggregated;class Resource$Projects$Aggregated$Usablesubnetworks{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/aggregated/usableSubnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Aggregated$Usablesubnetworks=Resource$Projects$Aggregated$Usablesubnetworks;class Resource$Projects$Locations{constructor(e){this.context=e;this.clusters=new Resource$Projects$Locations$Clusters(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}getServerConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/serverConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Clusters{constructor(e){this.context=e;this.nodePools=new Resource$Projects$Locations$Clusters$Nodepools(this.context);this.wellKnown=new Resource$Projects$Locations$Clusters$WellKnown(this.context)}completeIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:completeIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getJwks(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/jwks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAddons(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setAddons").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLegacyAbac(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setLegacyAbac").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLocations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setLocations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLogging(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setLogging").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMaintenancePolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setMaintenancePolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMasterAuth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setMasterAuth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMonitoring(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setMonitoring").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNetworkPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setNetworkPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setResourceLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setResourceLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:startIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateMaster(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:updateMaster").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters=Resource$Projects$Locations$Clusters;class Resource$Projects$Locations$Clusters$Nodepools{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoscaling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setAutoscaling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setManagement(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setManagement").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:setSize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters$Nodepools=Resource$Projects$Locations$Clusters$Nodepools;class Resource$Projects$Locations$Clusters$WellKnown{constructor(e){this.context=e}getOpenidConfiguration(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/.well-known/openid-configuration").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters$WellKnown=Resource$Projects$Locations$Clusters$WellKnown;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Zones{constructor(e){this.context=e;this.clusters=new Resource$Projects$Zones$Clusters(this.context);this.operations=new Resource$Projects$Zones$Operations(this.context)}getServerconfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/serverconfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones=Resource$Projects$Zones;class Resource$Projects$Zones$Clusters{constructor(e){this.context=e;this.nodePools=new Resource$Projects$Zones$Clusters$Nodepools(this.context)}addons(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}completeIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}legacyAbac(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}locations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}logging(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}master(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}monitoring(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resourceLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMaintenancePolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMasterAuth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNetworkPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Clusters=Resource$Projects$Zones$Clusters;class Resource$Projects$Zones$Clusters$Nodepools{constructor(e){this.context=e}autoscaling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setManagement(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Clusters$Nodepools=Resource$Projects$Zones$Clusters$Nodepools;class Resource$Projects$Zones$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","operationId"],pathParams:["operationId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","operationId"],pathParams:["operationId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects/{projectId}/zones/{zone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Operations=Resource$Projects$Zones$Operations})(o=t.container_v1beta1||(t.container_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(403);const o=s(346);const n=s(449);class JWT extends n.OAuth2Client{constructor(e,t,s,r,o,n){const i=e&&typeof e==="object"?e:{email:e,keyFile:t,key:s,keyId:n,scopes:r,subject:o};super({eagerRefreshThresholdMillis:i.eagerRefreshThresholdMillis,forceRefreshOnFailure:i.forceRefreshOnFailure});this.email=i.email;this.keyFile=i.keyFile;this.key=i.key;this.keyId=i.keyId;this.scopes=i.scopes;this.subject=i.subject;this.additionalClaims=i.additionalClaims;this.credentials={refresh_token:"jwt-placeholder",expiry_date:1}}createScoped(e){return new JWT({email:this.email,keyFile:this.keyFile,key:this.key,keyId:this.keyId,scopes:e,subject:this.subject,additionalClaims:this.additionalClaims})}async getRequestMetadataAsync(e){if(!this.apiKey&&!this.hasScopes()&&e){if(this.additionalClaims&&this.additionalClaims.target_audience){const{tokens:e}=await this.refreshToken();return{headers:this.addSharedMetadataHeaders({Authorization:`Bearer ${e.id_token}`})}}else{if(!this.access){this.access=new o.JWTAccess(this.email,this.key,this.keyId)}const t=await this.access.getRequestHeaders(e,this.additionalClaims);return{headers:this.addSharedMetadataHeaders(t)}}}else{return super.getRequestMetadataAsync(e)}}async fetchIdToken(e){const t=new r.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes,keyFile:this.keyFile,key:this.key,additionalClaims:{target_audience:e}});await t.getToken({forceRefresh:true});if(!t.idToken){throw new Error("Unknown error: Failed to fetch ID token")}return t.idToken}hasScopes(){if(!this.scopes){return false}if(this.scopes instanceof Array){return this.scopes.length>0}return String(this.scopes).length>0}authorize(e){if(e){this.authorizeAsync().then(t=>e(null,t),e)}else{return this.authorizeAsync()}}async authorizeAsync(){const e=await this.refreshToken();if(!e){throw new Error("No result returned")}this.credentials=e.tokens;this.credentials.refresh_token="jwt-placeholder";this.key=this.gtoken.key;this.email=this.gtoken.iss;return e.tokens}async refreshTokenNoCache(e){const t=this.createGToken();const s=await t.getToken({forceRefresh:this.isTokenExpiring()});const r={access_token:s.access_token,token_type:"Bearer",expiry_date:t.expiresAt,id_token:t.idToken};this.emit("tokens",r);return{res:null,tokens:r}}createGToken(){if(!this.gtoken){this.gtoken=new r.GoogleToken({iss:this.email,sub:this.subject,scope:this.scopes,keyFile:this.keyFile,key:this.key,additionalClaims:this.additionalClaims})}return this.gtoken}fromJSON(e){if(!e){throw new Error("Must pass in a JSON object containing the service account auth settings.")}if(!e.client_email){throw new Error("The incoming JSON object does not contain a client_email field")}if(!e.private_key){throw new Error("The incoming JSON object does not contain a private_key field")}this.email=e.client_email;this.key=e.private_key;this.keyId=e.private_key_id;this.projectId=e.project_id;this.quotaProjectId=e.quota_project_id}fromStream(e,t){if(t){this.fromStreamAsync(e).then(e=>t(),t)}else{return this.fromStreamAsync(e)}}fromStreamAsync(e){return new Promise((t,s)=>{if(!e){throw new Error("Must pass in a stream containing the service account auth settings.")}let r="";e.setEncoding("utf8").on("error",s).on("data",e=>r+=e).on("end",()=>{try{const e=JSON.parse(r);this.fromJSON(e);t()}catch(e){s(e)}})})}fromAPIKey(e){if(typeof e!=="string"){throw new Error("Must provide an API Key string.")}this.apiKey=e}async getCredentials(){if(this.key){return{private_key:this.key,client_email:this.email}}else if(this.keyFile){const e=this.createGToken();const t=await e.getCredentials(this.keyFile);return{private_key:t.privateKey,client_email:t.clientEmail}}throw new Error("A key or a keyFile must be provided to getCredentials.")}}t.JWT=JWT},,function(e,t,s){"use strict";e.exports=Transform;var r=s(264);var o=Object.create(s(683));o.inherits=s(689);o.inherits(Transform,r);function afterTransform(e,t){var s=this._transformState;s.transforming=false;var r=s.writecb;if(!r){return this.emit("error",new Error("write callback called multiple times"))}s.writechunk=null;s.writecb=null;if(t!=null)this.push(t);r(e);var o=this._readableState;o.reading=false;if(o.needReadable||o.length0){throw new Error("Invalid string. Length must be a multiple of 4")}var s=e.indexOf("=");if(s===-1)s=t;var r=s===t?0:4-s%4;return[s,r]}function byteLength(e){var t=getLens(e);var s=t[0];var r=t[1];return(s+r)*3/4-r}function _byteLength(e,t,s){return(t+s)*3/4-s}function toByteArray(e){var t;var s=getLens(e);var n=s[0];var i=s[1];var c=new o(_byteLength(e,n,i));var u=0;var a=i>0?n-4:n;var f;for(f=0;f>16&255;c[u++]=t>>8&255;c[u++]=t&255}if(i===2){t=r[e.charCodeAt(f)]<<2|r[e.charCodeAt(f+1)]>>4;c[u++]=t&255}if(i===1){t=r[e.charCodeAt(f)]<<10|r[e.charCodeAt(f+1)]<<4|r[e.charCodeAt(f+2)]>>2;c[u++]=t>>8&255;c[u++]=t&255}return c}function tripletToBase64(e){return s[e>>18&63]+s[e>>12&63]+s[e>>6&63]+s[e&63]}function encodeChunk(e,t,s){var r;var o=[];for(var n=t;nu?u:c+i))}if(o===1){t=e[r-1];n.push(s[t>>2]+s[t<<4&63]+"==")}else if(o===2){t=(e[r-2]<<8)+e[r-1];n.push(s[t>>10]+s[t>>4&63]+s[t<<2&63]+"=")}return n.join("")}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.texttospeech_v1beta1=void 0;const r=s(927);var o;(function(e){class Texttospeech{constructor(e,t){this.context={_options:e||{},google:t};this.text=new Resource$Text(this.context);this.voices=new Resource$Voices(this.context)}}e.Texttospeech=Texttospeech;class Resource$Text{constructor(e){this.context=e}synthesize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://texttospeech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/text:synthesize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Text=Resource$Text;class Resource$Voices{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://texttospeech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/voices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Voices=Resource$Voices})(o=t.texttospeech_v1beta1||(t.texttospeech_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.runtimeconfig=t.VERSIONS=void 0;const r=s(927);const o=s(890);const n=s(687);t.VERSIONS={v1:o.runtimeconfig_v1.Runtimeconfig,v1beta1:n.runtimeconfig_v1beta1.Runtimeconfig};function runtimeconfig(e){return r.getAPI("runtimeconfig",e,t.VERSIONS,this)}t.runtimeconfig=runtimeconfig;const i=new r.AuthPlus;t.auth=i},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.analyticsreporting=t.VERSIONS=void 0;const r=s(927);const o=s(554);t.VERSIONS={v4:o.analyticsreporting_v4.Analyticsreporting};function analyticsreporting(e){return r.getAPI("analyticsreporting",e,t.VERSIONS,this)}t.analyticsreporting=analyticsreporting;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(747);const o=s(597);const n=s(979);const i=s(444);const c=s(669);const u=r.readFile?c.promisify(r.readFile):async()=>{throw new ErrorWithCode("use key rather than keyFile.","MISSING_CREDENTIALS")};const a="https://www.googleapis.com/oauth2/v4/token";const f="https://accounts.google.com/o/oauth2/revoke?token=";class ErrorWithCode extends Error{constructor(e,t){super(e);this.code=t}}let p;class GoogleToken{constructor(e){this.configure(e)}get accessToken(){return this.rawToken?this.rawToken.access_token:undefined}get idToken(){return this.rawToken?this.rawToken.id_token:undefined}get tokenType(){return this.rawToken?this.rawToken.token_type:undefined}get refreshToken(){return this.rawToken?this.rawToken.refresh_token:undefined}hasExpired(){const e=(new Date).getTime();if(this.rawToken&&this.expiresAt){return e>=this.expiresAt}else{return true}}getToken(e,t={}){if(typeof e==="object"){t=e;e=undefined}t=Object.assign({forceRefresh:false},t);if(e){const s=e;this.getTokenAsync(t).then(e=>s(null,e),e);return}return this.getTokenAsync(t)}async getCredentials(e){const t=i.getType(e);switch(t){case"application/json":{const t=await u(e,"utf8");const s=JSON.parse(t);const r=s.private_key;const o=s.client_email;if(!r||!o){throw new ErrorWithCode("private_key and client_email are required.","MISSING_CREDENTIALS")}return{privateKey:r,clientEmail:o}}case"application/x-x509-ca-cert":{const t=await u(e,"utf8");return{privateKey:t}}case"application/x-pkcs12":{if(!p){p=(await Promise.resolve().then(()=>s(938))).getPem}const t=await p(e);return{privateKey:t}}default:throw new ErrorWithCode("Unknown certificate type. Type is determined based on file extension. "+"Current supported extensions are *.json, *.pem, and *.p12.","UNKNOWN_CERTIFICATE_TYPE")}}async getTokenAsync(e){if(this.hasExpired()===false&&e.forceRefresh===false){return Promise.resolve(this.rawToken)}if(!this.key&&!this.keyFile){throw new Error("No key or keyFile set.")}if(!this.key&&this.keyFile){const e=await this.getCredentials(this.keyFile);this.key=e.privateKey;this.iss=e.clientEmail||this.iss;if(!e.clientEmail){this.ensureEmail()}}return this.requestToken()}ensureEmail(){if(!this.iss){throw new ErrorWithCode("email is required.","MISSING_CREDENTIALS")}}revokeToken(e){if(e){this.revokeTokenAsync().then(()=>e(),e);return}return this.revokeTokenAsync()}async revokeTokenAsync(){if(!this.accessToken){throw new Error("No token to revoke.")}const e=f+this.accessToken;await o.request({url:e});this.configure({email:this.iss,sub:this.sub,key:this.key,keyFile:this.keyFile,scope:this.scope,additionalClaims:this.additionalClaims})}configure(e={}){this.keyFile=e.keyFile;this.key=e.key;this.rawToken=undefined;this.iss=e.email||e.iss;this.sub=e.sub;this.additionalClaims=e.additionalClaims;if(typeof e.scope==="object"){this.scope=e.scope.join(" ")}else{this.scope=e.scope}}async requestToken(){const e=Math.floor((new Date).getTime()/1e3);const t=this.additionalClaims||{};const s=Object.assign({iss:this.iss,scope:this.scope,aud:a,exp:e+3600,iat:e,sub:this.sub},t);const r=n.sign({header:{alg:"RS256"},payload:s,secret:this.key});try{const t=await o.request({method:"POST",url:a,data:{grant_type:"urn:ietf:params:oauth:grant-type:jwt-bearer",assertion:r},headers:{"Content-Type":"application/x-www-form-urlencoded"},responseType:"json"});this.rawToken=t.data;this.expiresAt=t.data.expires_in===null||t.data.expires_in===undefined?undefined:(e+t.data.expires_in)*1e3;return this.rawToken}catch(e){this.rawToken=undefined;this.tokenExpires=undefined;const t=e.response&&e.response.data?e.response.data:{};if(t.error){const s=t.error_description?`: ${t.error_description}`:"";e.message=`${t.error}${s}`}throw e}}}t.GoogleToken=GoogleToken},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.iam=t.VERSIONS=void 0;const r=s(927);const o=s(992);t.VERSIONS={v1:o.iam_v1.Iam};function iam(e){return r.getAPI("iam",e,t.VERSIONS,this)}t.iam=iam;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.testing_v1=void 0;const r=s(927);var o;(function(e){class Testing{constructor(e,t){this.context={_options:e||{},google:t};this.applicationDetailService=new Resource$Applicationdetailservice(this.context);this.projects=new Resource$Projects(this.context);this.testEnvironmentCatalog=new Resource$Testenvironmentcatalog(this.context)}}e.Testing=Testing;class Resource$Applicationdetailservice{constructor(e){this.context=e}getApkDetails(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://testing.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/applicationDetailService/getApkDetails").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Applicationdetailservice=Resource$Applicationdetailservice;class Resource$Projects{constructor(e){this.context=e;this.testMatrices=new Resource$Projects$Testmatrices(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Testmatrices{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://testing.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","testMatrixId"],pathParams:["projectId","testMatrixId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://testing.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/testMatrices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://testing.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/testMatrices/{testMatrixId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","testMatrixId"],pathParams:["projectId","testMatrixId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Testmatrices=Resource$Projects$Testmatrices;class Resource$Testenvironmentcatalog{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://testing.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/testEnvironmentCatalog/{environmentType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["environmentType"],pathParams:["environmentType"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Testenvironmentcatalog=Resource$Testenvironmentcatalog})(o=t.testing_v1||(t.testing_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.file=t.VERSIONS=void 0;const r=s(927);const o=s(982);const n=s(833);t.VERSIONS={v1:o.file_v1.File,v1beta1:n.file_v1beta1.File};function file(e){return r.getAPI("file",e,t.VERSIONS,this)}t.file=file;const i=new r.AuthPlus;t.auth=i},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.clouddebugger_v2=void 0;const r=s(927);var o;(function(e){class Clouddebugger{constructor(e,t){this.context={_options:e||{},google:t};this.controller=new Resource$Controller(this.context);this.debugger=new Resource$Debugger(this.context)}}e.Clouddebugger=Clouddebugger;class Resource$Controller{constructor(e){this.context=e;this.debuggees=new Resource$Controller$Debuggees(this.context)}}e.Resource$Controller=Resource$Controller;class Resource$Controller$Debuggees{constructor(e){this.context=e;this.breakpoints=new Resource$Controller$Debuggees$Breakpoints(this.context)}register(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/controller/debuggees/register").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Controller$Debuggees=Resource$Controller$Debuggees;class Resource$Controller$Debuggees$Breakpoints{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/controller/debuggees/{debuggeeId}/breakpoints").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["debuggeeId"],pathParams:["debuggeeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["debuggeeId","id"],pathParams:["debuggeeId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Controller$Debuggees$Breakpoints=Resource$Controller$Debuggees$Breakpoints;class Resource$Debugger{constructor(e){this.context=e;this.debuggees=new Resource$Debugger$Debuggees(this.context)}}e.Resource$Debugger=Resource$Debugger;class Resource$Debugger$Debuggees{constructor(e){this.context=e;this.breakpoints=new Resource$Debugger$Debuggees$Breakpoints(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/debugger/debuggees").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Debugger$Debuggees=Resource$Debugger$Debuggees;class Resource$Debugger$Debuggees$Breakpoints{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["debuggeeId","breakpointId"],pathParams:["breakpointId","debuggeeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["debuggeeId","breakpointId"],pathParams:["breakpointId","debuggeeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/debugger/debuggees/{debuggeeId}/breakpoints").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["debuggeeId"],pathParams:["debuggeeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://clouddebugger.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/debugger/debuggees/{debuggeeId}/breakpoints/set").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["debuggeeId"],pathParams:["debuggeeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Debugger$Debuggees$Breakpoints=Resource$Debugger$Debuggees$Breakpoints})(o=t.clouddebugger_v2||(t.clouddebugger_v2={}))},,function(e,t,s){const r=s(867);const o=s(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=s(858);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[s]=r;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:s,useColors:r}=this;if(r){const r=this.color;const o="[3"+(r<8?r:"8;5;"+r);const n=` ${o};1m${s} `;t[0]=n+t[0].split("\n").join("\n"+n);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+s+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let r=0;r=10;h/=10,p++);g.e=p;g.c=[e];return}y=e+""}else{if(!r.test(y=e+""))return l(g,y,d);g.s=y.charCodeAt(0)==45?(y=y.slice(1),-1):1}if((p=y.indexOf("."))>-1)y=y.replace(".","");if((h=y.search(/e/i))>0){if(p<0)p=h;p+=+y.slice(h+1);y=y.substring(0,h)}else if(p<0){p=y.length}}else{intCheck(t,2,O.length,"Base");y=e+"";if(t==10){g=new BigNumber(e instanceof BigNumber?e:y);return round(g,I+g.e+1,R)}d=typeof e=="number";if(d){if(e*0!=0)return l(g,y,d,t);g.s=1/e<0?(y=y.slice(1),-1):1;if(BigNumber.DEBUG&&y.replace(/^0\.0*|\./,"").length>15){throw Error(c+e)}d=false}else{g.s=y.charCodeAt(0)===45?(y=y.slice(1),-1):1}o=O.slice(0,t);p=h=0;for(P=y.length;hp){p=P;continue}}else if(!u){if(y==y.toUpperCase()&&(y=y.toLowerCase())||y==y.toLowerCase()&&(y=y.toUpperCase())){u=true;h=-1;p=0;continue}}return l(g,e+"",d,t)}}y=s(y,t,10,g.s);if((p=y.indexOf("."))>-1)y=y.replace(".","");else p=y.length}for(h=0;y.charCodeAt(h)===48;h++);for(P=y.length;y.charCodeAt(--P)===48;);y=y.slice(h,++P);if(y){P-=h;if(d&&BigNumber.DEBUG&&P>15&&(e>f||e!==n(e))){throw Error(c+g.s*e)}p=p-h-1;if(p>$){g.c=g.e=null}else if(p>>11);if(f>=9e15){r=crypto.getRandomValues(new Uint32Array(2));s[h]=r[0];s[h+1]=r[1]}else{l.push(f%1e14);h+=2}}h=u/2}else if(crypto.randomBytes){s=crypto.randomBytes(u*=7);for(;h=9e15){crypto.randomBytes(7).copy(s,h)}else{l.push(f%1e14);h+=7}}h=u/7}else{j=false;throw Error(i+"crypto unavailable")}}if(!j){for(;h=10;f/=10,h++);if(hs-1){if(n[o+1]==null)n[o+1]=0;n[o+1]+=n[o]/s|0;n[o]%=s}}}return n.reverse()}return function(s,r,o,n,i){var c,u,a,f,p,h,d,l,P=s.indexOf("."),y=I,g=R;if(P>=0){f=A;A=0;s=s.replace(".","");l=new BigNumber(r);h=l.pow(s.length-P);A=f;l.c=toBaseOut(toFixedPoint(coeffToString(h.c),h.e,"0"),10,o,e);l.e=l.c.length}d=toBaseOut(s,r,o,i?(c=O,e):(c=e,O));a=f=d.length;for(;d[--f]==0;d.pop());if(!d[0])return c.charAt(0);if(P<0){--a}else{h.c=d;h.e=a;h.s=n;h=t(h,l,y,g,o);d=h.c;p=h.r;a=h.e}u=a+y+1;P=d[u];f=o/2;p=p||u<0||d[u+1]!=null;p=g<4?(P!=null||p)&&(g==0||g==(h.s<0?3:2)):P>f||P==f&&(g==4||p||g==6&&d[u-1]&1||g==(h.s<0?8:7));if(u<1||!d[0]){s=p?toFixedPoint(c.charAt(1),-y,c.charAt(0)):c.charAt(0)}else{d.length=u;if(p){for(--o;++d[--u]>o;){d[u]=0;if(!u){++a;d=[1].concat(d)}}}for(f=d.length;!d[--f];);for(P=0,s="";P<=f;s+=c.charAt(d[P++]));s=toFixedPoint(s,a,c.charAt(0))}return s}}();t=function(){function multiply(e,t,s){var r,o,n,i,c=0,u=e.length,a=t%h,f=t/h|0;for(e=e.slice();u--;){n=e[u]%h;i=e[u]/h|0;r=f*n+i*a;o=a*n+r%h*h+c;c=(o/s|0)+(r/h|0)+f*i;e[u]=o%s}if(c)e=[c].concat(e);return e}function compare(e,t,s,r){var o,n;if(s!=r){n=s>r?1:-1}else{for(o=n=0;ot[o]?1:-1;break}}}return n}function subtract(e,t,s,r){var o=0;for(;s--;){e[s]-=o;o=e[s]1;e.splice(0,1));}return function(e,t,s,r,o){var i,c,f,p,h,d,l,P,y,I,R,g,q,x,$,j,v,A=e.s==t.s?1:-1,m=e.c,O=t.c;if(!m||!m[0]||!O||!O[0]){return new BigNumber(!e.s||!t.s||(m?O&&m[0]==O[0]:!O)?NaN:m&&m[0]==0||!O?A*0:A/0)}P=new BigNumber(A);y=P.c=[];c=e.e-t.e;A=s+c+1;if(!o){o=u;c=bitFloor(e.e/a)-bitFloor(t.e/a);A=A/a|0}for(f=0;O[f]==(m[f]||0);f++);if(O[f]>(m[f]||0))c--;if(A<0){y.push(1);p=true}else{x=m.length;j=O.length;f=0;A+=2;h=n(o/(O[0]+1));if(h>1){O=multiply(O,h,o);m=multiply(m,h,o);j=O.length;x=m.length}q=j;I=m.slice(0,j);R=I.length;for(;R=o/2)$++;do{h=0;i=compare(O,I,j,R);if(i<0){g=I[0];if(j!=R)g=g*o+(I[1]||0);h=n(g/$);if(h>1){if(h>=o)h=o-1;d=multiply(O,h,o);l=d.length;R=I.length;while(compare(d,I,l,R)==1){h--;subtract(d,j=10;A/=10,f++);round(P,s+(P.e=f+c*a-1)+1,r,p)}else{P.e=c;P.r=+p}return P}}();function format(e,t,s,r){var o,n,i,c,u;if(s==null)s=R;else intCheck(s,0,8);if(!e.c)return e.toString();o=e.c[0];i=e.e;if(t==null){u=coeffToString(e.c);u=r==1||r==2&&i<=g?toExponential(u,i):toFixedPoint(u,i,"0")}else{e=round(new BigNumber(e),t,s);n=e.e;u=coeffToString(e.c);c=u.length;if(r==1||r==2&&(t<=n||n<=g)){for(;cc){if(--t>0)for(u+=".";t--;u+="0");}else{t+=n-c;if(t>0){if(n+1==c)u+=".";for(;t--;u+="0");}}}}return e.s<0&&o?"-"+u:u}function maxOrMin(e,t){var s,r,o=0;if(isArray(e[0]))e=e[0];s=new BigNumber(e[0]);for(;++o=10;o/=10,r++);if((s=r+s*a-1)>$){e.c=e.e=null}else if(s=10;h/=10,i++);c=t-i;if(c<0){c+=a;f=t;d=y[l=0];P=d/I[i-f-1]%10|0}else{l=o((c+1)/a);if(l>=y.length){if(r){for(;y.length<=l;y.push(0));d=P=0;i=1;c%=a;f=c-a+1}else{break e}}else{d=h=y[l];for(i=1;h>=10;h/=10,i++);c%=a;f=c-a+i;P=f<0?0:d/I[i-f-1]%10|0}}r=r||t<0||y[l+1]!=null||(f<0?d:d%I[i-f-1]);r=s<4?(P||r)&&(s==0||s==(e.s<0?3:2)):P>5||P==5&&(s==4||r||s==6&&(c>0?f>0?d/I[i-f]:0:y[l-1])%10&1||s==(e.s<0?8:7));if(t<1||!y[0]){y.length=0;if(r){t-=e.e+1;y[0]=I[(a-t%a)%a];e.e=-t||0}else{y[0]=e.e=0}return e}if(c==0){y.length=l;h=1;l--}else{y.length=l+1;h=I[a-c];y[l]=f>0?n(d/I[i-f]%I[f])*h:0}if(r){for(;;){if(l==0){for(c=1,f=y[0];f>=10;f/=10,c++);f=y[0]+=h;for(h=1;f>=10;f/=10,h++);if(c!=h){e.e++;if(y[0]==u)y[0]=1}break}else{y[l]+=h;if(y[l]!=u)break;y[l--]=0;h=1}}}for(c=y.length;y[--c]===0;y.pop());}if(e.e>$){e.c=e.e=null}else if(e.e14;if(!l.c||!l.c[0]||l.c[0]==1&&!l.e&&l.c.length==1||!e.c||!e.c[0]){d=new BigNumber(Math.pow(+l.valueOf(),f?2-isOdd(e):+e));return t?d.mod(t):d}p=e.s<0;if(t){if(t.c?!t.c[0]:!t.s)return new BigNumber(NaN);r=!p&&l.isInteger()&&t.isInteger();if(r)l=l.mod(t)}else if(e.e>9&&(l.e>0||l.e<-1||(l.e==0?l.c[0]>1||f&&l.c[1]>=24e7:l.c[0]<8e13||f&&l.c[0]<=9999975e7))){c=l.s<0&&isOdd(e)?-0:0;if(l.e>-1)c=1/c;return new BigNumber(p?1/c:c)}else if(A){c=o(A/a+2)}if(f){s=new BigNumber(.5);h=isOdd(e)}else{h=e%2}if(p)e.s=1;d=new BigNumber(y);for(;;){if(h){d=d.times(l);if(!d.c)break;if(c){if(d.c.length>c)d.c.length=c}else if(r){d=d.mod(t)}}if(f){e=e.times(s);round(e,e.e+1,1);if(!e.c[0])break;f=e.e>14;h=isOdd(e)}else{e=n(e/2);if(!e)break;h=e%2}l=l.times(l);if(c){if(l.c&&l.c.length>c)l.c.length=c}else if(r){l=l.mod(t)}}if(r)return d;if(p)d=y.div(d);return t?d.mod(t):c?round(d,A,R,u):d};P.integerValue=function(e){var t=new BigNumber(this);if(e==null)e=R;else intCheck(e,0,8);return round(t,t.e+1,e)};P.isEqualTo=P.eq=function(e,t){return compare(this,new BigNumber(e,t))===0};P.isFinite=function(){return!!this.c};P.isGreaterThan=P.gt=function(e,t){return compare(this,new BigNumber(e,t))>0};P.isGreaterThanOrEqualTo=P.gte=function(e,t){return(t=compare(this,new BigNumber(e,t)))===1||t===0};P.isInteger=function(){return!!this.c&&bitFloor(this.e/a)>this.c.length-2};P.isLessThan=P.lt=function(e,t){return compare(this,new BigNumber(e,t))<0};P.isLessThanOrEqualTo=P.lte=function(e,t){return(t=compare(this,new BigNumber(e,t)))===-1||t===0};P.isNaN=function(){return!this.s};P.isNegative=function(){return this.s<0};P.isPositive=function(){return this.s>0};P.isZero=function(){return!!this.c&&this.c[0]==0};P.minus=function(e,t){var s,r,o,n,i=this,c=i.s;e=new BigNumber(e,t);t=e.s;if(!c||!t)return new BigNumber(NaN);if(c!=t){e.s=-t;return i.plus(e)}var f=i.e/a,p=e.e/a,h=i.c,d=e.c;if(!f||!p){if(!h||!d)return h?(e.s=-t,e):new BigNumber(d?i:NaN);if(!h[0]||!d[0]){return d[0]?(e.s=-t,e):new BigNumber(h[0]?i:R==3?-0:0)}}f=bitFloor(f);p=bitFloor(p);h=h.slice();if(c=f-p){if(n=c<0){c=-c;o=h}else{p=f;o=d}o.reverse();for(t=c;t--;o.push(0));o.reverse()}else{r=(n=(c=h.length)<(t=d.length))?c:t;for(c=t=0;t0)for(;t--;h[s++]=0);t=u-1;for(;r>c;){if(h[--r]=0;){s=0;P=$[o]%g;y=$[o]/g|0;for(i=f,n=o+i;n>o;){p=x[--i]%g;d=x[i]/g|0;c=y*p+d*P;p=P*p+c%g*g+I[n]+s;s=(p/R|0)+(c/g|0)+y*d;I[n--]=p%R}I[n]=s}if(s){++r}else{I.splice(0,1)}return normalise(e,I,r)};P.negated=function(){var e=new BigNumber(this);e.s=-e.s||null;return e};P.plus=function(e,t){var s,r=this,o=r.s;e=new BigNumber(e,t);t=e.s;if(!o||!t)return new BigNumber(NaN);if(o!=t){e.s=-t;return r.minus(e)}var n=r.e/a,i=e.e/a,c=r.c,f=e.c;if(!n||!i){if(!c||!f)return new BigNumber(o/0);if(!c[0]||!f[0])return f[0]?e:new BigNumber(c[0]?r:o*0)}n=bitFloor(n);i=bitFloor(i);c=c.slice();if(o=n-i){if(o>0){i=n;s=f}else{o=-o;s=c}s.reverse();for(;o--;s.push(0));s.reverse()}o=c.length;t=f.length;if(o-t<0)s=f,f=c,c=s,t=o;for(o=0;t;){o=(c[--t]=c[t]+f[t]+o)/u|0;c[t]=u===c[t]?0:c[t]%u}if(o){c=[o].concat(c);++i}return normalise(e,c,i)};P.precision=P.sd=function(e,t){var s,r,o,n=this;if(e!=null&&e!==!!e){intCheck(e,1,d);if(t==null)t=R;else intCheck(t,0,8);return round(new BigNumber(n),e,t)}if(!(s=n.c))return null;o=s.length-1;r=o*a+1;if(o=s[o]){for(;o%10==0;o/=10,r--);for(o=s[0];o>=10;o/=10,r++);}if(e&&n.e+1>r)r=n.e+1;return r};P.shiftedBy=function(e){intCheck(e,-f,f);return this.times("1e"+e)};P.squareRoot=P.sqrt=function(){var e,s,r,o,n,i=this,c=i.c,u=i.s,a=i.e,f=I+4,p=new BigNumber("0.5");if(u!==1||!c||!c[0]){return new BigNumber(!u||u<0&&(!c||c[0])?NaN:c?i:1/0)}u=Math.sqrt(+i);if(u==0||u==1/0){s=coeffToString(c);if((s.length+a)%2==0)s+="0";u=Math.sqrt(s);a=bitFloor((a+1)/2)-(a<0||a%2);if(u==1/0){s="1e"+a}else{s=u.toExponential();s=s.slice(0,s.indexOf("e")+1)+a}r=new BigNumber(s)}else{r=new BigNumber(u+"")}if(r.c[0]){a=r.e;u=a+f;if(u<3)u=0;for(;;){n=r;r=p.times(n.plus(t(i,n,f,1)));if(coeffToString(n.c).slice(0,u)===(s=coeffToString(r.c)).slice(0,u)){if(r.e0&&h>0){r=h%n||n;u=p.substr(0,r);for(;r0)u+=c+p.slice(r);if(f)u="-"+u}s=a?u+m.decimalSeparator+((i=+m.fractionGroupSize)?a.replace(new RegExp("\\d{"+i+"}\\B","g"),"$&"+m.fractionGroupSeparator):a):u}return s};P.toFraction=function(e){var s,r,o,n,c,u,f,h,d,l,P,I,g=this,q=g.c;if(e!=null){h=new BigNumber(e);if(!h.isInteger()&&(h.c||h.s!==1)||h.lt(y)){throw Error(i+"Argument "+(h.isInteger()?"out of range: ":"not an integer: ")+e)}}if(!q)return g.toString();r=new BigNumber(y);l=o=new BigNumber(y);n=d=new BigNumber(y);I=coeffToString(q);u=r.e=I.length-g.e-1;r.c[0]=p[(f=u%a)<0?a+f:f];e=!e||h.comparedTo(r)>0?u>0?r:l:h;f=$;$=1/0;h=new BigNumber(I);d.c[0]=0;for(;;){P=t(h,r,0,1);c=o.plus(P.times(n));if(c.comparedTo(e)==1)break;o=n;n=c;l=d.plus(P.times(c=l));d=c;r=h.minus(P.times(c=r));h=c}c=t(e.minus(o),n,0,1);d=d.plus(c.times(l));o=o.plus(c.times(n));d.s=l.s=g.s;u*=2;s=t(l,n,u,R).minus(g).abs().comparedTo(t(d,o,u,R).minus(g).abs())<1?[l.toString(),n.toString()]:[d.toString(),o.toString()];$=f;return s};P.toNumber=function(){return+this};P.toPrecision=function(e,t){if(e!=null)intCheck(e,1,d);return format(this,e,t,2)};P.toString=function(e){var t,r=this,o=r.s,n=r.e;if(n===null){if(o){t="Infinity";if(o<0)t="-"+t}else{t="NaN"}}else{t=coeffToString(r.c);if(e==null){t=n<=g||n>=q?toExponential(t,n):toFixedPoint(t,n,"0")}else{intCheck(e,2,O.length,"Base");t=s(toFixedPoint(t,n,"0"),10,e,o,true)}if(o<0&&r.c[0])t="-"+t}return t};P.valueOf=P.toJSON=function(){var e,t=this,s=t.e;if(s===null)return t.toString();e=coeffToString(t.c);e=s<=g||s>=q?toExponential(e,s):toFixedPoint(e,s,"0");return t.s<0?"-"+e:e};P._isBigNumber=true;if(e!=null)BigNumber.set(e);return BigNumber}function bitFloor(e){var t=e|0;return e>0||e===t?t:t-1}function coeffToString(e){var t,s,r=1,o=e.length,n=e[0]+"";for(;ra^s?1:-1;c=(u=o.length)<(a=n.length)?u:a;for(i=0;in[i]^s?1:-1;return u==a?0:u>a^s?1:-1}function intCheck(e,t,s,r){if(es||e!==(e<0?o(e):n(e))){throw Error(i+(r||"Argument")+(typeof e=="number"?es?" out of range: ":" not an integer: ":" not a primitive number: ")+e)}}function isArray(e){return Object.prototype.toString.call(e)=="[object Array]"}function isOdd(e){var t=e.c.length-1;return bitFloor(e.e/a)==t&&e.c[t]%2!=0}function toExponential(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function toFixedPoint(e,t,s){var r,o;if(t<0){for(o=s+".";++t;o+=s);e=o+e}else{r=e.length;if(++t>r){for(o=s,t-=r;--t;o+=s);e+=o}else if(t{let r=0;const o=[];function read(){const t=e.read();if(t)ondata(t);else e.once("readable",read)}function cleanup(){e.removeListener("end",onend);e.removeListener("error",onerror);e.removeListener("close",onclose);e.removeListener("readable",read)}function onclose(e){n("onclose had error %o",e)}function onend(){n("onend")}function onerror(e){cleanup();n("onerror %o",e);s(e)}function ondata(e){o.push(e);r+=e.length;const s=Buffer.concat(o,r);const i=s.indexOf("\r\n\r\n");if(i===-1){n("have not received end of HTTP headers yet...");read();return}const c=s.toString("ascii",0,s.indexOf("\r\n"));const u=+c.split(" ")[1];n("got proxy server response: %o",c);t({statusCode:u,buffered:s})}e.on("error",onerror);e.on("close",onclose);e.on("end",onend);read()})}t.default=parseProxyResponse},,,function(e,t,s){"use strict";var r=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(Object.hasOwnProperty.call(e,s))t[s]=e[s];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const o=r(s(87));function issueCommand(e,t,s){const r=new Command(e,t,s);process.stdout.write(r.toString()+o.EOL)}t.issueCommand=issueCommand;function issue(e,t=""){issueCommand(e,{},t)}t.issue=issue;const n="::";class Command{constructor(e,t,s){if(!e){e="missing.command"}this.command=e;this.properties=t;this.message=s}toString(){let e=n+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let t=true;for(const s in this.properties){if(this.properties.hasOwnProperty(s)){const r=this.properties[s];if(r){if(t){t=false}else{e+=","}e+=`${s}=${escapeProperty(r)}`}}}}e+=`${n}${escapeData(this.message)}`;return e}}function toCommandValue(e){if(e===null||e===undefined){return""}else if(typeof e==="string"||e instanceof String){return e}return JSON.stringify(e)}t.toCommandValue=toCommandValue;function escapeData(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function escapeProperty(e){return toCommandValue(e).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}},function(e,t,s){"use strict";var r=s(513).Buffer;var o=r.isEncoding||function(e){e=""+e;switch(e&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return true;default:return false}};function _normalizeEncoding(e){if(!e)return"utf8";var t;while(true){switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(t)return;e=(""+e).toLowerCase();t=true}}}function normalizeEncoding(e){var t=_normalizeEncoding(e);if(typeof t!=="string"&&(r.isEncoding===o||!o(e)))throw new Error("Unknown encoding: "+e);return t||e}t.StringDecoder=StringDecoder;function StringDecoder(e){this.encoding=normalizeEncoding(e);var t;switch(this.encoding){case"utf16le":this.text=utf16Text;this.end=utf16End;t=4;break;case"utf8":this.fillLast=utf8FillLast;t=4;break;case"base64":this.text=base64Text;this.end=base64End;t=3;break;default:this.write=simpleWrite;this.end=simpleEnd;return}this.lastNeed=0;this.lastTotal=0;this.lastChar=r.allocUnsafe(t)}StringDecoder.prototype.write=function(e){if(e.length===0)return"";var t;var s;if(this.lastNeed){t=this.fillLast(e);if(t===undefined)return"";s=this.lastNeed;this.lastNeed=0}else{s=0}if(s>5===6)return 2;else if(e>>4===14)return 3;else if(e>>3===30)return 4;return e>>6===2?-1:-2}function utf8CheckIncomplete(e,t,s){var r=t.length-1;if(r=0){if(o>0)e.lastNeed=o-1;return o}if(--r=0){if(o>0)e.lastNeed=o-2;return o}if(--r=0){if(o>0){if(o===2)o=0;else e.lastNeed=o-3}return o}return 0}function utf8CheckExtraBytes(e,t,s){if((t[0]&192)!==128){e.lastNeed=0;return"�"}if(e.lastNeed>1&&t.length>1){if((t[1]&192)!==128){e.lastNeed=1;return"�"}if(e.lastNeed>2&&t.length>2){if((t[2]&192)!==128){e.lastNeed=2;return"�"}}}}function utf8FillLast(e){var t=this.lastTotal-this.lastNeed;var s=utf8CheckExtraBytes(this,e,t);if(s!==undefined)return s;if(this.lastNeed<=e.length){e.copy(this.lastChar,t,0,this.lastNeed);return this.lastChar.toString(this.encoding,0,this.lastTotal)}e.copy(this.lastChar,t,0,e.length);this.lastNeed-=e.length}function utf8Text(e,t){var s=utf8CheckIncomplete(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=s;var r=e.length-(s-this.lastNeed);e.copy(this.lastChar,0,r);return e.toString("utf8",t,r)}function utf8End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+"�";return t}function utf16Text(e,t){if((e.length-t)%2===0){var s=e.toString("utf16le",t);if(s){var r=s.charCodeAt(s.length-1);if(r>=55296&&r<=56319){this.lastNeed=2;this.lastTotal=4;this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1];return s.slice(0,-1)}}return s}this.lastNeed=1;this.lastTotal=2;this.lastChar[0]=e[e.length-1];return e.toString("utf16le",t,e.length-1)}function utf16End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var s=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,s)}return t}function base64Text(e,t){var s=(e.length-t)%3;if(s===0)return e.toString("base64",t);this.lastNeed=3-s;this.lastTotal=3;if(s===1){this.lastChar[0]=e[e.length-1]}else{this.lastChar[0]=e[e.length-2];this.lastChar[1]=e[e.length-1]}return e.toString("base64",t,e.length-s)}function base64End(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed)return t+this.lastChar.toString("base64",0,3-this.lastNeed);return t}function simpleWrite(e){return e.toString(this.encoding)}function simpleEnd(e){return e&&e.length?this.write(e):""}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adexchangebuyer_v1_4=void 0;const r=s(927);var o;(function(e){class Adexchangebuyer{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.billingInfo=new Resource$Billinginfo(this.context);this.budget=new Resource$Budget(this.context);this.creatives=new Resource$Creatives(this.context);this.marketplacedeals=new Resource$Marketplacedeals(this.context);this.marketplacenotes=new Resource$Marketplacenotes(this.context);this.marketplaceprivateauction=new Resource$Marketplaceprivateauction(this.context);this.performanceReport=new Resource$Performancereport(this.context);this.pretargetingConfig=new Resource$Pretargetingconfig(this.context);this.products=new Resource$Products(this.context);this.proposals=new Resource$Proposals(this.context);this.pubprofiles=new Resource$Pubprofiles(this.context)}}e.Adexchangebuyer=Adexchangebuyer;class Resource$Accounts{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Billinginfo{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/billinginfo/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/billinginfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Billinginfo=Resource$Billinginfo;class Resource$Budget{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","billingId"],pathParams:["accountId","billingId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["accountId","billingId"],pathParams:["accountId","billingId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","billingId"],pathParams:["accountId","billingId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Budget=Resource$Budget;class Resource$Creatives{constructor(e){this.context=e}addDeal(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","buyerCreativeId","dealId"],pathParams:["accountId","buyerCreativeId","dealId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","buyerCreativeId"],pathParams:["accountId","buyerCreativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listDeals(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/listDeals").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","buyerCreativeId"],pathParams:["accountId","buyerCreativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeDeal(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId","buyerCreativeId","dealId"],pathParams:["accountId","buyerCreativeId","dealId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creatives=Resource$Creatives;class Resource$Marketplacedeals{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/deals/delete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/deals/insert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/deals").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/deals/update").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Marketplacedeals=Resource$Marketplacedeals;class Resource$Marketplacenotes{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/notes/insert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/notes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Marketplacenotes=Resource$Marketplacenotes;class Resource$Marketplaceprivateauction{constructor(e){this.context=e}updateproposal(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/privateauction/{privateAuctionId}/updateproposal").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["privateAuctionId"],pathParams:["privateAuctionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Marketplaceprivateauction=Resource$Marketplaceprivateauction;class Resource$Performancereport{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/performancereport").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","endDateTime","startDateTime"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Performancereport=Resource$Performancereport;class Resource$Pretargetingconfig{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["accountId","configId"],pathParams:["accountId","configId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","configId"],pathParams:["accountId","configId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["accountId","configId"],pathParams:["accountId","configId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["accountId","configId"],pathParams:["accountId","configId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pretargetingconfig=Resource$Pretargetingconfig;class Resource$Products{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["productId"],pathParams:["productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/products/search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Products=Resource$Products;class Resource$Proposals{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/insert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["proposalId","revisionNumber","updateAction"],pathParams:["proposalId","revisionNumber","updateAction"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setupcomplete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/setupcomplete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["proposalId"],pathParams:["proposalId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["proposalId","revisionNumber","updateAction"],pathParams:["proposalId","revisionNumber","updateAction"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Proposals=Resource$Proposals;class Resource$Pubprofiles{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.4/publisher/{accountId}/profiles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId"],pathParams:["accountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pubprofiles=Resource$Pubprofiles})(o=t.adexchangebuyer_v1_4||(t.adexchangebuyer_v1_4={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.acceleratedmobilepageurl_v1=void 0;const r=s(927);var o;(function(e){class Acceleratedmobilepageurl{constructor(e,t){this.context={_options:e||{},google:t};this.ampUrls=new Resource$Ampurls(this.context)}}e.Acceleratedmobilepageurl=Acceleratedmobilepageurl;class Resource$Ampurls{constructor(e){this.context=e}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://acceleratedmobilepageurl.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/ampUrls:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Ampurls=Resource$Ampurls})(o=t.acceleratedmobilepageurl_v1||(t.acceleratedmobilepageurl_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.appsactivity=t.VERSIONS=void 0;const r=s(927);const o=s(556);t.VERSIONS={v1:o.appsactivity_v1.Appsactivity};function appsactivity(e){return r.getAPI("appsactivity",e,t.VERSIONS,this)}t.appsactivity=appsactivity;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(145);var o={};var n=function(e,t){return n.create(e,t)};n.create=function(e,t){if(o[e]){var s=new r(e,t);s.setFormat(e);s.setModule(new o[e](t));return s}else{throw new Error("create("+e+"): format not registered")}};n.registerFormat=function(e,t){if(o[e]){throw new Error("register("+e+"): format already registered")}if(typeof t!=="function"){throw new Error("register("+e+"): format module invalid")}if(typeof t.prototype.append!=="function"||typeof t.prototype.finalize!=="function"){throw new Error("register("+e+"): format module missing methods")}o[e]=t};n.registerFormat("zip",s(841));n.registerFormat("tar",s(906));n.registerFormat("json",s(879));e.exports=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.games_v1=void 0;const r=s(927);var o;(function(e){class Games{constructor(e,t){this.context={_options:e||{},google:t};this.achievementDefinitions=new Resource$Achievementdefinitions(this.context);this.achievements=new Resource$Achievements(this.context);this.applications=new Resource$Applications(this.context);this.events=new Resource$Events(this.context);this.leaderboards=new Resource$Leaderboards(this.context);this.metagame=new Resource$Metagame(this.context);this.players=new Resource$Players(this.context);this.pushtokens=new Resource$Pushtokens(this.context);this.revisions=new Resource$Revisions(this.context);this.rooms=new Resource$Rooms(this.context);this.scores=new Resource$Scores(this.context);this.snapshots=new Resource$Snapshots(this.context);this.turnBasedMatches=new Resource$Turnbasedmatches(this.context)}}e.Games=Games;class Resource$Achievementdefinitions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Achievementdefinitions=Resource$Achievementdefinitions;class Resource$Achievements{constructor(e){this.context=e}increment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements/{achievementId}/increment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["achievementId","stepsToIncrement"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/{playerId}/achievements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["playerId"],pathParams:["playerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reveal(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements/{achievementId}/reveal").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["achievementId"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setStepsAtLeast(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements/{achievementId}/setStepsAtLeast").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["achievementId","steps"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unlock(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements/{achievementId}/unlock").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["achievementId"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateMultiple(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/achievements/updateMultiple").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Achievements=Resource$Achievements;class Resource$Applications{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/applications/{applicationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}played(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/applications/played").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/applications/{applicationId}/verify").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Applications=Resource$Applications;class Resource$Events{constructor(e){this.context=e}listByPlayer(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/events").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listDefinitions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/eventDefinitions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}record(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/events").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Events=Resource$Events;class Resource$Leaderboards{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards/{leaderboardId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["leaderboardId"],pathParams:["leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Leaderboards=Resource$Leaderboards;class Resource$Metagame{constructor(e){this.context=e}getMetagameConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/metagameConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listCategoriesByPlayer(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/{playerId}/categories/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["playerId","collection"],pathParams:["collection","playerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Metagame=Resource$Metagame;class Resource$Players{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/{playerId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["playerId"],pathParams:["playerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/me/players/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["collection"],pathParams:["collection"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Players=Resource$Players;class Resource$Pushtokens{constructor(e){this.context=e}remove(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/pushtokens/remove").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/pushtokens").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pushtokens=Resource$Pushtokens;class Resource$Revisions{constructor(e){this.context=e}check(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/revisions/check").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["clientRevision"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Revisions=Resource$Revisions;class Resource$Rooms{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/create").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}decline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}/decline").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}/dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}join(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}/join").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}leave(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}/leave").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reportStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/rooms/{roomId}/reportstatus").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["roomId"],pathParams:["roomId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Rooms=Resource$Rooms;class Resource$Scores{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["playerId","leaderboardId","timeSpan"],pathParams:["leaderboardId","playerId","timeSpan"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards/{leaderboardId}/scores/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["leaderboardId","collection","timeSpan"],pathParams:["collection","leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listWindow(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards/{leaderboardId}/window/{collection}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["leaderboardId","collection","timeSpan"],pathParams:["collection","leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}submit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards/{leaderboardId}/scores").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["leaderboardId","score"],pathParams:["leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}submitMultiple(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/leaderboards/scores").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Scores=Resource$Scores;class Resource$Snapshots{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/snapshots/{snapshotId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["snapshotId"],pathParams:["snapshotId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/players/{playerId}/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["playerId"],pathParams:["playerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Snapshots=Resource$Snapshots;class Resource$Turnbasedmatches{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/cancel").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/create").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}decline(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/decline").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}finish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/finish").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}join(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/join").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}leave(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/leave").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}leaveTurn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/leaveTurn").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId","matchVersion"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rematch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/rematch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sync(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/sync").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}takeTurn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1/turnbasedmatches/{matchId}/turn").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["matchId"],pathParams:["matchId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Turnbasedmatches=Resource$Turnbasedmatches})(o=t.games_v1||(t.games_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.bigtableadmin=t.VERSIONS=void 0;const r=s(927);const o=s(103);const n=s(226);t.VERSIONS={v1:o.bigtableadmin_v1.Bigtableadmin,v2:n.bigtableadmin_v2.Bigtableadmin};function bigtableadmin(e){return r.getAPI("bigtableadmin",e,t.VERSIONS,this)}t.bigtableadmin=bigtableadmin;const i=new r.AuthPlus;t.auth=i},,function(e,t,s){"use strict";e.exports=Writable;function WriteReq(e,t,s){this.chunk=e;this.encoding=t;this.callback=s;this.next=null}function CorkedRequest(e){var t=this;this.next=null;this.entry=null;this.finish=function(){onCorkedFinish(t,e)}}var r;Writable.WritableState=WritableState;var o={deprecate:s(917)};var n=s(427);var i=s(293).Buffer;var c=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return i.from(e)}function _isUint8Array(e){return i.isBuffer(e)||e instanceof c}var u=s(546);var a=s(216),f=a.getHighWaterMark;var p=s(563).codes,h=p.ERR_INVALID_ARG_TYPE,d=p.ERR_METHOD_NOT_IMPLEMENTED,l=p.ERR_MULTIPLE_CALLBACK,P=p.ERR_STREAM_CANNOT_PIPE,y=p.ERR_STREAM_DESTROYED,I=p.ERR_STREAM_NULL_VALUES,R=p.ERR_STREAM_WRITE_AFTER_END,g=p.ERR_UNKNOWN_ENCODING;var q=u.errorOrDestroy;s(689)(Writable,n);function nop(){}function WritableState(e,t,o){r=r||s(831);e=e||{};if(typeof o!=="boolean")o=t instanceof r;this.objectMode=!!e.objectMode;if(o)this.objectMode=this.objectMode||!!e.writableObjectMode;this.highWaterMark=f(this,e,"writableHighWaterMark",o);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var n=e.decodeStrings===false;this.decodeStrings=!n;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.emitClose=e.emitClose!==false;this.autoDestroy=!!e.autoDestroy;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:o.deprecate(function writableStateBufferGetter(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var x;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){x=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function value(e){if(x.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{x=function realHasInstance(e){return e instanceof this}}function Writable(e){r=r||s(831);var t=this instanceof r;if(!t&&!x.call(Writable,this))return new Writable(e);this._writableState=new WritableState(e,this,t);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}n.call(this)}Writable.prototype.pipe=function(){q(this,new P)};function writeAfterEnd(e,t){var s=new R;q(e,s);process.nextTick(t,s)}function validChunk(e,t,s,r){var o;if(s===null){o=new I}else if(typeof s!=="string"&&!t.objectMode){o=new h("chunk",["string","Buffer"],s)}if(o){q(e,o);process.nextTick(r,o);return false}return true}Writable.prototype.write=function(e,t,s){var r=this._writableState;var o=false;var n=!r.objectMode&&_isUint8Array(e);if(n&&!i.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){s=t;t=null}if(n)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof s!=="function")s=nop;if(r.ending)writeAfterEnd(this,s);else if(n||validChunk(this,r,e,s)){r.pendingcb++;o=writeOrBuffer(this,r,n,e,t,s)}return o};Writable.prototype.cork=function(){this._writableState.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new g(e);this._writableState.defaultEncoding=e;return this};Object.defineProperty(Writable.prototype,"writableBuffer",{enumerable:false,get:function get(){return this._writableState&&this._writableState.getBuffer()}});function decodeChunk(e,t,s){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=i.from(t,s)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function get(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,s,r,o,n){if(!s){var i=decodeChunk(t,r,o);if(r!==i){s=true;o="buffer";r=i}}var c=t.objectMode?1:r.length;t.length+=c;var u=t.lengthe.indexOf("(https.js:")!==-1)}function createAgent(e,t){return new createAgent.Agent(e,t)}(function(e){class Agent extends o.EventEmitter{constructor(e,t){super();let s=t;if(typeof e==="function"){this.callback=e}else if(e){s=e}this.timeout=null;if(s&&typeof s.timeout==="number"){this.timeout=s.timeout}this.maxFreeSockets=1;this.maxSockets=1;this.sockets={};this.requests={}}get defaultPort(){if(typeof this.explicitDefaultPort==="number"){return this.explicitDefaultPort}return isSecureEndpoint()?443:80}set defaultPort(e){this.explicitDefaultPort=e}get protocol(){if(typeof this.explicitProtocol==="string"){return this.explicitProtocol}return isSecureEndpoint()?"https:":"http:"}set protocol(e){this.explicitProtocol=e}callback(e,t,s){throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`')}addRequest(e,t){const s=Object.assign({},t);if(typeof s.secureEndpoint!=="boolean"){s.secureEndpoint=isSecureEndpoint()}if(s.host==null){s.host="localhost"}if(s.port==null){s.port=s.secureEndpoint?443:80}if(s.protocol==null){s.protocol=s.secureEndpoint?"https:":"http:"}if(s.host&&s.path){delete s.path}delete s.agent;delete s.hostname;delete s._defaultAgent;delete s.defaultPort;delete s.createConnection;e._last=true;e.shouldKeepAlive=false;let r=false;let o=null;const n=s.timeout||this.timeout;const u=t=>{if(e._hadError)return;e.emit("error",t);e._hadError=true};const a=()=>{o=null;r=true;const e=new Error(`A "socket" was not created for HTTP request before ${n}ms`);e.code="ETIMEOUT";u(e)};const f=e=>{if(r)return;if(o!==null){clearTimeout(o);o=null}u(e)};const p=t=>{if(r)return;if(o!=null){clearTimeout(o);o=null}if(isAgent(t)){c("Callback returned another Agent instance %o",t.constructor.name);t.addRequest(e,s);return}if(t){t.once("free",()=>{this.freeSocket(t,s)});e.onSocket(t);return}const n=new Error(`no Duplex stream was returned to agent-base for \`${e.method} ${e.path}\``);u(n)};if(typeof this.callback!=="function"){u(new Error("`callback` is not defined"));return}if(!this.promisifiedCallback){if(this.callback.length>=3){c("Converting legacy callback function to promise");this.promisifiedCallback=i.default(this.callback)}else{this.promisifiedCallback=this.callback}}if(typeof n==="number"&&n>0){o=setTimeout(a,n)}if("port"in s&&typeof s.port!=="number"){s.port=Number(s.port)}try{c("Resolving socket for %o request: %o",s.protocol,`${e.method} ${e.path}`);Promise.resolve(this.promisifiedCallback(e,s)).then(p,f)}catch(e){Promise.reject(e).catch(f)}}freeSocket(e,t){c("Freeing socket %o %o",e.constructor.name,t);e.destroy()}destroy(){c("Destroying agent %o",this.constructor.name)}}e.Agent=Agent;e.prototype=e.Agent.prototype})(createAgent||(createAgent={}));e.exports=createAgent},function(e,t,s){"use strict";var r=s(217);e.exports=new r(s(460),s(983))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.datastore=t.VERSIONS=void 0;const r=s(927);const o=s(618);const n=s(234);const i=s(502);t.VERSIONS={v1:o.datastore_v1.Datastore,v1beta1:n.datastore_v1beta1.Datastore,v1beta3:i.datastore_v1beta3.Datastore};function datastore(e){return r.getAPI("datastore",e,t.VERSIONS,this)}t.datastore=datastore;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.content_v2=void 0;const r=s(927);var o;(function(e){class Content{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.accountstatuses=new Resource$Accountstatuses(this.context);this.accounttax=new Resource$Accounttax(this.context);this.datafeeds=new Resource$Datafeeds(this.context);this.datafeedstatuses=new Resource$Datafeedstatuses(this.context);this.inventory=new Resource$Inventory(this.context);this.liasettings=new Resource$Liasettings(this.context);this.orderinvoices=new Resource$Orderinvoices(this.context);this.orderreports=new Resource$Orderreports(this.context);this.orderreturns=new Resource$Orderreturns(this.context);this.orders=new Resource$Orders(this.context);this.pos=new Resource$Pos(this.context);this.products=new Resource$Products(this.context);this.productstatuses=new Resource$Productstatuses(this.context);this.shippingsettings=new Resource$Shippingsettings(this.context)}}e.Content=Content;class Resource$Accounts{constructor(e){this.context=e}authinfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/accounts/authinfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}claimwebsite(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts/{accountId}/claimwebsite").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/accounts/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}link(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts/{accountId}/link").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounts/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accountstatuses{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/accountstatuses/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accountstatuses/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accountstatuses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accountstatuses=Resource$Accountstatuses;class Resource$Accounttax{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/accounttax/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounttax/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounttax").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/accounttax/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounttax=Resource$Accounttax;class Resource$Datafeeds{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/datafeeds/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds/{datafeedId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["merchantId","datafeedId"],pathParams:["datafeedId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}fetchnow(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","datafeedId"],pathParams:["datafeedId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds/{datafeedId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","datafeedId"],pathParams:["datafeedId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeeds/{datafeedId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["merchantId","datafeedId"],pathParams:["datafeedId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Datafeeds=Resource$Datafeeds;class Resource$Datafeedstatuses{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/datafeedstatuses/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeedstatuses/{datafeedId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","datafeedId"],pathParams:["datafeedId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/datafeedstatuses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Datafeedstatuses=Resource$Datafeedstatuses;class Resource$Inventory{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/inventory/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/inventory/{storeCode}/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","storeCode","productId"],pathParams:["merchantId","productId","storeCode"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Inventory=Resource$Inventory;class Resource$Liasettings{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/liasettings/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getaccessiblegmbaccounts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listposdataproviders(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/liasettings/posdataproviders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}requestgmbaccess(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId","gmbEmail"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}requestinventoryverification(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId","country"],pathParams:["accountId","country","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setinventoryverificationcontact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId","contactEmail","contactName","country","language"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setposdataprovider(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","accountId","country"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/liasettings/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Liasettings=Resource$Liasettings;class Resource$Orderinvoices{constructor(e){this.context=e}createchargeinvoice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createrefundinvoice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orderinvoices=Resource$Orderinvoices;class Resource$Orderreports{constructor(e){this.context=e}listdisbursements(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderreports/disbursements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","disbursementStartDate"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listtransactions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","disbursementId","transactionStartDate"],pathParams:["disbursementId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orderreports=Resource$Orderreports;class Resource$Orderreturns{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderreturns/{returnId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","returnId"],pathParams:["merchantId","returnId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orderreturns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orderreturns=Resource$Orderreturns;class Resource$Orders{constructor(e){this.context=e}acknowledge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/acknowledge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}advancetestorder(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/testorders/{orderId}/advance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}cancellineitem(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/cancelLineItem").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}canceltestorderbycustomer(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createtestorder(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/testorders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createtestreturn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/testreturn").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/orders/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getbymerchantorderid(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","merchantOrderId"],pathParams:["merchantId","merchantOrderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}gettestordertemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/testordertemplates/{templateName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","templateName"],pathParams:["merchantId","templateName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}instorerefundlineitem(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}refund(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/refund").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rejectreturnlineitem(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}returnlineitem(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/returnLineItem").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}returnrefundlineitem(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setlineitemmetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}shiplineitems(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/shipLineItems").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatelineitemshippingdetails(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatemerchantorderid(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateshipment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/orders/{orderId}/updateShipment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","orderId"],pathParams:["merchantId","orderId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orders=Resource$Orders;class Resource$Pos{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/pos/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["merchantId","targetMerchantId","storeCode"],pathParams:["merchantId","storeCode","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","targetMerchantId","storeCode"],pathParams:["merchantId","storeCode","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/store").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","targetMerchantId"],pathParams:["merchantId","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}inventory(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/inventory").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","targetMerchantId"],pathParams:["merchantId","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/store").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","targetMerchantId"],pathParams:["merchantId","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sale(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/pos/{targetMerchantId}/sale").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId","targetMerchantId"],pathParams:["merchantId","targetMerchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pos=Resource$Pos;class Resource$Products{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/products/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["merchantId","productId"],pathParams:["merchantId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/products/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","productId"],pathParams:["merchantId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/products").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/products").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Products=Resource$Products;class Resource$Productstatuses{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/productstatuses/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/productstatuses/{productId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","productId"],pathParams:["merchantId","productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/productstatuses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Productstatuses=Resource$Productstatuses;class Resource$Shippingsettings{constructor(e){this.context=e}custombatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/shippingsettings/batch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/shippingsettings/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getsupportedcarriers(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/supportedCarriers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getsupportedholidays(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/supportedHolidays").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getsupportedpickupservices(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/supportedPickupServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/shippingsettings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["merchantId"],pathParams:["merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/content/v2/{merchantId}/shippingsettings/{accountId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["merchantId","accountId"],pathParams:["accountId","merchantId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Shippingsettings=Resource$Shippingsettings})(o=t.content_v2||(t.content_v2={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.script_v1=void 0;const r=s(927);var o;(function(e){class Script{constructor(e,t){this.context={_options:e||{},google:t};this.processes=new Resource$Processes(this.context);this.projects=new Resource$Projects(this.context);this.scripts=new Resource$Scripts(this.context)}}e.Script=Script;class Resource$Processes{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/processes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listScriptProcesses(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/processes:listScriptProcesses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Processes=Resource$Processes;class Resource$Projects{constructor(e){this.context=e;this.deployments=new Resource$Projects$Deployments(this.context);this.versions=new Resource$Projects$Versions(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getContent(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/content").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getMetrics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/metrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateContent(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/content").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Deployments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/deployments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/deployments/{deploymentId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["scriptId","deploymentId"],pathParams:["deploymentId","scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/deployments/{deploymentId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId","deploymentId"],pathParams:["deploymentId","scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/deployments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/deployments/{deploymentId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["scriptId","deploymentId"],pathParams:["deploymentId","scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Deployments=Resource$Projects$Deployments;class Resource$Projects$Versions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/versions/{versionNumber}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId","versionNumber"],pathParams:["scriptId","versionNumber"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{scriptId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Versions=Resource$Projects$Versions;class Resource$Scripts{constructor(e){this.context=e}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://script.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/scripts/{scriptId}:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["scriptId"],pathParams:["scriptId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Scripts=Resource$Scripts})(o=t.script_v1||(t.script_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(191);const o=s(413);const n=s(815);const i=s(984);const c=s(616);const u=s(207);var a;(function(e){e["Plain"]="plain";e["S256"]="S256"})(a=t.CodeChallengeMethod||(t.CodeChallengeMethod={}));var f;(function(e){e["PEM"]="PEM";e["JWK"]="JWK"})(f=t.CertificateFormat||(t.CertificateFormat={}));class OAuth2Client extends c.AuthClient{constructor(e,t,s){super();this.certificateCache={};this.certificateExpiry=null;this.certificateCacheFormat=f.PEM;this.refreshTokenPromises=new Map;const r=e&&typeof e==="object"?e:{clientId:e,clientSecret:t,redirectUri:s};this._clientId=r.clientId;this._clientSecret=r.clientSecret;this.redirectUri=r.redirectUri;this.eagerRefreshThresholdMillis=r.eagerRefreshThresholdMillis||5*60*1e3;this.forceRefreshOnFailure=!!r.forceRefreshOnFailure}generateAuthUrl(e={}){if(e.code_challenge_method&&!e.code_challenge){throw new Error("If a code_challenge_method is provided, code_challenge must be included.")}e.response_type=e.response_type||"code";e.client_id=e.client_id||this._clientId;e.redirect_uri=e.redirect_uri||this.redirectUri;if(e.scope instanceof Array){e.scope=e.scope.join(" ")}const t=OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_;return t+"?"+r.stringify(e)}generateCodeVerifier(){throw new Error("generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.")}async generateCodeVerifierAsync(){const e=i.createCrypto();const t=e.randomBytesBase64(96);const s=t.replace(/\+/g,"~").replace(/=/g,"_").replace(/\//g,"-");const r=await e.sha256DigestBase64(s);const o=r.split("=")[0].replace(/\+/g,"-").replace(/\//g,"_");return{codeVerifier:s,codeChallenge:o}}getToken(e,t){const s=typeof e==="string"?{code:e}:e;if(t){this.getTokenAsync(s).then(e=>t(null,e.tokens,e.res),e=>t(e,null,e.response))}else{return this.getTokenAsync(s)}}async getTokenAsync(e){const t=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const s={code:e.code,client_id:e.client_id||this._clientId,client_secret:this._clientSecret,redirect_uri:e.redirect_uri||this.redirectUri,grant_type:"authorization_code",code_verifier:e.codeVerifier};const o=await this.transporter.request({method:"POST",url:t,data:r.stringify(s),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const n=o.data;if(o.data&&o.data.expires_in){n.expiry_date=(new Date).getTime()+o.data.expires_in*1e3;delete n.expires_in}this.emit("tokens",n);return{tokens:n,res:o}}async refreshToken(e){if(!e){return this.refreshTokenNoCache(e)}if(this.refreshTokenPromises.has(e)){return this.refreshTokenPromises.get(e)}const t=this.refreshTokenNoCache(e).then(t=>{this.refreshTokenPromises.delete(e);return t},t=>{this.refreshTokenPromises.delete(e);throw t});this.refreshTokenPromises.set(e,t);return t}async refreshTokenNoCache(e){if(!e){throw new Error("No refresh token is set.")}const t=OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_;const s={refresh_token:e,client_id:this._clientId,client_secret:this._clientSecret,grant_type:"refresh_token"};const o=await this.transporter.request({method:"POST",url:t,data:r.stringify(s),headers:{"Content-Type":"application/x-www-form-urlencoded"}});const n=o.data;if(o.data&&o.data.expires_in){n.expiry_date=(new Date).getTime()+o.data.expires_in*1e3;delete n.expires_in}this.emit("tokens",n);return{tokens:n,res:o}}refreshAccessToken(e){if(e){this.refreshAccessTokenAsync().then(t=>e(null,t.credentials,t.res),e)}else{return this.refreshAccessTokenAsync()}}async refreshAccessTokenAsync(){const e=await this.refreshToken(this.credentials.refresh_token);const t=e.tokens;t.refresh_token=this.credentials.refresh_token;this.credentials=t;return{credentials:this.credentials,res:e.res}}getAccessToken(e){if(e){this.getAccessTokenAsync().then(t=>e(null,t.token,t.res),e)}else{return this.getAccessTokenAsync()}}async getAccessTokenAsync(){const e=!this.credentials.access_token||this.isTokenExpiring();if(e){if(!this.credentials.refresh_token){throw new Error("No refresh token is set.")}const e=await this.refreshAccessTokenAsync();if(!e.credentials||e.credentials&&!e.credentials.access_token){throw new Error("Could not refresh access token.")}return{token:e.credentials.access_token,res:e.res}}else{return{token:this.credentials.access_token}}}async getRequestHeaders(e){const t=(await this.getRequestMetadataAsync(e)).headers;return t}async getRequestMetadataAsync(e){const t=this.credentials;if(!t.access_token&&!t.refresh_token&&!this.apiKey){throw new Error("No access, refresh token or API key is set.")}if(t.access_token&&!this.isTokenExpiring()){t.token_type=t.token_type||"Bearer";const e={Authorization:t.token_type+" "+t.access_token};return{headers:e}}if(this.apiKey){return{headers:{"X-Goog-Api-Key":this.apiKey}}}let s=null;let r=null;try{s=await this.refreshToken(t.refresh_token);r=s.tokens}catch(e){const t=e;if(t.response&&(t.response.status===403||t.response.status===404)){t.message=`Could not refresh access token: ${t.message}`}throw t}const o=this.credentials;o.token_type=o.token_type||"Bearer";r.refresh_token=o.refresh_token;this.credentials=r;const n={Authorization:o.token_type+" "+r.access_token};return{headers:this.addSharedMetadataHeaders(n),res:s.res}}static getRevokeTokenUrl(e){const t=r.stringify({token:e});return`${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${t}`}revokeToken(e,t){const s={url:OAuth2Client.getRevokeTokenUrl(e),method:"POST"};if(t){this.transporter.request(s).then(e=>t(null,e),t)}else{return this.transporter.request(s)}}revokeCredentials(e){if(e){this.revokeCredentialsAsync().then(t=>e(null,t),e)}else{return this.revokeCredentialsAsync()}}async revokeCredentialsAsync(){const e=this.credentials.access_token;this.credentials={};if(e){return this.revokeToken(e)}else{throw new Error("No access token to revoke.")}}request(e,t){if(t){this.requestAsync(e).then(e=>t(null,e),e=>{return t(e,e.response)})}else{return this.requestAsync(e)}}async requestAsync(e,t=false){let s;try{const r=await this.getRequestMetadataAsync(e.url);e.headers=e.headers||{};if(r.headers&&r.headers["x-goog-user-project"]){e.headers["x-goog-user-project"]=r.headers["x-goog-user-project"]}if(r.headers&&r.headers.Authorization){e.headers.Authorization=r.headers.Authorization}if(this.apiKey){e.headers["X-Goog-Api-Key"]=this.apiKey}s=await this.transporter.request(e)}catch(s){const r=s.response;if(r){const s=r.status;const n=this.credentials&&this.credentials.access_token&&this.credentials.refresh_token&&(!this.credentials.expiry_date||this.forceRefreshOnFailure);const i=r.config.data instanceof o.Readable;const c=s===401||s===403;if(!t&&c&&!i&&n){await this.refreshAccessTokenAsync();return this.requestAsync(e,true)}}throw s}return s}verifyIdToken(e,t){if(t&&typeof t!=="function"){throw new Error("This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.")}if(t){this.verifyIdTokenAsync(e).then(e=>t(null,e),t)}else{return this.verifyIdTokenAsync(e)}}async verifyIdTokenAsync(e){if(!e.idToken){throw new Error("The verifyIdToken method requires an ID Token")}const t=await this.getFederatedSignonCertsAsync();const s=await this.verifySignedJwtWithCertsAsync(e.idToken,t.certs,e.audience,OAuth2Client.ISSUERS_,e.maxExpiry);return s}async getTokenInfo(e){const{data:t}=await this.transporter.request({method:"GET",url:OAuth2Client.GOOGLE_TOKEN_INFO_URL,params:{access_token:e}});const s=Object.assign({expiry_date:(new Date).getTime()+t.expires_in*1e3,scopes:t.scope.split(" ")},t);delete s.expires_in;delete s.scope;return s}getFederatedSignonCerts(e){if(e){this.getFederatedSignonCertsAsync().then(t=>e(null,t.certs,t.res),e)}else{return this.getFederatedSignonCertsAsync()}}async getFederatedSignonCertsAsync(){const e=(new Date).getTime();const t=i.hasBrowserCrypto()?f.JWK:f.PEM;if(this.certificateExpiry&&ee(null,t.pubkeys,t.res),e)}else{return this.getIapPublicKeysAsync()}}async getIapPublicKeysAsync(){const e=(new Date).getTime();let t;const s=OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_;try{t=await this.transporter.request({url:s})}catch(e){e.message=`Failed to retrieve verification certificates: ${e.message}`;throw e}return{pubkeys:t.data,res:t}}verifySignedJwtWithCerts(){throw new Error("verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.")}async verifySignedJwtWithCertsAsync(e,t,s,r,o){const c=i.createCrypto();if(!o){o=OAuth2Client.MAX_TOKEN_LIFETIME_SECS_}const a=e.split(".");if(a.length!==3){throw new Error("Wrong number of segments in token: "+e)}const f=a[0]+"."+a[1];let p=a[2];let h;let d;try{h=JSON.parse(c.decodeBase64StringUtf8(a[0]))}catch(e){e.message=`Can't parse token envelope: ${a[0]}': ${e.message}`;throw e}if(!h){throw new Error("Can't parse token envelope: "+a[0])}try{d=JSON.parse(c.decodeBase64StringUtf8(a[1]))}catch(e){e.message=`Can't parse token payload '${a[0]}`;throw e}if(!d){throw new Error("Can't parse token payload: "+a[1])}if(!Object.prototype.hasOwnProperty.call(t,h.kid)){throw new Error("No pem found for envelope: "+JSON.stringify(h))}const l=t[h.kid];if(h.alg==="ES256"){p=n.joseToDer(p,"ES256").toString("base64")}const P=await c.verify(l,f,p);if(!P){throw new Error("Invalid token signature: "+e)}if(!d.iat){throw new Error("No issue time in token: "+JSON.stringify(d))}if(!d.exp){throw new Error("No expiration time in token: "+JSON.stringify(d))}const y=Number(d.iat);if(isNaN(y))throw new Error("iat field using invalid format");const I=Number(d.exp);if(isNaN(I))throw new Error("exp field using invalid format");const R=(new Date).getTime()/1e3;if(I>=R+o){throw new Error("Expiration time too far in future: "+JSON.stringify(d))}const g=y-OAuth2Client.CLOCK_SKEW_SECS_;const q=I+OAuth2Client.CLOCK_SKEW_SECS_;if(Rq){throw new Error("Token used too late, "+R+" > "+q+": "+JSON.stringify(d))}if(r&&r.indexOf(d.iss)<0){throw new Error("Invalid issuer, expected one of ["+r+"], but got "+d.iss)}if(typeof s!=="undefined"&&s!==null){const e=d.aud;let t=false;if(s.constructor===Array){t=s.indexOf(e)>-1}else{t=e===s}if(!t){throw new Error("Wrong recipient, payload audience != requiredAudience")}}return new u.LoginTicket(h,d)}isTokenExpiring(){const e=this.credentials.expiry_date;return e?e<=(new Date).getTime()+this.eagerRefreshThresholdMillis:false}}t.OAuth2Client=OAuth2Client;OAuth2Client.GOOGLE_TOKEN_INFO_URL="https://oauth2.googleapis.com/tokeninfo";OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_="https://accounts.google.com/o/oauth2/v2/auth";OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_="https://oauth2.googleapis.com/token";OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_="https://oauth2.googleapis.com/revoke";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_="https://www.googleapis.com/oauth2/v1/certs";OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_="https://www.googleapis.com/oauth2/v3/certs";OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_="https://www.gstatic.com/iap/verify/public_key";OAuth2Client.CLOCK_SKEW_SECS_=300;OAuth2Client.MAX_TOKEN_LIFETIME_SECS_=86400;OAuth2Client.ISSUERS_=["accounts.google.com","https://accounts.google.com"]},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.libraryagent=t.VERSIONS=void 0;const r=s(927);const o=s(764);t.VERSIONS={v1:o.libraryagent_v1.Libraryagent};function libraryagent(e){return r.getAPI("libraryagent",e,t.VERSIONS,this)}t.libraryagent=libraryagent;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(669).inherits;var o=s(876).Transform;var n=s(746);var i=s(872);var c=e.exports=function(e){if(!(this instanceof c)){return new c(e)}o.call(this,e);this.offset=0;this._archive={finish:false,finished:false,processing:false}};r(c,o);c.prototype._appendBuffer=function(e,t,s){};c.prototype._appendStream=function(e,t,s){};c.prototype._emitErrorCallback=function(e){if(e){this.emit("error",e)}};c.prototype._finish=function(e){};c.prototype._normalizeEntry=function(e){};c.prototype._transform=function(e,t,s){s(null,e)};c.prototype.entry=function(e,t,s){t=t||null;if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}if(!(e instanceof n)){s(new Error("not a valid instance of ArchiveEntry"));return}if(this._archive.finish||this._archive.finished){s(new Error("unacceptable entry after finish"));return}if(this._archive.processing){s(new Error("already processing an entry"));return}this._archive.processing=true;this._normalizeEntry(e);this._entry=e;t=i.normalizeInputSource(t);if(Buffer.isBuffer(t)){this._appendBuffer(e,t,s)}else if(i.isStream(t)){this._appendStream(e,t,s)}else{this._archive.processing=false;s(new Error("input source must be valid Stream or Buffer instance"));return}return this};c.prototype.finish=function(){if(this._archive.processing){this._archive.finish=true;return}this._finish()};c.prototype.getBytesWritten=function(){return this.offset};c.prototype.write=function(e,t){if(e){this.offset+=e.length}return o.prototype.write.call(this,e,t)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});function _interopDefault(e){return e&&typeof e==="object"&&"default"in e?e["default"]:e}var r=_interopDefault(s(413));var o=_interopDefault(s(605));var n=_interopDefault(s(835));var i=_interopDefault(s(211));var c=_interopDefault(s(761));const u=r.Readable;const a=Symbol("buffer");const f=Symbol("type");class Blob{constructor(){this[f]="";const e=arguments[0];const t=arguments[1];const s=[];let r=0;if(e){const t=e;const o=Number(t.length);for(let e=0;e1&&arguments[1]!==undefined?arguments[1]:{},o=s.size;let n=o===undefined?0:o;var i=s.timeout;let c=i===undefined?0:i;if(e==null){e=null}else if(isURLSearchParams(e)){e=Buffer.from(e.toString())}else if(isBlob(e)) ;else if(Buffer.isBuffer(e)) ;else if(Object.prototype.toString.call(e)==="[object ArrayBuffer]"){e=Buffer.from(e)}else if(ArrayBuffer.isView(e)){e=Buffer.from(e.buffer,e.byteOffset,e.byteLength)}else if(e instanceof r) ;else{e=Buffer.from(String(e))}this[h]={body:e,disturbed:false,error:null};this.size=n;this.timeout=c;if(e instanceof r){e.on("error",function(e){const s=e.name==="AbortError"?e:new FetchError(`Invalid response body while trying to fetch ${t.url}: ${e.message}`,"system",e);t[h].error=s})}}Body.prototype={get body(){return this[h].body},get bodyUsed(){return this[h].disturbed},arrayBuffer(){return consumeBody.call(this).then(function(e){return e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength)})},blob(){let e=this.headers&&this.headers.get("content-type")||"";return consumeBody.call(this).then(function(t){return Object.assign(new Blob([],{type:e.toLowerCase()}),{[a]:t})})},json(){var e=this;return consumeBody.call(this).then(function(t){try{return JSON.parse(t.toString())}catch(t){return Body.Promise.reject(new FetchError(`invalid json response body at ${e.url} reason: ${t.message}`,"invalid-json"))}})},text(){return consumeBody.call(this).then(function(e){return e.toString()})},buffer(){return consumeBody.call(this)},textConverted(){var e=this;return consumeBody.call(this).then(function(t){return convertBody(t,e.headers)})}};Object.defineProperties(Body.prototype,{body:{enumerable:true},bodyUsed:{enumerable:true},arrayBuffer:{enumerable:true},blob:{enumerable:true},json:{enumerable:true},text:{enumerable:true}});Body.mixIn=function(e){for(const t of Object.getOwnPropertyNames(Body.prototype)){if(!(t in e)){const s=Object.getOwnPropertyDescriptor(Body.prototype,t);Object.defineProperty(e,t,s)}}};function consumeBody(){var e=this;if(this[h].disturbed){return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`))}this[h].disturbed=true;if(this[h].error){return Body.Promise.reject(this[h].error)}let t=this.body;if(t===null){return Body.Promise.resolve(Buffer.alloc(0))}if(isBlob(t)){t=t.stream()}if(Buffer.isBuffer(t)){return Body.Promise.resolve(t)}if(!(t instanceof r)){return Body.Promise.resolve(Buffer.alloc(0))}let s=[];let o=0;let n=false;return new Body.Promise(function(r,i){let c;if(e.timeout){c=setTimeout(function(){n=true;i(new FetchError(`Response timeout while trying to fetch ${e.url} (over ${e.timeout}ms)`,"body-timeout"))},e.timeout)}t.on("error",function(t){if(t.name==="AbortError"){n=true;i(t)}else{i(new FetchError(`Invalid response body while trying to fetch ${e.url}: ${t.message}`,"system",t))}});t.on("data",function(t){if(n||t===null){return}if(e.size&&o+t.length>e.size){n=true;i(new FetchError(`content size at ${e.url} over limit: ${e.size}`,"max-size"));return}o+=t.length;s.push(t)});t.on("end",function(){if(n){return}clearTimeout(c);try{r(Buffer.concat(s,o))}catch(t){i(new FetchError(`Could not create Buffer from response body for ${e.url}: ${t.message}`,"system",t))}})})}function convertBody(e,t){if(typeof p!=="function"){throw new Error("The package `encoding` must be installed to use the textConverted() function")}const s=t.get("content-type");let r="utf-8";let o,n;if(s){o=/charset=([^;]*)/i.exec(s)}n=e.slice(0,1024).toString();if(!o&&n){o=/0&&arguments[0]!==undefined?arguments[0]:undefined;this[y]=Object.create(null);if(e instanceof Headers){const t=e.raw();const s=Object.keys(t);for(const e of s){for(const s of t[e]){this.append(e,s)}}return}if(e==null) ;else if(typeof e==="object"){const t=e[Symbol.iterator];if(t!=null){if(typeof t!=="function"){throw new TypeError("Header pairs must be iterable")}const s=[];for(const t of e){if(typeof t!=="object"||typeof t[Symbol.iterator]!=="function"){throw new TypeError("Each header pair must be iterable")}s.push(Array.from(t))}for(const e of s){if(e.length!==2){throw new TypeError("Each header pair must be a name/value tuple")}this.append(e[0],e[1])}}else{for(const t of Object.keys(e)){const s=e[t];this.append(t,s)}}}else{throw new TypeError("Provided initializer must be an object")}}get(e){e=`${e}`;validateName(e);const t=find(this[y],e);if(t===undefined){return null}return this[y][t].join(", ")}forEach(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:undefined;let s=getHeaders(this);let r=0;while(r1&&arguments[1]!==undefined?arguments[1]:"key+value";const s=Object.keys(e[y]).sort();return s.map(t==="key"?function(e){return e.toLowerCase()}:t==="value"?function(t){return e[y][t].join(", ")}:function(t){return[t.toLowerCase(),e[y][t].join(", ")]})}const I=Symbol("internal");function createHeadersIterator(e,t){const s=Object.create(R);s[I]={target:e,kind:t,index:0};return s}const R=Object.setPrototypeOf({next(){if(!this||Object.getPrototypeOf(this)!==R){throw new TypeError("Value of `this` is not a HeadersIterator")}var e=this[I];const t=e.target,s=e.kind,r=e.index;const o=getHeaders(t,s);const n=o.length;if(r>=n){return{value:undefined,done:true}}this[I].index=r+1;return{value:o[r],done:false}}},Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]())));Object.defineProperty(R,Symbol.toStringTag,{value:"HeadersIterator",writable:false,enumerable:false,configurable:true});function exportNodeCompatibleHeaders(e){const t=Object.assign({__proto__:null},e[y]);const s=find(e[y],"Host");if(s!==undefined){t[s]=t[s][0]}return t}function createHeadersLenient(e){const t=new Headers;for(const s of Object.keys(e)){if(l.test(s)){continue}if(Array.isArray(e[s])){for(const r of e[s]){if(P.test(r)){continue}if(t[y][s]===undefined){t[y][s]=[r]}else{t[y][s].push(r)}}}else if(!P.test(e[s])){t[y][s]=[e[s]]}}return t}const g=Symbol("Response internals");const q=o.STATUS_CODES;class Response{constructor(){let e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};Body.call(this,e,t);const s=t.status||200;const r=new Headers(t.headers);if(e!=null&&!r.has("Content-Type")){const t=extractContentType(e);if(t){r.append("Content-Type",t)}}this[g]={url:t.url,status:s,statusText:t.statusText||q[s],headers:r,counter:t.counter}}get url(){return this[g].url||""}get status(){return this[g].status}get ok(){return this[g].status>=200&&this[g].status<300}get redirected(){return this[g].counter>0}get statusText(){return this[g].statusText}get headers(){return this[g].headers}clone(){return new Response(clone(this),{url:this.url,status:this.status,statusText:this.statusText,headers:this.headers,ok:this.ok,redirected:this.redirected})}}Body.mixIn(Response.prototype);Object.defineProperties(Response.prototype,{url:{enumerable:true},status:{enumerable:true},ok:{enumerable:true},redirected:{enumerable:true},statusText:{enumerable:true},headers:{enumerable:true},clone:{enumerable:true}});Object.defineProperty(Response.prototype,Symbol.toStringTag,{value:"Response",writable:false,enumerable:false,configurable:true});const x=Symbol("Request internals");const $=n.parse;const j=n.format;const v="destroy"in r.Readable.prototype;function isRequest(e){return typeof e==="object"&&typeof e[x]==="object"}function isAbortSignal(e){const t=e&&typeof e==="object"&&Object.getPrototypeOf(e);return!!(t&&t.constructor.name==="AbortSignal")}class Request{constructor(e){let t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};let s;if(!isRequest(e)){if(e&&e.href){s=$(e.href)}else{s=$(`${e}`)}e={}}else{s=$(e.url)}let r=t.method||e.method||"GET";r=r.toUpperCase();if((t.body!=null||isRequest(e)&&e.body!==null)&&(r==="GET"||r==="HEAD")){throw new TypeError("Request with GET/HEAD method cannot have body")}let o=t.body!=null?t.body:isRequest(e)&&e.body!==null?clone(e):null;Body.call(this,o,{timeout:t.timeout||e.timeout||0,size:t.size||e.size||0});const n=new Headers(t.headers||e.headers||{});if(o!=null&&!n.has("Content-Type")){const e=extractContentType(o);if(e){n.append("Content-Type",e)}}let i=isRequest(e)?e.signal:null;if("signal"in t)i=t.signal;if(i!=null&&!isAbortSignal(i)){throw new TypeError("Expected signal to be an instanceof AbortSignal")}this[x]={method:r,redirect:t.redirect||e.redirect||"follow",headers:n,parsedURL:s,signal:i};this.follow=t.follow!==undefined?t.follow:e.follow!==undefined?e.follow:20;this.compress=t.compress!==undefined?t.compress:e.compress!==undefined?e.compress:true;this.counter=t.counter||e.counter||0;this.agent=t.agent||e.agent}get method(){return this[x].method}get url(){return j(this[x].parsedURL)}get headers(){return this[x].headers}get redirect(){return this[x].redirect}get signal(){return this[x].signal}clone(){return new Request(this)}}Body.mixIn(Request.prototype);Object.defineProperty(Request.prototype,Symbol.toStringTag,{value:"Request",writable:false,enumerable:false,configurable:true});Object.defineProperties(Request.prototype,{method:{enumerable:true},url:{enumerable:true},headers:{enumerable:true},redirect:{enumerable:true},clone:{enumerable:true},signal:{enumerable:true}});function getNodeRequestOptions(e){const t=e[x].parsedURL;const s=new Headers(e[x].headers);if(!s.has("Accept")){s.set("Accept","*/*")}if(!t.protocol||!t.hostname){throw new TypeError("Only absolute URLs are supported")}if(!/^https?:$/.test(t.protocol)){throw new TypeError("Only HTTP(S) protocols are supported")}if(e.signal&&e.body instanceof r.Readable&&!v){throw new Error("Cancellation of streamed requests with AbortSignal is not supported in node < 8")}let o=null;if(e.body==null&&/^(POST|PUT)$/i.test(e.method)){o="0"}if(e.body!=null){const t=getTotalBytes(e);if(typeof t==="number"){o=String(t)}}if(o){s.set("Content-Length",o)}if(!s.has("User-Agent")){s.set("User-Agent","node-fetch/1.0 (+https://github.com/bitinn/node-fetch)")}if(e.compress&&!s.has("Accept-Encoding")){s.set("Accept-Encoding","gzip,deflate")}let n=e.agent;if(typeof n==="function"){n=n(t)}if(!s.has("Connection")&&!n){s.set("Connection","close")}return Object.assign({},t,{method:e.method,headers:exportNodeCompatibleHeaders(s),agent:n})}function AbortError(e){Error.call(this,e);this.type="aborted";this.message=e;Error.captureStackTrace(this,this.constructor)}AbortError.prototype=Object.create(Error.prototype);AbortError.prototype.constructor=AbortError;AbortError.prototype.name="AbortError";const A=r.PassThrough;const m=n.resolve;function fetch(e,t){if(!fetch.Promise){throw new Error("native promise missing, set fetch.Promise to your favorite alternative")}Body.Promise=fetch.Promise;return new fetch.Promise(function(s,n){const u=new Request(e,t);const a=getNodeRequestOptions(u);const f=(a.protocol==="https:"?i:o).request;const p=u.signal;let h=null;const d=function abort(){let e=new AbortError("The user aborted a request.");n(e);if(u.body&&u.body instanceof r.Readable){u.body.destroy(e)}if(!h||!h.body)return;h.body.emit("error",e)};if(p&&p.aborted){d();return}const l=function abortAndFinalize(){d();finalize()};const P=f(a);let y;if(p){p.addEventListener("abort",l)}function finalize(){P.abort();if(p)p.removeEventListener("abort",l);clearTimeout(y)}if(u.timeout){P.once("socket",function(e){y=setTimeout(function(){n(new FetchError(`network timeout at: ${u.url}`,"request-timeout"));finalize()},u.timeout)})}P.on("error",function(e){n(new FetchError(`request to ${u.url} failed, reason: ${e.message}`,"system",e));finalize()});P.on("response",function(e){clearTimeout(y);const t=createHeadersLenient(e.headers);if(fetch.isRedirect(e.statusCode)){const r=t.get("Location");const o=r===null?null:m(u.url,r);switch(u.redirect){case"error":n(new FetchError(`redirect mode is set to error: ${u.url}`,"no-redirect"));finalize();return;case"manual":if(o!==null){try{t.set("Location",o)}catch(e){n(e)}}break;case"follow":if(o===null){break}if(u.counter>=u.follow){n(new FetchError(`maximum redirect reached at: ${u.url}`,"max-redirect"));finalize();return}const r={headers:new Headers(u.headers),follow:u.follow,counter:u.counter+1,agent:u.agent,compress:u.compress,method:u.method,body:u.body,signal:u.signal,timeout:u.timeout};if(e.statusCode!==303&&u.body&&getTotalBytes(u)===null){n(new FetchError("Cannot follow redirect with body being a readable stream","unsupported-redirect"));finalize();return}if(e.statusCode===303||(e.statusCode===301||e.statusCode===302)&&u.method==="POST"){r.method="GET";r.body=undefined;r.headers.delete("content-length")}s(fetch(new Request(o,r)));finalize();return}}e.once("end",function(){if(p)p.removeEventListener("abort",l)});let r=e.pipe(new A);const o={url:u.url,status:e.statusCode,statusText:e.statusMessage,headers:t,size:u.size,timeout:u.timeout,counter:u.counter};const i=t.get("Content-Encoding");if(!u.compress||u.method==="HEAD"||i===null||e.statusCode===204||e.statusCode===304){h=new Response(r,o);s(h);return}const a={flush:c.Z_SYNC_FLUSH,finishFlush:c.Z_SYNC_FLUSH};if(i=="gzip"||i=="x-gzip"){r=r.pipe(c.createGunzip(a));h=new Response(r,o);s(h);return}if(i=="deflate"||i=="x-deflate"){const t=e.pipe(new A);t.once("data",function(e){if((e[0]&15)===8){r=r.pipe(c.createInflate())}else{r=r.pipe(c.createInflateRaw())}h=new Response(r,o);s(h)});return}if(i=="br"&&typeof c.createBrotliDecompress==="function"){r=r.pipe(c.createBrotliDecompress());h=new Response(r,o);s(h);return}h=new Response(r,o);s(h)});writeToStream(P,u)})}fetch.isRedirect=function(e){return e===301||e===302||e===303||e===307||e===308};fetch.Promise=global.Promise;e.exports=t=fetch;Object.defineProperty(t,"__esModule",{value:true});t.default=t;t.Headers=Headers;t.Request=Request;t.Response=Response;t.FetchError=FetchError},,function(e,t,s){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=s(78).Buffer;var o=s(669);function copyBuffer(e,t,s){e.copy(t,s)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var s=""+t.data;while(t=t.next){s+=e+t.data}return s};BufferList.prototype.concat=function concat(e){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;var t=r.allocUnsafe(e>>>0);var s=this.head;var o=0;while(s){copyBuffer(s.data,t,o);o+=s.data.length;s=s.next}return t};return BufferList}();if(o&&o.inspect&&o.inspect.custom){e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e}}},function(e,t,s){"use strict";e.exports=s(72).default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.clouddebugger=t.VERSIONS=void 0;const r=s(927);const o=s(409);t.VERSIONS={v2:o.clouddebugger_v2.Clouddebugger};function clouddebugger(e){return r.getAPI("clouddebugger",e,t.VERSIONS,this)}t.clouddebugger=clouddebugger;const n=new r.AuthPlus;t.auth=n},,function(e){e.exports={"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudtrace=t.VERSIONS=void 0;const r=s(927);const o=s(101);const n=s(790);const i=s(603);t.VERSIONS={v1:o.cloudtrace_v1.Cloudtrace,v2:n.cloudtrace_v2.Cloudtrace,v2beta1:i.cloudtrace_v2beta1.Cloudtrace};function cloudtrace(e){return r.getAPI("cloudtrace",e,t.VERSIONS,this)}t.cloudtrace=cloudtrace;const c=new r.AuthPlus;t.auth=c},,function(e,t,s){var r=s(239);s(784);s(988);s(131);s(76);s(575);s(997);s(705);s(526);s(152);s(249);var o=r.asn1;var n=e.exports=r.pki=r.pki||{};n.pemToDer=function(e){var t=r.pem.decode(e)[0];if(t.procType&&t.procType.type==="ENCRYPTED"){throw new Error("Could not convert PEM to DER; PEM is encrypted.")}return r.util.createBuffer(t.body)};n.privateKeyFromPem=function(e){var t=r.pem.decode(e)[0];if(t.type!=="PRIVATE KEY"&&t.type!=="RSA PRIVATE KEY"){var s=new Error("Could not convert private key from PEM; PEM "+'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".');s.headerType=t.type;throw s}if(t.procType&&t.procType.type==="ENCRYPTED"){throw new Error("Could not convert private key from PEM; PEM is encrypted.")}var i=o.fromDer(t.body);return n.privateKeyFromAsn1(i)};n.privateKeyToPem=function(e,t){var s={type:"RSA PRIVATE KEY",body:o.toDer(n.privateKeyToAsn1(e)).getBytes()};return r.pem.encode(s,{maxline:t})};n.privateKeyInfoToPem=function(e,t){var s={type:"PRIVATE KEY",body:o.toDer(e).getBytes()};return r.pem.encode(s,{maxline:t})}},function(e,t,s){const r=s(867);const o=s(669);t.init=init;t.log=log;t.formatArgs=formatArgs;t.save=save;t.load=load;t.useColors=useColors;t.colors=[6,2,3,4,5,1];try{const e=s(858);if(e&&(e.stderr||e).level>=2){t.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]}}catch(e){}t.inspectOpts=Object.keys(process.env).filter(e=>{return/^debug_/i.test(e)}).reduce((e,t)=>{const s=t.substring(6).toLowerCase().replace(/_([a-z])/g,(e,t)=>{return t.toUpperCase()});let r=process.env[t];if(/^(yes|on|true|enabled)$/i.test(r)){r=true}else if(/^(no|off|false|disabled)$/i.test(r)){r=false}else if(r==="null"){r=null}else{r=Number(r)}e[s]=r;return e},{});function useColors(){return"colors"in t.inspectOpts?Boolean(t.inspectOpts.colors):r.isatty(process.stderr.fd)}function formatArgs(t){const{namespace:s,useColors:r}=this;if(r){const r=this.color;const o="[3"+(r<8?r:"8;5;"+r);const n=` ${o};1m${s} `;t[0]=n+t[0].split("\n").join("\n"+n);t.push(o+"m+"+e.exports.humanize(this.diff)+"")}else{t[0]=getDate()+s+" "+t[0]}}function getDate(){if(t.inspectOpts.hideDate){return""}return(new Date).toISOString()+" "}function log(...e){return process.stderr.write(o.format(...e)+"\n")}function save(e){if(e){process.env.DEBUG=e}else{delete process.env.DEBUG}}function load(){return process.env.DEBUG}function init(e){e.inspectOpts={};const s=Object.keys(t.inspectOpts);for(let r=0;rthis.end){throw new Error("start must be <= end")}this.pos=this.start}if(this.fd!==null){process.nextTick(function(){o._read()});return}e.open(this.path,this.flags,this.mode,function(e,t){if(e){o.emit("error",e);o.readable=false;return}o.fd=t;o.emit("open",t);o._read()})}function WriteStream(t,s){if(!(this instanceof WriteStream))return new WriteStream(t,s);r.call(this);this.path=t;this.fd=null;this.writable=true;this.flags="w";this.encoding="binary";this.mode=438;this.bytesWritten=0;s=s||{};var o=Object.keys(s);for(var n=0,i=o.length;n= zero")}this.pos=this.start}this.busy=false;this._queue=[];if(this.fd===null){this._open=e.open;this._queue.push([this._open,this.path,this.flags,this.mode,undefined]);this.flush()}}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prod_tt_sasportal_v1alpha1=void 0;const r=s(927);var o;(function(e){class Prod_tt_sasportal{constructor(e,t){this.context={_options:e||{},google:t};this.customers=new Resource$Customers(this.context);this.installer=new Resource$Installer(this.context);this.nodes=new Resource$Nodes(this.context);this.policies=new Resource$Policies(this.context)}}e.Prod_tt_sasportal=Prod_tt_sasportal;class Resource$Customers{constructor(e){this.context=e;this.devices=new Resource$Customers$Devices(this.context);this.nodes=new Resource$Customers$Nodes(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/customers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers=Resource$Customers;class Resource$Customers$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:signDevice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:updateSigned").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Devices=Resource$Customers$Devices;class Resource$Customers$Nodes{constructor(e){this.context=e;this.nodes=new Resource$Customers$Nodes$Nodes(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Nodes=Resource$Customers$Nodes;class Resource$Customers$Nodes$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers$Nodes$Nodes=Resource$Customers$Nodes$Nodes;class Resource$Installer{constructor(e){this.context=e}generateSecret(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/installer:generateSecret").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/installer:validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Installer=Resource$Installer;class Resource$Nodes{constructor(e){this.context=e;this.devices=new Resource$Nodes$Devices(this.context);this.nodes=new Resource$Nodes$Nodes(this.context)}}e.Resource$Nodes=Resource$Nodes;class Resource$Nodes$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:signDevice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:updateSigned").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Devices=Resource$Nodes$Devices;class Resource$Nodes$Nodes{constructor(e){this.context=e;this.devices=new Resource$Nodes$Nodes$Devices(this.context);this.nodes=new Resource$Nodes$Nodes$Nodes(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes=Resource$Nodes$Nodes;class Resource$Nodes$Nodes$Devices{constructor(e){this.context=e}bulk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:bulk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSigned(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices:createSigned").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes$Devices=Resource$Nodes$Nodes$Devices;class Resource$Nodes$Nodes$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodes$Nodes$Nodes=Resource$Nodes$Nodes$Nodes;class Resource$Policies{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:get").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}set(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:set").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}test(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://prod-tt-sasportal.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/policies:test").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Policies=Resource$Policies})(o=t.prod_tt_sasportal_v1alpha1||(t.prod_tt_sasportal_v1alpha1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tpu_v1alpha1=void 0;const r=s(927);var o;(function(e){class Tpu{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Tpu=Tpu;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.acceleratorTypes=new Resource$Projects$Locations$Acceleratortypes(this.context);this.nodes=new Resource$Projects$Locations$Nodes(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context);this.tensorflowVersions=new Resource$Projects$Locations$Tensorflowversions(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Acceleratortypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Acceleratortypes=Resource$Projects$Locations$Acceleratortypes;class Resource$Projects$Locations$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reimage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:reimage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Nodes=Resource$Projects$Locations$Nodes;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Locations$Tensorflowversions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+parent}/tensorflowVersions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Tensorflowversions=Resource$Projects$Locations$Tensorflowversions})(o=t.tpu_v1alpha1||(t.tpu_v1alpha1={}))},function(e,t,s){"use strict";var r=this&&this.__awaiter||function(e,t,s,r){function adopt(e){return e instanceof s?e:new s(function(t){t(e)})}return new(s||(s=Promise))(function(s,o){function fulfilled(e){try{step(r.next(e))}catch(e){o(e)}}function rejected(e){try{step(r["throw"](e))}catch(e){o(e)}}function step(e){e.done?s(e.value):adopt(e.value).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})};var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var s in e)if(Object.hasOwnProperty.call(e,s))t[s]=e[s];t["default"]=e;return t};Object.defineProperty(t,"__esModule",{value:true});const n=s(431);const i=o(s(87));const c=o(s(622));var u;(function(e){e[e["Success"]=0]="Success";e[e["Failure"]=1]="Failure"})(u=t.ExitCode||(t.ExitCode={}));function exportVariable(e,t){const s=n.toCommandValue(t);process.env[e]=s;n.issueCommand("set-env",{name:e},s)}t.exportVariable=exportVariable;function setSecret(e){n.issueCommand("add-mask",{},e)}t.setSecret=setSecret;function addPath(e){n.issueCommand("add-path",{},e);process.env["PATH"]=`${e}${c.delimiter}${process.env["PATH"]}`}t.addPath=addPath;function getInput(e,t){const s=process.env[`INPUT_${e.replace(/ /g,"_").toUpperCase()}`]||"";if(t&&t.required&&!s){throw new Error(`Input required and not supplied: ${e}`)}return s.trim()}t.getInput=getInput;function setOutput(e,t){n.issueCommand("set-output",{name:e},t)}t.setOutput=setOutput;function setCommandEcho(e){n.issue("echo",e?"on":"off")}t.setCommandEcho=setCommandEcho;function setFailed(e){process.exitCode=u.Failure;error(e)}t.setFailed=setFailed;function isDebug(){return process.env["RUNNER_DEBUG"]==="1"}t.isDebug=isDebug;function debug(e){n.issueCommand("debug",{},e)}t.debug=debug;function error(e){n.issue("error",e instanceof Error?e.toString():e)}t.error=error;function warning(e){n.issue("warning",e instanceof Error?e.toString():e)}t.warning=warning;function info(e){process.stdout.write(e+i.EOL)}t.info=info;function startGroup(e){n.issue("group",e)}t.startGroup=startGroup;function endGroup(){n.issue("endgroup")}t.endGroup=endGroup;function group(e,t){return r(this,void 0,void 0,function*(){startGroup(e);let s;try{s=yield t()}finally{endGroup()}return s})}t.group=group;function saveState(e,t){n.issueCommand("save-state",{name:e},t)}t.saveState=saveState;function getState(e){return process.env[`STATE_${e}`]||""}t.getState=getState},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.redis_v1=void 0;const r=s(927);var o;(function(e){class Redis{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Redis=Redis;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.instances=new Resource$Projects$Locations$Instances(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Instances{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}failover(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:failover").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}upgrade(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:upgrade").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Instances=Resource$Projects$Locations$Instances;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://redis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.redis_v1||(t.redis_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.sql_v1beta4=void 0;const r=s(927);var o;(function(e){class Sql{constructor(e,t){this.context={_options:e||{},google:t};this.backupRuns=new Resource$Backupruns(this.context);this.databases=new Resource$Databases(this.context);this.flags=new Resource$Flags(this.context);this.instances=new Resource$Instances(this.context);this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context);this.sslCerts=new Resource$Sslcerts(this.context);this.tiers=new Resource$Tiers(this.context);this.users=new Resource$Users(this.context)}}e.Sql=Sql;class Resource$Backupruns{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instance","id"],pathParams:["id","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance","id"],pathParams:["id","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Backupruns=Resource$Backupruns;class Resource$Databases{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instance","database"],pathParams:["database","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance","database"],pathParams:["database","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","instance","database"],pathParams:["database","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","instance","database"],pathParams:["database","instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Databases=Resource$Databases;class Resource$Flags{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/flags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Flags=Resource$Flags;class Resource$Instances{constructor(e){this.context=e}addServerCa(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}clone(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/clone").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}demoteMaster(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}failover(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/failover").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listServerCas(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}promoteReplica(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resetSslConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}restart(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/restart").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}restoreBackup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rotateServerCa(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startReplica(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/startReplica").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stopReplica(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}truncateLog(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instances=Resource$Instances;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.instances=new Resource$Projects$Instances(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Instances{constructor(e){this.context=e}rescheduleMaintenance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startExternalSync(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}verifyExternalSyncSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Instances=Resource$Projects$Instances;class Resource$Sslcerts{constructor(e){this.context=e}createEphemeral(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instance","sha1Fingerprint"],pathParams:["instance","project","sha1Fingerprint"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance","sha1Fingerprint"],pathParams:["instance","project","sha1Fingerprint"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sslcerts=Resource$Sslcerts;class Resource$Tiers{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/tiers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Tiers=Resource$Tiers;class Resource$Users{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/users").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/users").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://sqladmin.googleapis.com/";const c={options:Object.assign({url:(i+"/sql/v1beta4/projects/{project}/instances/{instance}/users").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","instance"],pathParams:["instance","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users=Resource$Users})(o=t.sql_v1beta4||(t.sql_v1beta4={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.siteVerification_v1=void 0;const r=s(927);var o;(function(e){class Siteverification{constructor(e,t){this.context={_options:e||{},google:t};this.webResource=new Resource$Webresource(this.context)}}e.Siteverification=Siteverification;class Resource$Webresource{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/token").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["verificationMethod"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/siteVerification/v1/webResource/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Webresource=Resource$Webresource})(o=t.siteVerification_v1||(t.siteVerification_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.bigqueryconnection=t.VERSIONS=void 0;const r=s(927);const o=s(529);t.VERSIONS={v1beta1:o.bigqueryconnection_v1beta1.Bigqueryconnection};function bigqueryconnection(e){return r.getAPI("bigqueryconnection",e,t.VERSIONS,this)}t.bigqueryconnection=bigqueryconnection;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(597);const o=s(738);t.BASE_PATH="/computeMetadata/v1";t.HOST_ADDRESS="http://169.254.169.254";t.SECONDARY_HOST_ADDRESS="http://metadata.google.internal.";t.HEADER_NAME="Metadata-Flavor";t.HEADER_VALUE="Google";t.HEADERS=Object.freeze({[t.HEADER_NAME]:t.HEADER_VALUE});function getBaseUrl(e){if(!e){e=process.env.GCE_METADATA_IP?process.env.GCE_METADATA_IP:t.HOST_ADDRESS}if(!/^https?:\/\//.test(e)){e=`http://${e}`}return new URL(t.BASE_PATH,e).href}function validate(e){Object.keys(e).forEach(e=>{switch(e){case"params":case"property":case"headers":break;case"qs":throw new Error("'qs' is not a valid configuration option. Please use 'params' instead.");default:throw new Error(`'${e}' is not a valid configuration option.`)}})}async function metadataAccessor(e,s,n=3,i=false){s=s||{};if(typeof s==="string"){s={property:s}}let c="";if(typeof s==="object"&&s.property){c="/"+s.property}validate(s);try{const u=i?fastFailMetadataRequest:r.request;const a=await u({url:`${getBaseUrl()}/${e}${c}`,headers:Object.assign({},t.HEADERS,s.headers),retryConfig:{noResponseRetries:n},params:s.params,responseType:"text",timeout:requestTimeout()});if(a.headers[t.HEADER_NAME.toLowerCase()]!==t.HEADER_VALUE){throw new Error(`Invalid response from metadata service: incorrect ${t.HEADER_NAME} header.`)}else if(!a.data){throw new Error("Invalid response from the metadata service")}if(typeof a.data==="string"){try{return o.parse(a.data)}catch(e){}}return a.data}catch(e){if(e.response&&e.response.status!==200){e.message=`Unsuccessful response status code. ${e.message}`}throw e}}async function fastFailMetadataRequest(e){const s={...e,url:e.url.replace(getBaseUrl(),getBaseUrl(t.SECONDARY_HOST_ADDRESS))};let o=false;const n=r.request(e).then(e=>{o=true;return e}).catch(e=>{if(o){return i}else{o=true;throw e}});const i=r.request(s).then(e=>{o=true;return e}).catch(e=>{if(o){return n}else{o=true;throw e}});return Promise.race([n,i])}function instance(e){return metadataAccessor("instance",e)}t.instance=instance;function project(e){return metadataAccessor("project",e)}t.project=project;function detectGCPAvailableRetries(){return process.env.DETECT_GCP_RETRIES?Number(process.env.DETECT_GCP_RETRIES):0}let n;async function isAvailable(){try{if(n===undefined){n=metadataAccessor("instance",undefined,detectGCPAvailableRetries(),process.env.GCE_METADATA_IP?false:true)}await n;return true}catch(e){if(process.env.DEBUG_AUTH){console.info(e)}if(e.type==="request-timeout"){return false}if(e.response&&e.response.status===404){return false}else{if(!(e.response&&e.response.status===404)&&(!e.code||!["EHOSTDOWN","EHOSTUNREACH","ENETUNREACH","ENOENT","ENOTFOUND","ECONNREFUSED"].includes(e.code))){let t="UNKNOWN";if(e.code)t=e.code;process.emitWarning(`received unexpected error = ${e.message} code = ${t}`,"MetadataLookupWarning")}return false}}}t.isAvailable=isAvailable;function resetIsAvailableCache(){n=undefined}t.resetIsAvailableCache=resetIsAvailableCache;function requestTimeout(){return process.env.K_SERVICE||process.env.FUNCTION_NAME?0:3e3}t.requestTimeout=requestTimeout},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.networkmanagement_v1beta1=void 0;const r=s(927);var o;(function(e){class Networkmanagement{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Networkmanagement=Networkmanagement;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.global=new Resource$Projects$Locations$Global(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Global{constructor(e){this.context=e;this.connectivityTests=new Resource$Projects$Locations$Global$Connectivitytests(this.context);this.operations=new Resource$Projects$Locations$Global$Operations(this.context)}}e.Resource$Projects$Locations$Global=Resource$Projects$Locations$Global;class Resource$Projects$Locations$Global$Connectivitytests{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/connectivityTests").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/connectivityTests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rerun(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:rerun").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Global$Connectivitytests=Resource$Projects$Locations$Global$Connectivitytests;class Resource$Projects$Locations$Global$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://networkmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Global$Operations=Resource$Projects$Locations$Global$Operations})(o=t.networkmanagement_v1beta1||(t.networkmanagement_v1beta1={}))},function(e,t,s){var r=s(747);var o=s(250);var n=s(466);var i=s(608);var c=s(669);var u;var a;if(typeof Symbol==="function"&&typeof Symbol.for==="function"){u=Symbol.for("graceful-fs.queue");a=Symbol.for("graceful-fs.previous")}else{u="___graceful-fs.queue";a="___graceful-fs.previous"}function noop(){}function publishQueue(e,t){Object.defineProperty(e,u,{get:function(){return t}})}var f=noop;if(c.debuglog)f=c.debuglog("gfs4");else if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||""))f=function(){var e=c.format.apply(c,arguments);e="GFS4: "+e.split(/\n/).join("\nGFS4: ");console.error(e)};if(!r[u]){var p=global[u]||[];publishQueue(r,p);r.close=function(e){function close(t,s){return e.call(r,t,function(e){if(!e){retry()}if(typeof s==="function")s.apply(this,arguments)})}Object.defineProperty(close,a,{value:e});return close}(r.close);r.closeSync=function(e){function closeSync(t){e.apply(r,arguments);retry()}Object.defineProperty(closeSync,a,{value:e});return closeSync}(r.closeSync);if(/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")){process.on("exit",function(){f(r[u]);s(357).equal(r[u].length,0)})}}if(!global[u]){publishQueue(global,r[u])}e.exports=patch(i(r));if(process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!r.__patched){e.exports=patch(r);r.__patched=true}function patch(e){o(e);e.gracefulify=patch;e.createReadStream=createReadStream;e.createWriteStream=createWriteStream;var t=e.readFile;e.readFile=readFile;function readFile(e,s,r){if(typeof s==="function")r=s,s=null;return go$readFile(e,s,r);function go$readFile(e,s,r){return t(e,s,function(t){if(t&&(t.code==="EMFILE"||t.code==="ENFILE"))enqueue([go$readFile,[e,s,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}var s=e.writeFile;e.writeFile=writeFile;function writeFile(e,t,r,o){if(typeof r==="function")o=r,r=null;return go$writeFile(e,t,r,o);function go$writeFile(e,t,r,o){return s(e,t,r,function(s){if(s&&(s.code==="EMFILE"||s.code==="ENFILE"))enqueue([go$writeFile,[e,t,r,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var r=e.appendFile;if(r)e.appendFile=appendFile;function appendFile(e,t,s,o){if(typeof s==="function")o=s,s=null;return go$appendFile(e,t,s,o);function go$appendFile(e,t,s,o){return r(e,t,s,function(r){if(r&&(r.code==="EMFILE"||r.code==="ENFILE"))enqueue([go$appendFile,[e,t,s,o]]);else{if(typeof o==="function")o.apply(this,arguments);retry()}})}}var i=e.readdir;e.readdir=readdir;function readdir(e,t,s){var r=[e];if(typeof t!=="function"){r.push(t)}else{s=t}r.push(go$readdir$cb);return go$readdir(r);function go$readdir$cb(e,t){if(t&&t.sort)t.sort();if(e&&(e.code==="EMFILE"||e.code==="ENFILE"))enqueue([go$readdir,[r]]);else{if(typeof s==="function")s.apply(this,arguments);retry()}}}function go$readdir(t){return i.apply(e,t)}if(process.version.substr(0,4)==="v0.8"){var c=n(e);ReadStream=c.ReadStream;WriteStream=c.WriteStream}var u=e.ReadStream;if(u){ReadStream.prototype=Object.create(u.prototype);ReadStream.prototype.open=ReadStream$open}var a=e.WriteStream;if(a){WriteStream.prototype=Object.create(a.prototype);WriteStream.prototype.open=WriteStream$open}Object.defineProperty(e,"ReadStream",{get:function(){return ReadStream},set:function(e){ReadStream=e},enumerable:true,configurable:true});Object.defineProperty(e,"WriteStream",{get:function(){return WriteStream},set:function(e){WriteStream=e},enumerable:true,configurable:true});var f=ReadStream;Object.defineProperty(e,"FileReadStream",{get:function(){return f},set:function(e){f=e},enumerable:true,configurable:true});var p=WriteStream;Object.defineProperty(e,"FileWriteStream",{get:function(){return p},set:function(e){p=e},enumerable:true,configurable:true});function ReadStream(e,t){if(this instanceof ReadStream)return u.apply(this,arguments),this;else return ReadStream.apply(Object.create(ReadStream.prototype),arguments)}function ReadStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,s){if(t){if(e.autoClose)e.destroy();e.emit("error",t)}else{e.fd=s;e.emit("open",s);e.read()}})}function WriteStream(e,t){if(this instanceof WriteStream)return a.apply(this,arguments),this;else return WriteStream.apply(Object.create(WriteStream.prototype),arguments)}function WriteStream$open(){var e=this;open(e.path,e.flags,e.mode,function(t,s){if(t){e.destroy();e.emit("error",t)}else{e.fd=s;e.emit("open",s)}})}function createReadStream(t,s){return new e.ReadStream(t,s)}function createWriteStream(t,s){return new e.WriteStream(t,s)}var h=e.open;e.open=open;function open(e,t,s,r){if(typeof s==="function")r=s,s=null;return go$open(e,t,s,r);function go$open(e,t,s,r){return h(e,t,s,function(o,n){if(o&&(o.code==="EMFILE"||o.code==="ENFILE"))enqueue([go$open,[e,t,s,r]]);else{if(typeof r==="function")r.apply(this,arguments);retry()}})}}return e}function enqueue(e){f("ENQUEUE",e[0].name,e[1]);r[u].push(e)}function retry(){var e=r[u].shift();if(e){f("RETRY",e[0].name,e[1]);e[0].apply(null,e[1])}}},function(e,t,s){"use strict";const{DeflateRaw:r}=s(761);const{crc32:o}=s(678);class DeflateCRC32Stream extends r{constructor(e){super(e);this.checksum=Buffer.allocUnsafe(4);this.checksum.writeInt32BE(0,0);this.rawSize=0;this.compressedSize=0}push(e,t){if(e){this.compressedSize+=e.length}return super.push(e,t)}write(e,t,s){if(e){this.checksum=o(e,this.checksum);this.rawSize+=e.length}return super.write(e,t,s)}digest(e){const t=Buffer.allocUnsafe(4);t.writeUInt32BE(this.checksum>>>0,0);return e?t.toString(e):t}hex(){return this.digest("hex").toUpperCase()}size(e=false){if(e){return this.compressedSize}else{return this.rawSize}}}e.exports=DeflateCRC32Stream},function(e,t,s){var r=s(481);var o=s(622);var n=s(345);var i=s(559);var c=s(373);var u=s(28);var a=s(96);var f=e.exports={};var p=/[\/\\]/g;var h=function(e,t){var s=[];n(e).forEach(function(e){var r=e.indexOf("!")===0;if(r){e=e.slice(1)}var o=t(e);if(r){s=i(s,o)}else{s=c(s,o)}});return s};f.exists=function(){var e=o.join.apply(o,arguments);return r.existsSync(e)};f.expand=function(...e){var t=u(e[0])?e.shift():{};var s=Array.isArray(e[0])?e[0]:e;if(s.length===0){return[]}var n=h(s,function(e){return a.sync(e,t)});if(t.filter){n=n.filter(function(e){e=o.join(t.cwd||"",e);try{if(typeof t.filter==="function"){return t.filter(e)}else{return r.statSync(e)[t.filter]()}}catch(e){return false}})}return n};f.expandMapping=function(e,t,s){s=Object.assign({rename:function(e,t){return o.join(e||"",t)}},s);var r=[];var n={};f.expand(s,e).forEach(function(e){var i=e;if(s.flatten){i=o.basename(i)}if(s.ext){i=i.replace(/(\.[^\/]*)?$/,s.ext)}var c=s.rename(t,i,s);if(s.cwd){e=o.join(s.cwd,e)}c=c.replace(p,"/");e=e.replace(p,"/");if(n[c]){n[c].src.push(e)}else{r.push({src:[e],dest:c});n[c]=r[r.length-1]}});return r};f.normalizeFilesArray=function(e){var t=[];e.forEach(function(e){var s;if("src"in e||"dest"in e){t.push(e)}});if(t.length===0){return[]}t=_(t).chain().forEach(function(e){if(!("src"in e)||!e.src){return}if(Array.isArray(e.src)){e.src=n(e.src)}else{e.src=[e.src]}}).map(function(e){var t=Object.assign({},e);delete t.src;delete t.dest;if(e.expand){return f.expandMapping(e.src,e.dest,t).map(function(t){var s=Object.assign({},e);s.orig=Object.assign({},e);s.src=t.src;s.dest=t.dest;["expand","cwd","flatten","rename","ext"].forEach(function(e){delete s[e]});return s})}var s=Object.assign({},e);s.orig=Object.assign({},e);if("src"in s){Object.defineProperty(s,"src",{enumerable:true,get:function fn(){var s;if(!("result"in fn)){s=e.src;s=Array.isArray(s)?n(s):[s];fn.result=f.expand(t,s)}return fn.result}})}if("dest"in s){s.dest=e.dest}return s}).flatten().value();return t}},function(e,t,s){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(317);Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let s=0;s{if(t==="%%"){return t}n++;const o=createDebug.formatters[r];if(typeof o==="function"){const r=e[n];t=o.call(s,r);e.splice(n,1);n--}return t});createDebug.formatArgs.call(s,e);const i=s.log||createDebug.log;i.apply(s,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const s=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);s.log=this.log;return s}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const s=(typeof e==="string"?e:"").split(/[\s,]+/);const r=s.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let s;for(t=0,s=createDebug.skips.length;t=31||typeof navigator!=="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function formatArgs(t){t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff);if(!this.useColors){return}const s="color: "+this.color;t.splice(1,0,s,"color: inherit");let r=0;let o=0;t[0].replace(/%[a-zA-Z%]/g,e=>{if(e==="%%"){return}r++;if(e==="%c"){o=r}});t.splice(o,0,s)}function log(...e){return typeof console==="object"&&console.log&&console.log(...e)}function save(e){try{if(e){t.storage.setItem("debug",e)}else{t.storage.removeItem("debug")}}catch(e){}}function load(){let e;try{e=t.storage.getItem("debug")}catch(e){}if(!e&&typeof process!=="undefined"&&"env"in process){e=process.env.DEBUG}return e}function localstorage(){try{return localStorage}catch(e){}}e.exports=s(484)(t);const{formatters:r}=e.exports;r.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.driveactivity_v2=void 0;const r=s(927);var o;(function(e){class Driveactivity{constructor(e,t){this.context={_options:e||{},google:t};this.activity=new Resource$Activity(this.context)}}e.Driveactivity=Driveactivity;class Resource$Activity{constructor(e){this.context=e}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://driveactivity.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/activity:query").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Activity=Resource$Activity})(o=t.driveactivity_v2||(t.driveactivity_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.doubleclickbidmanager=t.VERSIONS=void 0;const r=s(927);const o=s(139);const n=s(11);t.VERSIONS={"v1.1":o.doubleclickbidmanager_v1_1.Doubleclickbidmanager,v1:n.doubleclickbidmanager_v1.Doubleclickbidmanager};function doubleclickbidmanager(e){return r.getAPI("doubleclickbidmanager",e,t.VERSIONS,this)}t.doubleclickbidmanager=doubleclickbidmanager;const i=new r.AuthPlus;t.auth=i},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firebase_v1beta1=void 0;const r=s(927);var o;(function(e){class Firebase{constructor(e,t){this.context={_options:e||{},google:t};this.availableProjects=new Resource$Availableprojects(this.context);this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Firebase=Firebase;class Resource$Availableprojects{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/availableProjects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Availableprojects=Resource$Availableprojects;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.androidApps=new Resource$Projects$Androidapps(this.context);this.availableLocations=new Resource$Projects$Availablelocations(this.context);this.defaultLocation=new Resource$Projects$Defaultlocation(this.context);this.iosApps=new Resource$Projects$Iosapps(this.context);this.webApps=new Resource$Projects$Webapps(this.context)}addFirebase(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+project}:addFirebase").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addGoogleAnalytics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:addGoogleAnalytics").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAdminSdkConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAnalyticsDetails(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/projects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeAnalytics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:removeAnalytics").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchApps(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:searchApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Androidapps{constructor(e){this.context=e;this.sha=new Resource$Projects$Androidapps$Sha(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/androidApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/androidApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Androidapps=Resource$Projects$Androidapps;class Resource$Projects$Androidapps$Sha{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/sha").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/sha").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Androidapps$Sha=Resource$Projects$Androidapps$Sha;class Resource$Projects$Availablelocations{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/availableLocations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Availablelocations=Resource$Projects$Availablelocations;class Resource$Projects$Defaultlocation{constructor(e){this.context=e}finalize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/defaultLocation:finalize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Defaultlocation=Resource$Projects$Defaultlocation;class Resource$Projects$Iosapps{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/iosApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/iosApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Iosapps=Resource$Projects$Iosapps;class Resource$Projects$Webapps{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebase.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Webapps=Resource$Projects$Webapps})(o=t.firebase_v1beta1||(t.firebase_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.vision_v1p1beta1=void 0;const r=s(927);var o;(function(e){class Vision{constructor(e,t){this.context={_options:e||{},google:t};this.files=new Resource$Files(this.context);this.images=new Resource$Images(this.context);this.projects=new Resource$Projects(this.context)}}e.Vision=Vision;class Resource$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Files=Resource$Files;class Resource$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Images=Resource$Images;class Resource$Projects{constructor(e){this.context=e;this.files=new Resource$Projects$Files(this.context);this.images=new Resource$Projects$Images(this.context);this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Files=Resource$Projects$Files;class Resource$Projects$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Images=Resource$Projects$Images;class Resource$Projects$Locations{constructor(e){this.context=e;this.files=new Resource$Projects$Locations$Files(this.context);this.images=new Resource$Projects$Locations$Images(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Files=Resource$Projects$Locations$Files;class Resource$Projects$Locations$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Images=Resource$Projects$Locations$Images})(o=t.vision_v1p1beta1||(t.vision_v1p1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firestore_v1beta1=void 0;const r=s(927);var o;(function(e){class Firestore{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Firestore=Firestore;class Resource$Projects{constructor(e){this.context=e;this.databases=new Resource$Projects$Databases(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Databases{constructor(e){this.context=e;this.documents=new Resource$Projects$Databases$Documents(this.context);this.indexes=new Resource$Projects$Databases$Indexes(this.context)}exportDocuments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:exportDocuments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}importDocuments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:importDocuments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases=Resource$Projects$Databases;class Resource$Projects$Databases$Documents{constructor(e){this.context=e}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}beginTransaction(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:beginTransaction").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}commit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:commit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createDocument(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/{collectionId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","collectionId"],pathParams:["collectionId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/{collectionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","collectionId"],pathParams:["collectionId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listCollectionIds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:listCollectionIds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listen(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:listen").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}runQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:runQuery").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}write(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+database}/documents:write").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Documents=Resource$Projects$Databases$Documents;class Resource$Projects$Databases$Indexes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/indexes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/indexes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Indexes=Resource$Projects$Databases$Indexes})(o=t.firestore_v1beta1||(t.firestore_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.tasks=t.VERSIONS=void 0;const r=s(927);const o=s(727);t.VERSIONS={v1:o.tasks_v1.Tasks};function tasks(e){return r.getAPI("tasks",e,t.VERSIONS,this)}t.tasks=tasks;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remotebuildexecution_v1=void 0;const r=s(927);var o;(function(e){class Remotebuildexecution{constructor(e,t){this.context={_options:e||{},google:t};this.media=new Resource$Media(this.context);this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Remotebuildexecution=Remotebuildexecution;class Resource$Media{constructor(e){this.context=e}download(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/media/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}upload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/media/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/v1/media/{+resourceName}").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["resourceName"],pathParams:["resourceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Media=Resource$Media;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.operations=new Resource$Projects$Operations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations})(o=t.remotebuildexecution_v1||(t.remotebuildexecution_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(s(417));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function sha1(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return r.default.createHash("sha1").update(e).digest()}var o=sha1;t.default=o},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.streetviewpublish_v1=void 0;const r=s(927);var o;(function(e){class Streetviewpublish{constructor(e,t){this.context={_options:e||{},google:t};this.photo=new Resource$Photo(this.context);this.photos=new Resource$Photos(this.context)}}e.Streetviewpublish=Streetviewpublish;class Resource$Photo{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photo").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photo/{photoId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["photoId"],pathParams:["photoId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photo/{photoId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["photoId"],pathParams:["photoId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startUpload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photo:startUpload").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photo/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Photo=Resource$Photo;class Resource$Photos{constructor(e){this.context=e}batchDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photos:batchDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photos:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}batchUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photos:batchUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://streetviewpublish.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/photos").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Photos=Resource$Photos})(o=t.streetviewpublish_v1||(t.streetviewpublish_v1={}))},function(e,t,s){e.exports=s(747).constants||s(721)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.datastore_v1beta3=void 0;const r=s(927);var o;(function(e){class Datastore{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Datastore=Datastore;class Resource$Projects{constructor(e){this.context=e}allocateIds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:allocateIds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}beginTransaction(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:beginTransaction").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}commit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:commit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}lookup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:lookup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reserveIds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:reserveIds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}runQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datastore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta3/projects/{projectId}:runQuery").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects})(o=t.datastore_v1beta3||(t.datastore_v1beta3={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.translate_v2=void 0;const r=s(927);var o;(function(e){class Translate{constructor(e,t){this.context={_options:e||{},google:t};this.detections=new Resource$Detections(this.context);this.languages=new Resource$Languages(this.context);this.translations=new Resource$Translations(this.context)}}e.Translate=Translate;class Resource$Detections{constructor(e){this.context=e}detect(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/language/translate/v2/detect").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/language/translate/v2/detect").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["q"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Detections=Resource$Detections;class Resource$Languages{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/language/translate/v2/languages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Languages=Resource$Languages;class Resource$Translations{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/language/translate/v2").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["q","target"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}translate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/language/translate/v2").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Translations=Resource$Translations})(o=t.translate_v2||(t.translate_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.gamesConfiguration_v1configuration=void 0;const r=s(927);var o;(function(e){class Gamesconfiguration{constructor(e,t){this.context={_options:e||{},google:t};this.achievementConfigurations=new Resource$Achievementconfigurations(this.context);this.imageConfigurations=new Resource$Imageconfigurations(this.context);this.leaderboardConfigurations=new Resource$Leaderboardconfigurations(this.context)}}e.Gamesconfiguration=Gamesconfiguration;class Resource$Achievementconfigurations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/achievements/{achievementId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["achievementId"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/achievements/{achievementId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["achievementId"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/applications/{applicationId}/achievements").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/applications/{applicationId}/achievements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/achievements/{achievementId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["achievementId"],pathParams:["achievementId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Achievementconfigurations=Resource$Achievementconfigurations;class Resource$Imageconfigurations{constructor(e){this.context=e}upload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/images/{resourceId}/imageType/{imageType}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/games/v1configuration/images/{resourceId}/imageType/{imageType}").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["resourceId","imageType"],pathParams:["imageType","resourceId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Imageconfigurations=Resource$Imageconfigurations;class Resource$Leaderboardconfigurations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/leaderboards/{leaderboardId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["leaderboardId"],pathParams:["leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/leaderboards/{leaderboardId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["leaderboardId"],pathParams:["leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/applications/{applicationId}/leaderboards").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/applications/{applicationId}/leaderboards").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["applicationId"],pathParams:["applicationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/games/v1configuration/leaderboards/{leaderboardId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["leaderboardId"],pathParams:["leaderboardId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Leaderboardconfigurations=Resource$Leaderboardconfigurations})(o=t.gamesConfiguration_v1configuration||(t.gamesConfiguration_v1configuration={}))},function(e,t,s){"use strict";var r=s(822);function destroy(e,t){var s=this;var o=this._readableState&&this._readableState.destroyed;var n=this._writableState&&this._writableState.destroyed;if(o||n){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){r.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!t&&e){r.nextTick(emitErrorNT,s,e);if(s._writableState){s._writableState.errorEmitted=true}}else if(t){t(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudresourcemanager_v2=void 0;const r=s(927);var o;(function(e){class Cloudresourcemanager{constructor(e,t){this.context={_options:e||{},google:t};this.folders=new Resource$Folders(this.context);this.operations=new Resource$Operations(this.context)}}e.Cloudresourcemanager=Cloudresourcemanager;class Resource$Folders{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders=Resource$Folders;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.cloudresourcemanager_v2||(t.cloudresourcemanager_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudresourcemanager_v1=void 0;const r=s(927);var o;(function(e){class Cloudresourcemanager{constructor(e,t){this.context={_options:e||{},google:t};this.folders=new Resource$Folders(this.context);this.liens=new Resource$Liens(this.context);this.operations=new Resource$Operations(this.context);this.organizations=new Resource$Organizations(this.context);this.projects=new Resource$Projects(this.context)}}e.Cloudresourcemanager=Cloudresourcemanager;class Resource$Folders{constructor(e){this.context=e}clearOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:clearOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getEffectiveOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAvailableOrgPolicyConstraints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listAvailableOrgPolicyConstraints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listOrgPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listOrgPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders=Resource$Folders;class Resource$Liens{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/liens").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/liens").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Liens=Resource$Liens;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Organizations{constructor(e){this.context=e}clearOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:clearOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getEffectiveOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAvailableOrgPolicyConstraints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listAvailableOrgPolicyConstraints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listOrgPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listOrgPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/organizations:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations=Resource$Organizations;class Resource$Projects{constructor(e){this.context=e}clearOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:clearOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAncestry(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}:getAncestry").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getEffectiveOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAvailableOrgPolicyConstraints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listAvailableOrgPolicyConstraints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listOrgPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:listOrgPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setOrgPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setOrgPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects})(o=t.cloudresourcemanager_v1||(t.cloudresourcemanager_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.dfareporting=t.VERSIONS=void 0;const r=s(927);const o=s(959);const n=s(292);t.VERSIONS={"v3.3":o.dfareporting_v3_3.Dfareporting,"v3.4":n.dfareporting_v3_4.Dfareporting};function dfareporting(e){return r.getAPI("dfareporting",e,t.VERSIONS,this)}t.dfareporting=dfareporting;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.storage_v1=void 0;const r=s(927);var o;(function(e){class Storage{constructor(e,t){this.context={_options:e||{},google:t};this.bucketAccessControls=new Resource$Bucketaccesscontrols(this.context);this.buckets=new Resource$Buckets(this.context);this.channels=new Resource$Channels(this.context);this.defaultObjectAccessControls=new Resource$Defaultobjectaccesscontrols(this.context);this.notifications=new Resource$Notifications(this.context);this.objectAccessControls=new Resource$Objectaccesscontrols(this.context);this.objects=new Resource$Objects(this.context);this.projects=new Resource$Projects(this.context)}}e.Storage=Storage;class Resource$Bucketaccesscontrols{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Bucketaccesscontrols=Resource$Bucketaccesscontrols;class Resource$Buckets{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/iam").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}lockRetentionPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/lockRetentionPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket","ifMetagenerationMatch"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/iam").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/iam/testPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","permissions"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Buckets=Resource$Buckets;class Resource$Channels{constructor(e){this.context=e}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/channels/stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Channels=Resource$Channels;class Resource$Defaultobjectaccesscontrols{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/defaultObjectAcl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket","entity"],pathParams:["bucket","entity"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Defaultobjectaccesscontrols=Resource$Defaultobjectaccesscontrols;class Resource$Notifications{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/notificationConfigs/{notification}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket","notification"],pathParams:["bucket","notification"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/notificationConfigs/{notification}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","notification"],pathParams:["bucket","notification"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/notificationConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/notificationConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Notifications=Resource$Notifications;class Resource$Objectaccesscontrols{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket","object","entity"],pathParams:["bucket","entity","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","object","entity"],pathParams:["bucket","entity","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["bucket","object","entity"],pathParams:["bucket","entity","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/acl/{entity}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket","object","entity"],pathParams:["bucket","entity","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Objectaccesscontrols=Resource$Objectaccesscontrols;class Resource$Objects{constructor(e){this.context=e}compose(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["destinationBucket","destinationObject"],pathParams:["destinationBucket","destinationObject"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}copy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["sourceBucket","sourceObject","destinationBucket","destinationObject"],pathParams:["destinationBucket","destinationObject","sourceBucket","sourceObject"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/iam").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/storage/v1/b/{bucket}/o").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rewrite(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["sourceBucket","sourceObject","destinationBucket","destinationObject"],pathParams:["destinationBucket","destinationObject","sourceBucket","sourceObject"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/iam").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}/iam/testPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["bucket","object","permissions"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/{object}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["bucket","object"],pathParams:["bucket","object"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}watchAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/b/{bucket}/o/watch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["bucket"],pathParams:["bucket"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Objects=Resource$Objects;class Resource$Projects{constructor(e){this.context=e;this.hmacKeys=new Resource$Projects$Hmackeys(this.context);this.serviceAccount=new Resource$Projects$Serviceaccount(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Hmackeys{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/hmacKeys").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","serviceAccountEmail"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/hmacKeys/{accessId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","accessId"],pathParams:["accessId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/hmacKeys/{accessId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","accessId"],pathParams:["accessId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/hmacKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/hmacKeys/{accessId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","accessId"],pathParams:["accessId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Hmackeys=Resource$Projects$Hmackeys;class Resource$Projects$Serviceaccount{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://storage.googleapis.com/";const c={options:Object.assign({url:(i+"/storage/v1/projects/{projectId}/serviceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Serviceaccount=Resource$Projects$Serviceaccount})(o=t.storage_v1||(t.storage_v1={}))},function(e,t,s){"use strict";var r=s(822);var o=Object.keys||function(e){var t=[];for(var s in e){t.push(s)}return t};e.exports=Duplex;var n=Object.create(s(683));n.inherits=s(689);var i=s(45);var c=s(523);n.inherits(Duplex,i);{var u=o(c.prototype);for(var a=0;a-1?setImmediate:r.nextTick;var n;Writable.WritableState=WritableState;var i=Object.create(s(683));i.inherits=s(689);var c={deprecate:s(917)};var u=s(135);var a=s(371).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=s(506);i.inherits(Writable,u);function nop(){}function WritableState(e,t){n=n||s(512);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.writableObjectMode;var o=e.highWaterMark;var i=e.writableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.finalCalled=false;this.needDrain=false;this.ending=false;this.ended=false;this.finished=false;this.destroyed=false;var u=e.decodeStrings===false;this.decodeStrings=!u;this.defaultEncoding=e.defaultEncoding||"utf8";this.length=0;this.writing=false;this.corked=0;this.sync=true;this.bufferProcessing=false;this.onwrite=function(e){onwrite(t,e)};this.writecb=null;this.writelen=0;this.bufferedRequest=null;this.lastBufferedRequest=null;this.pendingcb=0;this.prefinished=false;this.errorEmitted=false;this.bufferedRequestCount=0;this.corkedRequestsFree=new CorkedRequest(this)}WritableState.prototype.getBuffer=function getBuffer(){var e=this.bufferedRequest;var t=[];while(e){t.push(e);e=e.next}return t};(function(){try{Object.defineProperty(WritableState.prototype,"buffer",{get:c.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer "+"instead.","DEP0003")})}catch(e){}})();var h;if(typeof Symbol==="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==="function"){h=Function.prototype[Symbol.hasInstance];Object.defineProperty(Writable,Symbol.hasInstance,{value:function(e){if(h.call(this,e))return true;if(this!==Writable)return false;return e&&e._writableState instanceof WritableState}})}else{h=function(e){return e instanceof this}}function Writable(e){n=n||s(512);if(!h.call(Writable,this)&&!(this instanceof n)){return new Writable(e)}this._writableState=new WritableState(e,this);this.writable=true;if(e){if(typeof e.write==="function")this._write=e.write;if(typeof e.writev==="function")this._writev=e.writev;if(typeof e.destroy==="function")this._destroy=e.destroy;if(typeof e.final==="function")this._final=e.final}u.call(this)}Writable.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))};function writeAfterEnd(e,t){var s=new Error("write after end");e.emit("error",s);r.nextTick(t,s)}function validChunk(e,t,s,o){var n=true;var i=false;if(s===null){i=new TypeError("May not write null values to stream")}else if(typeof s!=="string"&&s!==undefined&&!t.objectMode){i=new TypeError("Invalid non-string/buffer chunk")}if(i){e.emit("error",i);r.nextTick(o,i);n=false}return n}Writable.prototype.write=function(e,t,s){var r=this._writableState;var o=false;var n=!r.objectMode&&_isUint8Array(e);if(n&&!a.isBuffer(e)){e=_uint8ArrayToBuffer(e)}if(typeof t==="function"){s=t;t=null}if(n)t="buffer";else if(!t)t=r.defaultEncoding;if(typeof s!=="function")s=nop;if(r.ended)writeAfterEnd(this,s);else if(n||validChunk(this,r,e,s)){r.pendingcb++;o=writeOrBuffer(this,r,n,e,t,s)}return o};Writable.prototype.cork=function(){var e=this._writableState;e.corked++};Writable.prototype.uncork=function(){var e=this._writableState;if(e.corked){e.corked--;if(!e.writing&&!e.corked&&!e.finished&&!e.bufferProcessing&&e.bufferedRequest)clearBuffer(this,e)}};Writable.prototype.setDefaultEncoding=function setDefaultEncoding(e){if(typeof e==="string")e=e.toLowerCase();if(!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+e);this._writableState.defaultEncoding=e;return this};function decodeChunk(e,t,s){if(!e.objectMode&&e.decodeStrings!==false&&typeof t==="string"){t=a.from(t,s)}return t}Object.defineProperty(Writable.prototype,"writableHighWaterMark",{enumerable:false,get:function(){return this._writableState.highWaterMark}});function writeOrBuffer(e,t,s,r,o,n){if(!s){var i=decodeChunk(t,r,o);if(r!==i){s=true;o="buffer";r=i}}var c=t.objectMode?1:r.length;t.length+=c;var u=t.length=0||!n.gcd(t.n).equals(o.ONE));e=e.multiply(n.modPow(t.e,t.n)).mod(t.n);var i=e.mod(t.p).modPow(t.dP,t.p);var c=e.mod(t.q).modPow(t.dQ,t.q);while(i.compareTo(c)<0){i=i.add(t.p)}var u=i.subtract(c).multiply(t.qInv).mod(t.p).multiply(t.q).add(c);u=u.multiply(n.modInverse(t.n)).mod(t.n);return u};u.rsa.encrypt=function(e,t,s){var n=s;var i;var c=Math.ceil(t.n.bitLength()/8);if(s!==false&&s!==true){n=s===2;i=_encodePkcs1_v1_5(e,t,s)}else{i=r.util.createBuffer();i.putBytes(e)}var u=new o(i.toHex(),16);var a=P(u,t,n);var f=a.toString(16);var p=r.util.createBuffer();var h=c-Math.ceil(f.length/2);while(h>0){p.putByte(0);--h}p.putBytes(r.util.hexToBytes(f));return p.getBytes()};u.rsa.decrypt=function(e,t,s,n){var i=Math.ceil(t.n.bitLength()/8);if(e.length!==i){var c=new Error("Encrypted message length is invalid.");c.length=e.length;c.expected=i;throw c}var u=new o(r.util.createBuffer(e).toHex(),16);if(u.compareTo(t.n)>=0){throw new Error("Encrypted message is invalid.")}var a=P(u,t,s);var f=a.toString(16);var p=r.util.createBuffer();var h=i-Math.ceil(f.length/2);while(h>0){p.putByte(0);--h}p.putBytes(r.util.hexToBytes(f));if(n!==false){return _decodePkcs1_v1_5(p.getBytes(),t,s)}return p.getBytes()};u.rsa.createKeyPairGenerationState=function(e,t,s){if(typeof e==="string"){e=parseInt(e,10)}e=e||2048;s=s||{};var n=s.prng||r.random;var i={nextBytes:function(e){var t=n.getBytesSync(e.length);for(var s=0;s>1,pBits:e-(e>>1),pqState:0,num:null,keys:null};u.e.fromInt(u.eInt)}else{throw new Error("Invalid key generation algorithm: "+c)}return u};u.rsa.stepKeyPairGenerationState=function(e,t){if(!("algorithm"in e)){e.algorithm="PRIMEINC"}var s=new o(null);s.fromInt(30);var r=0;var n=function(e,t){return e|t};var i=+new Date;var c;var f=0;while(e.keys===null&&(t<=0||fp){e.pqState=0}else if(e.num.isProbablePrime(_getMillerRabinTests(e.num.bitLength()))){++e.pqState}else{e.num.dAddOffset(a[r++%8],0)}}else if(e.pqState===2){e.pqState=e.num.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)===0?3:0}else if(e.pqState===3){e.pqState=0;if(e.p===null){e.p=e.num}else{e.q=e.num}if(e.p!==null&&e.q!==null){++e.state}e.num=null}}else if(e.state===1){if(e.p.compareTo(e.q)<0){e.num=e.p;e.p=e.q;e.q=e.num}++e.state}else if(e.state===2){e.p1=e.p.subtract(o.ONE);e.q1=e.q.subtract(o.ONE);e.phi=e.p1.multiply(e.q1);++e.state}else if(e.state===3){if(e.phi.gcd(e.e).compareTo(o.ONE)===0){++e.state}else{e.p=null;e.q=null;e.state=0}}else if(e.state===4){e.n=e.p.multiply(e.q);if(e.n.bitLength()===e.bits){++e.state}else{e.q=null;e.state=0}}else if(e.state===5){var d=e.e.modInverse(e.phi);e.keys={privateKey:u.rsa.setPrivateKey(e.n,e.e,d,e.p,e.q,d.mod(e.p1),d.mod(e.q1),e.q.modInverse(e.p)),publicKey:u.rsa.setPublicKey(e.n,e.e)}}c=+new Date;f+=c-i;i=c}return e.keys!==null};u.rsa.generateKeyPair=function(e,t,s,o){if(arguments.length===1){if(typeof e==="object"){s=e;e=undefined}else if(typeof e==="function"){o=e;e=undefined}}else if(arguments.length===2){if(typeof e==="number"){if(typeof t==="function"){o=t;t=undefined}else if(typeof t!=="number"){s=t;t=undefined}}else{s=e;o=t;e=undefined;t=undefined}}else if(arguments.length===3){if(typeof t==="number"){if(typeof s==="function"){o=s;s=undefined}}else{o=s;s=t;t=undefined}}s=s||{};if(e===undefined){e=s.bits||2048}if(t===undefined){t=s.e||65537}if(!r.options.usePureJavaScript&&!s.prng&&e>=256&&e<=16384&&(t===65537||t===3)){if(o){if(_detectNodeCrypto("generateKeyPair")){return n.generateKeyPair("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}},function(e,t,s){if(e){return o(e)}o(null,{privateKey:u.privateKeyFromPem(s),publicKey:u.publicKeyFromPem(t)})})}if(_detectSubtleCrypto("generateKey")&&_detectSubtleCrypto("exportKey")){return c.globalScope.crypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(t),hash:{name:"SHA-256"}},true,["sign","verify"]).then(function(e){return c.globalScope.crypto.subtle.exportKey("pkcs8",e.privateKey)}).then(undefined,function(e){o(e)}).then(function(e){if(e){var t=u.privateKeyFromAsn1(i.fromDer(r.util.createBuffer(e)));o(null,{privateKey:t,publicKey:u.setRsaPublicKey(t.n,t.e)})}})}if(_detectSubtleMsCrypto("generateKey")&&_detectSubtleMsCrypto("exportKey")){var a=c.globalScope.msCrypto.subtle.generateKey({name:"RSASSA-PKCS1-v1_5",modulusLength:e,publicExponent:_intToUint8Array(t),hash:{name:"SHA-256"}},true,["sign","verify"]);a.oncomplete=function(e){var t=e.target.result;var s=c.globalScope.msCrypto.subtle.exportKey("pkcs8",t.privateKey);s.oncomplete=function(e){var t=e.target.result;var s=u.privateKeyFromAsn1(i.fromDer(r.util.createBuffer(t)));o(null,{privateKey:s,publicKey:u.setRsaPublicKey(s.n,s.e)})};s.onerror=function(e){o(e)}};a.onerror=function(e){o(e)};return}}else{if(_detectNodeCrypto("generateKeyPairSync")){var f=n.generateKeyPairSync("rsa",{modulusLength:e,publicExponent:t,publicKeyEncoding:{type:"spki",format:"pem"},privateKeyEncoding:{type:"pkcs8",format:"pem"}});return{privateKey:u.privateKeyFromPem(f.privateKey),publicKey:u.publicKeyFromPem(f.publicKey)}}}}var p=u.rsa.createKeyPairGenerationState(e,t,s);if(!o){u.rsa.stepKeyPairGenerationState(p,0);return p.keys}_generateKeyPair(p,s,o)};u.setRsaPublicKey=u.rsa.setPublicKey=function(e,t){var s={n:e,e:t};s.encrypt=function(e,t,o){if(typeof t==="string"){t=t.toUpperCase()}else if(t===undefined){t="RSAES-PKCS1-V1_5"}if(t==="RSAES-PKCS1-V1_5"){t={encode:function(e,t,s){return _encodePkcs1_v1_5(e,t,2).getBytes()}}}else if(t==="RSA-OAEP"||t==="RSAES-OAEP"){t={encode:function(e,t){return r.pkcs1.encode_rsa_oaep(t,e,o)}}}else if(["RAW","NONE","NULL",null].indexOf(t)!==-1){t={encode:function(e){return e}}}else if(typeof t==="string"){throw new Error('Unsupported encryption scheme: "'+t+'".')}var n=t.encode(e,s,true);return u.rsa.encrypt(n,s,true)};s.verify=function(e,t,r){if(typeof r==="string"){r=r.toUpperCase()}else if(r===undefined){r="RSASSA-PKCS1-V1_5"}if(r==="RSASSA-PKCS1-V1_5"){r={verify:function(e,t){t=_decodePkcs1_v1_5(t,s,true);var r=i.fromDer(t);return e===r.value[1].value}}}else if(r==="NONE"||r==="NULL"||r===null){r={verify:function(e,t){t=_decodePkcs1_v1_5(t,s,true);return e===t}}}var o=u.rsa.decrypt(t,s,true,false);return r.verify(e,o,s.n.bitLength())};return s};u.setRsaPrivateKey=u.rsa.setPrivateKey=function(e,t,s,o,n,i,c,a){var f={n:e,e:t,d:s,p:o,q:n,dP:i,dQ:c,qInv:a};f.decrypt=function(e,t,s){if(typeof t==="string"){t=t.toUpperCase()}else if(t===undefined){t="RSAES-PKCS1-V1_5"}var o=u.rsa.decrypt(e,f,false,false);if(t==="RSAES-PKCS1-V1_5"){t={decode:_decodePkcs1_v1_5}}else if(t==="RSA-OAEP"||t==="RSAES-OAEP"){t={decode:function(e,t){return r.pkcs1.decode_rsa_oaep(t,e,s)}}}else if(["RAW","NONE","NULL",null].indexOf(t)!==-1){t={decode:function(e){return e}}}else{throw new Error('Unsupported encryption scheme: "'+t+'".')}return t.decode(o,f,false)};f.sign=function(e,t){var s=false;if(typeof t==="string"){t=t.toUpperCase()}if(t===undefined||t==="RSASSA-PKCS1-V1_5"){t={encode:l};s=1}else if(t==="NONE"||t==="NULL"||t===null){t={encode:function(){return e}};s=1}var r=t.encode(e,f.n.bitLength());return u.rsa.encrypt(r,f,s)};return f};u.wrapRsaPrivateKey=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,i.integerToDer(0).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.OID,false,i.oidToDer(u.oids.rsaEncryption).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,false,"")]),i.create(i.Class.UNIVERSAL,i.Type.OCTETSTRING,false,i.toDer(e).getBytes())])};u.privateKeyFromAsn1=function(e){var t={};var s=[];if(i.validate(e,f,t,s)){e=i.fromDer(r.util.createBuffer(t.privateKey))}t={};s=[];if(!i.validate(e,p,t,s)){var n=new Error("Cannot read private key. "+"ASN.1 object does not contain an RSAPrivateKey.");n.errors=s;throw n}var c,a,h,d,l,P,y,I;c=r.util.createBuffer(t.privateKeyModulus).toHex();a=r.util.createBuffer(t.privateKeyPublicExponent).toHex();h=r.util.createBuffer(t.privateKeyPrivateExponent).toHex();d=r.util.createBuffer(t.privateKeyPrime1).toHex();l=r.util.createBuffer(t.privateKeyPrime2).toHex();P=r.util.createBuffer(t.privateKeyExponent1).toHex();y=r.util.createBuffer(t.privateKeyExponent2).toHex();I=r.util.createBuffer(t.privateKeyCoefficient).toHex();return u.setRsaPrivateKey(new o(c,16),new o(a,16),new o(h,16),new o(d,16),new o(l,16),new o(P,16),new o(y,16),new o(I,16))};u.privateKeyToAsn1=u.privateKeyToRSAPrivateKey=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,i.integerToDer(0).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.n)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.e)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.d)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.p)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.q)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.dP)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.dQ)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.qInv))])};u.publicKeyFromAsn1=function(e){var t={};var s=[];if(i.validate(e,d,t,s)){var n=i.derToOid(t.publicKeyOid);if(n!==u.oids.rsaEncryption){var c=new Error("Cannot read public key. Unknown OID.");c.oid=n;throw c}e=t.rsaPublicKey}s=[];if(!i.validate(e,h,t,s)){var c=new Error("Cannot read public key. "+"ASN.1 object does not contain an RSAPublicKey.");c.errors=s;throw c}var a=r.util.createBuffer(t.publicKeyModulus).toHex();var f=r.util.createBuffer(t.publicKeyExponent).toHex();return u.setRsaPublicKey(new o(a,16),new o(f,16))};u.publicKeyToAsn1=u.publicKeyToSubjectPublicKeyInfo=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.OID,false,i.oidToDer(u.oids.rsaEncryption).getBytes()),i.create(i.Class.UNIVERSAL,i.Type.NULL,false,"")]),i.create(i.Class.UNIVERSAL,i.Type.BITSTRING,false,[u.publicKeyToRSAPublicKey(e)])])};u.publicKeyToRSAPublicKey=function(e){return i.create(i.Class.UNIVERSAL,i.Type.SEQUENCE,true,[i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.n)),i.create(i.Class.UNIVERSAL,i.Type.INTEGER,false,_bnToBytes(e.e))])};function _encodePkcs1_v1_5(e,t,s){var o=r.util.createBuffer();var n=Math.ceil(t.n.bitLength()/8);if(e.length>n-11){var i=new Error("Message is too long for PKCS#1 v1.5 padding.");i.length=e.length;i.max=n-11;throw i}o.putByte(0);o.putByte(s);var c=n-3-e.length;var u;if(s===0||s===1){u=s===0?0:255;for(var a=0;a0){var f=0;var p=r.random.getBytes(c);for(var a=0;a1){if(i.getByte()!==255){--i.read;break}++a}}else if(u===2){a=0;while(i.length()>1){if(i.getByte()===0){--i.read;break}++a}}var p=i.getByte();if(p!==0||a!==n-3-i.length()){throw new Error("Encryption block is invalid.")}return i.getBytes()}function _generateKeyPair(e,t,s){if(typeof t==="function"){s=t;t={}}t=t||{};var n={algorithm:{name:t.algorithm||"PRIMEINC",options:{workers:t.workers||2,workLoad:t.workLoad||100,workerScript:t.workerScript}}};if("prng"in t){n.prng=t.prng}generate();function generate(){getPrime(e.pBits,function(t,r){if(t){return s(t)}e.p=r;if(e.q!==null){return finish(t,e.q)}getPrime(e.qBits,finish)})}function getPrime(e,t){r.prime.generateProbablePrime(e,n,t)}function finish(t,r){if(t){return s(t)}e.q=r;if(e.p.compareTo(e.q)<0){var n=e.p;e.p=e.q;e.q=n}if(e.p.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)!==0){e.p=null;generate();return}if(e.q.subtract(o.ONE).gcd(e.e).compareTo(o.ONE)!==0){e.q=null;getPrime(e.qBits,finish);return}e.p1=e.p.subtract(o.ONE);e.q1=e.q.subtract(o.ONE);e.phi=e.p1.multiply(e.q1);if(e.phi.gcd(e.e).compareTo(o.ONE)!==0){e.p=e.q=null;generate();return}e.n=e.p.multiply(e.q);if(e.n.bitLength()!==e.bits){e.q=null;getPrime(e.qBits,finish);return}var i=e.e.modInverse(e.phi);e.keys={privateKey:u.rsa.setPrivateKey(e.n,e.e,i,e.p,e.q,i.mod(e.p1),i.mod(e.q1),e.q.modInverse(e.p)),publicKey:u.rsa.setPublicKey(e.n,e.e)};s(null,e.keys)}}function _bnToBytes(e){var t=e.toString(16);if(t[0]>="8"){t="00"+t}var s=r.util.hexToBytes(t);if(s.length>1&&(s.charCodeAt(0)===0&&(s.charCodeAt(1)&128)===0||s.charCodeAt(0)===255&&(s.charCodeAt(1)&128)===128)){return s.substr(1)}return s}function _getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}function _detectNodeCrypto(e){return r.util.isNodejs&&typeof n[e]==="function"}function _detectSubtleCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.crypto==="object"&&typeof c.globalScope.crypto.subtle==="object"&&typeof c.globalScope.crypto.subtle[e]==="function"}function _detectSubtleMsCrypto(e){return typeof c.globalScope!=="undefined"&&typeof c.globalScope.msCrypto==="object"&&typeof c.globalScope.msCrypto.subtle==="object"&&typeof c.globalScope.msCrypto.subtle[e]==="function"}function _intToUint8Array(e){var t=r.util.hexToBytes(e.toString(16));var s=new Uint8Array(t.length);for(var o=0;o{e.call(this,t,s,(e,t)=>{if(e){o(e)}else{r(t)}})})}}t.default=promisify},function(e,t,s){var r=s(293).Buffer;var o=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined"){o=new Int32Array(o)}function ensureBuffer(e){if(r.isBuffer(e)){return e}var t=typeof r.alloc==="function"&&typeof r.from==="function";if(typeof e==="number"){return t?r.alloc(e):new r(e)}else if(typeof e==="string"){return t?r.from(e):new r(e)}else{throw new Error("input must be buffer, number, or string, received "+typeof e)}}function bufferizeInt(e){var t=ensureBuffer(4);t.writeInt32BE(e,0);return t}function _crc32(e,t){e=ensureBuffer(e);if(r.isBuffer(t)){t=t.readUInt32BE(0)}var s=~~t^-1;for(var n=0;n>>8}return s^-1}function crc32(){return bufferizeInt(_crc32.apply(null,arguments))}crc32.signed=function(){return _crc32.apply(null,arguments)};crc32.unsigned=function(){return _crc32.apply(null,arguments)>>>0};e.exports=crc32},function(e,t,s){"use strict";e.exports=s(271).default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.sql=t.VERSIONS=void 0;const r=s(927);const o=s(475);t.VERSIONS={v1beta4:o.sql_v1beta4.Sql};function sql(e){return r.getAPI("sql",e,t.VERSIONS,this)}t.sql=sql;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.videointelligence_v1p1beta1=void 0;const r=s(927);var o;(function(e){class Videointelligence{constructor(e,t){this.context={_options:e||{},google:t};this.videos=new Resource$Videos(this.context)}}e.Videointelligence=Videointelligence;class Resource$Videos{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/videos:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videos=Resource$Videos})(o=t.videointelligence_v1p1beta1||(t.videointelligence_v1p1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.binaryauthorization_v1beta1=void 0;const r=s(927);var o;(function(e){class Binaryauthorization{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Binaryauthorization=Binaryauthorization;class Resource$Projects{constructor(e){this.context=e;this.attestors=new Resource$Projects$Attestors(this.context);this.policy=new Resource$Projects$Policy(this.context)}getPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Attestors{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/attestors").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/attestors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Attestors=Resource$Projects$Attestors;class Resource$Projects$Policy{constructor(e){this.context=e}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://binaryauthorization.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Policy=Resource$Projects$Policy})(o=t.binaryauthorization_v1beta1||(t.binaryauthorization_v1beta1={}))},,,,function(e){"use strict";function destroy(e,t){var s=this;var r=this._readableState&&this._readableState.destroyed;var o=this._writableState&&this._writableState.destroyed;if(r||o){if(t){t(e)}else if(e){if(!this._writableState){process.nextTick(emitErrorNT,this,e)}else if(!this._writableState.errorEmitted){this._writableState.errorEmitted=true;process.nextTick(emitErrorNT,this,e)}}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!t&&e){if(!s._writableState){process.nextTick(emitErrorAndCloseNT,s,e)}else if(!s._writableState.errorEmitted){s._writableState.errorEmitted=true;process.nextTick(emitErrorAndCloseNT,s,e)}else{process.nextTick(emitCloseNT,s)}}else if(t){process.nextTick(emitCloseNT,s);t(e)}else{process.nextTick(emitCloseNT,s)}});return this}function emitErrorAndCloseNT(e,t){emitErrorNT(e,t);emitCloseNT(e)}function emitCloseNT(e){if(e._writableState&&!e._writableState.emitClose)return;if(e._readableState&&!e._readableState.emitClose)return;e.emit("close")}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finalCalled=false;this._writableState.prefinished=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}function errorOrDestroy(e,t){var s=e._readableState;var r=e._writableState;if(s&&s.autoDestroy||r&&r.autoDestroy)e.destroy(t);else e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy,errorOrDestroy:errorOrDestroy}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adexperiencereport_v1=void 0;const r=s(927);var o;(function(e){class Adexperiencereport{constructor(e,t){this.context={_options:e||{},google:t};this.sites=new Resource$Sites(this.context);this.violatingSites=new Resource$Violatingsites(this.context)}}e.Adexperiencereport=Adexperiencereport;class Resource$Sites{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexperiencereport.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites=Resource$Sites;class Resource$Violatingsites{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://adexperiencereport.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/violatingSites").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Violatingsites=Resource$Violatingsites})(o=t.adexperiencereport_v1||(t.adexperiencereport_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.admob_v1=void 0;const r=s(927);var o;(function(e){class Admob{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context)}}e.Admob=Admob;class Resource$Accounts{constructor(e){this.context=e;this.mediationReport=new Resource$Accounts$Mediationreport(this.context);this.networkReport=new Resource$Accounts$Networkreport(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://admob.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://admob.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Mediationreport{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://admob.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/mediationReport:generate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Mediationreport=Resource$Accounts$Mediationreport;class Resource$Accounts$Networkreport{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://admob.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/networkReport:generate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Networkreport=Resource$Accounts$Networkreport})(o=t.admob_v1||(t.admob_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudfunctions_v1beta2=void 0;const r=s(927);var o;(function(e){class Cloudfunctions{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Cloudfunctions=Cloudfunctions;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.functions=new Resource$Projects$Locations$Functions(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Functions{constructor(e){this.context=e}call(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}:call").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+location}/functions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["location"],pathParams:["location"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateDownloadUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}:generateDownloadUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateUploadUrl(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+parent}/functions:generateUploadUrl").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+location}/functions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["location"],pathParams:["location"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudfunctions.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Functions=Resource$Projects$Locations$Functions})(o=t.cloudfunctions_v1beta2||(t.cloudfunctions_v1beta2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.accesscontextmanager_v1beta=void 0;const r=s(927);var o;(function(e){class Accesscontextmanager{constructor(e,t){this.context={_options:e||{},google:t};this.accessPolicies=new Resource$Accesspolicies(this.context);this.operations=new Resource$Operations(this.context)}}e.Accesscontextmanager=Accesscontextmanager;class Resource$Accesspolicies{constructor(e){this.context=e;this.accessLevels=new Resource$Accesspolicies$Accesslevels(this.context);this.servicePerimeters=new Resource$Accesspolicies$Serviceperimeters(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/accessPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/accessPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies=Resource$Accesspolicies;class Resource$Accesspolicies$Accesslevels{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/accessLevels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/accessLevels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies$Accesslevels=Resource$Accesspolicies$Accesslevels;class Resource$Accesspolicies$Serviceperimeters{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/servicePerimeters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/servicePerimeters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accesspolicies$Serviceperimeters=Resource$Accesspolicies$Serviceperimeters;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accesscontextmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.accesscontextmanager_v1beta||(t.accesscontextmanager_v1beta={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.licensing=t.VERSIONS=void 0;const r=s(927);const o=s(976);t.VERSIONS={v1:o.licensing_v1.Licensing};function licensing(e){return r.getAPI("licensing",e,t.VERSIONS,this)}t.licensing=licensing;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.analyticsreporting_v4=void 0;const r=s(927);var o;(function(e){class Analyticsreporting{constructor(e,t){this.context={_options:e||{},google:t};this.reports=new Resource$Reports(this.context);this.userActivity=new Resource$Useractivity(this.context)}}e.Analyticsreporting=Analyticsreporting;class Resource$Reports{constructor(e){this.context=e}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://analyticsreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/reports:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports;class Resource$Useractivity{constructor(e){this.context=e}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://analyticsreporting.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/userActivity:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Useractivity=Resource$Useractivity})(o=t.analyticsreporting_v4||(t.analyticsreporting_v4={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.appsactivity_v1=void 0;const r=s(927);var o;(function(e){class Appsactivity{constructor(e,t){this.context={_options:e||{},google:t};this.activities=new Resource$Activities(this.context)}}e.Appsactivity=Appsactivity;class Resource$Activities{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/appsactivity/v1/activities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Activities=Resource$Activities})(o=t.appsactivity_v1||(t.appsactivity_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.youtube=t.VERSIONS=void 0;const r=s(927);const o=s(261);t.VERSIONS={v3:o.youtube_v3.Youtube};function youtube(e){return r.getAPI("youtube",e,t.VERSIONS,this)}t.youtube=youtube;const n=new r.AuthPlus;t.auth=n},,function(e){var t=200;var s="__lodash_hash_undefined__";var r=9007199254740991;var o="[object Arguments]",n="[object Function]",i="[object GeneratorFunction]";var c=/[\\^$.*+?()[\]{}|]/g;var u=/^\[object .+?Constructor\]$/;var a=typeof global=="object"&&global&&global.Object===Object&&global;var f=typeof self=="object"&&self&&self.Object===Object&&self;var p=a||f||Function("return this")();function apply(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}function arrayIncludes(e,t){var s=e?e.length:0;return!!s&&baseIndexOf(e,t,0)>-1}function arrayIncludesWith(e,t,s){var r=-1,o=e?e.length:0;while(++r-1}function listCacheSet(e,t){var s=this.__data__,r=assocIndexOf(s,e);if(r<0){s.push([e,t])}else{s[r][1]=t}return this}ListCache.prototype.clear=listCacheClear;ListCache.prototype["delete"]=listCacheDelete;ListCache.prototype.get=listCacheGet;ListCache.prototype.has=listCacheHas;ListCache.prototype.set=listCacheSet;function MapCache(e){var t=-1,s=e?e.length:0;this.clear();while(++t=t){i=cacheHas;c=false;s=new SetCache(s)}e:while(++n0&&s(c)){if(t>1){baseFlatten(c,t-1,s,r,o)}else{arrayPush(o,c)}}else if(!r){o[o.length]=c}}return o}function baseIsNative(e){if(!isObject(e)||isMasked(e)){return false}var t=isFunction(e)||isHostObject(e)?q:u;return t.test(toSource(e))}function baseRest(e,t){t=A(t===undefined?e.length-1:t,0);return function(){var s=arguments,r=-1,o=A(s.length-t,0),n=Array(o);while(++r-1&&e%1==0&&e<=r}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}e.exports=w},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.verifiedaccess=t.VERSIONS=void 0;const r=s(927);const o=s(393);t.VERSIONS={v1:o.verifiedaccess_v1.Verifiedaccess};function verifiedaccess(e){return r.getAPI("verifiedaccess",e,t.VERSIONS,this)}t.verifiedaccess=verifiedaccess;const n=new r.AuthPlus;t.auth=n},,function(e){"use strict";const t={};function createErrorType(e,s,r){if(!r){r=Error}function getMessage(e,t,r){if(typeof s==="string"){return s}else{return s(e,t,r)}}class NodeError extends r{constructor(e,t,s){super(getMessage(e,t,s))}}NodeError.prototype.name=r.name;NodeError.prototype.code=e;t[e]=NodeError}function oneOf(e,t){if(Array.isArray(e)){const s=e.length;e=e.map(e=>String(e));if(s>2){return`one of ${t} ${e.slice(0,s-1).join(", ")}, or `+e[s-1]}else if(s===2){return`one of ${t} ${e[0]} or ${e[1]}`}else{return`of ${t} ${e[0]}`}}else{return`of ${t} ${String(e)}`}}function startsWith(e,t,s){return e.substr(!s||s<0?0:+s,t.length)===t}function endsWith(e,t,s){if(s===undefined||s>e.length){s=e.length}return e.substring(s-t.length,s)===t}function includes(e,t,s){if(typeof s!=="number"){s=0}if(s+t.length>e.length){return false}else{return e.indexOf(t,s)!==-1}}createErrorType("ERR_INVALID_OPT_VALUE",function(e,t){return'The value "'+t+'" is invalid for option "'+e+'"'},TypeError);createErrorType("ERR_INVALID_ARG_TYPE",function(e,t,s){let r;if(typeof t==="string"&&startsWith(t,"not ")){r="must not be";t=t.replace(/^not /,"")}else{r="must be"}let o;if(endsWith(e," argument")){o=`The ${e} ${r} ${oneOf(t,"type")}`}else{const s=includes(e,".")?"property":"argument";o=`The "${e}" ${s} ${r} ${oneOf(t,"type")}`}o+=`. Received type ${typeof s}`;return o},TypeError);createErrorType("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF");createErrorType("ERR_METHOD_NOT_IMPLEMENTED",function(e){return"The "+e+" method is not implemented"});createErrorType("ERR_STREAM_PREMATURE_CLOSE","Premature close");createErrorType("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"});createErrorType("ERR_MULTIPLE_CALLBACK","Callback called multiple times");createErrorType("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable");createErrorType("ERR_STREAM_WRITE_AFTER_END","write after end");createErrorType("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError);createErrorType("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError);createErrorType("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event");e.exports.codes=t},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.adsense=t.VERSIONS=void 0;const r=s(927);const o=s(206);t.VERSIONS={"v1.4":o.adsense_v1_4.Adsense};function adsense(e){return r.getAPI("adsense",e,t.VERSIONS,this)}t.adsense=adsense;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.classroom_v1=void 0;const r=s(927);var o;(function(e){class Classroom{constructor(e,t){this.context={_options:e||{},google:t};this.courses=new Resource$Courses(this.context);this.invitations=new Resource$Invitations(this.context);this.registrations=new Resource$Registrations(this.context);this.userProfiles=new Resource$Userprofiles(this.context)}}e.Classroom=Classroom;class Resource$Courses{constructor(e){this.context=e;this.aliases=new Resource$Courses$Aliases(this.context);this.announcements=new Resource$Courses$Announcements(this.context);this.courseWork=new Resource$Courses$Coursework(this.context);this.students=new Resource$Courses$Students(this.context);this.teachers=new Resource$Courses$Teachers(this.context);this.topics=new Resource$Courses$Topics(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses=Resource$Courses;class Resource$Courses$Aliases{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/aliases").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/aliases/{alias}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","alias"],pathParams:["alias","courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/aliases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Aliases=Resource$Courses$Aliases;class Resource$Courses$Announcements{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyAssignees(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements/{id}:modifyAssignees").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/announcements/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Announcements=Resource$Courses$Announcements;class Resource$Courses$Coursework{constructor(e){this.context=e;this.studentSubmissions=new Resource$Courses$Coursework$Studentsubmissions(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyAssignees(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{id}:modifyAssignees").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Coursework=Resource$Courses$Coursework;class Resource$Courses$Coursework$Studentsubmissions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","courseWorkId"],pathParams:["courseId","courseWorkId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyAttachments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reclaim(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}return(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}turnIn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId","courseWorkId","id"],pathParams:["courseId","courseWorkId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Coursework$Studentsubmissions=Resource$Courses$Coursework$Studentsubmissions;class Resource$Courses$Students{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/students").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/students/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","userId"],pathParams:["courseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/students/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","userId"],pathParams:["courseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/students").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Students=Resource$Courses$Students;class Resource$Courses$Teachers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/teachers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/teachers/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","userId"],pathParams:["courseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/teachers/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","userId"],pathParams:["courseId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/teachers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Teachers=Resource$Courses$Teachers;class Resource$Courses$Topics{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/topics").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/topics/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/topics/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/topics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["courseId"],pathParams:["courseId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/courses/{courseId}/topics/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["courseId","id"],pathParams:["courseId","id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Courses$Topics=Resource$Courses$Topics;class Resource$Invitations{constructor(e){this.context=e}accept(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/invitations/{id}:accept").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/invitations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/invitations/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/invitations/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/invitations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Invitations=Resource$Invitations;class Resource$Registrations{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/registrations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/registrations/{registrationId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["registrationId"],pathParams:["registrationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Registrations=Resource$Registrations;class Resource$Userprofiles{constructor(e){this.context=e;this.guardianInvitations=new Resource$Userprofiles$Guardianinvitations(this.context);this.guardians=new Resource$Userprofiles$Guardians(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["userId"],pathParams:["userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userprofiles=Resource$Userprofiles;class Resource$Userprofiles$Guardianinvitations{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardianInvitations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["studentId"],pathParams:["studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["studentId","invitationId"],pathParams:["invitationId","studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardianInvitations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["studentId"],pathParams:["studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["studentId","invitationId"],pathParams:["invitationId","studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userprofiles$Guardianinvitations=Resource$Userprofiles$Guardianinvitations;class Resource$Userprofiles$Guardians{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardians/{guardianId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["studentId","guardianId"],pathParams:["guardianId","studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardians/{guardianId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["studentId","guardianId"],pathParams:["guardianId","studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://classroom.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/userProfiles/{studentId}/guardians").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["studentId"],pathParams:["studentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userprofiles$Guardians=Resource$Userprofiles$Guardians})(o=t.classroom_v1||(t.classroom_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.webfonts=t.VERSIONS=void 0;const r=s(927);const o=s(173);t.VERSIONS={v1:o.webfonts_v1.Webfonts};function webfonts(e){return r.getAPI("webfonts",e,t.VERSIONS,this)}t.webfonts=webfonts;const n=new r.AuthPlus;t.auth=n},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudscheduler_v1=void 0;const r=s(927);var o;(function(e){class Cloudscheduler{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudscheduler=Cloudscheduler;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.jobs=new Resource$Projects$Locations$Jobs(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Jobs{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pause(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:pause").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudscheduler.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs=Resource$Projects$Locations$Jobs})(o=t.cloudscheduler_v1||(t.cloudscheduler_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.networkmanagement=t.VERSIONS=void 0;const r=s(927);const o=s(480);t.VERSIONS={v1beta1:o.networkmanagement_v1beta1.Networkmanagement};function networkmanagement(e){return r.getAPI("networkmanagement",e,t.VERSIONS,this)}t.networkmanagement=networkmanagement;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(669).inherits;var o=s(987);var n=s(746);var i=s(92);var c=s(643);var u=s(133);var a=s(154);var f=e.exports=function(e){if(!(this instanceof f)){return new f(e)}n.call(this);this.platform=u.PLATFORM_FAT;this.method=-1;this.name=null;this.size=0;this.csize=0;this.gpb=new i;this.crc=0;this.time=-1;this.minver=u.MIN_VERSION_INITIAL;this.mode=-1;this.extra=null;this.exattr=0;this.inattr=0;this.comment=null;if(e){this.setName(e)}};r(f,n);f.prototype.getCentralDirectoryExtra=function(){return this.getExtra()};f.prototype.getComment=function(){return this.comment!==null?this.comment:""};f.prototype.getCompressedSize=function(){return this.csize};f.prototype.getCrc=function(){return this.crc};f.prototype.getExternalAttributes=function(){return this.exattr};f.prototype.getExtra=function(){return this.extra!==null?this.extra:u.EMPTY};f.prototype.getGeneralPurposeBit=function(){return this.gpb};f.prototype.getInternalAttributes=function(){return this.inattr};f.prototype.getLastModifiedDate=function(){return this.getTime()};f.prototype.getLocalFileDataExtra=function(){return this.getExtra()};f.prototype.getMethod=function(){return this.method};f.prototype.getName=function(){return this.name};f.prototype.getPlatform=function(){return this.platform};f.prototype.getSize=function(){return this.size};f.prototype.getTime=function(){return this.time!==-1?a.dosToDate(this.time):-1};f.prototype.getTimeDos=function(){return this.time!==-1?this.time:0};f.prototype.getUnixMode=function(){return this.platform!==u.PLATFORM_UNIX?0:this.getExternalAttributes()>>u.SHORT_SHIFT&u.SHORT_MASK};f.prototype.getVersionNeededToExtract=function(){return this.minver};f.prototype.setComment=function(e){if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.comment=e};f.prototype.setCompressedSize=function(e){if(e<0){throw new Error("invalid entry compressed size")}this.csize=e};f.prototype.setCrc=function(e){if(e<0){throw new Error("invalid entry crc32")}this.crc=e};f.prototype.setExternalAttributes=function(e){this.exattr=e>>>0};f.prototype.setExtra=function(e){this.extra=e};f.prototype.setGeneralPurposeBit=function(e){if(!(e instanceof i)){throw new Error("invalid entry GeneralPurposeBit")}this.gpb=e};f.prototype.setInternalAttributes=function(e){this.inattr=e};f.prototype.setMethod=function(e){if(e<0){throw new Error("invalid entry compression method")}this.method=e};f.prototype.setName=function(e){e=o(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"");if(Buffer.byteLength(e)!==e.length){this.getGeneralPurposeBit().useUTF8ForNames(true)}this.name=e};f.prototype.setPlatform=function(e){this.platform=e};f.prototype.setSize=function(e){if(e<0){throw new Error("invalid entry size")}this.size=e};f.prototype.setTime=function(e,t){if(!(e instanceof Date)){throw new Error("invalid entry time")}this.time=a.dateToDos(e,t)};f.prototype.setUnixMode=function(e){e|=this.isDirectory()?u.S_IFDIR:u.S_IFREG;var t=0;t|=e<u.ZIP64_MAGIC||this.size>u.ZIP64_MAGIC}},,function(e,t,s){var r=s(413);if(process.env.READABLE_STREAM==="disable"&&r){e.exports=r.Readable;Object.assign(e.exports,r);e.exports.Stream=r}else{t=e.exports=s(242);t.Stream=r||t;t.Readable=t;t.Writable=s(440);t.Duplex=s(831);t.Transform=s(732);t.PassThrough=s(686);t.finished=s(17);t.pipeline=s(361)}},function(e,t,s){var r=s(239);s(0);s(220);s(152);var o=r.pkcs5=r.pkcs5||{};var n;if(r.util.isNodejs&&!r.options.usePureJavaScript){n=s(417)}e.exports=r.pbkdf2=o.pbkdf2=function(e,t,s,o,i,c){if(typeof i==="function"){c=i;i=null}if(r.util.isNodejs&&!r.options.usePureJavaScript&&n.pbkdf2&&(i===null||typeof i!=="object")&&(n.pbkdf2Sync.length>4||(!i||i==="sha1"))){if(typeof i!=="string"){i="sha1"}e=Buffer.from(e,"binary");t=Buffer.from(t,"binary");if(!c){if(n.pbkdf2Sync.length===4){return n.pbkdf2Sync(e,t,s,o).toString("binary")}return n.pbkdf2Sync(e,t,s,o,i).toString("binary")}if(n.pbkdf2Sync.length===4){return n.pbkdf2(e,t,s,o,function(e,t){if(e){return c(e)}c(null,t.toString("binary"))})}return n.pbkdf2(e,t,s,o,i,function(e,t){if(e){return c(e)}c(null,t.toString("binary"))})}if(typeof i==="undefined"||i===null){i="sha1"}if(typeof i==="string"){if(!(i in r.md.algorithms)){throw new Error("Unknown hash algorithm: "+i)}i=r.md[i].create()}var u=i.digestLength;if(o>4294967295*u){var a=new Error("Derived key is too long.");if(c){return c(a)}throw a}var f=Math.ceil(o/u);var p=o-(f-1)*u;var h=r.hmac.create();h.start(i,e);var d="";var l,P,y;if(!c){for(var I=1;I<=f;++I){h.start(null,null);h.update(t);h.update(r.util.int32ToBytes(I));l=y=h.digest().getBytes();for(var R=2;R<=s;++R){h.start(null,null);h.update(y);P=h.digest().getBytes();l=r.util.xorBytes(l,P,u);y=P}d+=If){return c(null,d)}h.start(null,null);h.update(t);h.update(r.util.int32ToBytes(I));l=y=h.digest().getBytes();R=2;inner()}function inner(){if(R<=s){h.start(null,null);h.update(y);P=h.digest().getBytes();l=r.util.xorBytes(l,P,u);y=P;++R;return r.util.setImmediate(inner)}d+=I1){var t=e.pop();var r=t.obj[t.prop];if(s(r)){var o=[];for(var n=0;n=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){n+=o.charAt(i);continue}if(c<128){n=n+r[c];continue}if(c<2048){n=n+(r[192|c>>6]+r[128|c&63]);continue}if(c<55296||c>=57344){n=n+(r[224|c>>12]+r[128|c>>6&63]+r[128|c&63]);continue}i+=1;c=65536+((c&1023)<<10|o.charCodeAt(i)&1023);n+=r[240|c>>18]+r[128|c>>12&63]+r[128|c>>6&63]+r[128|c&63]}return n};var f=function compact(e){var t=[{obj:{o:e},prop:"o"}];var s=[];for(var r=0;r=0){e.zlib.level=e.level;delete e.level}if(!e.forceZip64&&typeof e.zlib.level==="number"&&e.zlib.level===0){e.store=true}if(e.comment&&e.comment.length>0){this.setComment(e.comment)}};r(c,o);c.prototype._normalizeFileData=function(e){e=i.defaults(e,{type:"file",name:null,linkname:null,date:null,mode:null,store:this.options.store,comment:""});var t=e.type==="directory";var s=e.type==="symlink";if(e.name){e.name=i.sanitizePath(e.name);if(!s&&e.name.slice(-1)==="/"){t=true;e.type="directory"}else if(t){e.name+="/"}}if(t||s){e.store=true}e.date=i.dateify(e.date);return e};c.prototype.entry=function(e,t,s){if(typeof s!=="function"){s=this._emitErrorCallback.bind(this)}t=this._normalizeFileData(t);if(t.type!=="file"&&t.type!=="directory"&&t.type!=="symlink"){s(new Error(t.type+" entries not currently supported"));return}if(typeof t.name!=="string"||t.name.length===0){s(new Error("entry name must be a non-empty string value"));return}if(t.type==="symlink"&&typeof t.linkname!=="string"){s(new Error("entry linkname must be a non-empty string value when type equals symlink"));return}var r=new n(t.name);r.setTime(t.date,this.options.forceLocalTime);if(t.store){r.setMethod(0)}if(t.comment.length>0){r.setComment(t.comment)}if(t.type==="symlink"&&typeof t.mode!=="number"){t.mode=40960}if(typeof t.mode==="number"){if(t.type==="symlink"){t.mode|=40960}r.setUnixMode(t.mode)}if(t.type==="symlink"&&typeof t.linkname==="string"){e=Buffer.from(t.linkname)}return o.prototype.entry.call(this,r,e,s)};c.prototype.finalize=function(){this.finish()}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigquerydatatransfer_v1=void 0;const r=s(927);var o;(function(e){class Bigquerydatatransfer{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Bigquerydatatransfer=Bigquerydatatransfer;class Resource$Projects{constructor(e){this.context=e;this.dataSources=new Resource$Projects$Datasources(this.context);this.locations=new Resource$Projects$Locations(this.context);this.transferConfigs=new Resource$Projects$Transferconfigs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Datasources{constructor(e){this.context=e}checkValidCreds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:checkValidCreds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/dataSources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Datasources=Resource$Projects$Datasources;class Resource$Projects$Locations{constructor(e){this.context=e;this.dataSources=new Resource$Projects$Locations$Datasources(this.context);this.transferConfigs=new Resource$Projects$Locations$Transferconfigs(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Datasources{constructor(e){this.context=e}checkValidCreds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:checkValidCreds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/dataSources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasources=Resource$Projects$Locations$Datasources;class Resource$Projects$Locations$Transferconfigs{constructor(e){this.context=e;this.runs=new Resource$Projects$Locations$Transferconfigs$Runs(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}scheduleRuns(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:scheduleRuns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startManualRuns(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:startManualRuns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Transferconfigs=Resource$Projects$Locations$Transferconfigs;class Resource$Projects$Locations$Transferconfigs$Runs{constructor(e){this.context=e;this.transferLogs=new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/runs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Transferconfigs$Runs=Resource$Projects$Locations$Transferconfigs$Runs;class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferLogs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs=Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs;class Resource$Projects$Transferconfigs{constructor(e){this.context=e;this.runs=new Resource$Projects$Transferconfigs$Runs(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}scheduleRuns(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:scheduleRuns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startManualRuns(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:startManualRuns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Transferconfigs=Resource$Projects$Transferconfigs;class Resource$Projects$Transferconfigs$Runs{constructor(e){this.context=e;this.transferLogs=new Resource$Projects$Transferconfigs$Runs$Transferlogs(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/runs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Transferconfigs$Runs=Resource$Projects$Transferconfigs$Runs;class Resource$Projects$Transferconfigs$Runs$Transferlogs{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquerydatatransfer.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/transferLogs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Transferconfigs$Runs$Transferlogs=Resource$Projects$Transferconfigs$Runs$Transferlogs})(o=t.bigquerydatatransfer_v1||(t.bigquerydatatransfer_v1={}))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.secretmanager_v1=void 0;const r=s(927);var o;(function(e){class Secretmanager{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Secretmanager=Secretmanager;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context);this.secrets=new Resource$Projects$Secrets(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Secrets{constructor(e){this.context=e;this.versions=new Resource$Projects$Secrets$Versions(this.context)}addVersion(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:addVersion").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/secrets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/secrets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Secrets=Resource$Projects$Secrets;class Resource$Projects$Secrets$Versions{constructor(e){this.context=e}access(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:access").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}destroy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:destroy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:disable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:enable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://secretmanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Secrets$Versions=Resource$Projects$Secrets$Versions})(o=t.secretmanager_v1||(t.secretmanager_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.calendar=t.VERSIONS=void 0;const r=s(927);const o=s(354);t.VERSIONS={v3:o.calendar_v3.Calendar};function calendar(e){return r.getAPI("calendar",e,t.VERSIONS,this)}t.calendar=calendar;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.speech=t.VERSIONS=void 0;const r=s(927);const o=s(838);const n=s(806);const i=s(685);t.VERSIONS={v1:o.speech_v1.Speech,v1p1beta1:n.speech_v1p1beta1.Speech,v2beta1:i.speech_v2beta1.Speech};function speech(e){return r.getAPI("speech",e,t.VERSIONS,this)}t.speech=speech;const c=new r.AuthPlus;t.auth=c},function(e,t,s){var r=s(239);s(152);r.mgf=r.mgf||{};var o=e.exports=r.mgf.mgf1=r.mgf1=r.mgf1||{};o.create=function(e){var t={generate:function(t,s){var o=new r.util.ByteBuffer;var n=Math.ceil(s/e.digestLength);for(var i=0;i0){for(var s=0,r=arguments.length;s1){s=t}else if(this.head){r=this.head.next;s=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=0;r!==null;o++){s=e(s,r.value,o);r=r.next}return s};Yallist.prototype.reduceReverse=function(e,t){var s;var r=this.tail;if(arguments.length>1){s=t}else if(this.tail){r=this.tail.prev;s=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var o=this.length-1;r!==null;o--){s=e(s,r.value,o);r=r.prev}return s};Yallist.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,s=this.head;s!==null;t++){e[t]=s.value;s=s.next}return e};Yallist.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,s=this.tail;s!==null;t++){e[t]=s.value;s=s.prev}return e};Yallist.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var s=new Yallist;if(tthis.length){t=this.length}for(var r=0,o=this.head;o!==null&&rthis.length){t=this.length}for(var r=this.length,o=this.tail;o!==null&&r>t;r--){o=o.prev}for(;o!==null&&r>e;r--,o=o.prev){s.push(o.value)}return s};Yallist.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var s=0,r=this.head;r!==null&&s=0&&a>0){r=[];n=s.length;while(f>=0&&!c){if(f==u){r.push(f);u=s.indexOf(e,f+1)}else if(r.length==1){c=[r.pop(),a]}else{o=r.pop();if(o=0?u:a}if(r.length){c=[n,i]}}return c}},function(e){e.exports=require("path")},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.redis=t.VERSIONS=void 0;const r=s(927);const o=s(473);const n=s(175);t.VERSIONS={v1:o.redis_v1.Redis,v1beta1:n.redis_v1beta1.Redis};function redis(e){return r.getAPI("redis",e,t.VERSIONS,this)}t.redis=redis;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudprofiler=t.VERSIONS=void 0;const r=s(927);const o=s(318);t.VERSIONS={v2:o.cloudprofiler_v2.Cloudprofiler};function cloudprofiler(e){return r.getAPI("cloudprofiler",e,t.VERSIONS,this)}t.cloudprofiler=cloudprofiler;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudfunctions=t.VERSIONS=void 0;const r=s(927);const o=s(14);const n=s(550);t.VERSIONS={v1:o.cloudfunctions_v1.Cloudfunctions,v1beta2:n.cloudfunctions_v1beta2.Cloudfunctions};function cloudfunctions(e){return r.getAPI("cloudfunctions",e,t.VERSIONS,this)}t.cloudfunctions=cloudfunctions;const i=new r.AuthPlus;t.auth=i},,,,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.customsearch=t.VERSIONS=void 0;const r=s(927);const o=s(932);t.VERSIONS={v1:o.customsearch_v1.Customsearch};function customsearch(e){return r.getAPI("customsearch",e,t.VERSIONS,this)}t.customsearch=customsearch;const n=new r.AuthPlus;t.auth=n},function(e){e.exports=require("net")},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oslogin_v1alpha=void 0;const r=s(927);var o;(function(e){class Oslogin{constructor(e,t){this.context={_options:e||{},google:t};this.users=new Resource$Users(this.context)}}e.Oslogin=Oslogin;class Resource$Users{constructor(e){this.context=e;this.projects=new Resource$Users$Projects(this.context);this.sshPublicKeys=new Resource$Users$Sshpublickeys(this.context)}getLoginProfile(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}/loginProfile").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}importSshPublicKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}:importSshPublicKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users=Resource$Users;class Resource$Users$Projects{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users$Projects=Resource$Users$Projects;class Resource$Users$Sshpublickeys{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://oslogin.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Users$Sshpublickeys=Resource$Users$Sshpublickeys})(o=t.oslogin_v1alpha||(t.oslogin_v1alpha={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.youtubeAnalytics_v2=void 0;const r=s(927);var o;(function(e){class Youtubeanalytics{constructor(e,t){this.context={_options:e||{},google:t};this.groupItems=new Resource$Groupitems(this.context);this.groups=new Resource$Groups(this.context);this.reports=new Resource$Reports(this.context)}}e.Youtubeanalytics=Youtubeanalytics;class Resource$Groupitems{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groupItems").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groupItems").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groupItems").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Groupitems=Resource$Groupitems;class Resource$Groups{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groups").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/groups").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Groups=Resource$Groups;class Resource$Reports{constructor(e){this.context=e}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://youtubeanalytics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports})(o=t.youtubeAnalytics_v2||(t.youtubeAnalytics_v2={}))},function(e,t,s){var r=s(528);var o=Object.create(null);var n=s(49);e.exports=r(inflight);function inflight(e,t){if(o[e]){o[e].push(t);return null}else{o[e]=[t];return makeres(e)}}function makeres(e){return n(function RES(){var t=o[e];var s=t.length;var r=slice(arguments);try{for(var n=0;ns){t.splice(0,s);process.nextTick(function(){RES.apply(null,r)})}else{delete o[e]}}})}function slice(e){var t=e.length;var s=[];for(var r=0;rn){i=e.slice(n);e=e.slice(0,n)}if(r)r.end(e);else o.append(e);this._overflow=i;this._onparse()};d.prototype._final=function(e){if(this._partial)return this.destroy(new Error("Unexpected end of data"));e()};e.exports=d},function(e,t,s){var r=s(239);s(784);s(152);var o=r.asn1;var n=e.exports=r.pkcs7asn1=r.pkcs7asn1||{};r.pkcs7=r.pkcs7||{};r.pkcs7.asn1=n;var i={name:"ContentInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.ContentType",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,captureAsn1:"content"}]};n.contentInfoValidator=i;var c={name:"EncryptedContentInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentType",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"contentType"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedContentInfo.contentEncryptionAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"EncryptedContentInfo.contentEncryptionAlgorithm.parameter",tagClass:o.Class.UNIVERSAL,captureAsn1:"encParameter"}]},{name:"EncryptedContentInfo.encryptedContent",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,capture:"encryptedContent",captureAsn1:"encryptedContentAsn1"}]};n.envelopedDataValidator={name:"EnvelopedData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"EnvelopedData.Version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"version"},{name:"EnvelopedData.RecipientInfos",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:true,captureAsn1:"recipientInfos"}].concat(c)};n.encryptedDataValidator={name:"EncryptedData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"EncryptedData.Version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"version"}].concat(c)};var u={name:"SignerInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false},{name:"SignerInfo.issuerAndSerialNumber",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.issuerAndSerialNumber.issuer",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"SignerInfo.issuerAndSerialNumber.serialNumber",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"SignerInfo.digestAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"SignerInfo.digestAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"digestAlgorithm"},{name:"SignerInfo.digestAlgorithm.parameter",tagClass:o.Class.UNIVERSAL,constructed:false,captureAsn1:"digestParameter",optional:true}]},{name:"SignerInfo.authenticatedAttributes",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,constructed:true,optional:true,capture:"authenticatedAttributes"},{name:"SignerInfo.digestEncryptionAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,capture:"signatureAlgorithm"},{name:"SignerInfo.encryptedDigest",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"signature"},{name:"SignerInfo.unauthenticatedAttributes",tagClass:o.Class.CONTEXT_SPECIFIC,type:1,constructed:true,optional:true,capture:"unauthenticatedAttributes"}]};n.signedDataValidator={name:"SignedData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"SignedData.Version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"version"},{name:"SignedData.DigestAlgorithms",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:true,captureAsn1:"digestAlgorithms"},i,{name:"SignedData.Certificates",tagClass:o.Class.CONTEXT_SPECIFIC,type:0,optional:true,captureAsn1:"certificates"},{name:"SignedData.CertificateRevocationLists",tagClass:o.Class.CONTEXT_SPECIFIC,type:1,optional:true,captureAsn1:"crls"},{name:"SignedData.SignerInfos",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,capture:"signerInfos",optional:true,value:[u]}]};n.recipientInfoValidator={name:"RecipientInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"version"},{name:"RecipientInfo.issuerAndSerial",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.issuerAndSerial.issuer",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"issuer"},{name:"RecipientInfo.issuerAndSerial.serialNumber",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"serial"}]},{name:"RecipientInfo.keyEncryptionAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"RecipientInfo.keyEncryptionAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"encAlgorithm"},{name:"RecipientInfo.keyEncryptionAlgorithm.parameter",tagClass:o.Class.UNIVERSAL,constructed:false,captureAsn1:"encParameter"}]},{name:"RecipientInfo.encryptedKey",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"encKey"}]}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.policytroubleshooter=t.VERSIONS=void 0;const r=s(927);const o=s(1);const n=s(382);t.VERSIONS={v1:o.policytroubleshooter_v1.Policytroubleshooter,v1beta:n.policytroubleshooter_v1beta.Policytroubleshooter};function policytroubleshooter(e){return r.getAPI("policytroubleshooter",e,t.VERSIONS,this)}t.policytroubleshooter=policytroubleshooter;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.indexing_v3=void 0;const r=s(927);var o;(function(e){class Indexing{constructor(e,t){this.context={_options:e||{},google:t};this.urlNotifications=new Resource$Urlnotifications(this.context)}}e.Indexing=Indexing;class Resource$Urlnotifications{constructor(e){this.context=e}getMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://indexing.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/urlNotifications/metadata").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}publish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://indexing.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/urlNotifications:publish").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Urlnotifications=Resource$Urlnotifications})(o=t.indexing_v3||(t.indexing_v3={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});async function getRetryConfig(e){let t=getConfig(e);if(!e||!e.config||!t&&!e.config.retry){return{shouldRetry:false}}t=t||{};t.currentRetryAttempt=t.currentRetryAttempt||0;t.retry=t.retry===undefined||t.retry===null?3:t.retry;t.httpMethodsToRetry=t.httpMethodsToRetry||["GET","HEAD","PUT","OPTIONS","DELETE"];t.noResponseRetries=t.noResponseRetries===undefined||t.noResponseRetries===null?2:t.noResponseRetries;const s=[[100,199],[429,429],[500,599]];t.statusCodesToRetry=t.statusCodesToRetry||s;e.config.retryConfig=t;const r=t.shouldRetry||shouldRetryRequest;if(!await r(e)){return{shouldRetry:false,config:e.config}}const o=(Math.pow(2,t.currentRetryAttempt)-1)/2*1e3;e.config.retryConfig.currentRetryAttempt+=1;const n=new Promise(e=>{setTimeout(e,o)});if(t.onRetryAttempt){t.onRetryAttempt(e)}await n;return{shouldRetry:true,config:e.config}}t.getRetryConfig=getRetryConfig;function shouldRetryRequest(e){const t=getConfig(e);if(e.name==="AbortError"){return false}if(!t||t.retry===0){return false}if(!e.response&&(t.currentRetryAttempt||0)>=t.noResponseRetries){return false}if(!e.config.method||t.httpMethodsToRetry.indexOf(e.config.method.toUpperCase())<0){return false}if(e.response&&e.response.status){let s=false;for(const[r,o]of t.statusCodesToRetry){const t=e.response.status;if(t>=r&&t<=o){s=true;break}}if(!s){return false}}t.currentRetryAttempt=t.currentRetryAttempt||0;if(t.currentRetryAttempt>=t.retry){return false}return true}function getConfig(e){if(e&&e.config&&e.config.retryConfig){return e.config.retryConfig}return}},function(e){e.exports={PERM_MASK:4095,FILE_TYPE_FLAG:61440,LINK_FLAG:40960,FILE_FLAG:32768,DIR_FLAG:16384,DEFAULT_LINK_PERM:511,DEFAULT_DIR_PERM:493,DEFAULT_FILE_PERM:420}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.containeranalysis_v1beta1=void 0;const r=s(927);var o;(function(e){class Containeranalysis{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Containeranalysis=Containeranalysis;class Resource$Projects{constructor(e){this.context=e;this.notes=new Resource$Projects$Notes(this.context);this.occurrences=new Resource$Projects$Occurrences(this.context);this.scanConfigs=new Resource$Projects$Scanconfigs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Notes{constructor(e){this.context=e;this.occurrences=new Resource$Projects$Notes$Occurrences(this.context)}batchCreate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/notes:batchCreate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/notes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/notes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Notes=Resource$Projects$Notes;class Resource$Projects$Notes$Occurrences{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/occurrences").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Notes$Occurrences=Resource$Projects$Notes$Occurrences;class Resource$Projects$Occurrences{constructor(e){this.context=e}batchCreate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/occurrences:batchCreate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/occurrences").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getNotes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/notes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getVulnerabilitySummary(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/occurrences:vulnerabilitySummary").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/occurrences").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Occurrences=Resource$Projects$Occurrences;class Resource$Projects$Scanconfigs{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/scanConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://containeranalysis.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs=Resource$Projects$Scanconfigs})(o=t.containeranalysis_v1beta1||(t.containeranalysis_v1beta1={}))},function(e,t,s){var r=s(481);var o=s(622);var n=s(669);var i=s(162);var c=s(987);var u=s(995);var a=s(413).Stream;var f=s(343).PassThrough;var p=e.exports={};p.file=s(483);function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+nutils.inspect(e))}}p.collectStream=function(e,t){var s=[];var r=0;e.on("error",t);e.on("data",function(e){s.push(e);r+=e.length});e.on("end",function(){var e=new Buffer(r);var o=0;s.forEach(function(t){t.copy(e,o);o+=t.length});t(null,e)})};p.dateify=function(e){e=e||new Date;if(e instanceof Date){e=e}else if(typeof e==="string"){e=new Date(e)}else{e=new Date}return e};p.defaults=function(e,t,s){var r=arguments;r[0]=r[0]||{};return u(...r)};p.isStream=function(e){return e instanceof a};p.lazyReadStream=function(e){return new i.Readable(function(){return r.createReadStream(e)})};p.normalizeInputSource=function(e){if(e===null){return new Buffer(0)}else if(typeof e==="string"){return new Buffer(e)}else if(p.isStream(e)&&!e._readableState){var t=new f;e.pipe(t);return t}return e};p.sanitizePath=function(e){return c(e,false).replace(/^\w+:/,"").replace(/^(\.\.\/|\/)+/,"")};p.trailingSlashIt=function(e){return e.slice(-1)!=="/"?e+"/":e};p.unixifyPath=function(e){return c(e,false).replace(/^\w+:/,"")};p.walkdir=function(e,t,s){var n=[];if(typeof t==="function"){s=t;t=e}r.readdir(e,function(i,c){var u=0;var a;var f;if(i){return s(i)}(function next(){a=c[u++];if(!a){return s(null,n)}f=o.join(e,a);r.stat(f,function(e,s){n.push({path:f,relative:o.relative(t,f).replace(/\\/g,"/"),stats:s});if(s&&s.isDirectory()){p.walkdir(f,t,function(e,t){t.forEach(function(e){n.push(e)});next()})}else{next()}})})()})}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.firebasehosting=t.VERSIONS=void 0;const r=s(927);const o=s(202);t.VERSIONS={v1beta1:o.firebasehosting_v1beta1.Firebasehosting};function firebasehosting(e){return r.getAPI("firebasehosting",e,t.VERSIONS,this)}t.firebasehosting=firebasehosting;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.datacatalog=t.VERSIONS=void 0;const r=s(927);const o=s(654);t.VERSIONS={v1beta1:o.datacatalog_v1beta1.Datacatalog};function datacatalog(e){return r.getAPI("datacatalog",e,t.VERSIONS,this)}t.datacatalog=datacatalog;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.logging=t.VERSIONS=void 0;const r=s(927);const o=s(110);t.VERSIONS={v2:o.logging_v2.Logging};function logging(e){return r.getAPI("logging",e,t.VERSIONS,this)}t.logging=logging;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=[0,49345,49537,320,49921,960,640,49729,50689,1728,1920,51009,1280,50625,50305,1088,52225,3264,3456,52545,3840,53185,52865,3648,2560,51905,52097,2880,51457,2496,2176,51265,55297,6336,6528,55617,6912,56257,55937,6720,7680,57025,57217,8e3,56577,7616,7296,56385,5120,54465,54657,5440,55041,6080,5760,54849,53761,4800,4992,54081,4352,53697,53377,4160,61441,12480,12672,61761,13056,62401,62081,12864,13824,63169,63361,14144,62721,13760,13440,62529,15360,64705,64897,15680,65281,16320,16e3,65089,64001,15040,15232,64321,14592,63937,63617,14400,10240,59585,59777,10560,60161,11200,10880,59969,60929,11968,12160,61249,11520,60865,60545,11328,58369,9408,9600,58689,9984,59329,59009,9792,8704,58049,58241,9024,57601,8640,8320,57409,40961,24768,24960,41281,25344,41921,41601,25152,26112,42689,42881,26432,42241,26048,25728,42049,27648,44225,44417,27968,44801,28608,28288,44609,43521,27328,27520,43841,26880,43457,43137,26688,30720,47297,47489,31040,47873,31680,31360,47681,48641,32448,32640,48961,32e3,48577,48257,31808,46081,29888,30080,46401,30464,47041,46721,30272,29184,45761,45953,29504,45313,29120,28800,45121,20480,37057,37249,20800,37633,21440,21120,37441,38401,22208,22400,38721,21760,38337,38017,21568,39937,23744,23936,40257,24320,40897,40577,24128,23040,39617,39809,23360,39169,22976,22656,38977,34817,18624,18816,35137,19200,35777,35457,19008,19968,36545,36737,20288,36097,19904,19584,35905,17408,33985,34177,17728,34561,18368,18048,34369,33281,17088,17280,33601,16640,33217,32897,16448];if(typeof Int32Array!=="undefined")u=new Int32Array(u);var a=(0,c.default)("crc-16",function(e,t){if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=~~t;for(var o=0;o>8)&65535}return s});t.default=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.groupssettings_v1=void 0;const r=s(927);var o;(function(e){class Groupssettings{constructor(e,t){this.context={_options:e||{},google:t};this.groups=new Resource$Groups(this.context)}}e.Groupssettings=Groupssettings;class Resource$Groups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/groups/v1/groups/{groupUniqueId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["groupUniqueId"],pathParams:["groupUniqueId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/groups/v1/groups/{groupUniqueId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["groupUniqueId"],pathParams:["groupUniqueId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/groups/v1/groups/{groupUniqueId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["groupUniqueId"],pathParams:["groupUniqueId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Groups=Resource$Groups})(o=t.groupssettings_v1||(t.groupssettings_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.datacatalog_v1beta1=void 0;const r=s(927);var o;(function(e){class Datacatalog{constructor(e,t){this.context={_options:e||{},google:t};this.catalog=new Resource$Catalog(this.context);this.entries=new Resource$Entries(this.context);this.projects=new Resource$Projects(this.context)}}e.Datacatalog=Datacatalog;class Resource$Catalog{constructor(e){this.context=e}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/catalog:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Catalog=Resource$Catalog;class Resource$Entries{constructor(e){this.context=e}lookup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/entries:lookup").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Entries=Resource$Entries;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.entryGroups=new Resource$Projects$Locations$Entrygroups(this.context);this.tagTemplates=new Resource$Projects$Locations$Tagtemplates(this.context);this.taxonomies=new Resource$Projects$Locations$Taxonomies(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Entrygroups{constructor(e){this.context=e;this.entries=new Resource$Projects$Locations$Entrygroups$Entries(this.context);this.tags=new Resource$Projects$Locations$Entrygroups$Tags(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/entryGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/entryGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Entrygroups=Resource$Projects$Locations$Entrygroups;class Resource$Projects$Locations$Entrygroups$Entries{constructor(e){this.context=e;this.tags=new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/entries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/entries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Entrygroups$Entries=Resource$Projects$Locations$Entrygroups$Entries;class Resource$Projects$Locations$Entrygroups$Entries$Tags{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Entrygroups$Entries$Tags=Resource$Projects$Locations$Entrygroups$Entries$Tags;class Resource$Projects$Locations$Entrygroups$Tags{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Entrygroups$Tags=Resource$Projects$Locations$Entrygroups$Tags;class Resource$Projects$Locations$Tagtemplates{constructor(e){this.context=e;this.fields=new Resource$Projects$Locations$Tagtemplates$Fields(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/tagTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Tagtemplates=Resource$Projects$Locations$Tagtemplates;class Resource$Projects$Locations$Tagtemplates$Fields{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fields").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rename(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:rename").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Tagtemplates$Fields=Resource$Projects$Locations$Tagtemplates$Fields;class Resource$Projects$Locations$Taxonomies{constructor(e){this.context=e;this.policyTags=new Resource$Projects$Locations$Taxonomies$Policytags(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/taxonomies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/taxonomies:export").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/taxonomies:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/taxonomies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Taxonomies=Resource$Projects$Locations$Taxonomies;class Resource$Projects$Locations$Taxonomies$Policytags{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/policyTags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/policyTags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datacatalog.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Taxonomies$Policytags=Resource$Projects$Locations$Taxonomies$Policytags})(o=t.datacatalog_v1beta1||(t.datacatalog_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.docs_v1=void 0;const r=s(927);var o;(function(e){class Docs{constructor(e,t){this.context={_options:e||{},google:t};this.documents=new Resource$Documents(this.context)}}e.Docs=Docs;class Resource$Documents{constructor(e){this.context=e}batchUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://docs.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents/{documentId}:batchUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["documentId"],pathParams:["documentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://docs.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://docs.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/documents/{documentId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["documentId"],pathParams:["documentId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Documents=Resource$Documents})(o=t.docs_v1||(t.docs_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudresourcemanager_v2beta1=void 0;const r=s(927);var o;(function(e){class Cloudresourcemanager{constructor(e,t){this.context={_options:e||{},google:t};this.folders=new Resource$Folders(this.context);this.operations=new Resource$Operations(this.context)}}e.Cloudresourcemanager=Cloudresourcemanager;class Resource$Folders{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/folders:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders=Resource$Folders;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudresourcemanager.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.cloudresourcemanager_v2beta1||(t.cloudresourcemanager_v2beta1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.remotebuildexecution=t.VERSIONS=void 0;const r=s(927);const o=s(497);const n=s(121);const i=s(789);t.VERSIONS={v1:o.remotebuildexecution_v1.Remotebuildexecution,v1alpha:n.remotebuildexecution_v1alpha.Remotebuildexecution,v2:i.remotebuildexecution_v2.Remotebuildexecution};function remotebuildexecution(e){return r.getAPI("remotebuildexecution",e,t.VERSIONS,this)}t.remotebuildexecution=remotebuildexecution;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.containeranalysis=t.VERSIONS=void 0;const r=s(927);const o=s(536);const n=s(644);t.VERSIONS={v1alpha1:o.containeranalysis_v1alpha1.Containeranalysis,v1beta1:n.containeranalysis_v1beta1.Containeranalysis};function containeranalysis(e){return r.getAPI("containeranalysis",e,t.VERSIONS,this)}t.containeranalysis=containeranalysis;const i=new r.AuthPlus;t.auth=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.osconfig_v1beta=void 0;const r=s(927);var o;(function(e){class Osconfig{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Osconfig=Osconfig;class Resource$Projects{constructor(e){this.context=e;this.guestPolicies=new Resource$Projects$Guestpolicies(this.context);this.patchDeployments=new Resource$Projects$Patchdeployments(this.context);this.patchJobs=new Resource$Projects$Patchjobs(this.context);this.zones=new Resource$Projects$Zones(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Guestpolicies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/guestPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/guestPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Guestpolicies=Resource$Projects$Guestpolicies;class Resource$Projects$Patchdeployments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/patchDeployments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/patchDeployments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Patchdeployments=Resource$Projects$Patchdeployments;class Resource$Projects$Patchjobs{constructor(e){this.context=e;this.instanceDetails=new Resource$Projects$Patchjobs$Instancedetails(this.context)}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}execute(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/patchJobs:execute").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/patchJobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Patchjobs=Resource$Projects$Patchjobs;class Resource$Projects$Patchjobs$Instancedetails{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+parent}/instanceDetails").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Patchjobs$Instancedetails=Resource$Projects$Patchjobs$Instancedetails;class Resource$Projects$Zones{constructor(e){this.context=e;this.instances=new Resource$Projects$Zones$Instances(this.context)}}e.Resource$Projects$Zones=Resource$Projects$Zones;class Resource$Projects$Zones$Instances{constructor(e){this.context=e}lookupEffectiveGuestPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://osconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/{+instance}:lookupEffectiveGuestPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["instance"],pathParams:["instance"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Instances=Resource$Projects$Zones$Instances})(o=t.osconfig_v1beta||(t.osconfig_v1beta={}))},,function(e,t,s){var r=s(149).Buffer;var o=s(32);var n=s(108);var i=s(413);var c=s(975);var u=s(669);function base64url(e,t){return r.from(e,t).toString("base64").replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function jwsSecuredInput(e,t,s){s=s||"utf8";var r=base64url(c(e),"binary");var o=base64url(c(t),s);return u.format("%s.%s",r,o)}function jwsSign(e){var t=e.header;var s=e.payload;var r=e.secret||e.privateKey;var o=e.encoding;var i=n(t.alg);var c=jwsSecuredInput(t,s,o);var a=i.sign(c,r);return u.format("%s.%s",c,a)}function SignStream(e){var t=e.secret||e.privateKey||e.key;var s=new o(t);this.readable=true;this.header=e.header;this.encoding=e.encoding;this.secret=this.privateKey=this.key=s;this.payload=new o(e.payload);this.secret.once("close",function(){if(!this.payload.writable&&this.readable)this.sign()}.bind(this));this.payload.once("close",function(){if(!this.secret.writable&&this.readable)this.sign()}.bind(this))}u.inherits(SignStream,i);SignStream.prototype.sign=function sign(){try{var e=jwsSign({header:this.header,payload:this.payload.buffer,secret:this.secret.buffer,encoding:this.encoding});this.emit("done",e);this.emit("data",e);this.emit("end");this.readable=false;return e}catch(e){this.readable=false;this.emit("error",e);this.emit("close")}};SignStream.sign=jwsSign;e.exports=SignStream},,,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.adexchangebuyer=t.VERSIONS=void 0;const r=s(927);const o=s(914);const n=s(845);const i=s(433);t.VERSIONS={"v1.2":o.adexchangebuyer_v1_2.Adexchangebuyer,"v1.3":n.adexchangebuyer_v1_3.Adexchangebuyer,"v1.4":i.adexchangebuyer_v1_4.Adexchangebuyer};function adexchangebuyer(e){return r.getAPI("adexchangebuyer",e,t.VERSIONS,this)}t.adexchangebuyer=adexchangebuyer;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.genomics=t.VERSIONS=void 0;const r=s(927);const o=s(419);const n=s(877);const i=s(941);t.VERSIONS={v1:o.genomics_v1.Genomics,v1alpha2:n.genomics_v1alpha2.Genomics,v2alpha1:i.genomics_v2alpha1.Genomics};function genomics(e){return r.getAPI("genomics",e,t.VERSIONS,this)}t.genomics=genomics;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(948);t.GoogleAuth=r.GoogleAuth;var o=s(310);t.Compute=o.Compute;var n=s(813);t.GCPEnv=n.GCPEnv;var i=s(866);t.IAMAuth=i.IAMAuth;var c=s(331);t.IdTokenClient=c.IdTokenClient;var u=s(346);t.JWTAccess=u.JWTAccess;var a=s(390);t.JWT=a.JWT;var f=s(449);t.CodeChallengeMethod=f.CodeChallengeMethod;t.OAuth2Client=f.OAuth2Client;var p=s(207);t.LoginTicket=p.LoginTicket;var h=s(846);t.UserRefreshClient=h.UserRefreshClient;var d=s(974);t.DefaultTransporter=d.DefaultTransporter;const l=new r.GoogleAuth;t.auth=l},function(e){e.exports=require("util")},function(e,t,s){"use strict";const{Buffer:r}=s(293);const o=Symbol.for("BufferList");function BufferList(e){if(!(this instanceof BufferList)){return new BufferList(e)}BufferList._init.call(this,e)}BufferList._init=function _init(e){Object.defineProperty(this,o,{value:true});this._bufs=[];this.length=0;if(e){this.append(e)}};BufferList.prototype._new=function _new(e){return new BufferList(e)};BufferList.prototype._offset=function _offset(e){if(e===0){return[0,0]}let t=0;for(let s=0;sthis.length||e<0){return undefined}const t=this._offset(e);return this._bufs[t[0]][t[1]]};BufferList.prototype.slice=function slice(e,t){if(typeof e==="number"&&e<0){e+=this.length}if(typeof t==="number"&&t<0){t+=this.length}return this.copy(null,0,e,t)};BufferList.prototype.copy=function copy(e,t,s,o){if(typeof s!=="number"||s<0){s=0}if(typeof o!=="number"||o>this.length){o=this.length}if(s>=this.length){return e||r.alloc(0)}if(o<=0){return e||r.alloc(0)}const copy=!!e;const n=this._offset(s);const i=o-s;let c=i;let u=copy&&t||0;let a=n[1];if(s===0&&o===this.length){if(!copy){return this._bufs.length===1?this._bufs[0]:r.concat(this._bufs,this.length)}for(let t=0;ts){this._bufs[t].copy(e,u,a)}else{this._bufs[t].copy(e,u,a,a+c);break}u+=s;c-=s;if(a){a=0}}return e};BufferList.prototype.shallowSlice=function shallowSlice(e,t){e=e||0;t=typeof t!=="number"?this.length:t;if(e<0){e+=this.length}if(t<0){t+=this.length}if(e===t){return this._new()}const s=this._offset(e);const r=this._offset(t);const o=this._bufs.slice(s[0],r[0]+1);if(r[1]===0){o.pop()}else{o[o.length-1]=o[o.length-1].slice(0,r[1])}if(s[1]!==0){o[0]=o[0].slice(s[1])}return this._new(o)};BufferList.prototype.toString=function toString(e,t,s){return this.slice(t,s).toString(e)};BufferList.prototype.consume=function consume(e){while(this._bufs.length){if(e>=this._bufs[0].length){e-=this._bufs[0].length;this.length-=this._bufs[0].length;this._bufs.shift()}else{this._bufs[0]=this._bufs[0].slice(e);this.length-=e;break}}return this};BufferList.prototype.duplicate=function duplicate(){const e=this._new();for(let t=0;tthis.length?this.length:t}const o=this._offset(t);let n=o[0];let i=o[1];for(;n=e.length){const s=t.indexOf(e,i);if(s!==-1){return this._reverseOffset([n,s])}i=t.length-e.length+1}else{const t=this._reverseOffset([n,i]);if(this._match(t,e)){return t}i++}}i=0}return-1};BufferList.prototype._match=function(e,t){if(this.length-e>1)+7),n=new Uint8Array(o>>3<<3);t=i){if(t=i)continue}r+4>n.length&&(o+=8,o*=1+t/e.length*2,o=o>>3<<3,c=new Uint8Array(o),c.set(n),n=c);if(0===(i&4294967168))n[r++]=i;else{if(0===(i&4294965248))n[r++]=i>>6&31|192;else if(0===(i&4294901760))n[r++]=i>>12&15|224,n[r++]=i>>6&63|128;else if(0===(i&4292870144))n[r++]=i>>18&7|240,n[r++]=i>>12&63|128,n[r++]=i>>6&63|128;else continue;n[r++]=i&63|128}}return n.slice?n.slice(0,r):n.subarray(0,r)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});k.prototype.decode=function(e,t){t=void 0===t?{stream:!1}:t;if(t.stream)throw Error("Failed to decode: the 'stream' option is unsupported.");t=e;!(t instanceof Uint8Array)&&t.buffer instanceof ArrayBuffer&&(t=new Uint8Array(e.buffer));e=0;for(var s=[],r=[];;){var o=e>>10&1023|55296),o=56320|o&1023);s.push(o)}}};e.TextEncoder=m;e.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudiot_v1=void 0;const r=s(927);var o;(function(e){class Cloudiot{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudiot=Cloudiot;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.registries=new Resource$Projects$Locations$Registries(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Registries{constructor(e){this.context=e;this.devices=new Resource$Projects$Locations$Registries$Devices(this.context);this.groups=new Resource$Projects$Locations$Registries$Groups(this.context)}bindDeviceToGateway(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:bindDeviceToGateway").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/registries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/registries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unbindDeviceFromGateway(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:unbindDeviceFromGateway").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries=Resource$Projects$Locations$Registries;class Resource$Projects$Locations$Registries$Devices{constructor(e){this.context=e;this.configVersions=new Resource$Projects$Locations$Registries$Devices$Configversions(this.context);this.states=new Resource$Projects$Locations$Registries$Devices$States(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}modifyCloudToDeviceConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:modifyCloudToDeviceConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendCommandToDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:sendCommandToDevice").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries$Devices=Resource$Projects$Locations$Registries$Devices;class Resource$Projects$Locations$Registries$Devices$Configversions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/configVersions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries$Devices$Configversions=Resource$Projects$Locations$Registries$Devices$Configversions;class Resource$Projects$Locations$Registries$Devices$States{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/states").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries$Devices$States=Resource$Projects$Locations$Registries$Devices$States;class Resource$Projects$Locations$Registries$Groups{constructor(e){this.context=e;this.devices=new Resource$Projects$Locations$Registries$Groups$Devices(this.context)}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries$Groups=Resource$Projects$Locations$Registries$Groups;class Resource$Projects$Locations$Registries$Groups$Devices{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudiot.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Registries$Groups$Devices=Resource$Projects$Locations$Registries$Groups$Devices})(o=t.cloudiot_v1||(t.cloudiot_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.safebrowsing_v4=void 0;const r=s(927);var o;(function(e){class Safebrowsing{constructor(e,t){this.context={_options:e||{},google:t};this.encodedFullHashes=new Resource$Encodedfullhashes(this.context);this.encodedUpdates=new Resource$Encodedupdates(this.context);this.fullHashes=new Resource$Fullhashes(this.context);this.threatHits=new Resource$Threathits(this.context);this.threatLists=new Resource$Threatlists(this.context);this.threatListUpdates=new Resource$Threatlistupdates(this.context);this.threatMatches=new Resource$Threatmatches(this.context)}}e.Safebrowsing=Safebrowsing;class Resource$Encodedfullhashes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/encodedFullHashes/{encodedRequest}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["encodedRequest"],pathParams:["encodedRequest"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Encodedfullhashes=Resource$Encodedfullhashes;class Resource$Encodedupdates{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/encodedUpdates/{encodedRequest}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["encodedRequest"],pathParams:["encodedRequest"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Encodedupdates=Resource$Encodedupdates;class Resource$Fullhashes{constructor(e){this.context=e}find(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/fullHashes:find").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Fullhashes=Resource$Fullhashes;class Resource$Threathits{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/threatHits").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Threathits=Resource$Threathits;class Resource$Threatlists{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/threatLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Threatlists=Resource$Threatlists;class Resource$Threatlistupdates{constructor(e){this.context=e}fetch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/threatListUpdates:fetch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Threatlistupdates=Resource$Threatlistupdates;class Resource$Threatmatches{constructor(e){this.context=e}find(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://safebrowsing.googleapis.com/";const c={options:Object.assign({url:(i+"/v4/threatMatches:find").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Threatmatches=Resource$Threatmatches})(o=t.safebrowsing_v4||(t.safebrowsing_v4={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.homegraph=t.VERSIONS=void 0;const r=s(927);const o=s(825);t.VERSIONS={v1:o.homegraph_v1.Homegraph};function homegraph(e){return r.getAPI("homegraph",e,t.VERSIONS,this)}t.homegraph=homegraph;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";var r=s(822);e.exports=Readable;var o=s(262);var n;Readable.ReadableState=ReadableState;var i=s(614).EventEmitter;var c=function(e,t){return e.listeners(t).length};var u=s(265);var a=s(965).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=Object.create(s(683));p.inherits=s(689);var h=s(669);var d=void 0;if(h&&h.debuglog){d=h.debuglog("stream")}else{d=function(){}}var l=s(757);var P=s(283);var y;p.inherits(Readable,u);var I=["error","close","destroy","pause","resume"];function prependListener(e,t,s){if(typeof e.prependListener==="function")return e.prependListener(t,s);if(!e._events||!e._events[t])e.on(t,s);else if(o(e._events[t]))e._events[t].unshift(s);else e._events[t]=[s,e._events[t]]}function ReadableState(e,t){n=n||s(264);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.readableObjectMode;var o=e.highWaterMark;var i=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new l;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=s(432).StringDecoder;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||s(264);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}u.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=P.destroy;Readable.prototype._undestroy=P.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var s=this._readableState;var r;if(!s.objectMode){if(typeof e==="string"){t=t||s.defaultEncoding;if(t!==s.encoding){e=a.from(e,t);t=""}r=true}}else{r=true}return readableAddChunk(this,e,t,false,r)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,s,r,o){var n=e._readableState;if(t===null){n.reading=false;onEofChunk(e,n)}else{var i;if(!o)i=chunkInvalid(n,t);if(i){e.emit("error",i)}else if(n.objectMode||t&&t.length>0){if(typeof t!=="string"&&!n.objectMode&&Object.getPrototypeOf(t)!==a.prototype){t=_uint8ArrayToBuffer(t)}if(r){if(n.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,n,t,true)}else if(n.ended){e.emit("error",new Error("stream.push() after EOF"))}else{n.reading=false;if(n.decoder&&!s){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!r){n.reading=false}}return needMoreData(n)}function addChunk(e,t,s,r){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",s);e.read(0)}else{t.length+=t.objectMode?1:s.length;if(r)t.buffer.unshift(s);else t.buffer.push(s);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var s;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=R){e=R}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var t=this._readableState;var s=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){d("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var r=t.needReadable;d("need readable",r);if(t.length===0||t.length-e0)o=fromList(e,t);else o=null;if(o===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(s!==e&&t.ended)endReadable(this)}if(o!==null)this.emit("data",o);return o};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var s=t.decoder.end();if(s&&s.length){t.buffer.push(s);t.length+=t.objectMode?1:s.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){d("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)r.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){d("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;r.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var s=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(o.pipes,e)!==-1)&&!a){d("false write response, pause",s._readableState.awaitDrain);s._readableState.awaitDrain++;f=true}s.pause()}}function onerror(t){d("onerror",t);unpipe();e.removeListener("error",onerror);if(c(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");s.unpipe(e)}e.emit("pipe",s);if(!o.flowing){d("pipe resume");s.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&c(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var s={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,s);return this}if(!e){var r=t.pipes;var o=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var n=0;n=t.length){if(t.decoder)s=t.buffer.join("");else if(t.buffer.length===1)s=t.buffer.head.data;else s=t.buffer.concat(t.length);t.buffer.clear()}else{s=fromListPartial(e,t.buffer,t.decoder)}return s}function fromListPartial(e,t,s){var r;if(en.length?n.length:e;if(i===n.length)o+=n;else o+=n.slice(0,e);e-=i;if(e===0){if(i===n.length){++r;if(s.next)t.head=s.next;else t.head=t.tail=null}else{t.head=s;s.data=n.slice(i)}break}++r}t.length-=r;return o}function copyFromBuffer(e,t){var s=a.allocUnsafe(e);var r=t.head;var o=1;r.data.copy(s);e-=r.data.length;while(r=r.next){var n=r.data;var i=e>n.length?n.length:e;n.copy(s,s.length-e,0,i);e-=i;if(e===0){if(i===n.length){++o;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=n.slice(i)}break}++o}t.length-=o;return s}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;r.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var s=0,r=e.length;s>>0,i>>>0];for(var c=p.fullMessageLength.length-1;c>=0;--c){p.fullMessageLength[c]+=i[1];i[1]=i[0]+(p.fullMessageLength[c]/4294967296>>>0);p.fullMessageLength[c]=p.fullMessageLength[c]>>>0;i[0]=i[1]/4294967296>>>0}o.putBytes(e);_update(s,n,o);if(o.read>2048||o.length()===0){o.compact()}return p};p.digest=function(){var t=r.util.createBuffer();t.putBytes(o.bytes());var c=p.fullMessageLength[p.fullMessageLength.length-1]+p.messageLengthSize;var u=c&p.blockLength-1;t.putBytes(i.substr(0,p.blockLength-u));var a,f;var h=p.fullMessageLength[0]*8;for(var d=0;d>>0;h+=f;t.putInt32(h>>>0);h=a>>>0}t.putInt32(h);var l=new Array(s.length);for(var d=0;d=128){for(U=0;U<16;++U){t[U][0]=s.getInt32()>>>0;t[U][1]=s.getInt32()>>>0}for(;U<80;++U){G=t[U-2];b=G[0];C=G[1];r=((b>>>19|C<<13)^(C>>>29|b<<3)^b>>>6)>>>0;o=((b<<13|C>>>19)^(C<<3|b>>>29)^(b<<26|C>>>6))>>>0;D=t[U-15];b=D[0];C=D[1];n=((b>>>1|C<<31)^(b>>>8|C<<24)^b>>>7)>>>0;i=((b<<31|C>>>1)^(b<<24|C>>>8)^(b<<25|C>>>7))>>>0;L=t[U-7];N=t[U-16];C=o+L[1]+i+N[1];t[U][0]=r+L[0]+n+N[0]+(C/4294967296>>>0)>>>0;t[U][1]=C>>>0}y=e[0][0];I=e[0][1];R=e[1][0];g=e[1][1];q=e[2][0];x=e[2][1];$=e[3][0];j=e[3][1];v=e[4][0];A=e[4][1];m=e[5][0];O=e[5][1];w=e[6][0];T=e[6][1];E=e[7][0];S=e[7][1];for(U=0;U<80;++U){f=((v>>>14|A<<18)^(v>>>18|A<<14)^(A>>>9|v<<23))>>>0;p=((v<<18|A>>>14)^(v<<14|A>>>18)^(A<<23|v>>>9))>>>0;h=(w^v&(m^w))>>>0;d=(T^A&(O^T))>>>0;c=((y>>>28|I<<4)^(I>>>2|y<<30)^(I>>>7|y<<25))>>>0;a=((y<<4|I>>>28)^(I<<30|y>>>2)^(I<<25|y>>>7))>>>0;l=(y&R|q&(y^R))>>>0;P=(I&g|x&(I^g))>>>0;C=S+p+d+u[U][1]+t[U][1];r=E+f+h+u[U][0]+t[U][0]+(C/4294967296>>>0)>>>0;o=C>>>0;C=a+P;n=c+l+(C/4294967296>>>0)>>>0;i=C>>>0;E=w;S=T;w=m;T=O;m=v;O=A;C=j+o;v=$+r+(C/4294967296>>>0)>>>0;A=C>>>0;$=q;j=x;q=R;x=g;R=y;g=I;C=o+i;y=r+n+(C/4294967296>>>0)>>>0;I=C>>>0}C=e[0][1]+I;e[0][0]=e[0][0]+y+(C/4294967296>>>0)>>>0;e[0][1]=C>>>0;C=e[1][1]+g;e[1][0]=e[1][0]+R+(C/4294967296>>>0)>>>0;e[1][1]=C>>>0;C=e[2][1]+x;e[2][0]=e[2][0]+q+(C/4294967296>>>0)>>>0;e[2][1]=C>>>0;C=e[3][1]+j;e[3][0]=e[3][0]+$+(C/4294967296>>>0)>>>0;e[3][1]=C>>>0;C=e[4][1]+A;e[4][0]=e[4][0]+v+(C/4294967296>>>0)>>>0;e[4][1]=C>>>0;C=e[5][1]+O;e[5][0]=e[5][0]+m+(C/4294967296>>>0)>>>0;e[5][1]=C>>>0;C=e[6][1]+T;e[6][0]=e[6][0]+w+(C/4294967296>>>0)>>>0;e[6][1]=C>>>0;C=e[7][1]+S;e[7][0]=e[7][0]+E+(C/4294967296>>>0)>>>0;e[7][1]=C>>>0;B-=128}}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.testing=t.VERSIONS=void 0;const r=s(927);const o=s(405);t.VERSIONS={v1:o.testing_v1.Testing};function testing(e){return r.getAPI("testing",e,t.VERSIONS,this)}t.testing=testing;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.appengine_v1beta=void 0;const r=s(927);var o;(function(e){class Appengine{constructor(e,t){this.context={_options:e||{},google:t};this.apps=new Resource$Apps(this.context)}}e.Appengine=Appengine;class Resource$Apps{constructor(e){this.context=e;this.authorizedCertificates=new Resource$Apps$Authorizedcertificates(this.context);this.authorizedDomains=new Resource$Apps$Authorizeddomains(this.context);this.domainMappings=new Resource$Apps$Domainmappings(this.context);this.firewall=new Resource$Apps$Firewall(this.context);this.locations=new Resource$Apps$Locations(this.context);this.operations=new Resource$Apps$Operations(this.context);this.services=new Resource$Apps$Services(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}repair(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}:repair").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps=Resource$Apps;class Resource$Apps$Authorizedcertificates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Authorizedcertificates=Resource$Apps$Authorizedcertificates;class Resource$Apps$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/authorizedDomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Authorizeddomains=Resource$Apps$Authorizeddomains;class Resource$Apps$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/domainMappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/domainMappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Domainmappings=Resource$Apps$Domainmappings;class Resource$Apps$Firewall{constructor(e){this.context=e;this.ingressRules=new Resource$Apps$Firewall$Ingressrules(this.context)}}e.Resource$Apps$Firewall=Resource$Apps$Firewall;class Resource$Apps$Firewall$Ingressrules{constructor(e){this.context=e}batchUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","ingressRulesId"],pathParams:["appsId","ingressRulesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","ingressRulesId"],pathParams:["appsId","ingressRulesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","ingressRulesId"],pathParams:["appsId","ingressRulesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Firewall$Ingressrules=Resource$Apps$Firewall$Ingressrules;class Resource$Apps$Locations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/locations/{locationsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","locationsId"],pathParams:["appsId","locationsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Locations=Resource$Apps$Locations;class Resource$Apps$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/operations/{operationsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","operationsId"],pathParams:["appsId","operationsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Operations=Resource$Apps$Operations;class Resource$Apps$Services{constructor(e){this.context=e;this.versions=new Resource$Apps$Services$Versions(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","servicesId"],pathParams:["appsId","servicesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","servicesId"],pathParams:["appsId","servicesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","servicesId"],pathParams:["appsId","servicesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Services=Resource$Apps$Services;class Resource$Apps$Services$Versions{constructor(e){this.context=e;this.instances=new Resource$Apps$Services$Versions$Instances(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId","servicesId"],pathParams:["appsId","servicesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","servicesId","versionsId"],pathParams:["appsId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","servicesId","versionsId"],pathParams:["appsId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","servicesId"],pathParams:["appsId","servicesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","servicesId","versionsId"],pathParams:["appsId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Services$Versions=Resource$Apps$Services$Versions;class Resource$Apps$Services$Versions$Instances{constructor(e){this.context=e}debug(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId","servicesId","versionsId","instancesId"],pathParams:["appsId","instancesId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","servicesId","versionsId","instancesId"],pathParams:["appsId","instancesId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","servicesId","versionsId","instancesId"],pathParams:["appsId","instancesId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","servicesId","versionsId"],pathParams:["appsId","servicesId","versionsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Services$Versions$Instances=Resource$Apps$Services$Versions$Instances})(o=t.appengine_v1beta||(t.appengine_v1beta={}))},function(e,t){function isArray(e){if(Array.isArray){return Array.isArray(e)}return objectToString(e)==="[object Array]"}t.isArray=isArray;function isBoolean(e){return typeof e==="boolean"}t.isBoolean=isBoolean;function isNull(e){return e===null}t.isNull=isNull;function isNullOrUndefined(e){return e==null}t.isNullOrUndefined=isNullOrUndefined;function isNumber(e){return typeof e==="number"}t.isNumber=isNumber;function isString(e){return typeof e==="string"}t.isString=isString;function isSymbol(e){return typeof e==="symbol"}t.isSymbol=isSymbol;function isUndefined(e){return e===void 0}t.isUndefined=isUndefined;function isRegExp(e){return objectToString(e)==="[object RegExp]"}t.isRegExp=isRegExp;function isObject(e){return typeof e==="object"&&e!==null}t.isObject=isObject;function isDate(e){return objectToString(e)==="[object Date]"}t.isDate=isDate;function isError(e){return objectToString(e)==="[object Error]"||e instanceof Error}t.isError=isError;function isFunction(e){return typeof e==="function"}t.isFunction=isFunction;function isPrimitive(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=isPrimitive;t.isBuffer=Buffer.isBuffer;function objectToString(e){return Object.prototype.toString.call(e)}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.speech_v2beta1=void 0;const r=s(927);var o;(function(e){class Speech{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Speech=Speech;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.operations=new Resource$Projects$Locations$Operations(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.speech_v2beta1||(t.speech_v2beta1={}))},function(e,t,s){"use strict";e.exports=PassThrough;var r=s(732);s(689)(PassThrough,r);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);r.call(this,e)}PassThrough.prototype._transform=function(e,t,s){s(null,e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runtimeconfig_v1beta1=void 0;const r=s(927);var o;(function(e){class Runtimeconfig{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Runtimeconfig=Runtimeconfig;class Resource$Projects{constructor(e){this.context=e;this.configs=new Resource$Projects$Configs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Configs{constructor(e){this.context=e;this.operations=new Resource$Projects$Configs$Operations(this.context);this.variables=new Resource$Projects$Configs$Variables(this.context);this.waiters=new Resource$Projects$Configs$Waiters(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/configs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Configs=Resource$Projects$Configs;class Resource$Projects$Configs$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Configs$Operations=Resource$Projects$Configs$Operations;class Resource$Projects$Configs$Variables{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}watch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:watch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Configs$Variables=Resource$Projects$Configs$Variables;class Resource$Projects$Configs$Waiters{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/waiters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/waiters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Configs$Waiters=Resource$Projects$Configs$Waiters})(o=t.runtimeconfig_v1beta1||(t.runtimeconfig_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.datafusion=t.VERSIONS=void 0;const r=s(927);const o=s(695);t.VERSIONS={v1beta1:o.datafusion_v1beta1.Datafusion};function datafusion(e){return r.getAPI("datafusion",e,t.VERSIONS,this)}t.datafusion=datafusion;const n=new r.AuthPlus;t.auth=n},function(e,t,s){try{var r=s(669);if(typeof r.inherits!=="function")throw"";e.exports=r.inherits}catch(t){e.exports=s(315)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.factchecktools_v1alpha1=void 0;const r=s(927);var o;(function(e){class Factchecktools{constructor(e,t){this.context={_options:e||{},google:t};this.claims=new Resource$Claims(this.context);this.pages=new Resource$Pages(this.context)}}e.Factchecktools=Factchecktools;class Resource$Claims{constructor(e){this.context=e}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/claims:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Claims=Resource$Claims;class Resource$Pages{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/pages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/pages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://factchecktools.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pages=Resource$Pages})(o=t.factchecktools_v1alpha1||(t.factchecktools_v1alpha1={}))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.domainsrdap=t.VERSIONS=void 0;const r=s(927);const o=s(937);t.VERSIONS={v1:o.domainsrdap_v1.Domainsrdap};function domainsrdap(e){return r.getAPI("domainsrdap",e,t.VERSIONS,this)}t.domainsrdap=domainsrdap;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.datafusion_v1beta1=void 0;const r=s(927);var o;(function(e){class Datafusion{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Datafusion=Datafusion;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.instances=new Resource$Projects$Locations$Instances(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Instances{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}restart(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:restart").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}upgrade(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:upgrade").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Instances=Resource$Projects$Locations$Instances;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://datafusion.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.datafusion_v1beta1||(t.datafusion_v1beta1={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isBrowser=void 0;function isBrowser(){return typeof window!=="undefined"}t.isBrowser=isBrowser},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.translate_v3beta1=void 0;const r=s(927);var o;(function(e){class Translate{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Translate=Translate;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}detectLanguage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}:detectLanguage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSupportedLanguages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}/supportedLanguages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}translateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}:translateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.glossaries=new Resource$Projects$Locations$Glossaries(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}batchTranslateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}:batchTranslateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detectLanguage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}:detectLanguage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSupportedLanguages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}/supportedLanguages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}translateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}:translateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Glossaries{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}/glossaries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+parent}/glossaries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Glossaries=Resource$Projects$Locations$Glossaries;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://translation.googleapis.com/";const c={options:Object.assign({url:(i+"/v3beta1/{+name}:wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.translate_v3beta1||(t.translate_v3beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tpu_v1=void 0;const r=s(927);var o;(function(e){class Tpu{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Tpu=Tpu;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.acceleratorTypes=new Resource$Projects$Locations$Acceleratortypes(this.context);this.nodes=new Resource$Projects$Locations$Nodes(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context);this.tensorflowVersions=new Resource$Projects$Locations$Tensorflowversions(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Acceleratortypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Acceleratortypes=Resource$Projects$Locations$Acceleratortypes;class Resource$Projects$Locations$Nodes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/nodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reimage(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:reimage").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Nodes=Resource$Projects$Locations$Nodes;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Locations$Tensorflowversions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://tpu.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/tensorflowVersions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Tensorflowversions=Resource$Projects$Locations$Tensorflowversions})(o=t.tpu_v1||(t.tpu_v1={}))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigqueryreservation_v1=void 0;const r=s(927);var o;(function(e){class Bigqueryreservation{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Bigqueryreservation=Bigqueryreservation;class Resource$Operations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.capacityCommitments=new Resource$Projects$Locations$Capacitycommitments(this.context);this.reservations=new Resource$Projects$Locations$Reservations(this.context)}getBiReservation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchAssignments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:searchAssignments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateBiReservation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Capacitycommitments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/capacityCommitments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/capacityCommitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}merge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/capacityCommitments:merge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}split(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:split").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Capacitycommitments=Resource$Projects$Locations$Capacitycommitments;class Resource$Projects$Locations$Reservations{constructor(e){this.context=e;this.assignments=new Resource$Projects$Locations$Reservations$Assignments(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Reservations=Resource$Projects$Locations$Reservations;class Resource$Projects$Locations$Reservations$Assignments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/assignments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/assignments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Reservations$Assignments=Resource$Projects$Locations$Reservations$Assignments})(o=t.bigqueryreservation_v1||(t.bigqueryreservation_v1={}))},function(e,t,s){"use strict";const r=s(612);const o=Symbol("max");const n=Symbol("length");const i=Symbol("lengthCalculator");const c=Symbol("allowStale");const u=Symbol("maxAge");const a=Symbol("dispose");const f=Symbol("noDisposeOnSet");const p=Symbol("lruList");const h=Symbol("cache");const d=Symbol("updateAgeOnGet");const l=()=>1;class LRUCache{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[o]=e.max||Infinity;const s=e.length||l;this[i]=typeof s!=="function"?l:s;this[c]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[u]=e.maxAge||0;this[a]=e.dispose;this[f]=e.noDisposeOnSet||false;this[d]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[o]=e||Infinity;I(this)}get max(){return this[o]}set allowStale(e){this[c]=!!e}get allowStale(){return this[c]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[u]=e;I(this)}get maxAge(){return this[u]}set lengthCalculator(e){if(typeof e!=="function")e=l;if(e!==this[i]){this[i]=e;this[n]=0;this[p].forEach(e=>{e.length=this[i](e.value,e.key);this[n]+=e.length})}I(this)}get lengthCalculator(){return this[i]}get length(){return this[n]}get itemCount(){return this[p].length}rforEach(e,t){t=t||this;for(let s=this[p].tail;s!==null;){const r=s.prev;g(this,e,s,t);s=r}}forEach(e,t){t=t||this;for(let s=this[p].head;s!==null;){const r=s.next;g(this,e,s,t);s=r}}keys(){return this[p].toArray().map(e=>e.key)}values(){return this[p].toArray().map(e=>e.value)}reset(){if(this[a]&&this[p]&&this[p].length){this[p].forEach(e=>this[a](e.key,e.value))}this[h]=new Map;this[p]=new r;this[n]=0}dump(){return this[p].map(e=>y(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[p]}set(e,t,s){s=s||this[u];if(s&&typeof s!=="number")throw new TypeError("maxAge must be a number");const r=s?Date.now():0;const c=this[i](t,e);if(this[h].has(e)){if(c>this[o]){R(this,this[h].get(e));return false}const i=this[h].get(e);const u=i.value;if(this[a]){if(!this[f])this[a](e,u.value)}u.now=r;u.maxAge=s;u.value=t;this[n]+=c-u.length;u.length=c;this.get(e);I(this);return true}const d=new Entry(e,t,c,r,s);if(d.length>this[o]){if(this[a])this[a](e,t);return false}this[n]+=d.length;this[p].unshift(d);this[h].set(e,this[p].head);I(this);return true}has(e){if(!this[h].has(e))return false;const t=this[h].get(e).value;return!y(this,t)}get(e){return P(this,e,true)}peek(e){return P(this,e,false)}pop(){const e=this[p].tail;if(!e)return null;R(this,e);return e.value}del(e){R(this,this[h].get(e))}load(e){this.reset();const t=Date.now();for(let s=e.length-1;s>=0;s--){const r=e[s];const o=r.e||0;if(o===0)this.set(r.k,r.v);else{const e=o-t;if(e>0){this.set(r.k,r.v,e)}}}}prune(){this[h].forEach((e,t)=>P(this,t,false))}}const P=(e,t,s)=>{const r=e[h].get(t);if(r){const t=r.value;if(y(e,t)){R(e,r);if(!e[c])return undefined}else{if(s){if(e[d])r.value.now=Date.now();e[p].unshiftNode(r)}}return t.value}};const y=(e,t)=>{if(!t||!t.maxAge&&!e[u])return false;const s=Date.now()-t.now;return t.maxAge?s>t.maxAge:e[u]&&s>e[u]};const I=e=>{if(e[n]>e[o]){for(let t=e[p].tail;e[n]>e[o]&&t!==null;){const s=t.prev;R(e,t);t=s}}};const R=(e,t)=>{if(t){const s=t.value;if(e[a])e[a](s.key,s.value);e[n]-=s.length;e[h].delete(s.key);e[p].removeNode(t)}};class Entry{constructor(e,t,s,r,o){this.key=e;this.value=t;this.length=s;this.now=r;this.maxAge=o||0}}const g=(e,t,s,r)=>{let o=s.value;if(y(e,o)){R(e,s);if(!e[c])o=undefined}if(o)t.call(r,o.value,o.key,e)};e.exports=LRUCache},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.androidenterprise=t.VERSIONS=void 0;const r=s(927);const o=s(75);t.VERSIONS={v1:o.androidenterprise_v1.Androidenterprise};function androidenterprise(e){return r.getAPI("androidenterprise",e,t.VERSIONS,this)}t.androidenterprise=androidenterprise;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){var r=s(239);s(707);s(152);var o=e.exports=r.pss=r.pss||{};o.create=function(e){if(arguments.length===3){e={md:arguments[0],mgf:arguments[1],saltLength:arguments[2]}}var t=e.md;var s=e.mgf;var o=t.digestLength;var n=e.salt||null;if(typeof n==="string"){n=r.util.createBuffer(n)}var i;if("saltLength"in e){i=e.saltLength}else if(n!==null){i=n.length()}else{throw new Error("Salt length not specified or specific salt not given.")}if(n!==null&&n.length()!==i){throw new Error("Given salt length does not match length of given salt.")}var c=e.prng||r.random;var u={};u.encode=function(e,u){var a;var f=u-1;var p=Math.ceil(f/8);var h=e.digest().getBytes();if(p>8*p-f&255;q=String.fromCharCode(q.charCodeAt(0)&~x)+q.substr(1);return q+P+String.fromCharCode(188)};u.verify=function(e,n,c){var u;var a=c-1;var f=Math.ceil(a/8);n=n.substr(-f);if(f>8*f-a&255;if((h.charCodeAt(0)&l)!==0){throw new Error("Bits beyond keysize not zero as expected.")}var P=s.generate(d,p);var y="";for(u=0;u>8)&65535}return s});t.default=a},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.chat_v1=void 0;const r=s(927);var o;(function(e){class Chat{constructor(e,t){this.context={_options:e||{},google:t};this.spaces=new Resource$Spaces(this.context)}}e.Chat=Chat;class Resource$Spaces{constructor(e){this.context=e;this.members=new Resource$Spaces$Members(this.context);this.messages=new Resource$Spaces$Messages(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/spaces").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Spaces=Resource$Spaces;class Resource$Spaces$Members{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/members").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Spaces$Members=Resource$Spaces$Members;class Resource$Spaces$Messages{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/messages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://chat.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Spaces$Messages=Resource$Spaces$Messages})(o=t.chat_v1||(t.chat_v1={}))},,function(e){(function(t,s){if(true){e.exports=s()}else{}})(this,function(){function UrlTemplate(){}UrlTemplate.prototype.encodeReserved=function(e){return e.split(/(%[0-9A-Fa-f]{2})/g).map(function(e){if(!/%[0-9A-Fa-f]/.test(e)){e=encodeURI(e).replace(/%5B/g,"[").replace(/%5D/g,"]")}return e}).join("")};UrlTemplate.prototype.encodeUnreserved=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})};UrlTemplate.prototype.encodeValue=function(e,t,s){t=e==="+"||e==="#"?this.encodeReserved(t):this.encodeUnreserved(t);if(s){return this.encodeUnreserved(s)+"="+t}else{return t}};UrlTemplate.prototype.isDefined=function(e){return e!==undefined&&e!==null};UrlTemplate.prototype.isKeyOperator=function(e){return e===";"||e==="&"||e==="?"};UrlTemplate.prototype.getValues=function(e,t,s,r){var o=e[s],n=[];if(this.isDefined(o)&&o!==""){if(typeof o==="string"||typeof o==="number"||typeof o==="boolean"){o=o.toString();if(r&&r!=="*"){o=o.substring(0,parseInt(r,10))}n.push(this.encodeValue(t,o,this.isKeyOperator(t)?s:null))}else{if(r==="*"){if(Array.isArray(o)){o.filter(this.isDefined).forEach(function(e){n.push(this.encodeValue(t,e,this.isKeyOperator(t)?s:null))},this)}else{Object.keys(o).forEach(function(e){if(this.isDefined(o[e])){n.push(this.encodeValue(t,o[e],e))}},this)}}else{var i=[];if(Array.isArray(o)){o.filter(this.isDefined).forEach(function(e){i.push(this.encodeValue(t,e))},this)}else{Object.keys(o).forEach(function(e){if(this.isDefined(o[e])){i.push(this.encodeUnreserved(e));i.push(this.encodeValue(t,o[e].toString()))}},this)}if(this.isKeyOperator(t)){n.push(this.encodeUnreserved(s)+"="+i.join(","))}else if(i.length!==0){n.push(i.join(","))}}}}else{if(t===";"){if(this.isDefined(o)){n.push(this.encodeUnreserved(s))}}else if(o===""&&(t==="&"||t==="?")){n.push(this.encodeUnreserved(s)+"=")}else if(o===""){n.push("")}}return n};UrlTemplate.prototype.parse=function(e){var t=this;var s=["+","#",".","/",";","?","&"];return{expand:function(r){return e.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g,function(e,o,n){if(o){var i=null,c=[];if(s.indexOf(o.charAt(0))!==-1){i=o.charAt(0);o=o.substr(1)}o.split(/,/g).forEach(function(e){var s=/([^:\*]*)(?::(\d+)|(\*))?/.exec(e);c.push.apply(c,t.getValues(r,i,s[1],s[2]||s[3]))});if(i&&i!=="+"){var u=",";if(i==="?"){u="&"}else if(i!=="#"){u=i}return(c.length!==0?i:"")+c.join(u)}else{return c.join(",")}}else{return t.encodeReserved(n)}})}}};return new UrlTemplate})},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serviceconsumermanagement_v1beta1=void 0;const r=s(927);var o;(function(e){class Serviceconsumermanagement{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.services=new Resource$Services(this.context)}}e.Serviceconsumermanagement=Serviceconsumermanagement;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Services{constructor(e){this.context=e;this.consumerQuotaMetrics=new Resource$Services$Consumerquotametrics(this.context)}}e.Resource$Services=Resource$Services;class Resource$Services$Consumerquotametrics{constructor(e){this.context=e;this.limits=new Resource$Services$Consumerquotametrics$Limits(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}importProducerOverrides(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/consumerQuotaMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics=Resource$Services$Consumerquotametrics;class Resource$Services$Consumerquotametrics$Limits{constructor(e){this.context=e;this.producerOverrides=new Resource$Services$Consumerquotametrics$Limits$Produceroverrides(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics$Limits=Resource$Services$Consumerquotametrics$Limits;class Resource$Services$Consumerquotametrics$Limits$Produceroverrides{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/producerOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/producerOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics$Limits$Produceroverrides=Resource$Services$Consumerquotametrics$Limits$Produceroverrides})(o=t.serviceconsumermanagement_v1beta1||(t.serviceconsumermanagement_v1beta1={}))},function(e,t,s){"use strict";e.exports=PassThrough;var r=s(299);var o=Object.create(s(683));o.inherits=s(689);o.inherits(PassThrough,r);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);r.call(this,e)}PassThrough.prototype._transform=function(e,t,s){s(null,e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.civicinfo=t.VERSIONS=void 0;const r=s(927);const o=s(369);t.VERSIONS={v2:o.civicinfo_v2.Civicinfo};function civicinfo(e){return r.getAPI("civicinfo",e,t.VERSIONS,this)}t.civicinfo=civicinfo;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";var r=String.prototype.replace;var o=/%20/g;var n=s(581);var i={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports=n.assign({default:i.RFC3986,formatters:{RFC1738:function(e){return r.call(e,o,"+")},RFC3986:function(e){return String(e)}}},i)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.servicecontrol=t.VERSIONS=void 0;const r=s(927);const o=s(944);t.VERSIONS={v1:o.servicecontrol_v1.Servicecontrol};function servicecontrol(e){return r.getAPI("servicecontrol",e,t.VERSIONS,this)}t.servicecontrol=servicecontrol;const n=new r.AuthPlus;t.auth=n},function(e){e.exports=require("constants")},function(e,t,s){"use strict";var r=s(822);var o=Object.keys||function(e){var t=[];for(var s in e){t.push(s)}return t};e.exports=Duplex;var n=Object.create(s(683));n.inherits=s(689);var i=s(793);var c=s(314);n.inherits(Duplex,i);{var u=o(c.prototype);for(var a=0;a-1){return e.split(",")}return e};var a="utf8=%26%2310003%3B";var f="utf8=%E2%9C%93";var p=function parseQueryStringValues(e,t){var s={};var p=t.ignoreQueryPrefix?e.replace(/^\?/,""):e;var h=t.parameterLimit===Infinity?undefined:t.parameterLimit;var d=p.split(t.delimiter,h);var l=-1;var P;var y=t.charset;if(t.charsetSentinel){for(P=0;P-1){x=n(x)?[x]:x}if(o.call(s,q)){s[q]=r.combine(s[q],x)}else{s[q]=x}}return s};var h=function(e,t,s,r){var o=r?t:u(t,s);for(var n=e.length-1;n>=0;--n){var i;var c=e[n];if(c==="[]"&&s.parseArrays){i=[].concat(o)}else{i=s.plainObjects?Object.create(null):{};var a=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c;var f=parseInt(a,10);if(!s.parseArrays&&a===""){i={0:o}}else if(!isNaN(f)&&c!==a&&String(f)===a&&f>=0&&(s.parseArrays&&f<=s.arrayLimit)){i=[];i[f]=o}else{i[a]=o}}o=i}return o};var d=function parseQueryStringKeys(e,t,s,r){if(!e){return}var n=s.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;var i=/(\[[^[\]]*])/;var c=/(\[[^[\]]*])/g;var u=s.depth>0&&i.exec(n);var a=u?n.slice(0,u.index):n;var f=[];if(a){if(!s.plainObjects&&o.call(Object.prototype,a)){if(!s.allowPrototypes){return}}f.push(a)}var p=0;while(s.depth>0&&(u=c.exec(n))!==null&&p0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var s=""+t.data;while(t=t.next){s+=e+t.data}return s};BufferList.prototype.concat=function concat(e){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;var t=r.allocUnsafe(e>>>0);var s=this.head;var o=0;while(s){copyBuffer(s.data,t,o);o+=s.data.length;s=s.next}return t};return BufferList}();if(o&&o.inspect&&o.inspect.custom){e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e}}},function(e,t,s){"use strict";e.exports=s(710).default},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.slides_v1=void 0;const r=s(927);var o;(function(e){class Slides{constructor(e,t){this.context={_options:e||{},google:t};this.presentations=new Resource$Presentations(this.context)}}e.Slides=Slides;class Resource$Presentations{constructor(e){this.context=e;this.pages=new Resource$Presentations$Pages(this.context)}batchUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://slides.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/presentations/{presentationId}:batchUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["presentationId"],pathParams:["presentationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://slides.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/presentations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://slides.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/presentations/{+presentationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["presentationId"],pathParams:["presentationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Presentations=Resource$Presentations;class Resource$Presentations$Pages{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://slides.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/presentations/{presentationId}/pages/{pageObjectId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["presentationId","pageObjectId"],pathParams:["pageObjectId","presentationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getThumbnail(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://slides.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["presentationId","pageObjectId"],pathParams:["pageObjectId","presentationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Presentations$Pages=Resource$Presentations$Pages})(o=t.slides_v1||(t.slides_v1={}))},function(e,t){var s=Buffer.alloc;var r="0000000000000000000";var o="7777777777777777777";var n="0".charCodeAt(0);var i=Buffer.from("ustar\0","binary");var c=Buffer.from("00","binary");var u=Buffer.from("ustar ","binary");var a=Buffer.from(" \0","binary");var f=parseInt("7777",8);var p=257;var h=263;var d=function(e,t,s){if(typeof e!=="number")return s;e=~~e;if(e>=t)return t;if(e>=0)return e;e+=t;if(e>=0)return e;return 0};var l=function(e){switch(e){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null};var P=function(e){switch(e){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0};var y=function(e,t,s,r){for(;st)return o.slice(0,t)+" ";else return r.slice(0,t-e.length)+e+" "};function parse256(e){var t;if(e[0]===128)t=true;else if(e[0]===255)t=false;else return null;var s=[];for(var r=e.length-1;r>0;r--){var o=e[r];if(t)s.push(o);else s.push(255-o)}var n=0;var i=s.length;for(r=0;r=Math.pow(10,s))s++;return t+s+e};t.decodeLongPath=function(e,t){return q(e,0,e.length,t)};t.encodePax=function(e){var t="";if(e.name)t+=x(" path="+e.name+"\n");if(e.linkname)t+=x(" linkpath="+e.linkname+"\n");var s=e.pax;if(s){for(var r in s){t+=x(" "+r+"="+s[r]+"\n")}}return Buffer.from(t)};t.decodePax=function(e){var t={};while(e.length){var s=0;while(s100){var u=r.indexOf("/");if(u===-1)return null;o+=o?"/"+r.slice(0,u):r.slice(0,u);r=r.slice(u+1)}if(Buffer.byteLength(r)>100||Buffer.byteLength(o)>155)return null;if(e.linkname&&Buffer.byteLength(e.linkname)>100)return null;t.write(r);t.write(R(e.mode&f,6),100);t.write(R(e.uid,6),108);t.write(R(e.gid,6),116);t.write(R(e.size,11),124);t.write(R(e.mtime.getTime()/1e3|0,11),136);t[156]=n+P(e.type);if(e.linkname)t.write(e.linkname,157);i.copy(t,p);c.copy(t,h);if(e.uname)t.write(e.uname,265);if(e.gname)t.write(e.gname,297);t.write(R(e.devmajor||0,6),329);t.write(R(e.devminor||0,6),337);if(o)t.write(o,345);t.write(R(I(t),6),148);return t};t.decode=function(e,t){var s=e[156]===0?0:e[156]-n;var r=q(e,0,100,t);var o=g(e,100,8);var c=g(e,108,8);var f=g(e,116,8);var d=g(e,124,12);var P=g(e,136,12);var y=l(s);var R=e[157]===0?null:q(e,157,100,t);var x=q(e,265,32);var $=q(e,297,32);var j=g(e,329,8);var v=g(e,337,8);var A=I(e);if(A===8*32)return null;if(A!==g(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(i.compare(e,p,p+6)===0){if(e[345])r=q(e,345,155,t)+"/"+r}else if(u.compare(e,p,p+6)===0&&a.compare(e,h,h+2)===0){}else{throw new Error("Invalid tar header: unknown format.")}if(s===0&&r&&r[r.length-1]==="/")s=5;return{name:r,mode:o,uid:c,gid:f,size:d,mtime:new Date(1e3*P),type:y,linkname:R,uname:x,gname:$,devmajor:j,devminor:v}}},function(e){e.exports=require("zlib")},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.language_v1beta1=void 0;const r=s(927);var o;(function(e){class Language{constructor(e,t){this.context={_options:e||{},google:t};this.documents=new Resource$Documents(this.context)}}e.Language=Language;class Resource$Documents{constructor(e){this.context=e}analyzeEntities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/documents:analyzeEntities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSentiment(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/documents:analyzeSentiment").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}analyzeSyntax(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/documents:analyzeSyntax").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}annotateText(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://language.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/documents:annotateText").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Documents=Resource$Documents})(o=t.language_v1beta1||(t.language_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.libraryagent_v1=void 0;const r=s(927);var o;(function(e){class Libraryagent{constructor(e,t){this.context={_options:e||{},google:t};this.shelves=new Resource$Shelves(this.context)}}e.Libraryagent=Libraryagent;class Resource$Shelves{constructor(e){this.context=e;this.books=new Resource$Shelves$Books(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/shelves").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Shelves=Resource$Shelves;class Resource$Shelves$Books{constructor(e){this.context=e}borrow(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:borrow").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/books").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}return(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://libraryagent.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:return").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Shelves$Books=Resource$Shelves$Books})(o=t.libraryagent_v1||(t.libraryagent_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.appengine_v1alpha=void 0;const r=s(927);var o;(function(e){class Appengine{constructor(e,t){this.context={_options:e||{},google:t};this.apps=new Resource$Apps(this.context)}}e.Appengine=Appengine;class Resource$Apps{constructor(e){this.context=e;this.authorizedCertificates=new Resource$Apps$Authorizedcertificates(this.context);this.authorizedDomains=new Resource$Apps$Authorizeddomains(this.context);this.domainMappings=new Resource$Apps$Domainmappings(this.context);this.locations=new Resource$Apps$Locations(this.context);this.operations=new Resource$Apps$Operations(this.context)}}e.Resource$Apps=Resource$Apps;class Resource$Apps$Authorizedcertificates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","authorizedCertificatesId"],pathParams:["appsId","authorizedCertificatesId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Authorizedcertificates=Resource$Apps$Authorizedcertificates;class Resource$Apps$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/authorizedDomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Authorizeddomains=Resource$Apps$Authorizeddomains;class Resource$Apps$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/domainMappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/domainMappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["appsId","domainMappingsId"],pathParams:["appsId","domainMappingsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Domainmappings=Resource$Apps$Domainmappings;class Resource$Apps$Locations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/locations/{locationsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","locationsId"],pathParams:["appsId","locationsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Locations=Resource$Apps$Locations;class Resource$Apps$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/operations/{operationsId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId","operationsId"],pathParams:["appsId","operationsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://appengine.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/apps/{appsId}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["appsId"],pathParams:["appsId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Apps$Operations=Resource$Apps$Operations})(o=t.appengine_v1alpha||(t.appengine_v1alpha={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.tpu=t.VERSIONS=void 0;const r=s(927);const o=s(698);const n=s(469);t.VERSIONS={v1:o.tpu_v1.Tpu,v1alpha1:n.tpu_v1alpha1.Tpu};function tpu(e){return r.getAPI("tpu",e,t.VERSIONS,this)}t.tpu=tpu;const i=new r.AuthPlus;t.auth=i},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.storage=t.VERSIONS=void 0;const r=s(927);const o=s(511);const n=s(111);t.VERSIONS={v1:o.storage_v1.Storage,v1beta2:n.storage_v1beta2.Storage};function storage(e){return r.getAPI("storage",e,t.VERSIONS,this)}t.storage=storage;const i=new r.AuthPlus;t.auth=i},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dlp_v2=void 0;const r=s(927);var o;(function(e){class Dlp{constructor(e,t){this.context={_options:e||{},google:t};this.infoTypes=new Resource$Infotypes(this.context);this.locations=new Resource$Locations(this.context);this.organizations=new Resource$Organizations(this.context);this.projects=new Resource$Projects(this.context)}}e.Dlp=Dlp;class Resource$Infotypes{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/infoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Infotypes=Resource$Infotypes;class Resource$Locations{constructor(e){this.context=e;this.infoTypes=new Resource$Locations$Infotypes(this.context)}}e.Resource$Locations=Resource$Locations;class Resource$Locations$Infotypes{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/locations/{locationId}/infoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["locationId"],pathParams:["locationId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Locations$Infotypes=Resource$Locations$Infotypes;class Resource$Organizations{constructor(e){this.context=e;this.deidentifyTemplates=new Resource$Organizations$Deidentifytemplates(this.context);this.inspectTemplates=new Resource$Organizations$Inspecttemplates(this.context);this.locations=new Resource$Organizations$Locations(this.context);this.storedInfoTypes=new Resource$Organizations$Storedinfotypes(this.context)}}e.Resource$Organizations=Resource$Organizations;class Resource$Organizations$Deidentifytemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Deidentifytemplates=Resource$Organizations$Deidentifytemplates;class Resource$Organizations$Inspecttemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Inspecttemplates=Resource$Organizations$Inspecttemplates;class Resource$Organizations$Locations{constructor(e){this.context=e;this.deidentifyTemplates=new Resource$Organizations$Locations$Deidentifytemplates(this.context);this.inspectTemplates=new Resource$Organizations$Locations$Inspecttemplates(this.context);this.storedInfoTypes=new Resource$Organizations$Locations$Storedinfotypes(this.context)}}e.Resource$Organizations$Locations=Resource$Organizations$Locations;class Resource$Organizations$Locations$Deidentifytemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Locations$Deidentifytemplates=Resource$Organizations$Locations$Deidentifytemplates;class Resource$Organizations$Locations$Inspecttemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Locations$Inspecttemplates=Resource$Organizations$Locations$Inspecttemplates;class Resource$Organizations$Locations$Storedinfotypes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Locations$Storedinfotypes=Resource$Organizations$Locations$Storedinfotypes;class Resource$Organizations$Storedinfotypes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Storedinfotypes=Resource$Organizations$Storedinfotypes;class Resource$Projects{constructor(e){this.context=e;this.content=new Resource$Projects$Content(this.context);this.deidentifyTemplates=new Resource$Projects$Deidentifytemplates(this.context);this.dlpJobs=new Resource$Projects$Dlpjobs(this.context);this.image=new Resource$Projects$Image(this.context);this.inspectTemplates=new Resource$Projects$Inspecttemplates(this.context);this.jobTriggers=new Resource$Projects$Jobtriggers(this.context);this.locations=new Resource$Projects$Locations(this.context);this.storedInfoTypes=new Resource$Projects$Storedinfotypes(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Content{constructor(e){this.context=e}deidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/content:deidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}inspect(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/content:inspect").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/content:reidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Content=Resource$Projects$Content;class Resource$Projects$Deidentifytemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Deidentifytemplates=Resource$Projects$Deidentifytemplates;class Resource$Projects$Dlpjobs{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/dlpJobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/dlpJobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Dlpjobs=Resource$Projects$Dlpjobs;class Resource$Projects$Image{constructor(e){this.context=e}redact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/image:redact").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Image=Resource$Projects$Image;class Resource$Projects$Inspecttemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Inspecttemplates=Resource$Projects$Inspecttemplates;class Resource$Projects$Jobtriggers{constructor(e){this.context=e}activate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:activate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/jobTriggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/jobTriggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobtriggers=Resource$Projects$Jobtriggers;class Resource$Projects$Locations{constructor(e){this.context=e;this.content=new Resource$Projects$Locations$Content(this.context);this.deidentifyTemplates=new Resource$Projects$Locations$Deidentifytemplates(this.context);this.dlpJobs=new Resource$Projects$Locations$Dlpjobs(this.context);this.image=new Resource$Projects$Locations$Image(this.context);this.inspectTemplates=new Resource$Projects$Locations$Inspecttemplates(this.context);this.jobTriggers=new Resource$Projects$Locations$Jobtriggers(this.context);this.storedInfoTypes=new Resource$Projects$Locations$Storedinfotypes(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Content{constructor(e){this.context=e}deidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/content:deidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}inspect(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/content:inspect").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/content:reidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Content=Resource$Projects$Locations$Content;class Resource$Projects$Locations$Deidentifytemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/deidentifyTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Deidentifytemplates=Resource$Projects$Locations$Deidentifytemplates;class Resource$Projects$Locations$Dlpjobs{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/dlpJobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}finish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:finish").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}hybridInspect(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:hybridInspect").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/dlpJobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Dlpjobs=Resource$Projects$Locations$Dlpjobs;class Resource$Projects$Locations$Image{constructor(e){this.context=e}redact(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/image:redact").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Image=Resource$Projects$Locations$Image;class Resource$Projects$Locations$Inspecttemplates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/inspectTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Inspecttemplates=Resource$Projects$Locations$Inspecttemplates;class Resource$Projects$Locations$Jobtriggers{constructor(e){this.context=e}activate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:activate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/jobTriggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}hybridInspect(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:hybridInspect").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/jobTriggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobtriggers=Resource$Projects$Locations$Jobtriggers;class Resource$Projects$Locations$Storedinfotypes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/locations/{locationId}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","locationId"],pathParams:["locationId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Storedinfotypes=Resource$Projects$Locations$Storedinfotypes;class Resource$Projects$Storedinfotypes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+parent}/storedInfoTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dlp.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Storedinfotypes=Resource$Projects$Storedinfotypes})(o=t.dlp_v2||(t.dlp_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.dns=t.VERSIONS=void 0;const r=s(927);const o=s(611);const n=s(166);const i=s(873);t.VERSIONS={v1:o.dns_v1.Dns,v1beta2:n.dns_v1beta2.Dns,v2beta1:i.dns_v2beta1.Dns};function dns(e){return r.getAPI("dns",e,t.VERSIONS,this)}t.dns=dns;const c=new r.AuthPlus;t.auth=c},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.drive_v3=void 0;const r=s(927);var o;(function(e){class Drive{constructor(e,t){this.context={_options:e||{},google:t};this.about=new Resource$About(this.context);this.changes=new Resource$Changes(this.context);this.channels=new Resource$Channels(this.context);this.comments=new Resource$Comments(this.context);this.drives=new Resource$Drives(this.context);this.files=new Resource$Files(this.context);this.permissions=new Resource$Permissions(this.context);this.replies=new Resource$Replies(this.context);this.revisions=new Resource$Revisions(this.context);this.teamdrives=new Resource$Teamdrives(this.context)}}e.Drive=Drive;class Resource$About{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/about").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$About=Resource$About;class Resource$Changes{constructor(e){this.context=e}getStartPageToken(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/changes/startPageToken").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/changes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["pageToken"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}watch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/changes/watch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["pageToken"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Changes=Resource$Changes;class Resource$Channels{constructor(e){this.context=e}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/channels/stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Channels=Resource$Channels;class Resource$Comments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["fileId","commentId"],pathParams:["commentId","fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","commentId"],pathParams:["commentId","fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["fileId","commentId"],pathParams:["commentId","fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Comments=Resource$Comments;class Resource$Drives{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["requestId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives/{driveId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["driveId"],pathParams:["driveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives/{driveId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["driveId"],pathParams:["driveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}hide(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives/{driveId}/hide").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["driveId"],pathParams:["driveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unhide(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives/{driveId}/unhide").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["driveId"],pathParams:["driveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/drives/{driveId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["driveId"],pathParams:["driveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Drives=Resource$Drives;class Resource$Files{constructor(e){this.context=e}copy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/copy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/drive/v3/files").replace(/([^:]\/)\/+/g,"$1"),requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}emptyTrash(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/trash").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/export").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","mimeType"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generateIds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/generateIds").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,mediaUrl:(i+"/upload/drive/v3/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}watch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/watch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Files=Resource$Files;class Resource$Permissions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/permissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["fileId","permissionId"],pathParams:["fileId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","permissionId"],pathParams:["fileId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/permissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/permissions/{permissionId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["fileId","permissionId"],pathParams:["fileId","permissionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Permissions=Resource$Permissions;class Resource$Replies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}/replies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["fileId","commentId"],pathParams:["commentId","fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["fileId","commentId","replyId"],pathParams:["commentId","fileId","replyId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","commentId","replyId"],pathParams:["commentId","fileId","replyId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}/replies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","commentId"],pathParams:["commentId","fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["fileId","commentId","replyId"],pathParams:["commentId","fileId","replyId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Replies=Resource$Replies;class Resource$Revisions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/revisions/{revisionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["fileId","revisionId"],pathParams:["fileId","revisionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/revisions/{revisionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId","revisionId"],pathParams:["fileId","revisionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/revisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["fileId"],pathParams:["fileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/files/{fileId}/revisions/{revisionId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["fileId","revisionId"],pathParams:["fileId","revisionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Revisions=Resource$Revisions;class Resource$Teamdrives{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/teamdrives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["requestId"],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/teamdrives/{teamDriveId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["teamDriveId"],pathParams:["teamDriveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/teamdrives/{teamDriveId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["teamDriveId"],pathParams:["teamDriveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/teamdrives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/drive/v3/teamdrives/{teamDriveId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["teamDriveId"],pathParams:["teamDriveId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Teamdrives=Resource$Teamdrives})(o=t.drive_v3||(t.drive_v3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudtasks=t.VERSIONS=void 0;const r=s(927);const o=s(731);const n=s(802);const i=s(187);t.VERSIONS={v2:o.cloudtasks_v2.Cloudtasks,v2beta2:n.cloudtasks_v2beta2.Cloudtasks,v2beta3:i.cloudtasks_v2beta3.Cloudtasks};function cloudtasks(e){return r.getAPI("cloudtasks",e,t.VERSIONS,this)}t.cloudtasks=cloudtasks;const c=new r.AuthPlus;t.auth=c},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.accessapproval_v1beta1=void 0;const r=s(927);var o;(function(e){class Accessapproval{constructor(e,t){this.context={_options:e||{},google:t};this.folders=new Resource$Folders(this.context);this.organizations=new Resource$Organizations(this.context);this.projects=new Resource$Projects(this.context)}}e.Accessapproval=Accessapproval;class Resource$Folders{constructor(e){this.context=e;this.approvalRequests=new Resource$Folders$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders=Resource$Folders;class Resource$Folders$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Folders$Approvalrequests=Resource$Folders$Approvalrequests;class Resource$Organizations{constructor(e){this.context=e;this.approvalRequests=new Resource$Organizations$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations=Resource$Organizations;class Resource$Organizations$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Approvalrequests=Resource$Organizations$Approvalrequests;class Resource$Projects{constructor(e){this.context=e;this.approvalRequests=new Resource$Projects$Approvalrequests(this.context)}deleteAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessApprovalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Approvalrequests{constructor(e){this.context=e}approve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:approve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}dismiss(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:dismiss").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://accessapproval.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/approvalRequests").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Approvalrequests=Resource$Projects$Approvalrequests})(o=t.accessapproval_v1beta1||(t.accessapproval_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.vision_v1p2beta1=void 0;const r=s(927);var o;(function(e){class Vision{constructor(e,t){this.context={_options:e||{},google:t};this.files=new Resource$Files(this.context);this.images=new Resource$Images(this.context);this.projects=new Resource$Projects(this.context)}}e.Vision=Vision;class Resource$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Files=Resource$Files;class Resource$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Images=Resource$Images;class Resource$Projects{constructor(e){this.context=e;this.files=new Resource$Projects$Files(this.context);this.images=new Resource$Projects$Images(this.context);this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Files=Resource$Projects$Files;class Resource$Projects$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Images=Resource$Projects$Images;class Resource$Projects$Locations{constructor(e){this.context=e;this.files=new Resource$Projects$Locations$Files(this.context);this.images=new Resource$Projects$Locations$Images(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Files=Resource$Projects$Locations$Files;class Resource$Projects$Locations$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p2beta1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Images=Resource$Projects$Locations$Images})(o=t.vision_v1p2beta1||(t.vision_v1p2beta1={}))},,function(e,t,s){function setup(e){createDebug.debug=createDebug;createDebug.default=createDebug;createDebug.coerce=coerce;createDebug.disable=disable;createDebug.enable=enable;createDebug.enabled=enabled;createDebug.humanize=s(317);Object.keys(e).forEach(t=>{createDebug[t]=e[t]});createDebug.instances=[];createDebug.names=[];createDebug.skips=[];createDebug.formatters={};function selectColor(e){let t=0;for(let s=0;s{if(t==="%%"){return t}n++;const o=createDebug.formatters[r];if(typeof o==="function"){const r=e[n];t=o.call(s,r);e.splice(n,1);n--}return t});createDebug.formatArgs.call(s,e);const i=s.log||createDebug.log;i.apply(s,e)}debug.namespace=e;debug.enabled=createDebug.enabled(e);debug.useColors=createDebug.useColors();debug.color=selectColor(e);debug.destroy=destroy;debug.extend=extend;if(typeof createDebug.init==="function"){createDebug.init(debug)}createDebug.instances.push(debug);return debug}function destroy(){const e=createDebug.instances.indexOf(this);if(e!==-1){createDebug.instances.splice(e,1);return true}return false}function extend(e,t){const s=createDebug(this.namespace+(typeof t==="undefined"?":":t)+e);s.log=this.log;return s}function enable(e){createDebug.save(e);createDebug.names=[];createDebug.skips=[];let t;const s=(typeof e==="string"?e:"").split(/[\s,]+/);const r=s.length;for(t=0;t"-"+e)].join(",");createDebug.enable("");return e}function enabled(e){if(e[e.length-1]==="*"){return true}let t;let s;for(t=0,s=createDebug.skips.length;tt){var r=new Error("Too few bytes to parse DER.");r.available=e.length();r.remaining=t;r.requested=s;throw r}}var n=function(e,t){var s=e.getByte();t--;if(s===128){return undefined}var r;var o=s&128;if(!o){r=s}else{var n=s&127;_checkBufferLength(e,t,n);r=e.getInt(n<<3)}if(r<0){throw new Error("Negative length: "+r)}return r};o.fromDer=function(e,t){if(t===undefined){t={strict:true,decodeBitStrings:true}}if(typeof t==="boolean"){t={strict:t,decodeBitStrings:true}}if(!("strict"in t)){t.strict=true}if(!("decodeBitStrings"in t)){t.decodeBitStrings=true}if(typeof e==="string"){e=r.util.createBuffer(e)}return _fromDer(e,e.length(),0,t)};function _fromDer(e,t,s,r){var i;_checkBufferLength(e,t,2);var c=e.getByte();t--;var u=c&192;var a=c&31;i=e.length();var f=n(e,t);t-=i-e.length();if(f!==undefined&&f>t){if(r.strict){var p=new Error("Too few bytes to read ASN.1 value.");p.available=e.length();p.remaining=t;p.requested=f;throw p}f=t}var h;var d;var l=(c&32)===32;if(l){h=[];if(f===undefined){for(;;){_checkBufferLength(e,t,2);if(e.bytes(2)===String.fromCharCode(0,0)){e.getBytes(2);t-=2;break}i=e.length();h.push(_fromDer(e,t,s+1,r));t-=i-e.length()}}else{while(f>0){i=e.length();h.push(_fromDer(e,f,s+1,r));t-=i-e.length();f-=i-e.length()}}}if(h===undefined&&u===o.Class.UNIVERSAL&&a===o.Type.BITSTRING){d=e.bytes(f)}if(h===undefined&&r.decodeBitStrings&&u===o.Class.UNIVERSAL&&a===o.Type.BITSTRING&&f>1){var P=e.read;var y=t;var I=0;if(a===o.Type.BITSTRING){_checkBufferLength(e,t,1);I=e.getByte();t--}if(I===0){try{i=e.length();var R={verbose:r.verbose,strict:true,decodeBitStrings:true};var g=_fromDer(e,t,s+1,R);var q=i-e.length();t-=q;if(a==o.Type.BITSTRING){q++}var x=g.tagClass;if(q===f&&(x===o.Class.UNIVERSAL||x===o.Class.CONTEXT_SPECIFIC)){h=[g]}}catch(e){}}if(h===undefined){e.read=P;t=y}}if(h===undefined){if(f===undefined){if(r.strict){throw new Error("Non-constructed ASN.1 object of indefinite length.")}f=t}if(a===o.Type.BMPSTRING){h="";for(;f>0;f-=2){_checkBufferLength(e,t,2);h+=String.fromCharCode(e.getInt16());t-=2}}else{h=e.getBytes(f)}}var $=d===undefined?null:{bitStringContents:d};return o.create(u,a,l,h,$)}o.toDer=function(e){var t=r.util.createBuffer();var s=e.tagClass|e.type;var n=r.util.createBuffer();var i=false;if("bitStringContents"in e){i=true;if(e.original){i=o.equals(e,e.original)}}if(i){n.putBytes(e.bitStringContents)}else if(e.composed){if(e.constructed){s|=32}else{n.putByte(0)}for(var c=0;c1&&(e.value.charCodeAt(0)===0&&(e.value.charCodeAt(1)&128)===0||e.value.charCodeAt(0)===255&&(e.value.charCodeAt(1)&128)===128)){n.putBytes(e.value.substr(1))}else{n.putBytes(e.value)}}}t.putByte(s);if(n.length()<=127){t.putByte(n.length()&127)}else{var u=n.length();var a="";do{a+=String.fromCharCode(u&255);u=u>>>8}while(u>0);t.putByte(a.length|128);for(var c=a.length-1;c>=0;--c){t.putByte(a.charCodeAt(c))}}t.putBuffer(n);return t};o.oidToDer=function(e){var t=e.split(".");var s=r.util.createBuffer();s.putByte(40*parseInt(t[0],10)+parseInt(t[1],10));var o,n,i,c;for(var u=2;u>>7;if(!o){c|=128}n.push(c);o=false}while(i>0);for(var a=n.length-1;a>=0;--a){s.putByte(n[a])}}return s};o.derToOid=function(e){var t;if(typeof e==="string"){e=r.util.createBuffer(e)}var s=e.getByte();t=Math.floor(s/40)+"."+s%40;var o=0;while(e.length()>0){s=e.getByte();o=o<<7;if(s&128){o+=s&127}else{t+="."+(o+s);o=0}}return t};o.utcTimeToDate=function(e){var t=new Date;var s=parseInt(e.substr(0,2),10);s=s>=50?1900+s:2e3+s;var r=parseInt(e.substr(2,2),10)-1;var o=parseInt(e.substr(4,2),10);var n=parseInt(e.substr(6,2),10);var i=parseInt(e.substr(8,2),10);var c=0;if(e.length>11){var u=e.charAt(10);var a=10;if(u!=="+"&&u!=="-"){c=parseInt(e.substr(10,2),10);a+=2}}t.setUTCFullYear(s,r,o);t.setUTCHours(n,i,c,0);if(a){u=e.charAt(a);if(u==="+"||u==="-"){var f=parseInt(e.substr(a+1,2),10);var p=parseInt(e.substr(a+4,2),10);var h=f*60+p;h*=6e4;if(u==="+"){t.setTime(+t-h)}else{t.setTime(+t+h)}}}return t};o.generalizedTimeToDate=function(e){var t=new Date;var s=parseInt(e.substr(0,4),10);var r=parseInt(e.substr(4,2),10)-1;var o=parseInt(e.substr(6,2),10);var n=parseInt(e.substr(8,2),10);var i=parseInt(e.substr(10,2),10);var c=parseInt(e.substr(12,2),10);var u=0;var a=0;var f=false;if(e.charAt(e.length-1)==="Z"){f=true}var p=e.length-5,h=e.charAt(p);if(h==="+"||h==="-"){var d=parseInt(e.substr(p+1,2),10);var l=parseInt(e.substr(p+4,2),10);a=d*60+l;a*=6e4;if(h==="+"){a*=-1}f=true}if(e.charAt(14)==="."){u=parseFloat(e.substr(14),10)*1e3}if(f){t.setUTCFullYear(s,r,o);t.setUTCHours(n,i,c,u);t.setTime(+t+a)}else{t.setFullYear(s,r,o);t.setHours(n,i,c,u)}return t};o.dateToUtcTime=function(e){if(typeof e==="string"){return e}var t="";var s=[];s.push((""+e.getUTCFullYear()).substr(2));s.push(""+(e.getUTCMonth()+1));s.push(""+e.getUTCDate());s.push(""+e.getUTCHours());s.push(""+e.getUTCMinutes());s.push(""+e.getUTCSeconds());for(var r=0;r=-128&&e<128){return t.putSignedInt(e,8)}if(e>=-32768&&e<32768){return t.putSignedInt(e,16)}if(e>=-8388608&&e<8388608){return t.putSignedInt(e,24)}if(e>=-2147483648&&e<2147483648){return t.putSignedInt(e,32)}var s=new Error("Integer too large; max is 32-bits.");s.integer=e;throw s};o.derToInteger=function(e){if(typeof e==="string"){e=r.util.createBuffer(e)}var t=e.length()*8;if(t>32){throw new Error("Integer too large; max is 32-bits.")}return e.getSignedInt(t)};o.validate=function(e,t,s,n){var i=false;if((e.tagClass===t.tagClass||typeof t.tagClass==="undefined")&&(e.type===t.type||typeof t.type==="undefined")){if(e.constructed===t.constructed||typeof t.constructed==="undefined"){i=true;if(t.value&&r.util.isArray(t.value)){var c=0;for(var u=0;i&&u0){n+="\n"}var c="";for(var u=0;u1){n+="0x"+r.util.bytesToHex(e.value.slice(1))}else{n+="(none)"}if(e.value.length>0){var h=e.value.charCodeAt(0);if(h==1){n+=" (1 unused bit shown)"}else if(h>1){n+=" ("+h+" unused bits shown)"}}}else if(e.type===o.Type.OCTETSTRING){if(!i.test(e.value)){n+="("+e.value+") "}n+="0x"+r.util.bytesToHex(e.value)}else if(e.type===o.Type.UTF8){n+=r.util.decodeUtf8(e.value)}else if(e.type===o.Type.PRINTABLESTRING||e.type===o.Type.IA5String){n+=e.value}else if(i.test(e.value)){n+="0x"+r.util.bytesToHex(e.value)}else if(e.value.length===0){n+="[null]"}else{n+=e.value}}return n}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.servicedirectory=t.VERSIONS=void 0;const r=s(927);const o=s(991);t.VERSIONS={v1beta1:o.servicedirectory_v1beta1.Servicedirectory};function servicedirectory(e){return r.getAPI("servicedirectory",e,t.VERSIONS,this)}t.servicedirectory=servicedirectory;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.jobs_v2=void 0;const r=s(927);var o;(function(e){class Jobs{constructor(e,t){this.context={_options:e||{},google:t};this.companies=new Resource$Companies(this.context);this.jobs=new Resource$Jobs(this.context);this.v2=new Resource$V2(this.context)}}e.Jobs=Jobs;class Resource$Companies{constructor(e){this.context=e;this.jobs=new Resource$Companies$Jobs(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/companies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/companies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Companies=Resource$Companies;class Resource$Companies$Jobs{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+companyName}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["companyName"],pathParams:["companyName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Companies$Jobs=Resource$Companies$Jobs;class Resource$Jobs{constructor(e){this.context=e}batchDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs:batchDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteByFilter(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs:deleteByFilter").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}histogram(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs:histogram").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForAlert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/jobs:searchForAlert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Jobs=Resource$Jobs;class Resource$V2{constructor(e){this.context=e}complete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v2:complete").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$V2=Resource$V2})(o=t.jobs_v2||(t.jobs_v2={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.remotebuildexecution_v2=void 0;const r=s(927);var o;(function(e){class Remotebuildexecution{constructor(e,t){this.context={_options:e||{},google:t};this.actionResults=new Resource$Actionresults(this.context);this.actions=new Resource$Actions(this.context);this.blobs=new Resource$Blobs(this.context);this.operations=new Resource$Operations(this.context);this.v2=new Resource$V2(this.context)}}e.Remotebuildexecution=Remotebuildexecution;class Resource$Actionresults{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["instanceName","hash","sizeBytes"],pathParams:["hash","instanceName","sizeBytes"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["instanceName","hash","sizeBytes"],pathParams:["hash","instanceName","sizeBytes"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Actionresults=Resource$Actionresults;class Resource$Actions{constructor(e){this.context=e}execute(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/actions:execute").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["instanceName"],pathParams:["instanceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Actions=Resource$Actions;class Resource$Blobs{constructor(e){this.context=e}batchRead(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/blobs:batchRead").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["instanceName"],pathParams:["instanceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}batchUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/blobs:batchUpdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["instanceName"],pathParams:["instanceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}findMissing(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/blobs:findMissing").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["instanceName"],pathParams:["instanceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getTree(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["instanceName","hash","sizeBytes"],pathParams:["hash","instanceName","sizeBytes"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Blobs=Resource$Blobs;class Resource$Operations{constructor(e){this.context=e}waitExecution(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}:waitExecution").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$V2{constructor(e){this.context=e}getCapabilities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://remotebuildexecution.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+instanceName}/capabilities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["instanceName"],pathParams:["instanceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$V2=Resource$V2})(o=t.remotebuildexecution_v2||(t.remotebuildexecution_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudtrace_v2=void 0;const r=s(927);var o;(function(e){class Cloudtrace{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudtrace=Cloudtrace;class Resource$Projects{constructor(e){this.context=e;this.traces=new Resource$Projects$Traces(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Traces{constructor(e){this.context=e;this.spans=new Resource$Projects$Traces$Spans(this.context)}batchWrite(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtrace.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}/traces:batchWrite").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Traces=Resource$Projects$Traces;class Resource$Projects$Traces$Spans{constructor(e){this.context=e}createSpan(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtrace.googleapis.com/";const c={options:Object.assign({url:(i+"/v2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Traces$Spans=Resource$Projects$Traces$Spans})(o=t.cloudtrace_v2||(t.cloudtrace_v2={}))},,,function(e,t,s){"use strict";var r=s(822);e.exports=Readable;var o=s(262);var n;Readable.ReadableState=ReadableState;var i=s(614).EventEmitter;var c=function(e,t){return e.listeners(t).length};var u=s(903);var a=s(78).Buffer;var f=global.Uint8Array||function(){};function _uint8ArrayToBuffer(e){return a.from(e)}function _isUint8Array(e){return a.isBuffer(e)||e instanceof f}var p=Object.create(s(683));p.inherits=s(689);var h=s(669);var d=void 0;if(h&&h.debuglog){d=h.debuglog("stream")}else{d=function(){}}var l=s(456);var P=s(874);var y;p.inherits(Readable,u);var I=["error","close","destroy","pause","resume"];function prependListener(e,t,s){if(typeof e.prependListener==="function")return e.prependListener(t,s);if(!e._events||!e._events[t])e.on(t,s);else if(o(e._events[t]))e._events[t].unshift(s);else e._events[t]=[s,e._events[t]]}function ReadableState(e,t){n=n||s(722);e=e||{};var r=t instanceof n;this.objectMode=!!e.objectMode;if(r)this.objectMode=this.objectMode||!!e.readableObjectMode;var o=e.highWaterMark;var i=e.readableHighWaterMark;var c=this.objectMode?16:16*1024;if(o||o===0)this.highWaterMark=o;else if(r&&(i||i===0))this.highWaterMark=i;else this.highWaterMark=c;this.highWaterMark=Math.floor(this.highWaterMark);this.buffer=new l;this.length=0;this.pipes=null;this.pipesCount=0;this.flowing=null;this.ended=false;this.endEmitted=false;this.reading=false;this.sync=true;this.needReadable=false;this.emittedReadable=false;this.readableListening=false;this.resumeScheduled=false;this.destroyed=false;this.defaultEncoding=e.defaultEncoding||"utf8";this.awaitDrain=0;this.readingMore=false;this.decoder=null;this.encoding=null;if(e.encoding){if(!y)y=s(432).StringDecoder;this.decoder=new y(e.encoding);this.encoding=e.encoding}}function Readable(e){n=n||s(722);if(!(this instanceof Readable))return new Readable(e);this._readableState=new ReadableState(e,this);this.readable=true;if(e){if(typeof e.read==="function")this._read=e.read;if(typeof e.destroy==="function")this._destroy=e.destroy}u.call(this)}Object.defineProperty(Readable.prototype,"destroyed",{get:function(){if(this._readableState===undefined){return false}return this._readableState.destroyed},set:function(e){if(!this._readableState){return}this._readableState.destroyed=e}});Readable.prototype.destroy=P.destroy;Readable.prototype._undestroy=P.undestroy;Readable.prototype._destroy=function(e,t){this.push(null);t(e)};Readable.prototype.push=function(e,t){var s=this._readableState;var r;if(!s.objectMode){if(typeof e==="string"){t=t||s.defaultEncoding;if(t!==s.encoding){e=a.from(e,t);t=""}r=true}}else{r=true}return readableAddChunk(this,e,t,false,r)};Readable.prototype.unshift=function(e){return readableAddChunk(this,e,null,true,false)};function readableAddChunk(e,t,s,r,o){var n=e._readableState;if(t===null){n.reading=false;onEofChunk(e,n)}else{var i;if(!o)i=chunkInvalid(n,t);if(i){e.emit("error",i)}else if(n.objectMode||t&&t.length>0){if(typeof t!=="string"&&!n.objectMode&&Object.getPrototypeOf(t)!==a.prototype){t=_uint8ArrayToBuffer(t)}if(r){if(n.endEmitted)e.emit("error",new Error("stream.unshift() after end event"));else addChunk(e,n,t,true)}else if(n.ended){e.emit("error",new Error("stream.push() after EOF"))}else{n.reading=false;if(n.decoder&&!s){t=n.decoder.write(t);if(n.objectMode||t.length!==0)addChunk(e,n,t,false);else maybeReadMore(e,n)}else{addChunk(e,n,t,false)}}}else if(!r){n.reading=false}}return needMoreData(n)}function addChunk(e,t,s,r){if(t.flowing&&t.length===0&&!t.sync){e.emit("data",s);e.read(0)}else{t.length+=t.objectMode?1:s.length;if(r)t.buffer.unshift(s);else t.buffer.push(s);if(t.needReadable)emitReadable(e)}maybeReadMore(e,t)}function chunkInvalid(e,t){var s;if(!_isUint8Array(t)&&typeof t!=="string"&&t!==undefined&&!e.objectMode){s=new TypeError("Invalid non-string/buffer chunk")}return s}function needMoreData(e){return!e.ended&&(e.needReadable||e.length=R){e=R}else{e--;e|=e>>>1;e|=e>>>2;e|=e>>>4;e|=e>>>8;e|=e>>>16;e++}return e}function howMuchToRead(e,t){if(e<=0||t.length===0&&t.ended)return 0;if(t.objectMode)return 1;if(e!==e){if(t.flowing&&t.length)return t.buffer.head.data.length;else return t.length}if(e>t.highWaterMark)t.highWaterMark=computeNewHighWaterMark(e);if(e<=t.length)return e;if(!t.ended){t.needReadable=true;return 0}return t.length}Readable.prototype.read=function(e){d("read",e);e=parseInt(e,10);var t=this._readableState;var s=e;if(e!==0)t.emittedReadable=false;if(e===0&&t.needReadable&&(t.length>=t.highWaterMark||t.ended)){d("read: emitReadable",t.length,t.ended);if(t.length===0&&t.ended)endReadable(this);else emitReadable(this);return null}e=howMuchToRead(e,t);if(e===0&&t.ended){if(t.length===0)endReadable(this);return null}var r=t.needReadable;d("need readable",r);if(t.length===0||t.length-e0)o=fromList(e,t);else o=null;if(o===null){t.needReadable=true;e=0}else{t.length-=e}if(t.length===0){if(!t.ended)t.needReadable=true;if(s!==e&&t.ended)endReadable(this)}if(o!==null)this.emit("data",o);return o};function onEofChunk(e,t){if(t.ended)return;if(t.decoder){var s=t.decoder.end();if(s&&s.length){t.buffer.push(s);t.length+=t.objectMode?1:s.length}}t.ended=true;emitReadable(e)}function emitReadable(e){var t=e._readableState;t.needReadable=false;if(!t.emittedReadable){d("emitReadable",t.flowing);t.emittedReadable=true;if(t.sync)r.nextTick(emitReadable_,e);else emitReadable_(e)}}function emitReadable_(e){d("emit readable");e.emit("readable");flow(e)}function maybeReadMore(e,t){if(!t.readingMore){t.readingMore=true;r.nextTick(maybeReadMore_,e,t)}}function maybeReadMore_(e,t){var s=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length1&&indexOf(o.pipes,e)!==-1)&&!a){d("false write response, pause",s._readableState.awaitDrain);s._readableState.awaitDrain++;f=true}s.pause()}}function onerror(t){d("onerror",t);unpipe();e.removeListener("error",onerror);if(c(e,"error")===0)e.emit("error",t)}prependListener(e,"error",onerror);function onclose(){e.removeListener("finish",onfinish);unpipe()}e.once("close",onclose);function onfinish(){d("onfinish");e.removeListener("close",onclose);unpipe()}e.once("finish",onfinish);function unpipe(){d("unpipe");s.unpipe(e)}e.emit("pipe",s);if(!o.flowing){d("pipe resume");s.resume()}return e};function pipeOnDrain(e){return function(){var t=e._readableState;d("pipeOnDrain",t.awaitDrain);if(t.awaitDrain)t.awaitDrain--;if(t.awaitDrain===0&&c(e,"data")){t.flowing=true;flow(e)}}}Readable.prototype.unpipe=function(e){var t=this._readableState;var s={hasUnpiped:false};if(t.pipesCount===0)return this;if(t.pipesCount===1){if(e&&e!==t.pipes)return this;if(!e)e=t.pipes;t.pipes=null;t.pipesCount=0;t.flowing=false;if(e)e.emit("unpipe",this,s);return this}if(!e){var r=t.pipes;var o=t.pipesCount;t.pipes=null;t.pipesCount=0;t.flowing=false;for(var n=0;n=t.length){if(t.decoder)s=t.buffer.join("");else if(t.buffer.length===1)s=t.buffer.head.data;else s=t.buffer.concat(t.length);t.buffer.clear()}else{s=fromListPartial(e,t.buffer,t.decoder)}return s}function fromListPartial(e,t,s){var r;if(en.length?n.length:e;if(i===n.length)o+=n;else o+=n.slice(0,e);e-=i;if(e===0){if(i===n.length){++r;if(s.next)t.head=s.next;else t.head=t.tail=null}else{t.head=s;s.data=n.slice(i)}break}++r}t.length-=r;return o}function copyFromBuffer(e,t){var s=a.allocUnsafe(e);var r=t.head;var o=1;r.data.copy(s);e-=r.data.length;while(r=r.next){var n=r.data;var i=e>n.length?n.length:e;n.copy(s,s.length-e,0,i);e-=i;if(e===0){if(i===n.length){++o;if(r.next)t.head=r.next;else t.head=t.tail=null}else{t.head=r;r.data=n.slice(i)}break}++o}t.length-=o;return s}function endReadable(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');if(!t.endEmitted){t.ended=true;r.nextTick(endReadableNT,t,e)}}function endReadableNT(e,t){if(!e.endEmitted&&e.length===0){e.endEmitted=true;t.readable=false;t.emit("end")}}function indexOf(e,t){for(var s=0,r=e.length;s8?3:1;var y=[];var I=[0,0,1,1,1,1,1,1,0,1,1,1,1,1,1,0];var R=0,g;for(var q=0;q>>4^$)&252645135;$^=g;x^=g<<4;g=($>>>-16^x)&65535;x^=g;$^=g<<-16;g=(x>>>2^$)&858993459;$^=g;x^=g<<2;g=($>>>-16^x)&65535;x^=g;$^=g<<-16;g=(x>>>1^$)&1431655765;$^=g;x^=g<<1;g=($>>>8^x)&16711935;x^=g;$^=g<<8;g=(x>>>1^$)&1431655765;$^=g;x^=g<<1;g=x<<8|$>>>20&240;x=$<<24|$<<8&16711680|$>>>8&65280|$>>>24&240;$=g;for(var j=0;j>>26;$=$<<2|$>>>26}else{x=x<<1|x>>>27;$=$<<1|$>>>27}x&=-15;$&=-15;var v=t[x>>>28]|s[x>>>24&15]|r[x>>>20&15]|o[x>>>16&15]|n[x>>>12&15]|i[x>>>8&15]|c[x>>>4&15];var A=u[$>>>28]|a[$>>>24&15]|f[$>>>20&15]|p[$>>>16&15]|h[$>>>12&15]|d[$>>>8&15]|l[$>>>4&15];g=(A>>>16^v)&65535;y[R++]=v^g;y[R++]=A^g<<16}}return y}function _updateBlock(e,t,s,r){var h=e.length===32?3:9;var d;if(h===3){d=r?[30,-2,-2]:[0,32,2]}else{d=r?[94,62,-2,32,64,2,30,-2,-2]:[0,32,2,62,30,-2,64,96,2]}var l;var P=t[0];var y=t[1];l=(P>>>4^y)&252645135;y^=l;P^=l<<4;l=(P>>>16^y)&65535;y^=l;P^=l<<16;l=(y>>>2^P)&858993459;P^=l;y^=l<<2;l=(y>>>8^P)&16711935;P^=l;y^=l<<8;l=(P>>>1^y)&1431655765;y^=l;P^=l<<1;P=P<<1|P>>>31;y=y<<1|y>>>31;for(var I=0;I>>4|y<<28)^e[q+1];l=P;P=y;y=l^(n[x>>>24&63]|c[x>>>16&63]|a[x>>>8&63]|p[x&63]|o[$>>>24&63]|i[$>>>16&63]|u[$>>>8&63]|f[$&63])}l=P;P=y;y=l}P=P>>>1|P<<31;y=y>>>1|y<<31;l=(P>>>1^y)&1431655765;y^=l;P^=l<<1;l=(y>>>8^P)&16711935;P^=l;y^=l<<8;l=(y>>>2^P)&858993459;P^=l;y^=l<<2;l=(P>>>16^y)&65535;y^=l;P^=l<<16;l=(P>>>4^y)&252645135;y^=l;P^=l<<4;s[0]=P;s[1]=y}function _createCipher(e){e=e||{};var t=(e.mode||"CBC").toUpperCase();var s="DES-"+t;var o;if(e.decrypt){o=r.cipher.createDecipher(s,e.key)}else{o=r.cipher.createCipher(s,e.key)}var n=o.start;o.start=function(e,t){var s=null;if(t instanceof r.util.ByteBuffer){s=t;t={}}t=t||{};t.output=s;t.iv=e;n.call(o,t)};return o}},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.searchconsole=t.VERSIONS=void 0;const r=s(927);const o=s(601);t.VERSIONS={v1:o.searchconsole_v1.Searchconsole};function searchconsole(e){return r.getAPI("searchconsole",e,t.VERSIONS,this)}t.searchconsole=searchconsole;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(239);s(152);e.exports=r.log=r.log||{};r.log.levels=["none","error","warning","info","debug","verbose","max"];var o={};var n=[];var i=null;r.log.LEVEL_LOCKED=1<<1;r.log.NO_LEVEL_CHECK=1<<2;r.log.INTERPOLATE=1<<3;for(var c=0;c>8)&65535}return s});t.default=a},function(e,t,s){"use strict";function _classCallCheck(e,t){if(!(e instanceof t)){throw new TypeError("Cannot call a class as a function")}}var r=s(371).Buffer;var o=s(669);function copyBuffer(e,t,s){e.copy(t,s)}e.exports=function(){function BufferList(){_classCallCheck(this,BufferList);this.head=null;this.tail=null;this.length=0}BufferList.prototype.push=function push(e){var t={data:e,next:null};if(this.length>0)this.tail.next=t;else this.head=t;this.tail=t;++this.length};BufferList.prototype.unshift=function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length};BufferList.prototype.shift=function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e};BufferList.prototype.clear=function clear(){this.head=this.tail=null;this.length=0};BufferList.prototype.join=function join(e){if(this.length===0)return"";var t=this.head;var s=""+t.data;while(t=t.next){s+=e+t.data}return s};BufferList.prototype.concat=function concat(e){if(this.length===0)return r.alloc(0);if(this.length===1)return this.head.data;var t=r.allocUnsafe(e>>>0);var s=this.head;var o=0;while(s){copyBuffer(s.data,t,o);o+=s.data.length;s=s.next}return t};return BufferList}();if(o&&o.inspect&&o.inspect.custom){e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e}}},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudtasks_v2beta2=void 0;const r=s(927);var o;(function(e){class Cloudtasks{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudtasks=Cloudtasks;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.queues=new Resource$Projects$Locations$Queues(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Queues{constructor(e){this.context=e;this.tasks=new Resource$Projects$Locations$Queues$Tasks(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+parent}/queues").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+parent}/queues").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}pause(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:pause").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}purge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:purge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Queues=Resource$Projects$Locations$Queues;class Resource$Projects$Locations$Queues$Tasks{constructor(e){this.context=e}acknowledge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:acknowledge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}cancelLease(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:cancelLease").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+parent}/tasks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}lease(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+parent}/tasks:lease").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+parent}/tasks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}renewLease(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:renewLease").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudtasks.googleapis.com/";const c={options:Object.assign({url:(i+"/v2beta2/{+name}:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Queues$Tasks=Resource$Projects$Locations$Queues$Tasks})(o=t.cloudtasks_v2beta2||(t.cloudtasks_v2beta2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(s(417));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function md5(e){if(Array.isArray(e)){e=Buffer.from(e)}else if(typeof e==="string"){e=Buffer.from(e,"utf8")}return r.default.createHash("md5").update(e).digest()}var o=md5;t.default=o},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.speech_v1p1beta1=void 0;const r=s(927);var o;(function(e){class Speech{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context);this.speech=new Resource$Speech(this.context)}}e.Speech=Speech;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/operations/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.operations=new Resource$Projects$Locations$Operations(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Speech{constructor(e){this.context=e}longrunningrecognize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/speech:longrunningrecognize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}recognize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://speech.googleapis.com/";const c={options:Object.assign({url:(i+"/v1p1beta1/speech:recognize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Speech=Resource$Speech})(o=t.speech_v1p1beta1||(t.speech_v1p1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.vision_v1=void 0;const r=s(927);var o;(function(e){class Vision{constructor(e,t){this.context={_options:e||{},google:t};this.files=new Resource$Files(this.context);this.images=new Resource$Images(this.context);this.locations=new Resource$Locations(this.context);this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context)}}e.Vision=Vision;class Resource$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Files=Resource$Files;class Resource$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Images=Resource$Images;class Resource$Locations{constructor(e){this.context=e;this.operations=new Resource$Locations$Operations(this.context)}}e.Resource$Locations=Resource$Locations;class Resource$Locations$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Locations$Operations=Resource$Locations$Operations;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Projects{constructor(e){this.context=e;this.files=new Resource$Projects$Files(this.context);this.images=new Resource$Projects$Images(this.context);this.locations=new Resource$Projects$Locations(this.context);this.operations=new Resource$Projects$Operations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Files=Resource$Projects$Files;class Resource$Projects$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Images=Resource$Projects$Images;class Resource$Projects$Locations{constructor(e){this.context=e;this.files=new Resource$Projects$Locations$Files(this.context);this.images=new Resource$Projects$Locations$Images(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context);this.products=new Resource$Projects$Locations$Products(this.context);this.productSets=new Resource$Projects$Locations$Productsets(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Files{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/files:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/files:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Files=Resource$Projects$Locations$Files;class Resource$Projects$Locations$Images{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/images:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}asyncBatchAnnotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/images:asyncBatchAnnotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Images=Resource$Projects$Locations$Images;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Locations$Products{constructor(e){this.context=e;this.referenceImages=new Resource$Projects$Locations$Products$Referenceimages(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/products").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/products").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}purge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/products:purge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Products=Resource$Projects$Locations$Products;class Resource$Projects$Locations$Products$Referenceimages{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/referenceImages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/referenceImages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Products$Referenceimages=Resource$Projects$Locations$Products$Referenceimages;class Resource$Projects$Locations$Productsets{constructor(e){this.context=e;this.products=new Resource$Projects$Locations$Productsets$Products(this.context)}addProduct(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:addProduct").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/productSets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/productSets:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/productSets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeProduct(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:removeProduct").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Productsets=Resource$Projects$Locations$Productsets;class Resource$Projects$Locations$Productsets$Products{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/products").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Productsets$Products=Resource$Projects$Locations$Productsets$Products;class Resource$Projects$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://vision.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations})(o=t.vision_v1||(t.vision_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.firebasedynamiclinks=t.VERSIONS=void 0;const r=s(927);const o=s(907);t.VERSIONS={v1:o.firebasedynamiclinks_v1.Firebasedynamiclinks};function firebasedynamiclinks(e){return r.getAPI("firebasedynamiclinks",e,t.VERSIONS,this)}t.firebasedynamiclinks=firebasedynamiclinks;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.websecurityscanner_v1alpha=void 0;const r=s(927);var o;(function(e){class Websecurityscanner{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Websecurityscanner=Websecurityscanner;class Resource$Projects{constructor(e){this.context=e;this.scanConfigs=new Resource$Projects$Scanconfigs(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Scanconfigs{constructor(e){this.context=e;this.scanRuns=new Resource$Projects$Scanconfigs$Scanruns(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/scanConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/scanConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}:start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs=Resource$Projects$Scanconfigs;class Resource$Projects$Scanconfigs$Scanruns{constructor(e){this.context=e;this.crawledUrls=new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context);this.findings=new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context);this.findingTypeStats=new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/scanRuns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}:stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns=Resource$Projects$Scanconfigs$Scanruns;class Resource$Projects$Scanconfigs$Scanruns$Crawledurls{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/crawledUrls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Crawledurls=Resource$Projects$Scanconfigs$Scanruns$Crawledurls;class Resource$Projects$Scanconfigs$Scanruns$Findings{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/findings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Findings=Resource$Projects$Scanconfigs$Scanruns$Findings;class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://websecurityscanner.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha/{+parent}/findingTypeStats").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats=Resource$Projects$Scanconfigs$Scanruns$Findingtypestats})(o=t.websecurityscanner_v1alpha||(t.websecurityscanner_v1alpha={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.fitness=t.VERSIONS=void 0;const r=s(927);const o=s(740);t.VERSIONS={v1:o.fitness_v1.Fitness};function fitness(e){return r.getAPI("fitness",e,t.VERSIONS,this)}t.fitness=fitness;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(479);var o;(function(e){e["APP_ENGINE"]="APP_ENGINE";e["KUBERNETES_ENGINE"]="KUBERNETES_ENGINE";e["CLOUD_FUNCTIONS"]="CLOUD_FUNCTIONS";e["COMPUTE_ENGINE"]="COMPUTE_ENGINE";e["NONE"]="NONE"})(o=t.GCPEnv||(t.GCPEnv={}));let n;function clear(){n=undefined}t.clear=clear;async function getEnv(){if(n){return n}n=getEnvMemoized();return n}t.getEnv=getEnv;async function getEnvMemoized(){let e=o.NONE;if(isAppEngine()){e=o.APP_ENGINE}else if(isCloudFunction()){e=o.CLOUD_FUNCTIONS}else if(await isComputeEngine()){if(await isKubernetesEngine()){e=o.KUBERNETES_ENGINE}else{e=o.COMPUTE_ENGINE}}else{e=o.NONE}return e}function isAppEngine(){return!!(process.env.GAE_SERVICE||process.env.GAE_MODULE_NAME)}function isCloudFunction(){return!!(process.env.FUNCTION_NAME||process.env.FUNCTION_TARGET)}async function isKubernetesEngine(){try{await r.instance("attributes/cluster-name");return true}catch(e){return false}}async function isComputeEngine(){return r.isAvailable()}},,function(e,t,s){"use strict";var r=s(149).Buffer;var o=s(192);var n=128,i=0,c=32,u=16,a=2,f=u|c|i<<6,p=a|i<<6;function base64Url(e){return e.replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function signatureAsBuffer(e){if(r.isBuffer(e)){return e}else if("string"===typeof e){return r.from(e,"base64")}throw new TypeError("ECDSA signature must be a Base64 string or a Buffer")}function derToJose(e,t){e=signatureAsBuffer(e);var s=o(t);var i=s+1;var c=e.length;var u=0;if(e[u++]!==f){throw new Error('Could not find expected "seq"')}var a=e[u++];if(a===(n|1)){a=e[u++]}if(c-u=n;if(o){--r}return r}function joseToDer(e,t){e=signatureAsBuffer(e);var s=o(t);var i=e.length;if(i!==s*2){throw new TypeError('"'+t+'" signatures must be "'+s*2+'" bytes, saw "'+i+'"')}var c=countPadding(e,0,s);var u=countPadding(e,s,e.length);var a=s-c;var h=s-u;var d=1+1+a+1+1+h;var l=d>>2;for(var o=0;o>8^d&255^99;i[s]=d;c[d]=s;l=e[d];n=e[s];p=e[n];h=e[p];P=l<<24^d<<16^d<<8^(d^l);y=(n^p^h)<<24^(s^h)<<16^(s^p^h)<<8^(s^n^h);for(var I=0;I<4;++I){a[I][s]=P;f[I][d]=y;P=P<<24|P>>>8;y=y<<24|y>>>8}if(s===0){s=r=1}else{s=n^e[e[e[n^h]]];r^=e[e[r]]}}}function _expandKey(e,t){var s=e.slice(0);var r,o=1;var c=s.length;var a=c+6+1;var p=n*a;for(var h=c;h>>16&255]<<24^i[r>>>8&255]<<16^i[r&255]<<8^i[r>>>24]^u[o]<<24;o++}else if(c>6&&h%c===4){r=i[r>>>24]<<24^i[r>>>16&255]<<16^i[r>>>8&255]<<8^i[r&255]}s[h]=s[h-c]^r}if(t){var d;var l=f[0];var P=f[1];var y=f[2];var I=f[3];var R=s.slice(0);p=s.length;for(var h=0,g=p-n;h>>24]]^P[i[d>>>16&255]]^y[i[d>>>8&255]]^I[i[d&255]]}}}s=R}return s}function _updateBlock(e,t,s,r){var o=e.length/4-1;var n,u,p,h,d;if(r){n=f[0];u=f[1];p=f[2];h=f[3];d=c}else{n=a[0];u=a[1];p=a[2];h=a[3];d=i}var l,P,y,I,R,g,q;l=t[0]^e[0];P=t[r?3:1]^e[1];y=t[2]^e[2];I=t[r?1:3]^e[3];var x=3;for(var $=1;$>>24]^u[P>>>16&255]^p[y>>>8&255]^h[I&255]^e[++x];g=n[P>>>24]^u[y>>>16&255]^p[I>>>8&255]^h[l&255]^e[++x];q=n[y>>>24]^u[I>>>16&255]^p[l>>>8&255]^h[P&255]^e[++x];I=n[I>>>24]^u[l>>>16&255]^p[P>>>8&255]^h[y&255]^e[++x];l=R;P=g;y=q}s[0]=d[l>>>24]<<24^d[P>>>16&255]<<16^d[y>>>8&255]<<8^d[I&255]^e[++x];s[r?3:1]=d[P>>>24]<<24^d[y>>>16&255]<<16^d[I>>>8&255]<<8^d[l&255]^e[++x];s[2]=d[y>>>24]<<24^d[I>>>16&255]<<16^d[l>>>8&255]<<8^d[P&255]^e[++x];s[r?1:3]=d[I>>>24]<<24^d[l>>>16&255]<<16^d[P>>>8&255]<<8^d[y&255]^e[++x]}function _createCipher(e){e=e||{};var t=(e.mode||"CBC").toUpperCase();var s="AES-"+t;var o;if(e.decrypt){o=r.cipher.createDecipher(s,e.key)}else{o=r.cipher.createCipher(s,e.key)}var n=o.start;o.start=function(e,t){var s=null;if(t instanceof r.util.ByteBuffer){s=t;t={}}t=t||{};t.output=s;t.iv=e;n.call(o,t)};return o}},function(e,t,s){if(typeof process==="undefined"||process.type==="renderer"||process.browser===true||process.__nwjs){e.exports=s(487)}else{e.exports=s(464)}},function(e,t,s){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});const o=r(s(374));const n=r(s(454));const i=r(s(191));const c=r(s(323));const u=r(s(835));const a=s(259);const f=s(642);const p=hasURL()?window.URL:u.default.URL;const h=hasFetch()?window.fetch:n.default;function hasWindow(){return typeof window!=="undefined"&&!!window}function hasURL(){return hasWindow()&&!!window.URL}function hasFetch(){return hasWindow()&&!!window.fetch}let d;function loadProxy(){const e=process.env.HTTPS_PROXY||process.env.https_proxy||process.env.HTTP_PROXY||process.env.http_proxy;if(e){d=s(338)}return e}loadProxy();class Gaxios{constructor(e){this.agentCache=new Map;this.defaults=e||{}}async request(e={}){e=this.validateOpts(e);return this._request(e)}async _request(e={}){try{let t;if(e.adapter){t=await e.adapter(e)}else{const s=await h(e.url,e);const r=await this.getResponseData(e,s);t=this.translateResponse(e,s,r)}if(!e.validateStatus(t.status)){throw new a.GaxiosError(`Request failed with status code ${t.status}`,e,t)}return t}catch(t){const s=t;s.config=e;const{shouldRetry:r,config:o}=await f.getRetryConfig(t);if(r&&o){s.config.retryConfig.currentRetryAttempt=o.retryConfig.currentRetryAttempt;return this._request(s.config)}throw s}}async getResponseData(e,t){switch(e.responseType){case"stream":return t.body;case"json":{let e=await t.text();try{e=JSON.parse(e)}catch(e){}return e}case"arraybuffer":return t.arrayBuffer();case"blob":return t.blob();default:return t.text()}}validateOpts(e){const t=o.default(true,{},this.defaults,e);if(!t.url){throw new Error("URL is required.")}const s=t.baseUrl||t.baseURL;if(s){t.url=s+t.url}const r=new p(t.url);t.url=`${r.origin}${r.pathname}`;t.params=o.default(i.default.parse(r.search.substr(1)),t.params);t.paramsSerializer=t.paramsSerializer||this.paramsSerializer;if(t.params){r.search=t.paramsSerializer(t.params)}t.url=r.href;if(typeof e.maxContentLength==="number"){t.size=e.maxContentLength}if(typeof e.maxRedirects==="number"){t.follow=e.maxRedirects}t.headers=t.headers||{};if(t.data){if(c.default.readable(t.data)){t.body=t.data}else if(typeof t.data==="object"){t.body=JSON.stringify(t.data);if(!t.headers["Content-Type"]||!t.headers["Content-Type"].includes("json")){t.headers["Content-Type"]="application/json"}}else{t.body=t.data}}t.validateStatus=t.validateStatus||this.validateStatus;t.responseType=t.responseType||"json";if(!t.headers["Accept"]&&t.responseType==="json"){t.headers["Accept"]="application/json"}t.method=t.method||"GET";const n=loadProxy();if(n){if(this.agentCache.has(n)){t.agent=this.agentCache.get(n)}else{t.agent=new d(n);this.agentCache.set(n,t.agent)}}return t}validateStatus(e){return e>=200&&e<300}paramsSerializer(e){return i.default.stringify(e)}translateResponse(e,t,s){const r={};t.headers.forEach((e,t)=>{r[t]=e});return{config:e,data:s,headers:r,status:t.status,statusText:t.statusText,request:{responseURL:t.url}}}}t.Gaxios=Gaxios},function(e,t,s){"use strict";var r=Object.keys||function(e){var t=[];for(var s in e){t.push(s)}return t};e.exports=Duplex;var o=s(242);var n=s(440);s(689)(Duplex,o);{var i=r(n.prototype);for(var c=0;ct(),t)}else{return this.fromStreamAsync(e)}}async fromStreamAsync(e){return new Promise((t,s)=>{if(!e){return s(new Error("Must pass in a stream containing the user refresh token."))}let r="";e.setEncoding("utf8").on("error",s).on("data",e=>r+=e).on("end",()=>{try{const e=JSON.parse(r);this.fromJSON(e);return t()}catch(e){return s(e)}})})}}t.UserRefreshClient=UserRefreshClient},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.websecurityscanner=t.VERSIONS=void 0;const r=s(927);const o=s(174);const n=s(810);const i=s(381);t.VERSIONS={v1:o.websecurityscanner_v1.Websecurityscanner,v1alpha:n.websecurityscanner_v1alpha.Websecurityscanner,v1beta:i.websecurityscanner_v1beta.Websecurityscanner};function websecurityscanner(e){return r.getAPI("websecurityscanner",e,t.VERSIONS,this)}t.websecurityscanner=websecurityscanner;const c=new r.AuthPlus;t.auth=c},function(e,t,s){var r=s(239);s(152);s(349);s(707);(function(){if(r.prime){e.exports=r.prime;return}var t=e.exports=r.prime=r.prime||{};var s=r.jsbn.BigInteger;var o=[6,4,2,4,2,4,6,2];var n=new s(null);n.fromInt(30);var i=function(e,t){return e|t};t.generateProbablePrime=function(e,t,s){if(typeof t==="function"){s=t;t={}}t=t||{};var o=t.algorithm||"PRIMEINC";if(typeof o==="string"){o={name:o}}o.options=o.options||{};var n=t.prng||r.random;var i={nextBytes:function(e){var t=n.getBytesSync(e.length);for(var s=0;st){e=generateRandom(t,s)}if(e.isProbablePrime(i)){return u(null,e)}e.dAddOffset(o[n++%8],0)}while(c<0||+new Date-ae){i=generateRandom(e,t)}var d=i.toString(16);o.target.postMessage({hex:d,workLoad:u});i.dAddOffset(a,0)}}}function generateRandom(e,t){var r=new s(e,t);var o=e-1;if(!r.testBit(o)){r.bitwiseTo(s.ONE.shiftLeft(o),i,r)}r.dAddOffset(31-r.mod(n).byteValue(),0);return r}function getMillerRabinTests(e){if(e<=100)return 27;if(e<=150)return 18;if(e<=200)return 15;if(e<=250)return 12;if(e<=300)return 9;if(e<=350)return 8;if(e<=400)return 7;if(e<=500)return 6;if(e<=600)return 5;if(e<=800)return 4;if(e<=1250)return 3;return 2}})()},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=r.Buffer.from&&r.Buffer.alloc&&r.Buffer.allocUnsafe&&r.Buffer.allocUnsafeSlow?r.Buffer.from:function(e){return new r.Buffer(e)};t.default=o},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.cloudbuild_v1alpha2=void 0;const r=s(927);var o;(function(e){class Cloudbuild{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Cloudbuild=Cloudbuild;class Resource$Projects{constructor(e){this.context=e;this.workerPools=new Resource$Projects$Workerpools(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Workerpools{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+parent}/workerPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+parent}/workerPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://cloudbuild.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Workerpools=Resource$Projects$Workerpools})(o=t.cloudbuild_v1alpha2||(t.cloudbuild_v1alpha2={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.abusiveexperiencereport=t.VERSIONS=void 0;const r=s(927);const o=s(128);t.VERSIONS={v1:o.abusiveexperiencereport_v1.Abusiveexperiencereport};function abusiveexperiencereport(e){return r.getAPI("abusiveexperiencereport",e,t.VERSIONS,this)}t.abusiveexperiencereport=abusiveexperiencereport;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){t.alphasort=alphasort;t.alphasorti=alphasorti;t.setopts=setopts;t.ownProp=ownProp;t.makeAbs=makeAbs;t.finish=finish;t.mark=mark;t.isIgnored=isIgnored;t.childrenIgnored=childrenIgnored;function ownProp(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var r=s(622);var o=s(93);var n=s(350);var i=o.Minimatch;function alphasorti(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}function alphasort(e,t){return e.localeCompare(t)}function setupIgnores(e,t){e.ignore=t.ignore||[];if(!Array.isArray(e.ignore))e.ignore=[e.ignore];if(e.ignore.length){e.ignore=e.ignore.map(ignoreMap)}}function ignoreMap(e){var t=null;if(e.slice(-3)==="/**"){var s=e.replace(/(\/\*\*)+$/,"");t=new i(s,{dot:true})}return{matcher:new i(e,{dot:true}),gmatcher:t}}function setopts(e,t,s){if(!s)s={};if(s.matchBase&&-1===t.indexOf("/")){if(s.noglobstar){throw new Error("base matching requires globstar")}t="**/"+t}e.silent=!!s.silent;e.pattern=t;e.strict=s.strict!==false;e.realpath=!!s.realpath;e.realpathCache=s.realpathCache||Object.create(null);e.follow=!!s.follow;e.dot=!!s.dot;e.mark=!!s.mark;e.nodir=!!s.nodir;if(e.nodir)e.mark=true;e.sync=!!s.sync;e.nounique=!!s.nounique;e.nonull=!!s.nonull;e.nosort=!!s.nosort;e.nocase=!!s.nocase;e.stat=!!s.stat;e.noprocess=!!s.noprocess;e.absolute=!!s.absolute;e.maxLength=s.maxLength||Infinity;e.cache=s.cache||Object.create(null);e.statCache=s.statCache||Object.create(null);e.symlinks=s.symlinks||Object.create(null);setupIgnores(e,s);e.changedCwd=false;var o=process.cwd();if(!ownProp(s,"cwd"))e.cwd=o;else{e.cwd=r.resolve(s.cwd);e.changedCwd=e.cwd!==o}e.root=s.root||r.resolve(e.cwd,"/");e.root=r.resolve(e.root);if(process.platform==="win32")e.root=e.root.replace(/\\/g,"/");e.cwdAbs=n(e.cwd)?e.cwd:makeAbs(e,e.cwd);if(process.platform==="win32")e.cwdAbs=e.cwdAbs.replace(/\\/g,"/");e.nomount=!!s.nomount;s.nonegate=true;s.nocomment=true;e.minimatch=new i(t,s);e.options=e.minimatch.options}function finish(e){var t=e.nounique;var s=t?[]:Object.create(null);for(var r=0,o=e.matches.length;r=1){r.log.verbose(o,"[%s][%s] init",this.id,this.name,this)}};O.prototype.debug=function(e){e=e||"";r.log.debug(o,e,"[%s][%s] task:",this.id,this.name,this,"subtasks:",this.subtasks.length,"queue:",u)};O.prototype.next=function(e,t){if(typeof e==="function"){t=e;e=this.name}var s=new O({run:t,name:e,parent:this});s.state=d;s.type=this.type;s.successCallback=this.successCallback||null;s.failureCallback=this.failureCallback||null;this.subtasks.push(s);return this};O.prototype.parallel=function(e,t){if(r.util.isArray(e)){t=e;e=this.name}return this.next(e,function(s){var o=s;o.block(t.length);var n=function(e,s){r.task.start({type:e,run:function(e){t[s](e)},success:function(e){o.unblock()},failure:function(e){o.unblock()}})};for(var i=0;i0){this.state=m[this.state][q]}};O.prototype.unblock=function(e){e=typeof e==="undefined"?1:e;this.blocks-=e;if(this.blocks===0&&this.state!==y){this.state=d;T(this,0)}return this.blocks};O.prototype.sleep=function(e){e=typeof e==="undefined"?0:e;this.state=m[this.state][$];var t=this;this.timeoutId=setTimeout(function(){t.timeoutId=null;t.state=d;T(t,0)},e)};O.prototype.wait=function(e){e.wait(this)};O.prototype.wakeup=function(){if(this.state===P){cancelTimeout(this.timeoutId);this.timeoutId=null;this.state=d;T(this,0)}};O.prototype.cancel=function(){this.state=m[this.state][v];this.permitsNeeded=0;if(this.timeoutId!==null){cancelTimeout(this.timeoutId);this.timeoutId=null}this.subtasks=[]};O.prototype.fail=function(e){this.error=true;E(this,true);if(e){e.error=this.error;e.swapTime=this.swapTime;e.userData=this.userData;T(e,0)}else{if(this.parent!==null){var t=this.parent;while(t.parent!==null){t.error=this.error;t.swapTime=this.swapTime;t.userData=this.userData;t=t.parent}E(t,true)}if(this.failureCallback){this.failureCallback(this)}}};var w=function(e){e.error=false;e.state=m[e.state][g];setTimeout(function(){if(e.state===d){e.swapTime=+new Date;e.run(e);T(e,0)}},0)};var T=function(e,t){var s=t>f||+new Date-e.swapTime>p;var r=function(t){t++;if(e.state===d){if(s){e.swapTime=+new Date}if(e.subtasks.length>0){var r=e.subtasks.shift();r.error=e.error;r.swapTime=e.swapTime;r.userData=e.userData;r.run(r);if(!r.error){T(r,t)}}else{E(e);if(!e.error){if(e.parent!==null){e.parent.error=e.error;e.parent.swapTime=e.swapTime;e.parent.userData=e.userData;T(e.parent,t)}}}}};if(s){setTimeout(r,0)}else{r(t)}};var E=function(e,t){e.state=y;delete i[e.id];if(n>=1){r.log.verbose(o,"[%s][%s] finish",e.id,e.name,e)}if(e.parent===null){if(!(e.type in u)){r.log.error(o,"[%s][%s] task queue missing [%s]",e.id,e.name,e.type)}else if(u[e.type].length===0){r.log.error(o,"[%s][%s] task queue empty [%s]",e.id,e.name,e.type)}else if(u[e.type][0]!==e){r.log.error(o,"[%s][%s] task not first in queue [%s]",e.id,e.name,e.type)}else{u[e.type].shift();if(u[e.type].length===0){if(n>=1){r.log.verbose(o,"[%s][%s] delete queue [%s]",e.id,e.name,e.type)}delete u[e.type]}else{if(n>=1){r.log.verbose(o,"[%s][%s] queue start next [%s] remain:%s",e.id,e.name,e.type,u[e.type].length)}u[e.type][0].start()}}if(!t){if(e.error&&e.failureCallback){e.failureCallback(e)}else if(!e.error&&e.successCallback){e.successCallback(e)}}}};e.exports=r.task=r.task||{};r.task.start=function(e){var t=new O({run:e.run,name:e.name||a});t.type=e.type;t.successCallback=e.success||null;t.failureCallback=e.failure||null;if(!(t.type in u)){if(n>=1){r.log.verbose(o,"[%s][%s] create queue [%s]",t.id,t.name,t.type)}u[t.type]=[t];w(t)}else{u[e.type].push(t)}};r.task.cancel=function(e){if(e in u){u[e]=[u[e][0]]}};r.task.createCondition=function(){var e={tasks:{}};e.wait=function(t){if(!(t.id in e.tasks)){t.block();e.tasks[t.id]=t}};e.notify=function(){var t=e.tasks;e.tasks={};for(var s in t){t[s].unblock()}};return e}},function(module){module.exports=eval("require")("supports-color")},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.digitalassetlinks_v1=void 0;const r=s(927);var o;(function(e){class Digitalassetlinks{constructor(e,t){this.context={_options:e||{},google:t};this.assetlinks=new Resource$Assetlinks(this.context);this.statements=new Resource$Statements(this.context)}}e.Digitalassetlinks=Digitalassetlinks;class Resource$Assetlinks{constructor(e){this.context=e}check(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://digitalassetlinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/assetlinks:check").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Assetlinks=Resource$Assetlinks;class Resource$Statements{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://digitalassetlinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/statements:list").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Statements=Resource$Statements})(o=t.digitalassetlinks_v1||(t.digitalassetlinks_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.dlp=t.VERSIONS=void 0;const r=s(927);const o=s(772);t.VERSIONS={v2:o.dlp_v2.Dlp};function dlp(e){return r.getAPI("dlp",e,t.VERSIONS,this)}t.dlp=dlp;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.plus=t.VERSIONS=void 0;const r=s(927);const o=s(368);t.VERSIONS={v1:o.plus_v1.Plus};function plus(e){return r.getAPI("plus",e,t.VERSIONS,this)}t.plus=plus;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.indexing=t.VERSIONS=void 0;const r=s(927);const o=s(641);t.VERSIONS={v3:o.indexing_v3.Indexing};function indexing(e){return r.getAPI("indexing",e,t.VERSIONS,this)}t.indexing=indexing;const n=new r.AuthPlus;t.auth=n},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});class IAMAuth{constructor(e,t){this.selector=e;this.token=t;this.selector=e;this.token=t}getRequestHeaders(){return{"x-goog-iam-authority-selector":this.selector,"x-goog-iam-authorization-token":this.token}}}t.IAMAuth=IAMAuth},function(e){e.exports=require("tty")},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iap_v1beta1=void 0;const r=s(927);var o;(function(e){class Iap{constructor(e,t){this.context={_options:e||{},google:t};this.v1beta1=new Resource$V1beta1(this.context)}}e.Iap=Iap;class Resource$V1beta1{constructor(e){this.context=e}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iap.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iap.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iap.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$V1beta1=Resource$V1beta1})(o=t.iap_v1beta1||(t.iap_v1beta1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.content=t.VERSIONS=void 0;const r=s(927);const o=s(839);const n=s(446);t.VERSIONS={"v2.1":o.content_v2_1.Content,v2:n.content_v2.Content};function content(e){return r.getAPI("content",e,t.VERSIONS,this)}t.content=content;const i=new r.AuthPlus;t.auth=i},,function(e,t,s){var r=s(413).Stream;var o=s(876).PassThrough;var n=e.exports={};n.isStream=function(e){return e instanceof r};n.normalizeInputSource=function(e){if(e===null){return Buffer.alloc(0)}else if(typeof e==="string"){return Buffer.from(e)}else if(n.isStream(e)&&!e._readableState){var t=new o;e.pipe(t);return t}return e}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dns_v2beta1=void 0;const r=s(927);var o;(function(e){class Dns{constructor(e,t){this.context={_options:e||{},google:t};this.changes=new Resource$Changes(this.context);this.dnsKeys=new Resource$Dnskeys(this.context);this.managedZoneOperations=new Resource$Managedzoneoperations(this.context);this.managedZones=new Resource$Managedzones(this.context);this.policies=new Resource$Policies(this.context);this.projects=new Resource$Projects(this.context);this.resourceRecordSets=new Resource$Resourcerecordsets(this.context)}}e.Dns=Dns;class Resource$Changes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","changeId"],pathParams:["changeId","managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Changes=Resource$Changes;class Resource$Dnskeys{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","dnsKeyId"],pathParams:["dnsKeyId","managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Dnskeys=Resource$Dnskeys;class Resource$Managedzoneoperations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone","operation"],pathParams:["managedZone","operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedzoneoperations=Resource$Managedzoneoperations;class Resource$Managedzones{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedzones=Resource$Managedzones;class Resource$Policies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/policies/{policy}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","policy"],pathParams:["policy","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Policies=Resource$Policies;class Resource$Projects{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Resourcerecordsets{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dns.googleapis.com/";const c={options:Object.assign({url:(i+"/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","managedZone"],pathParams:["managedZone","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resourcerecordsets=Resource$Resourcerecordsets})(o=t.dns_v2beta1||(t.dns_v2beta1={}))},function(e,t,s){"use strict";var r=s(822);function destroy(e,t){var s=this;var o=this._readableState&&this._readableState.destroyed;var n=this._writableState&&this._writableState.destroyed;if(o||n){if(t){t(e)}else if(e&&(!this._writableState||!this._writableState.errorEmitted)){r.nextTick(emitErrorNT,this,e)}return this}if(this._readableState){this._readableState.destroyed=true}if(this._writableState){this._writableState.destroyed=true}this._destroy(e||null,function(e){if(!t&&e){r.nextTick(emitErrorNT,s,e);if(s._writableState){s._writableState.errorEmitted=true}}else if(t){t(e)}});return this}function undestroy(){if(this._readableState){this._readableState.destroyed=false;this._readableState.reading=false;this._readableState.ended=false;this._readableState.endEmitted=false}if(this._writableState){this._writableState.destroyed=false;this._writableState.ended=false;this._writableState.ending=false;this._writableState.finished=false;this._writableState.errorEmitted=false}}function emitErrorNT(e,t){e.emit("error",t)}e.exports={destroy:destroy,undestroy:undestroy}},,function(e,t,s){var r=s(413);if(process.env.READABLE_STREAM==="disable"&&r){e.exports=r;t=e.exports=r.Readable;t.Readable=r.Readable;t.Writable=r.Writable;t.Duplex=r.Duplex;t.Transform=r.Transform;t.PassThrough=r.PassThrough;t.Stream=r}else{t=e.exports=s(45);t.Stream=r||t;t.Readable=t;t.Writable=s(523);t.Duplex=s(512);t.Transform=s(299);t.PassThrough=s(717)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.genomics_v1alpha2=void 0;const r=s(927);var o;(function(e){class Genomics{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.pipelines=new Resource$Pipelines(this.context)}}e.Genomics=Genomics;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Pipelines{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines/{pipelineId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["pipelineId"],pathParams:["pipelineId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines/{pipelineId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["pipelineId"],pathParams:["pipelineId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getControllerConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines:getControllerConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setOperationStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v1alpha2/pipelines:setOperationStatus").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pipelines=Resource$Pipelines})(o=t.genomics_v1alpha2||(t.genomics_v1alpha2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.compute=t.VERSIONS=void 0;const r=s(927);const o=s(951);const n=s(233);const i=s(635);t.VERSIONS={alpha:o.compute_alpha.Compute,beta:n.compute_beta.Compute,v1:i.compute_v1.Compute};function compute(e){return r.getAPI("compute",e,t.VERSIONS,this)}t.compute=compute;const c=new r.AuthPlus;t.auth=c},function(e,t,s){var r=s(669).inherits;var o=s(574).Transform;var n=s(538);var i=s(645);var c=function(e){if(!(this instanceof c)){return new c(e)}e=this.options=i.defaults(e,{});o.call(this,e);this.supports={directory:true,symlink:true};this.files=[]};r(c,o);c.prototype._transform=function(e,t,s){s(null,e)};c.prototype._writeStringified=function(){var e=JSON.stringify(this.files);this.write(e)};c.prototype.append=function(e,t,s){var r=this;t.crc32=0;function onend(e,o){if(e){s(e);return}t.size=o.length||0;t.crc32=n.unsigned(o);r.files.push(t);s(null,t)}if(t.sourceType==="buffer"){onend(null,e)}else if(t.sourceType==="stream"){i.collectStream(e,onend)}};c.prototype.finalize=function(){this._writeStringified();this.end()};e.exports=c},,function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.youtubeAnalytics_v1=void 0;var s;(function(e){class Youtubeanalytics{constructor(e,t){this.context={_options:e||{},google:t}}}e.Youtubeanalytics=Youtubeanalytics})(s=t.youtubeAnalytics_v1||(t.youtubeAnalytics_v1={}))},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});function validate(e){const t=[{invalid:"uri",expected:"url"},{invalid:"json",expected:"data"},{invalid:"qs",expected:"params"}];for(const s of t){if(e[s.invalid]){const e=`'${s.invalid}' is not a valid configuration option. Please use '${s.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`;throw new Error(e)}}}t.validate=validate},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Discovery=void 0;const r=s(747);const o=s(668);const n=s(835);const i=s(669);const c=s(276);const u=s(165);const a=i.promisify(r.readFile);class Discovery{constructor(e){this.transporter=new o.DefaultTransporter;this.options=e||{}}makeEndpoint(e){return t=>{const s=new u.Endpoint(t);s.applySchema(s,e,e,s);return s}}log(...e){if(this.options&&this.options.debug){console.log(...e)}}async discoverAllAPIs(e){const t=this.options.includePrivate?{}:{"X-User-Ip":"0.0.0.0"};const s=await this.transporter.request({url:e,headers:t});const r=s.data.items;const o=await Promise.all(r.map(async e=>{const t=await this.discoverAPI(e.discoveryRestUrl);return{api:e,endpointCreator:t}}));const n={};const c={};for(const e of o){if(!c[e.api.name]){n[e.api.name]={};c[e.api.name]=(t=>{const s=typeof t;let r;if(s==="string"){r=t;t={}}else if(s==="object"){r=t.version;delete t.version}else{throw new Error("Argument error: Accepts only string or object")}try{const s=e.endpointCreator(t,this);return Object.freeze(s)}catch(t){throw new Error(i.format('Unable to load endpoint %s("%s"): %s',e.api.name,r,t.message))}})}n[e.api.name][e.api.version]=e.endpointCreator}return c}async discoverAPI(e){if(typeof e==="string"){const t=n.parse(e);if(e&&!t.protocol){this.log("Reading from file "+e);const t=await a(e,{encoding:"utf8"});return this.makeEndpoint(JSON.parse(t))}else{this.log("Requesting "+e);const t=await this.transporter.request({url:e});return this.makeEndpoint(t.data)}}else{const t=e;this.log("Requesting "+t.url);const s=t.url;delete t.url;const r={options:{url:s,method:"GET"},requiredParams:[],pathParams:[],params:t,context:{google:{_options:{}},_options:{}}};const o=await c.createAPIRequest(r);return this.makeEndpoint(o.data)}}}t.Discovery=Discovery},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.videointelligence_v1=void 0;const r=s(927);var o;(function(e){class Videointelligence{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.projects=new Resource$Projects(this.context);this.videos=new Resource$Videos(this.context)}}e.Videointelligence=Videointelligence;class Resource$Operations{constructor(e){this.context=e;this.projects=new Resource$Operations$Projects(this.context)}}e.Resource$Operations=Resource$Operations;class Resource$Operations$Projects{constructor(e){this.context=e;this.locations=new Resource$Operations$Projects$Locations(this.context)}}e.Resource$Operations$Projects=Resource$Operations$Projects;class Resource$Operations$Projects$Locations{constructor(e){this.context=e;this.operations=new Resource$Operations$Projects$Locations$Operations(this.context)}}e.Resource$Operations$Projects$Locations=Resource$Operations$Projects$Locations;class Resource$Operations$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/operations/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/operations/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/operations/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations$Projects$Locations$Operations=Resource$Operations$Projects$Locations$Operations;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.operations=new Resource$Projects$Locations$Operations(this.context)}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Videos{constructor(e){this.context=e}annotate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://videointelligence.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/videos:annotate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videos=Resource$Videos})(o=t.videointelligence_v1||(t.videointelligence_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serviceconsumermanagement_v1=void 0;const r=s(927);var o;(function(e){class Serviceconsumermanagement{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.services=new Resource$Services(this.context)}}e.Serviceconsumermanagement=Serviceconsumermanagement;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Services{constructor(e){this.context=e;this.tenancyUnits=new Resource$Services$Tenancyunits(this.context)}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:search").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services;class Resource$Services$Tenancyunits{constructor(e){this.context=e}addProject(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:addProject").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}applyProjectConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:applyProjectConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}attachProject(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:attachProject").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/tenancyUnits").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteProject(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:deleteProject").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/tenancyUnits").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeProject(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:removeProject").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undeleteProject(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceconsumermanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:undeleteProject").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Tenancyunits=Resource$Services$Tenancyunits})(o=t.serviceconsumermanagement_v1||(t.serviceconsumermanagement_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.sheets=t.VERSIONS=void 0;const r=s(927);const o=s(525);t.VERSIONS={v4:o.sheets_v4.Sheets};function sheets(e){return r.getAPI("sheets",e,t.VERSIONS,this)}t.sheets=sheets;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.managedidentities=t.VERSIONS=void 0;const r=s(927);const o=s(94);const n=s(531);const i=s(274);t.VERSIONS={v1:o.managedidentities_v1.Managedidentities,v1alpha1:n.managedidentities_v1alpha1.Managedidentities,v1beta1:i.managedidentities_v1beta1.Managedidentities};function managedidentities(e){return r.getAPI("managedidentities",e,t.VERSIONS,this)}t.managedidentities=managedidentities;const c=new r.AuthPlus;t.auth=c},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.tagmanager_v2=void 0;const r=s(927);var o;(function(e){class Tagmanager{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context)}}e.Tagmanager=Tagmanager;class Resource$Accounts{constructor(e){this.context=e;this.containers=new Resource$Accounts$Containers(this.context);this.user_permissions=new Resource$Accounts$User_permissions(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accounts$Containers{constructor(e){this.context=e;this.environments=new Resource$Accounts$Containers$Environments(this.context);this.versions=new Resource$Accounts$Containers$Versions(this.context);this.version_headers=new Resource$Accounts$Containers$Version_headers(this.context);this.workspaces=new Resource$Accounts$Containers$Workspaces(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/containers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/containers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers=Resource$Accounts$Containers;class Resource$Accounts$Containers$Environments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/environments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reauthorize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:reauthorize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Environments=Resource$Accounts$Containers$Environments;class Resource$Accounts$Containers$Versions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}live(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/versions:live").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}publish(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:publish").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}set_latest(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:set_latest").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Versions=Resource$Accounts$Containers$Versions;class Resource$Accounts$Containers$Version_headers{constructor(e){this.context=e}latest(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/version_headers:latest").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/version_headers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Version_headers=Resource$Accounts$Containers$Version_headers;class Resource$Accounts$Containers$Workspaces{constructor(e){this.context=e;this.built_in_variables=new Resource$Accounts$Containers$Workspaces$Built_in_variables(this.context);this.folders=new Resource$Accounts$Containers$Workspaces$Folders(this.context);this.tags=new Resource$Accounts$Containers$Workspaces$Tags(this.context);this.templates=new Resource$Accounts$Containers$Workspaces$Templates(this.context);this.triggers=new Resource$Accounts$Containers$Workspaces$Triggers(this.context);this.variables=new Resource$Accounts$Containers$Workspaces$Variables(this.context);this.zones=new Resource$Accounts$Containers$Workspaces$Zones(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/workspaces").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create_version(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:create_version").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}/status").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/workspaces").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}quick_preview(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:quick_preview").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resolve_conflict(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:resolve_conflict").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sync(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:sync").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces=Resource$Accounts$Containers$Workspaces;class Resource$Accounts$Containers$Workspaces$Built_in_variables{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/built_in_variables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/built_in_variables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}/built_in_variables:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Built_in_variables=Resource$Accounts$Containers$Workspaces$Built_in_variables;class Resource$Accounts$Containers$Workspaces$Folders{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/folders").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}entities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:entities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/folders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move_entities_to_folder(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:move_entities_to_folder").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Folders=Resource$Accounts$Containers$Workspaces$Folders;class Resource$Accounts$Containers$Workspaces$Tags{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/tags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Tags=Resource$Accounts$Containers$Workspaces$Tags;class Resource$Accounts$Containers$Workspaces$Templates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/templates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/templates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Templates=Resource$Accounts$Containers$Workspaces$Templates;class Resource$Accounts$Containers$Workspaces$Triggers{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/triggers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Triggers=Resource$Accounts$Containers$Workspaces$Triggers;class Resource$Accounts$Containers$Workspaces$Variables{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/variables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Variables=Resource$Accounts$Containers$Workspaces$Variables;class Resource$Accounts$Containers$Workspaces$Zones{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/zones").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/zones").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}revert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}:revert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$Containers$Workspaces$Zones=Resource$Accounts$Containers$Workspaces$Zones;class Resource$Accounts$User_permissions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/user_permissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+parent}/user_permissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/tagmanager/v2/{+path}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["path"],pathParams:["path"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts$User_permissions=Resource$Accounts$User_permissions})(o=t.tagmanager_v2||(t.tagmanager_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.runtimeconfig_v1=void 0;const r=s(927);var o;(function(e){class Runtimeconfig{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context)}}e.Runtimeconfig=Runtimeconfig;class Resource$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://runtimeconfig.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations})(o=t.runtimeconfig_v1||(t.runtimeconfig_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.fcm_v1=void 0;const r=s(927);var o;(function(e){class Fcm{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Fcm=Fcm;class Resource$Projects{constructor(e){this.context=e;this.messages=new Resource$Projects$Messages(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Messages{constructor(e){this.context=e}send(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://fcm.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/messages:send").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Messages=Resource$Projects$Messages})(o=t.fcm_v1||(t.fcm_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.gamesConfiguration=t.VERSIONS=void 0;const r=s(927);const o=s(505);t.VERSIONS={v1configuration:o.gamesConfiguration_v1configuration.Gamesconfiguration};function gamesConfiguration(e){return r.getAPI("gamesConfiguration",e,t.VERSIONS,this)}t.gamesConfiguration=gamesConfiguration;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;var r=_interopRequireDefault(s(844));var o=_interopRequireDefault(s(939));function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}let n;let i;let c=0;let u=0;function v1(e,t,s){let a=t&&s||0;const f=t||[];e=e||{};let p=e.node||n;let h=e.clockseq!==undefined?e.clockseq:i;if(p==null||h==null){const t=e.random||(e.rng||r.default)();if(p==null){p=n=[t[0]|1,t[1],t[2],t[3],t[4],t[5]]}if(h==null){h=i=(t[6]<<8|t[7])&16383}}let d=e.msecs!==undefined?e.msecs:Date.now();let l=e.nsecs!==undefined?e.nsecs:u+1;const P=d-c+(l-u)/1e4;if(P<0&&e.clockseq===undefined){h=h+1&16383}if((P<0||d>c)&&e.nsecs===undefined){l=0}if(l>=1e4){throw new Error("uuid.v1(): Can't create more than 10M uuids/sec")}c=d;u=l;i=h;d+=122192928e5;const y=((d&268435455)*1e4+l)%4294967296;f[a++]=y>>>24&255;f[a++]=y>>>16&255;f[a++]=y>>>8&255;f[a++]=y&255;const I=d/4294967296*1e4&268435455;f[a++]=I>>>8&255;f[a++]=I&255;f[a++]=I>>>24&15|16;f[a++]=I>>>16&255;f[a++]=h>>>8|128;f[a++]=h&255;for(let e=0;e<6;++e){f[a+e]=p[e]}return t||(0,o.default)(f)}var a=v1;t.default=a},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigquery_v2=void 0;const r=s(927);var o;(function(e){class Bigquery{constructor(e,t){this.context={_options:e||{},google:t};this.datasets=new Resource$Datasets(this.context);this.jobs=new Resource$Jobs(this.context);this.models=new Resource$Models(this.context);this.projects=new Resource$Projects(this.context);this.routines=new Resource$Routines(this.context);this.tabledata=new Resource$Tabledata(this.context);this.tables=new Resource$Tables(this.context)}}e.Bigquery=Bigquery;class Resource$Datasets{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Datasets=Resource$Datasets;class Resource$Jobs{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getQueryResults(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/queries/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/bigquery/v2/projects/{projectId}/jobs").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/queries").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Jobs=Resource$Jobs;class Resource$Models{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","datasetId","modelId"],pathParams:["datasetId","modelId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId","modelId"],pathParams:["datasetId","modelId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","datasetId","modelId"],pathParams:["datasetId","modelId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Models=Resource$Models;class Resource$Projects{constructor(e){this.context=e}getServiceAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/serviceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Routines{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","datasetId","routineId"],pathParams:["datasetId","projectId","routineId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId","routineId"],pathParams:["datasetId","projectId","routineId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","datasetId","routineId"],pathParams:["datasetId","projectId","routineId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Routines=Resource$Routines;class Resource$Tabledata{constructor(e){this.context=e}insertAll(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Tabledata=Resource$Tabledata;class Resource$Tables{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","datasetId"],pathParams:["datasetId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigquery.googleapis.com/";const c={options:Object.assign({url:(i+"/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","datasetId","tableId"],pathParams:["datasetId","projectId","tableId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Tables=Resource$Tables})(o=t.bigquery_v2||(t.bigquery_v2={}))},function(e){e.exports=function(e,s){var r=[];for(var o=0;o0?I+y:""}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.iap=t.VERSIONS=void 0;const r=s(927);const o=s(86);const n=s(868);t.VERSIONS={v1:o.iap_v1.Iap,v1beta1:n.iap_v1beta1.Iap};function iap(e){return r.getAPI("iap",e,t.VERSIONS,this)}t.iap=iap;const i=new r.AuthPlus;t.auth=i},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.androidmanagement_v1=void 0;const r=s(927);var o;(function(e){class Androidmanagement{constructor(e,t){this.context={_options:e||{},google:t};this.enterprises=new Resource$Enterprises(this.context);this.signupUrls=new Resource$Signupurls(this.context)}}e.Androidmanagement=Androidmanagement;class Resource$Enterprises{constructor(e){this.context=e;this.applications=new Resource$Enterprises$Applications(this.context);this.devices=new Resource$Enterprises$Devices(this.context);this.enrollmentTokens=new Resource$Enterprises$Enrollmenttokens(this.context);this.policies=new Resource$Enterprises$Policies(this.context);this.webApps=new Resource$Enterprises$Webapps(this.context);this.webTokens=new Resource$Enterprises$Webtokens(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/enterprises").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises=Resource$Enterprises;class Resource$Enterprises$Applications{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Applications=Resource$Enterprises$Applications;class Resource$Enterprises$Devices{constructor(e){this.context=e;this.operations=new Resource$Enterprises$Devices$Operations(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}issueCommand(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:issueCommand").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/devices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Devices=Resource$Enterprises$Devices;class Resource$Enterprises$Devices$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Devices$Operations=Resource$Enterprises$Devices$Operations;class Resource$Enterprises$Enrollmenttokens{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/enrollmentTokens").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Enrollmenttokens=Resource$Enterprises$Enrollmenttokens;class Resource$Enterprises$Policies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/policies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Policies=Resource$Enterprises$Policies;class Resource$Enterprises$Webapps{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/webApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Webapps=Resource$Enterprises$Webapps;class Resource$Enterprises$Webtokens{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/webTokens").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Enterprises$Webtokens=Resource$Enterprises$Webtokens;class Resource$Signupurls{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://androidmanagement.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/signupUrls").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Signupurls=Resource$Signupurls})(o=t.androidmanagement_v1||(t.androidmanagement_v1={}))},,function(e,t,s){e.exports=s(413)},function(e,t,s){e.exports=s(220);s(237);s(908);s(12);s(679)},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ml_v1=void 0;const r=s(927);var o;(function(e){class Ml{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Ml=Ml;class Resource$Projects{constructor(e){this.context=e;this.jobs=new Resource$Projects$Jobs(this.context);this.locations=new Resource$Projects$Locations(this.context);this.models=new Resource$Projects$Models(this.context);this.operations=new Resource$Projects$Operations(this.context)}explain(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:explain").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:getConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}predict(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:predict").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Jobs{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs=Resource$Projects$Jobs;class Resource$Projects$Locations{constructor(e){this.context=e;this.operations=new Resource$Projects$Locations$Operations(this.context);this.studies=new Resource$Projects$Locations$Studies(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Locations$Studies{constructor(e){this.context=e;this.trials=new Resource$Projects$Locations$Studies$Trials(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/studies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/studies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Studies=Resource$Projects$Locations$Studies;class Resource$Projects$Locations$Studies$Trials{constructor(e){this.context=e}addMeasurement(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:addMeasurement").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}checkEarlyStoppingState(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:checkEarlyStoppingState").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}complete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:complete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/trials").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/trials").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}suggest(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/trials:suggest").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Studies$Trials=Resource$Projects$Locations$Studies$Trials;class Resource$Projects$Models{constructor(e){this.context=e;this.versions=new Resource$Projects$Models$Versions(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/models").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/models").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Models=Resource$Projects$Models;class Resource$Projects$Models$Versions{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/versions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDefault(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setDefault").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Models$Versions=Resource$Projects$Models$Versions;class Resource$Projects$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://ml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations})(o=t.ml_v1||(t.ml_v1={}))},function(e,t,s){var r=s(761);var o=s(304);var n=s(645);var i=function(e){if(!(this instanceof i)){return new i(e)}e=this.options=n.defaults(e,{gzip:false});if(typeof e.gzipOptions!=="object"){e.gzipOptions={}}this.supports={directory:true,symlink:true};this.engine=o.pack(e);this.compressor=false;if(e.gzip){this.compressor=r.createGzip(e.gzipOptions);this.compressor.on("error",this._onCompressorError.bind(this))}};i.prototype._onCompressorError=function(e){this.engine.emit("error",e)};i.prototype.append=function(e,t,s){var r=this;t.mtime=t.date;function append(e,o){if(e){s(e);return}r.engine.entry(t,o,function(e){s(e,t)})}if(t.sourceType==="buffer"){append(null,e)}else if(t.sourceType==="stream"&&t.stats){t.size=t.stats.size;var o=r.engine.entry(t,function(e){s(e,t)});e.pipe(o)}else if(t.sourceType==="stream"){n.collectStream(e,append)}};i.prototype.finalize=function(){this.engine.finalize()};i.prototype.on=function(){return this.engine.on.apply(this.engine,arguments)};i.prototype.pipe=function(e,t){if(this.compressor){return this.engine.pipe.apply(this.engine,[this.compressor]).pipe(e,t)}else{return this.engine.pipe.apply(this.engine,arguments)}};i.prototype.unpipe=function(){if(this.compressor){return this.compressor.unpipe.apply(this.compressor,arguments)}else{return this.engine.unpipe.apply(this.engine,arguments)}};e.exports=i},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firebasedynamiclinks_v1=void 0;const r=s(927);var o;(function(e){class Firebasedynamiclinks{constructor(e,t){this.context={_options:e||{},google:t};this.managedShortLinks=new Resource$Managedshortlinks(this.context);this.shortLinks=new Resource$Shortlinks(this.context);this.v1=new Resource$V1(this.context)}}e.Firebasedynamiclinks=Firebasedynamiclinks;class Resource$Managedshortlinks{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasedynamiclinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/managedShortLinks:create").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Managedshortlinks=Resource$Managedshortlinks;class Resource$Shortlinks{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasedynamiclinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/shortLinks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Shortlinks=Resource$Shortlinks;class Resource$V1{constructor(e){this.context=e}getLinkStats(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasedynamiclinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{dynamicLink}/linkStats").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["dynamicLink"],pathParams:["dynamicLink"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}installAttribution(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasedynamiclinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/installAttribution").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reopenAttribution(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebasedynamiclinks.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/reopenAttribution").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$V1=Resource$V1})(o=t.firebasedynamiclinks_v1||(t.firebasedynamiclinks_v1={}))},function(e,t,s){var r=s(239);s(220);s(152);var o=e.exports=r.sha1=r.sha1||{};r.md.sha1=r.md.algorithms.sha1=o;o.create=function(){if(!i){_init()}var e=null;var t=r.util.createBuffer();var s=new Array(80);var o={algorithm:"sha1",blockLength:64,digestLength:20,messageLength:0,fullMessageLength:null,messageLengthSize:8};o.start=function(){o.messageLength=0;o.fullMessageLength=o.messageLength64=[];var s=o.messageLengthSize/4;for(var n=0;n>>0,c>>>0];for(var u=o.fullMessageLength.length-1;u>=0;--u){o.fullMessageLength[u]+=c[1];c[1]=c[0]+(o.fullMessageLength[u]/4294967296>>>0);o.fullMessageLength[u]=o.fullMessageLength[u]>>>0;c[0]=c[1]/4294967296>>>0}t.putBytes(n);_update(e,s,t);if(t.read>2048||t.length()===0){t.compact()}return o};o.digest=function(){var i=r.util.createBuffer();i.putBytes(t.bytes());var c=o.fullMessageLength[o.fullMessageLength.length-1]+o.messageLengthSize;var u=c&o.blockLength-1;i.putBytes(n.substr(0,o.blockLength-u));var a,f;var p=o.fullMessageLength[0]*8;for(var h=0;h>>0;p+=f;i.putInt32(p>>>0);p=a>>>0}i.putInt32(p);var d={h0:e.h0,h1:e.h1,h2:e.h2,h3:e.h3,h4:e.h4};_update(d,s,i);var l=r.util.createBuffer();l.putInt32(d.h0);l.putInt32(d.h1);l.putInt32(d.h2);l.putInt32(d.h3);l.putInt32(d.h4);return l};return o};var n=null;var i=false;function _init(){n=String.fromCharCode(128);n+=r.util.fillString(String.fromCharCode(0),64);i=true}function _update(e,t,s){var r,o,n,i,c,u,a,f;var p=s.length();while(p>=64){o=e.h0;n=e.h1;i=e.h2;c=e.h3;u=e.h4;for(f=0;f<16;++f){r=s.getInt32();t[f]=r;a=c^n&(i^c);r=(o<<5|o>>>27)+a+u+1518500249+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}for(;f<20;++f){r=t[f-3]^t[f-8]^t[f-14]^t[f-16];r=r<<1|r>>>31;t[f]=r;a=c^n&(i^c);r=(o<<5|o>>>27)+a+u+1518500249+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}for(;f<32;++f){r=t[f-3]^t[f-8]^t[f-14]^t[f-16];r=r<<1|r>>>31;t[f]=r;a=n^i^c;r=(o<<5|o>>>27)+a+u+1859775393+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}for(;f<40;++f){r=t[f-6]^t[f-16]^t[f-28]^t[f-32];r=r<<2|r>>>30;t[f]=r;a=n^i^c;r=(o<<5|o>>>27)+a+u+1859775393+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}for(;f<60;++f){r=t[f-6]^t[f-16]^t[f-28]^t[f-32];r=r<<2|r>>>30;t[f]=r;a=n&i|c&(n^i);r=(o<<5|o>>>27)+a+u+2400959708+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}for(;f<80;++f){r=t[f-6]^t[f-16]^t[f-28]^t[f-32];r=r<<2|r>>>30;t[f]=r;a=n^i^c;r=(o<<5|o>>>27)+a+u+3395469782+r;u=c;c=i;i=(n<<30|n>>>2)>>>0;n=o;o=r}e.h0=e.h0+o|0;e.h1=e.h1+n|0;e.h2=e.h2+i|0;e.h3=e.h3+c|0;e.h4=e.h4+u|0;p-=64}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(293);var o=s(851);var n=_interopRequireDefault(o);var i=s(112);var c=_interopRequireDefault(i);function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}var u=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117];if(typeof Int32Array!=="undefined")u=new Int32Array(u);var a=(0,c.default)("crc-32",function(e,t){if(!r.Buffer.isBuffer(e))e=(0,n.default)(e);var s=t===0?0:~~t^-1;for(var o=0;o>>8}return s^-1});t.default=a},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.jobs_v3p1beta1=void 0;const r=s(927);var o;(function(e){class Jobs{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Jobs=Jobs;class Resource$Projects{constructor(e){this.context=e;this.clientEvents=new Resource$Projects$Clientevents(this.context);this.companies=new Resource$Projects$Companies(this.context);this.jobs=new Resource$Projects$Jobs(this.context);this.operations=new Resource$Projects$Operations(this.context)}complete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}:complete").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Clientevents{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/clientEvents").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Clientevents=Resource$Projects$Clientevents;class Resource$Projects$Companies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/companies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/companies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Companies=Resource$Projects$Companies;class Resource$Projects$Jobs{constructor(e){this.context=e}batchDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/jobs:batchDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/jobs:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForAlert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+parent}/jobs:searchForAlert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs=Resource$Projects$Jobs;class Resource$Projects$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3p1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations})(o=t.jobs_v3p1beta1||(t.jobs_v3p1beta1={}))},,function(e,t,s){"use strict";function ownKeys(e,t){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);if(t)r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable});s.push.apply(s,r)}return s}function _objectSpread(e){for(var t=1;t0)this.tail.next=t;else this.head=t;this.tail=t;++this.length}},{key:"unshift",value:function unshift(e){var t={data:e,next:this.head};if(this.length===0)this.tail=t;this.head=t;++this.length}},{key:"shift",value:function shift(){if(this.length===0)return;var e=this.head.data;if(this.length===1)this.head=this.tail=null;else this.head=this.head.next;--this.length;return e}},{key:"clear",value:function clear(){this.head=this.tail=null;this.length=0}},{key:"join",value:function join(e){if(this.length===0)return"";var t=this.head;var s=""+t.data;while(t=t.next){s+=e+t.data}return s}},{key:"concat",value:function concat(e){if(this.length===0)return o.alloc(0);var t=o.allocUnsafe(e>>>0);var s=this.head;var r=0;while(s){copyBuffer(s.data,t,r);r+=s.data.length;s=s.next}return t}},{key:"consume",value:function consume(e,t){var s;if(eo.length?o.length:e;if(n===o.length)r+=o;else r+=o.slice(0,e);e-=n;if(e===0){if(n===o.length){++s;if(t.next)this.head=t.next;else this.head=this.tail=null}else{this.head=t;t.data=o.slice(n)}break}++s}this.length-=s;return r}},{key:"_getBuffer",value:function _getBuffer(e){var t=o.allocUnsafe(e);var s=this.head;var r=1;s.data.copy(t);e-=s.data.length;while(s=s.next){var n=s.data;var i=e>n.length?n.length:e;n.copy(t,t.length-e,0,i);e-=i;if(e===0){if(i===n.length){++r;if(s.next)this.head=s.next;else this.head=this.tail=null}else{this.head=s;s.data=n.slice(i)}break}++r}this.length-=r;return t}},{key:c,value:function value(e,t){return i(this,_objectSpread({},t,{depth:0,customInspect:false}))}}]);return BufferList}()},function(e,t,s){var r=s(239);s(784);var o=r.asn1;t.privateKeyValidator={name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PrivateKeyInfo.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"privateKeyVersion"},{name:"PrivateKeyInfo.privateKeyAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"privateKeyOid"}]},{name:"PrivateKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"privateKey"}]};t.publicKeyValidator={name:"SubjectPublicKeyInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,captureAsn1:"subjectPublicKeyInfo",value:[{name:"SubjectPublicKeyInfo.AlgorithmIdentifier",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"AlgorithmIdentifier.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"publicKeyOid"}]},{tagClass:o.Class.UNIVERSAL,type:o.Type.BITSTRING,constructed:false,composed:true,captureBitStringValue:"ed25519PublicKey"}]}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.adexchangebuyer_v1_2=void 0;const r=s(927);var o;(function(e){class Adexchangebuyer{constructor(e,t){this.context={_options:e||{},google:t};this.accounts=new Resource$Accounts(this.context);this.creatives=new Resource$Creatives(this.context)}}e.Adexchangebuyer=Adexchangebuyer;class Resource$Accounts{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Creatives{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["accountId","buyerCreativeId"],pathParams:["accountId","buyerCreativeId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/adexchangebuyer/v1.2/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creatives=Resource$Creatives})(o=t.adexchangebuyer_v1_2||(t.adexchangebuyer_v1_2={}))},,,function(e,t,s){e.exports=s(669).deprecate},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.monitoring_v1=void 0;const r=s(927);var o;(function(e){class Monitoring{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Monitoring=Monitoring;class Resource$Projects{constructor(e){this.context=e;this.dashboards=new Resource$Projects$Dashboards(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Dashboards{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/dashboards").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/dashboards").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://monitoring.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Dashboards=Resource$Projects$Dashboards})(o=t.monitoring_v1||(t.monitoring_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.doubleclicksearch_v2=void 0;const r=s(927);var o;(function(e){class Doubleclicksearch{constructor(e,t){this.context={_options:e||{},google:t};this.conversion=new Resource$Conversion(this.context);this.reports=new Resource$Reports(this.context);this.savedColumns=new Resource$Savedcolumns(this.context)}}e.Doubleclicksearch=Doubleclicksearch;class Resource$Conversion{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["agencyId","advertiserId","engineAccountId","endDate","rowCount","startDate","startRow"],pathParams:["advertiserId","agencyId","engineAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/conversion").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/conversion").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAvailability(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/conversion/updateAvailability").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Conversion=Resource$Conversion;class Resource$Reports{constructor(e){this.context=e}generate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/reports/generate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/reports/{reportId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["reportId"],pathParams:["reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getFile(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["reportId","reportFragment"],pathParams:["reportFragment","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}request(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/reports").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports;class Resource$Savedcolumns{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["agencyId","advertiserId"],pathParams:["advertiserId","agencyId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Savedcolumns=Resource$Savedcolumns})(o=t.doubleclicksearch_v2||(t.doubleclicksearch_v2={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firestore_v1=void 0;const r=s(927);var o;(function(e){class Firestore{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Firestore=Firestore;class Resource$Projects{constructor(e){this.context=e;this.databases=new Resource$Projects$Databases(this.context);this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Databases{constructor(e){this.context=e;this.collectionGroups=new Resource$Projects$Databases$Collectiongroups(this.context);this.documents=new Resource$Projects$Databases$Documents(this.context);this.operations=new Resource$Projects$Databases$Operations(this.context)}exportDocuments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:exportDocuments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}importDocuments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:importDocuments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases=Resource$Projects$Databases;class Resource$Projects$Databases$Collectiongroups{constructor(e){this.context=e;this.fields=new Resource$Projects$Databases$Collectiongroups$Fields(this.context);this.indexes=new Resource$Projects$Databases$Collectiongroups$Indexes(this.context)}}e.Resource$Projects$Databases$Collectiongroups=Resource$Projects$Databases$Collectiongroups;class Resource$Projects$Databases$Collectiongroups$Fields{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/fields").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Collectiongroups$Fields=Resource$Projects$Databases$Collectiongroups$Fields;class Resource$Projects$Databases$Collectiongroups$Indexes{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/indexes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/indexes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Collectiongroups$Indexes=Resource$Projects$Databases$Collectiongroups$Indexes;class Resource$Projects$Databases$Documents{constructor(e){this.context=e}batchGet(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:batchGet").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}beginTransaction(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:beginTransaction").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}commit(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:commit").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createDocument(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/{collectionId}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","collectionId"],pathParams:["collectionId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/{collectionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","collectionId"],pathParams:["collectionId","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listCollectionIds(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:listCollectionIds").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listen(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:listen").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}runQuery(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}:runQuery").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}write(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+database}/documents:write").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["database"],pathParams:["database"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Documents=Resource$Projects$Databases$Documents;class Resource$Projects$Databases$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Databases$Operations=Resource$Projects$Databases$Operations;class Resource$Projects$Locations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firestore.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations})(o=t.firestore_v1||(t.firestore_v1={}))},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.safebrowsing=t.VERSIONS=void 0;const r=s(927);const o=s(674);t.VERSIONS={v4:o.safebrowsing_v4.Safebrowsing};function safebrowsing(e){return r.getAPI("safebrowsing",e,t.VERSIONS,this)}t.safebrowsing=safebrowsing;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.run_v1=void 0;const r=s(927);var o;(function(e){class Run{constructor(e,t){this.context={_options:e||{},google:t};this.api=new Resource$Api(this.context);this.namespaces=new Resource$Namespaces(this.context);this.projects=new Resource$Projects(this.context)}}e.Run=Run;class Resource$Api{constructor(e){this.context=e;this.v1=new Resource$Api$V1(this.context)}}e.Resource$Api=Resource$Api;class Resource$Api$V1{constructor(e){this.context=e;this.namespaces=new Resource$Api$V1$Namespaces(this.context)}}e.Resource$Api$V1=Resource$Api$V1;class Resource$Api$V1$Namespaces{constructor(e){this.context=e;this.secrets=new Resource$Api$V1$Namespaces$Secrets(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/api/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/api/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Api$V1$Namespaces=Resource$Api$V1$Namespaces;class Resource$Api$V1$Namespaces$Secrets{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/api/v1/{+parent}/secrets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/api/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceSecret(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/api/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Api$V1$Namespaces$Secrets=Resource$Api$V1$Namespaces$Secrets;class Resource$Namespaces{constructor(e){this.context=e;this.authorizeddomains=new Resource$Namespaces$Authorizeddomains(this.context);this.configurations=new Resource$Namespaces$Configurations(this.context);this.domainmappings=new Resource$Namespaces$Domainmappings(this.context);this.revisions=new Resource$Namespaces$Revisions(this.context);this.routes=new Resource$Namespaces$Routes(this.context);this.services=new Resource$Namespaces$Services(this.context)}}e.Resource$Namespaces=Resource$Namespaces;class Resource$Namespaces$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Authorizeddomains=Resource$Namespaces$Authorizeddomains;class Resource$Namespaces$Configurations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+parent}/configurations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Configurations=Resource$Namespaces$Configurations;class Resource$Namespaces$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/domains.cloudrun.com/v1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Domainmappings=Resource$Namespaces$Domainmappings;class Resource$Namespaces$Revisions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+parent}/revisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Revisions=Resource$Namespaces$Revisions;class Resource$Namespaces$Routes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+parent}/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Routes=Resource$Namespaces$Routes;class Resource$Namespaces$Services{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/apis/serving.knative.dev/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Namespaces$Services=Resource$Namespaces$Services;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.authorizeddomains=new Resource$Projects$Locations$Authorizeddomains(this.context);this.configurations=new Resource$Projects$Locations$Configurations(this.context);this.domainmappings=new Resource$Projects$Locations$Domainmappings(this.context);this.namespaces=new Resource$Projects$Locations$Namespaces(this.context);this.revisions=new Resource$Projects$Locations$Revisions(this.context);this.routes=new Resource$Projects$Locations$Routes(this.context);this.secrets=new Resource$Projects$Locations$Secrets(this.context);this.services=new Resource$Projects$Locations$Services(this.context)}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Authorizeddomains{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/authorizeddomains").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Authorizeddomains=Resource$Projects$Locations$Authorizeddomains;class Resource$Projects$Locations$Configurations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/configurations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Configurations=Resource$Projects$Locations$Configurations;class Resource$Projects$Locations$Domainmappings{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/domainmappings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Domainmappings=Resource$Projects$Locations$Domainmappings;class Resource$Projects$Locations$Namespaces{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Namespaces=Resource$Projects$Locations$Namespaces;class Resource$Projects$Locations$Revisions{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/revisions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Revisions=Resource$Projects$Locations$Revisions;class Resource$Projects$Locations$Routes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Routes=Resource$Projects$Locations$Routes;class Resource$Projects$Locations$Secrets{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/secrets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceSecret(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Secrets=Resource$Projects$Locations$Secrets;class Resource$Projects$Locations$Services{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}replaceService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://run.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Services=Resource$Projects$Locations$Services})(o=t.run_v1||(t.run_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.jobs_v3=void 0;const r=s(927);var o;(function(e){class Jobs{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Jobs=Jobs;class Resource$Projects{constructor(e){this.context=e;this.clientEvents=new Resource$Projects$Clientevents(this.context);this.companies=new Resource$Projects$Companies(this.context);this.jobs=new Resource$Projects$Jobs(this.context)}complete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}:complete").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Clientevents{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/clientEvents").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Clientevents=Resource$Projects$Clientevents;class Resource$Projects$Companies{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/companies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/companies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Companies=Resource$Projects$Companies;class Resource$Projects$Jobs{constructor(e){this.context=e}batchDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/jobs:batchDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/jobs:search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForAlert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://jobs.googleapis.com/";const c={options:Object.assign({url:(i+"/v3/{+parent}/jobs:searchForAlert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs=Resource$Projects$Jobs})(o=t.jobs_v3||(t.jobs_v3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.sasportal=t.VERSIONS=void 0;const r=s(927);const o=s(387);t.VERSIONS={v1alpha1:o.sasportal_v1alpha1.Sasportal};function sasportal(e){return r.getAPI("sasportal",e,t.VERSIONS,this)}t.sasportal=sasportal;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.manufacturers=t.VERSIONS=void 0;const r=s(927);const o=s(380);t.VERSIONS={v1:o.manufacturers_v1.Manufacturers};function manufacturers(e){return r.getAPI("manufacturers",e,t.VERSIONS,this)}t.manufacturers=manufacturers;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});var r=s(668);Object.defineProperty(t,"OAuth2Client",{enumerable:true,get:function(){return r.OAuth2Client}});Object.defineProperty(t,"JWT",{enumerable:true,get:function(){return r.JWT}});Object.defineProperty(t,"Compute",{enumerable:true,get:function(){return r.Compute}});Object.defineProperty(t,"UserRefreshClient",{enumerable:true,get:function(){return r.UserRefreshClient}});Object.defineProperty(t,"DefaultTransporter",{enumerable:true,get:function(){return r.DefaultTransporter}});var o=s(996);Object.defineProperty(t,"getAPI",{enumerable:true,get:function(){return o.getAPI}});var n=s(276);Object.defineProperty(t,"createAPIRequest",{enumerable:true,get:function(){return n.createAPIRequest}});var i=s(254);Object.defineProperty(t,"AuthPlus",{enumerable:true,get:function(){return i.AuthPlus}});var c=s(883);Object.defineProperty(t,"Discovery",{enumerable:true,get:function(){return c.Discovery}});var u=s(165);Object.defineProperty(t,"Endpoint",{enumerable:true,get:function(){return u.Endpoint}})},function(e,t,s){var r=s(239);s(828);s(0);s(237);s(908);s(152);var o=e.exports=r.ssh=r.ssh||{};o.privateKeyToPutty=function(e,t,s){s=s||"";t=t||"";var o="ssh-rsa";var n=t===""?"none":"aes256-cbc";var i="PuTTY-User-Key-File-2: "+o+"\r\n";i+="Encryption: "+n+"\r\n";i+="Comment: "+s+"\r\n";var c=r.util.createBuffer();_addStringToBuffer(c,o);_addBigIntegerToBuffer(c,e.e);_addBigIntegerToBuffer(c,e.n);var u=r.util.encode64(c.bytes(),64);var a=Math.floor(u.length/66)+1;i+="Public-Lines: "+a+"\r\n";i+=u;var f=r.util.createBuffer();_addBigIntegerToBuffer(f,e.d);_addBigIntegerToBuffer(f,e.p);_addBigIntegerToBuffer(f,e.q);_addBigIntegerToBuffer(f,e.qInv);var p;if(!t){p=r.util.encode64(f.bytes(),64)}else{var h=f.length()+16-1;h-=h%16;var d=_sha1(f.bytes());d.truncate(d.length()-h+f.length());f.putBuffer(d);var l=r.util.createBuffer();l.putBuffer(_sha1("\0\0\0\0",t));l.putBuffer(_sha1("\0\0\0",t));var P=r.aes.createEncryptionCipher(l.truncate(8),"CBC");P.start(r.util.createBuffer().fillWithByte(0,16));P.update(f.copy());P.finish();var y=P.output;y.truncate(16);p=r.util.encode64(y.bytes(),64)}a=Math.floor(p.length/66)+1;i+="\r\nPrivate-Lines: "+a+"\r\n";i+=p;var I=_sha1("putty-private-key-file-mac-key",t);var R=r.util.createBuffer();_addStringToBuffer(R,o);_addStringToBuffer(R,n);_addStringToBuffer(R,s);R.putInt32(c.length());R.putBuffer(c);R.putInt32(f.length());R.putBuffer(f);var g=r.hmac.create();g.start("sha1",I);g.update(R.bytes());i+="\r\nPrivate-MAC: "+g.digest().toHex()+"\r\n";return i};o.publicKeyToOpenSSH=function(e,t){var s="ssh-rsa";t=t||"";var o=r.util.createBuffer();_addStringToBuffer(o,s);_addBigIntegerToBuffer(o,e.e);_addBigIntegerToBuffer(o,e.n);return s+" "+r.util.encode64(o.bytes())+" "+t};o.privateKeyToOpenSSH=function(e,t){if(!t){return r.pki.privateKeyToPem(e)}return r.pki.encryptRsaPrivateKey(e,t,{legacy:true,algorithm:"aes128"})};o.getPublicKeyFingerprint=function(e,t){t=t||{};var s=t.md||r.md.md5.create();var o="ssh-rsa";var n=r.util.createBuffer();_addStringToBuffer(n,o);_addBigIntegerToBuffer(n,e.e);_addBigIntegerToBuffer(n,e.n);s.start();s.update(n.getBytes());var i=s.digest();if(t.encoding==="hex"){var c=i.toHex();if(t.delimiter){return c.match(/.{2}/g).join(t.delimiter)}return c}else if(t.encoding==="binary"){return i.getBytes()}else if(t.encoding){throw new Error('Unknown encoding "'+t.encoding+'".')}return i};function _addBigIntegerToBuffer(e,t){var s=t.toString(16);if(s[0]>="8"){s="00"+s}var o=r.util.hexToBytes(s);e.putInt32(o.length);e.putBytes(o)}function _addStringToBuffer(e,t){e.putInt32(t.length);e.putString(t)}function _sha1(){var e=r.md.sha1.create();var t=arguments.length;for(var s=0;st(null,e)).catch(e=>t(e,null))}else{return getPemAsync(e)}}t.getPem=getPem;function getPemAsync(e){return i(e,{encoding:"base64"}).then(e=>{return convertToPem(e)})}function convertToPem(e){const t=o.util.decode64(e);const s=o.asn1.fromDer(t);const r=o.pkcs12.pkcs12FromAsn1(s,"notasecret");const n=r.getBags({friendlyName:"privatekey"});if(n.friendlyName){const e=n.friendlyName[0].key;const t=o.pki.privateKeyToPem(e);return t.replace(/\r\n/g,"\n")}else{throw new Error("Unable to get friendly name.")}}},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.default=void 0;const s=[];for(let e=0;e<256;++e){s.push((e+256).toString(16).substr(1))}function bytesToUuid(e,t){const r=t||0;const o=s;return(o[e[r+0]]+o[e[r+1]]+o[e[r+2]]+o[e[r+3]]+"-"+o[e[r+4]]+o[e[r+5]]+"-"+o[e[r+6]]+o[e[r+7]]+"-"+o[e[r+8]]+o[e[r+9]]+"-"+o[e[r+10]]+o[e[r+11]]+o[e[r+12]]+o[e[r+13]]+o[e[r+14]]+o[e[r+15]]).toLowerCase()}var r=bytesToUuid;t.default=r},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reseller_v1=void 0;const r=s(927);var o;(function(e){class Reseller{constructor(e,t){this.context={_options:e||{},google:t};this.customers=new Resource$Customers(this.context);this.resellernotify=new Resource$Resellernotify(this.context);this.subscriptions=new Resource$Subscriptions(this.context)}}e.Reseller=Reseller;class Resource$Customers{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["customerId"],pathParams:["customerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["customerId"],pathParams:["customerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["customerId"],pathParams:["customerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Customers=Resource$Customers;class Resource$Resellernotify{constructor(e){this.context=e}getwatchdetails(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/resellernotify/getwatchdetails").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}register(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/resellernotify/register").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}unregister(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/resellernotify/unregister").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resellernotify=Resource$Resellernotify;class Resource$Subscriptions{constructor(e){this.context=e}activate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}changePlan(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}changeRenewalSettings(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}changeSeats(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["customerId","subscriptionId","deletionType"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId"],pathParams:["customerId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/subscriptions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startPaidService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}suspend(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["customerId","subscriptionId"],pathParams:["customerId","subscriptionId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subscriptions=Resource$Subscriptions})(o=t.reseller_v1||(t.reseller_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.genomics_v2alpha1=void 0;const r=s(927);var o;(function(e){class Genomics{constructor(e,t){this.context={_options:e||{},google:t};this.pipelines=new Resource$Pipelines(this.context);this.projects=new Resource$Projects(this.context);this.workers=new Resource$Workers(this.context)}}e.Genomics=Genomics;class Resource$Pipelines{constructor(e){this.context=e}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/pipelines:run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Pipelines=Resource$Pipelines;class Resource$Projects{constructor(e){this.context=e;this.operations=new Resource$Projects$Operations(this.context);this.workers=new Resource$Projects$Workers(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations;class Resource$Projects$Workers{constructor(e){this.context=e}checkIn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/{+id}:checkIn").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Workers=Resource$Projects$Workers;class Resource$Workers{constructor(e){this.context=e}checkIn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://genomics.googleapis.com/";const c={options:Object.assign({url:(i+"/v2alpha1/workers/{id}:checkIn").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["id"],pathParams:["id"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Workers=Resource$Workers})(o=t.genomics_v2alpha1||(t.genomics_v2alpha1={}))},,,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.servicecontrol_v1=void 0;const r=s(927);var o;(function(e){class Servicecontrol{constructor(e,t){this.context={_options:e||{},google:t};this.services=new Resource$Services(this.context)}}e.Servicecontrol=Servicecontrol;class Resource$Services{constructor(e){this.context=e}allocateQuota(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicecontrol.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:allocateQuota").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}check(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicecontrol.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:check").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}report(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicecontrol.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/services/{serviceName}:report").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["serviceName"],pathParams:["serviceName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services})(o=t.servicecontrol_v1||(t.servicecontrol_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.androidpublisher_v2=void 0;const r=s(927);var o;(function(e){class Androidpublisher{constructor(e,t){this.context={_options:e||{},google:t};this.purchases=new Resource$Purchases(this.context)}}e.Androidpublisher=Androidpublisher;class Resource$Purchases{constructor(e){this.context=e;this.products=new Resource$Purchases$Products(this.context);this.voidedpurchases=new Resource$Purchases$Voidedpurchases(this.context)}}e.Resource$Purchases=Resource$Purchases;class Resource$Purchases$Products{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidpublisher/v2/applications/{packageName}/purchases/products/{productId}/tokens/{token}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["packageName","productId","token"],pathParams:["packageName","productId","token"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Purchases$Products=Resource$Purchases$Products;class Resource$Purchases$Voidedpurchases{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["packageName"],pathParams:["packageName"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Purchases$Voidedpurchases=Resource$Purchases$Voidedpurchases})(o=t.androidpublisher_v2||(t.androidpublisher_v2={}))},,function(e){e.exports={_from:"google-auth-library@^6.0.0",_id:"google-auth-library@6.0.0",_inBundle:false,_integrity:"sha512-uLydy1t6SHN/EvYUJrtN3GCHFrnJ0c8HJjOxXiGjoTuYHIoCUT3jVxnzmjHwVnSdkfE9Akasm2rM6qG1COTXfQ==",_location:"/google-auth-library",_phantomChildren:{},_requested:{type:"range",registry:true,raw:"google-auth-library@^6.0.0",name:"google-auth-library",escapedName:"google-auth-library",rawSpec:"^6.0.0",saveSpec:null,fetchSpec:"^6.0.0"},_requiredBy:["/googleapis","/googleapis-common"],_resolved:"https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.0.tgz",_shasum:"f92576e9e920803634c258b25f091604c1379722",_spec:"google-auth-library@^6.0.0",_where:"D:\\upload-to-drive\\node_modules\\googleapis",author:{name:"Google Inc."},bugs:{url:"https://github.com/googleapis/google-auth-library-nodejs/issues"},bundleDependencies:false,dependencies:{arrify:"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0",gaxios:"^3.0.0","gcp-metadata":"^4.0.0",gtoken:"^5.0.0",jws:"^4.0.0","lru-cache":"^5.0.0"},deprecated:false,description:"Google APIs Authentication Client Library for Node.js",devDependencies:{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^7.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^10.5.1","@types/sinon":"^7.0.0","@types/tmp":"^0.1.0","assert-rejects":"^1.0.0",c8:"^7.0.0",chai:"^4.2.0",codecov:"^3.0.2",execa:"^4.0.0",gts:"^2.0.0-alpha.8","is-docker":"^2.0.0",karma:"^4.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.0",keypair:"^1.0.1",linkinator:"^2.0.0",mocha:"^7.0.0",mv:"^2.1.1",ncp:"^2.0.0",nock:"^12.0.0","null-loader":"^3.0.0",puppeteer:"^2.0.0",sinon:"^9.0.0",tmp:"^0.1.0","ts-loader":"^6.0.0",typescript:"^3.8.3",webpack:"^4.20.2","webpack-cli":"^3.1.1"},engines:{node:">=10"},files:["build/src","!build/src/**/*.map"],homepage:"https://github.com/googleapis/google-auth-library-nodejs#readme",keywords:["google","api","google apis","client","client library"],license:"Apache-2.0",main:"./build/src/index.js",name:"google-auth-library",repository:{type:"git",url:"git+https://github.com/googleapis/google-auth-library-nodejs.git"},scripts:{"browser-test":"karma start",clean:"gts clean",compile:"tsc -p .",docs:"compodoc src/","docs-test":"linkinator docs",fix:"gts fix && eslint --fix '**/*.js'",lint:"gts check","predocs-test":"npm run docs",prelint:"cd samples; npm link ../; npm i",prepare:"npm run compile","presystem-test":"npm run compile",pretest:"npm run compile","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000",test:"c8 mocha build/test",webpack:"webpack"},types:"./build/src/index.d.ts",version:"6.0.0"}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(129);const o=s(747);const n=s(479);const i=s(87);const c=s(622);const u=s(984);const a=s(974);const f=s(310);const p=s(331);const h=s(813);const d=s(390);const l=s(846);t.CLOUD_SDK_CLIENT_ID="764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com";class GoogleAuth{constructor(e){this.checkIsGCE=undefined;this.jsonContent=null;this.cachedCredential=null;e=e||{};this._cachedProjectId=e.projectId||null;this.keyFilename=e.keyFilename||e.keyFile;this.scopes=e.scopes;this.jsonContent=e.credentials||null;this.clientOptions=e.clientOptions}get isGCE(){return this.checkIsGCE}getProjectId(e){if(e){this.getProjectIdAsync().then(t=>e(null,t),e)}else{return this.getProjectIdAsync()}}getProjectIdAsync(){if(this._cachedProjectId){return Promise.resolve(this._cachedProjectId)}if(!this._getDefaultProjectIdPromise){this._getDefaultProjectIdPromise=new Promise(async(e,t)=>{try{const s=this.getProductionProjectId()||await this.getFileProjectId()||await this.getDefaultServiceProjectId()||await this.getGCEProjectId();this._cachedProjectId=s;if(!s){throw new Error("Unable to detect a Project Id in the current environment. \n"+"To learn more about authentication and Google APIs, visit: \n"+"https://cloud.google.com/docs/authentication/getting-started")}e(s)}catch(e){t(e)}})}return this._getDefaultProjectIdPromise}getApplicationDefault(e={},t){let s;if(typeof e==="function"){t=e}else{s=e}if(t){this.getApplicationDefaultAsync(s).then(e=>t(null,e.credential,e.projectId),t)}else{return this.getApplicationDefaultAsync(s)}}async getApplicationDefaultAsync(e={}){if(this.cachedCredential){return{credential:this.cachedCredential,projectId:await this.getProjectIdAsync()}}let t;let s;t=await this._tryGetApplicationCredentialsFromEnvironmentVariable(e);if(t){if(t instanceof d.JWT){t.scopes=this.scopes}this.cachedCredential=t;s=await this.getProjectId();return{credential:t,projectId:s}}t=await this._tryGetApplicationCredentialsFromWellKnownFile(e);if(t){if(t instanceof d.JWT){t.scopes=this.scopes}this.cachedCredential=t;s=await this.getProjectId();return{credential:t,projectId:s}}let r;try{r=await this._checkIsGCE()}catch(e){e.message=`Unexpected error determining execution environment: ${e.message}`;throw e}if(!r){throw new Error("Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.")}e.scopes=this.scopes;this.cachedCredential=new f.Compute(e);s=await this.getProjectId();return{projectId:s,credential:this.cachedCredential}}async _checkIsGCE(){if(this.checkIsGCE===undefined){this.checkIsGCE=await n.isAvailable()}return this.checkIsGCE}async _tryGetApplicationCredentialsFromEnvironmentVariable(e){const t=process.env["GOOGLE_APPLICATION_CREDENTIALS"]||process.env["google_application_credentials"];if(!t||t.length===0){return null}try{return this._getApplicationCredentialsFromFilePath(t,e)}catch(e){e.message=`Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`;throw e}}async _tryGetApplicationCredentialsFromWellKnownFile(e){let t=null;if(this._isWindows()){t=process.env["APPDATA"]}else{const e=process.env["HOME"];if(e){t=c.join(e,".config")}}if(t){t=c.join(t,"gcloud","application_default_credentials.json");if(!o.existsSync(t)){t=null}}if(!t){return null}const s=await this._getApplicationCredentialsFromFilePath(t,e);return s}async _getApplicationCredentialsFromFilePath(e,t={}){if(!e||e.length===0){throw new Error("The file path is invalid.")}try{e=o.realpathSync(e);if(!o.lstatSync(e).isFile()){throw new Error}}catch(t){t.message=`The file at ${e} does not exist, or it is not a file. ${t.message}`;throw t}const s=o.createReadStream(e);return this.fromStream(s,t)}fromJSON(e,t){let s;if(!e){throw new Error("Must pass in a JSON object containing the Google auth settings.")}t=t||{};if(e.type==="authorized_user"){s=new l.UserRefreshClient(t)}else{t.scopes=this.scopes;s=new d.JWT(t)}s.fromJSON(e);return s}_cacheClientFromJSON(e,t){let s;t=t||{};if(e.type==="authorized_user"){s=new l.UserRefreshClient(t)}else{t.scopes=this.scopes;s=new d.JWT(t)}s.fromJSON(e);this.jsonContent=e;this.cachedCredential=s;return this.cachedCredential}fromStream(e,t={},s){let r={};if(typeof t==="function"){s=t}else{r=t}if(s){this.fromStreamAsync(e,r).then(e=>s(null,e),s)}else{return this.fromStreamAsync(e,r)}}fromStreamAsync(e,t){return new Promise((s,r)=>{if(!e){throw new Error("Must pass in a stream containing the Google auth settings.")}let o="";e.setEncoding("utf8").on("error",r).on("data",e=>o+=e).on("end",()=>{try{const e=JSON.parse(o);const n=this._cacheClientFromJSON(e,t);return s(n)}catch(e){return r(e)}})})}fromAPIKey(e,t){t=t||{};const s=new d.JWT(t);s.fromAPIKey(e);return s}_isWindows(){const e=i.platform();if(e&&e.length>=3){if(e.substring(0,3).toLowerCase()==="win"){return true}}return false}async getDefaultServiceProjectId(){return new Promise(e=>{r.exec("gcloud config config-helper --format json",(t,s,r)=>{if(!t&&s){try{const t=JSON.parse(s).configuration.properties.core.project;e(t);return}catch(e){}}e(null)})})}getProductionProjectId(){return process.env["GCLOUD_PROJECT"]||process.env["GOOGLE_CLOUD_PROJECT"]||process.env["gcloud_project"]||process.env["google_cloud_project"]}async getFileProjectId(){if(this.cachedCredential){return this.cachedCredential.projectId}if(this.keyFilename){const e=await this.getClient();if(e&&e.projectId){return e.projectId}}const e=await this._tryGetApplicationCredentialsFromEnvironmentVariable();if(e){return e.projectId}else{return null}}async getGCEProjectId(){try{const e=await n.project("project-id");return e}catch(e){return null}}getCredentials(e){if(e){this.getCredentialsAsync().then(t=>e(null,t),e)}else{return this.getCredentialsAsync()}}async getCredentialsAsync(){await this.getClient();if(this.jsonContent){const e={client_email:this.jsonContent.client_email,private_key:this.jsonContent.private_key};return e}const e=await this._checkIsGCE();if(!e){throw new Error("Unknown error.")}const t=await n.instance({property:"service-accounts/",params:{recursive:"true"}});if(!t||!t.default||!t.default.email){throw new Error("Failure from metadata server.")}return{client_email:t.default.email}}async getClient(e){if(e){throw new Error("Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.")}if(!this.cachedCredential){if(this.jsonContent){this._cacheClientFromJSON(this.jsonContent,this.clientOptions)}else if(this.keyFilename){const e=c.resolve(this.keyFilename);const t=o.createReadStream(e);await this.fromStreamAsync(t,this.clientOptions)}else{await this.getApplicationDefaultAsync(this.clientOptions)}}return this.cachedCredential}async getIdTokenClient(e){const t=await this.getClient();if(!("fetchIdToken"in t)){throw new Error("Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.")}return new p.IdTokenClient({targetAudience:e,idTokenProvider:t})}async getAccessToken(){const e=await this.getClient();return(await e.getAccessToken()).token}async getRequestHeaders(e){const t=await this.getClient();return t.getRequestHeaders(e)}async authorizeRequest(e){e=e||{};const t=e.url||e.uri;const s=await this.getClient();const r=await s.getRequestHeaders(t);e.headers=Object.assign(e.headers||{},r);return e}async request(e){const t=await this.getClient();return t.request(e)}getEnv(){return h.getEnv()}async sign(e){const t=await this.getClient();const s=u.createCrypto();if(t instanceof d.JWT&&t.key){const r=await s.sign(t.key,e);return r}const r=await this.getProjectId();if(!r){throw new Error("Cannot sign data without a project ID.")}const o=await this.getCredentials();if(!o.client_email){throw new Error("Cannot sign data without `client_email`.")}const n=`https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/${o.client_email}:signBlob`;const i=await this.request({method:"POST",url:n,data:{payload:s.encodeBase64StringUtf8(e)}});return i.data.signedBlob}}t.GoogleAuth=GoogleAuth;GoogleAuth.DefaultTransporter=a.DefaultTransporter},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.cloudresourcemanager=t.VERSIONS=void 0;const r=s(927);const o=s(509);const n=s(530);const i=s(508);const c=s(656);t.VERSIONS={v1:o.cloudresourcemanager_v1.Cloudresourcemanager,v1beta1:n.cloudresourcemanager_v1beta1.Cloudresourcemanager,v2:i.cloudresourcemanager_v2.Cloudresourcemanager,v2beta1:c.cloudresourcemanager_v2beta1.Cloudresourcemanager};function cloudresourcemanager(e){return r.getAPI("cloudresourcemanager",e,t.VERSIONS,this)}t.cloudresourcemanager=cloudresourcemanager;const u=new r.AuthPlus;t.auth=u},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.compute_alpha=void 0;const r=s(927);var o;(function(e){class Compute{constructor(e,t){this.context={_options:e||{},google:t};this.acceleratorTypes=new Resource$Acceleratortypes(this.context);this.addresses=new Resource$Addresses(this.context);this.autoscalers=new Resource$Autoscalers(this.context);this.backendBuckets=new Resource$Backendbuckets(this.context);this.backendServices=new Resource$Backendservices(this.context);this.disks=new Resource$Disks(this.context);this.diskTypes=new Resource$Disktypes(this.context);this.externalVpnGateways=new Resource$Externalvpngateways(this.context);this.firewalls=new Resource$Firewalls(this.context);this.forwardingRules=new Resource$Forwardingrules(this.context);this.globalAddresses=new Resource$Globaladdresses(this.context);this.globalForwardingRules=new Resource$Globalforwardingrules(this.context);this.globalNetworkEndpointGroups=new Resource$Globalnetworkendpointgroups(this.context);this.globalOperations=new Resource$Globaloperations(this.context);this.globalOrganizationOperations=new Resource$Globalorganizationoperations(this.context);this.globalPublicDelegatedPrefixes=new Resource$Globalpublicdelegatedprefixes(this.context);this.healthChecks=new Resource$Healthchecks(this.context);this.httpHealthChecks=new Resource$Httphealthchecks(this.context);this.httpsHealthChecks=new Resource$Httpshealthchecks(this.context);this.images=new Resource$Images(this.context);this.instanceGroupManagers=new Resource$Instancegroupmanagers(this.context);this.instanceGroups=new Resource$Instancegroups(this.context);this.instances=new Resource$Instances(this.context);this.instanceTemplates=new Resource$Instancetemplates(this.context);this.interconnectAttachments=new Resource$Interconnectattachments(this.context);this.interconnectLocations=new Resource$Interconnectlocations(this.context);this.interconnects=new Resource$Interconnects(this.context);this.licenseCodes=new Resource$Licensecodes(this.context);this.licenses=new Resource$Licenses(this.context);this.machineImages=new Resource$Machineimages(this.context);this.machineTypes=new Resource$Machinetypes(this.context);this.networkEndpointGroups=new Resource$Networkendpointgroups(this.context);this.networks=new Resource$Networks(this.context);this.nodeGroups=new Resource$Nodegroups(this.context);this.nodeTemplates=new Resource$Nodetemplates(this.context);this.nodeTypes=new Resource$Nodetypes(this.context);this.organizationSecurityPolicies=new Resource$Organizationsecuritypolicies(this.context);this.packetMirrorings=new Resource$Packetmirrorings(this.context);this.projects=new Resource$Projects(this.context);this.publicAdvertisedPrefixes=new Resource$Publicadvertisedprefixes(this.context);this.publicDelegatedPrefixes=new Resource$Publicdelegatedprefixes(this.context);this.regionAutoscalers=new Resource$Regionautoscalers(this.context);this.regionBackendServices=new Resource$Regionbackendservices(this.context);this.regionCommitments=new Resource$Regioncommitments(this.context);this.regionDisks=new Resource$Regiondisks(this.context);this.regionDiskTypes=new Resource$Regiondisktypes(this.context);this.regionHealthChecks=new Resource$Regionhealthchecks(this.context);this.regionHealthCheckServices=new Resource$Regionhealthcheckservices(this.context);this.regionInPlaceSnapshots=new Resource$Regioninplacesnapshots(this.context);this.regionInstanceGroupManagers=new Resource$Regioninstancegroupmanagers(this.context);this.regionInstanceGroups=new Resource$Regioninstancegroups(this.context);this.regionInstances=new Resource$Regioninstances(this.context);this.regionNetworkEndpointGroups=new Resource$Regionnetworkendpointgroups(this.context);this.regionNotificationEndpoints=new Resource$Regionnotificationendpoints(this.context);this.regionOperations=new Resource$Regionoperations(this.context);this.regions=new Resource$Regions(this.context);this.regionSslCertificates=new Resource$Regionsslcertificates(this.context);this.regionTargetHttpProxies=new Resource$Regiontargethttpproxies(this.context);this.regionTargetHttpsProxies=new Resource$Regiontargethttpsproxies(this.context);this.regionUrlMaps=new Resource$Regionurlmaps(this.context);this.reservations=new Resource$Reservations(this.context);this.resourcePolicies=new Resource$Resourcepolicies(this.context);this.routers=new Resource$Routers(this.context);this.routes=new Resource$Routes(this.context);this.securityPolicies=new Resource$Securitypolicies(this.context);this.serviceAttachments=new Resource$Serviceattachments(this.context);this.snapshots=new Resource$Snapshots(this.context);this.sslCertificates=new Resource$Sslcertificates(this.context);this.sslPolicies=new Resource$Sslpolicies(this.context);this.subnetworks=new Resource$Subnetworks(this.context);this.targetGrpcProxies=new Resource$Targetgrpcproxies(this.context);this.targetHttpProxies=new Resource$Targethttpproxies(this.context);this.targetHttpsProxies=new Resource$Targethttpsproxies(this.context);this.targetInstances=new Resource$Targetinstances(this.context);this.targetPools=new Resource$Targetpools(this.context);this.targetSslProxies=new Resource$Targetsslproxies(this.context);this.targetTcpProxies=new Resource$Targettcpproxies(this.context);this.targetVpnGateways=new Resource$Targetvpngateways(this.context);this.urlMaps=new Resource$Urlmaps(this.context);this.vpnGateways=new Resource$Vpngateways(this.context);this.vpnTunnels=new Resource$Vpntunnels(this.context);this.zoneInPlaceSnapshots=new Resource$Zoneinplacesnapshots(this.context);this.zoneOperations=new Resource$Zoneoperations(this.context);this.zones=new Resource$Zones(this.context)}}e.Compute=Compute;class Resource$Acceleratortypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","acceleratorType"],pathParams:["acceleratorType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Acceleratortypes=Resource$Acceleratortypes;class Resource$Addresses{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","address"],pathParams:["address","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","address"],pathParams:["address","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Addresses=Resource$Addresses;class Resource$Autoscalers{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","autoscaler"],pathParams:["autoscaler","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","autoscaler"],pathParams:["autoscaler","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Autoscalers=Resource$Autoscalers;class Resource$Backendbuckets{constructor(e){this.context=e}addSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendBucket","keyName"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","backendBucket"],pathParams:["backendBucket","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Backendbuckets=Resource$Backendbuckets;class Resource$Backendservices{constructor(e){this.context=e}addSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteSignedUrlKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService","keyName"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSecurityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","backendService"],pathParams:["backendService","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Backendservices=Resource$Backendservices;class Resource$Disks{constructor(e){this.context=e}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSnapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","disk"],pathParams:["disk","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Disks=Resource$Disks;class Resource$Disktypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/diskTypes/{diskType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","diskType"],pathParams:["diskType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Disktypes=Resource$Disktypes;class Resource$Externalvpngateways{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","externalVpnGateway"],pathParams:["externalVpnGateway","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","externalVpnGateway"],pathParams:["externalVpnGateway","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Externalvpngateways=Resource$Externalvpngateways;class Resource$Firewalls{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/firewalls/{firewall}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","firewall"],pathParams:["firewall","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Firewalls=Resource$Firewalls;class Resource$Forwardingrules{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTarget(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","forwardingRule"],pathParams:["forwardingRule","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Forwardingrules=Resource$Forwardingrules;class Resource$Globaladdresses{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","address"],pathParams:["address","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses/{address}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","address"],pathParams:["address","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/addresses/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globaladdresses=Resource$Globaladdresses;class Resource$Globalforwardingrules{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTarget(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","forwardingRule"],pathParams:["forwardingRule","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalforwardingrules=Resource$Globalforwardingrules;class Resource$Globalnetworkendpointgroups{constructor(e){this.context=e}attachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","networkEndpointGroup"],pathParams:["networkEndpointGroup","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalnetworkendpointgroups=Resource$Globalnetworkendpointgroups;class Resource$Globaloperations{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","operation"],pathParams:["operation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globaloperations=Resource$Globaloperations;class Resource$Globalorganizationoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["operation"],pathParams:["operation"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["operation"],pathParams:["operation"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalorganizationoperations=Resource$Globalorganizationoperations;class Resource$Globalpublicdelegatedprefixes{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicDelegatedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicDelegatedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Globalpublicdelegatedprefixes=Resource$Globalpublicdelegatedprefixes;class Resource$Healthchecks{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","healthCheck"],pathParams:["healthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Healthchecks=Resource$Healthchecks;class Resource$Httphealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","httpHealthCheck"],pathParams:["httpHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Httphealthchecks=Resource$Httphealthchecks;class Resource$Httpshealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","httpsHealthCheck"],pathParams:["httpsHealthCheck","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Httpshealthchecks=Resource$Httpshealthchecks;class Resource$Images{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{image}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deprecate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{image}/deprecate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{image}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getFromFamily(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/family/{family}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","family"],pathParams:["family","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{image}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","image"],pathParams:["image","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/images/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Images=Resource$Images;class Resource$Instancegroupmanagers{constructor(e){this.context=e}abandonInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}applyUpdatesToInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deletePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listErrors(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listManagedInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}recreateInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager","size"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resizeAdvanced(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoHealingPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setInstanceTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTargetPools(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroupManager"],pathParams:["instanceGroupManager","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancegroupmanagers=Resource$Instancegroupmanagers;class Resource$Instancegroups{constructor(e){this.context=e}addInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNamedPorts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instanceGroup"],pathParams:["instanceGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancegroups=Resource$Instancegroups;class Resource$Instances{constructor(e){this.context=e}addAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}attachDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}bulkInsert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","accessConfig","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","deviceName"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveFirewalls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getGuestAttributes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getScreenshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getSerialPortOutput(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getShieldedInstanceIdentity(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getShieldedVmIdentity(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listReferrers(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reset(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resume(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDeletionProtection(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDiskAutoDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","autoDelete","deviceName"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMachineResources(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMachineType(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMinCpuPlatform(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setName(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setScheduling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setServiceAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setShieldedInstanceIntegrityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setShieldedVmIntegrityPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTags(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}simulateMaintenanceEvent(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}start(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/start").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startWithEncryptionKey(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}stop(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}suspend(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateAccessConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateDisplayDevice(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateNetworkInterface(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance","networkInterface"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateShieldedInstanceConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateShieldedVmConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","instance"],pathParams:["instance","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instances=Resource$Instances;class Resource$Instancetemplates{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","instanceTemplate"],pathParams:["instanceTemplate","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","instanceTemplate"],pathParams:["instanceTemplate","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Instancetemplates=Resource$Instancetemplates;class Resource$Interconnectattachments{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","interconnectAttachment"],pathParams:["interconnectAttachment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnectattachments=Resource$Interconnectattachments;class Resource$Interconnectlocations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnectLocation"],pathParams:["interconnectLocation","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnectLocations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnectlocations=Resource$Interconnectlocations;class Resource$Interconnects{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getDiagnostics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{interconnect}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","interconnect"],pathParams:["interconnect","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Interconnects=Resource$Interconnects;class Resource$Licensecodes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","licenseCode"],pathParams:["licenseCode","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Licensecodes=Resource$Licensecodes;class Resource$Licenses{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses/{license}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","license"],pathParams:["license","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses/{license}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","license"],pathParams:["license","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Licenses=Resource$Licenses;class Resource$Machineimages{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages/{machineImage}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","machineImage"],pathParams:["machineImage","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages/{machineImage}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","machineImage"],pathParams:["machineImage","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/machineImages/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Machineimages=Resource$Machineimages;class Resource$Machinetypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/machineTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","machineType"],pathParams:["machineType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/machineTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Machinetypes=Resource$Machinetypes;class Resource$Networkendpointgroups{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}attachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}detachNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNetworkEndpoints(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Networkendpointgroups=Resource$Networkendpointgroups;class Resource$Networks{constructor(e){this.context=e}addPeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/addPeering").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getEffectiveFirewalls(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listIpAddresses(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listIpOwners(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPeeringRoutes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removePeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/removePeering").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}switchToCustomMode(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePeering(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/networks/{network}/updatePeering").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","network"],pathParams:["network","project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Networks=Resource$Networks;class Resource$Nodegroups{constructor(e){this.context=e}addNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","initialNodeCount"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listNodes(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNodeTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","nodeGroup"],pathParams:["nodeGroup","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodegroups=Resource$Nodegroups;class Resource$Nodetemplates{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","nodeTemplate"],pathParams:["nodeTemplate","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","nodeTemplate"],pathParams:["nodeTemplate","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodetemplates=Resource$Nodetemplates;class Resource$Nodetypes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/nodeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","nodeType"],pathParams:["nodeType","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/nodeTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Nodetypes=Resource$Nodetypes;class Resource$Organizationsecuritypolicies{constructor(e){this.context=e}addAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}copyRules(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/copyRules").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getRule").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAssociations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/listAssociations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/patchRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeAssociation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["securityPolicy"],pathParams:["securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizationsecuritypolicies=Resource$Organizationsecuritypolicies;class Resource$Packetmirrorings{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","packetMirroring"],pathParams:["packetMirroring","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Packetmirrorings=Resource$Packetmirrorings;class Resource$Projects{constructor(e){this.context=e}disableXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/disableXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disableXpnResource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/disableXpnResource").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enableXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/enableXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enableXpnResource(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/enableXpnResource").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getXpnHost(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/getXpnHost").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getXpnResources(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/getXpnResources").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listXpnHosts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/listXpnHosts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}moveDisk(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/moveDisk").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}moveInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/moveInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setCommonInstanceMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/setCommonInstanceMetadata").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDefaultNetworkTier(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/setDefaultNetworkTier").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setDefaultServiceAccount(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/setDefaultServiceAccount").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUsageExportBucket(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/setUsageExportBucket").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Publicadvertisedprefixes{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","publicAdvertisedPrefix"],pathParams:["project","publicAdvertisedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","publicAdvertisedPrefix"],pathParams:["project","publicAdvertisedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","publicAdvertisedPrefix"],pathParams:["project","publicAdvertisedPrefix"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Publicadvertisedprefixes=Resource$Publicadvertisedprefixes;class Resource$Publicdelegatedprefixes{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/publicDelegatedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","publicDelegatedPrefix"],pathParams:["project","publicDelegatedPrefix","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Publicdelegatedprefixes=Resource$Publicdelegatedprefixes;class Resource$Regionautoscalers{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","autoscaler"],pathParams:["autoscaler","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","autoscaler"],pathParams:["autoscaler","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/autoscalers").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionautoscalers=Resource$Regionautoscalers;class Resource$Regionbackendservices{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","backendService"],pathParams:["backendService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionbackendservices=Resource$Regionbackendservices;class Resource$Regioncommitments{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","commitment"],pathParams:["commitment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/commitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateReservations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","commitment"],pathParams:["commitment","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioncommitments=Resource$Regioncommitments;class Resource$Regiondisks{constructor(e){this.context=e}addResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createSnapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeResourcePolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","disk"],pathParams:["disk","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiondisks=Resource$Regiondisks;class Resource$Regiondisktypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","diskType"],pathParams:["diskType","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/diskTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiondisktypes=Resource$Regiondisktypes;class Resource$Regionhealthchecks{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","healthCheck"],pathParams:["healthCheck","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionhealthchecks=Resource$Regionhealthchecks;class Resource$Regionhealthcheckservices{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","healthCheckService"],pathParams:["healthCheckService","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionhealthcheckservices=Resource$Regionhealthcheckservices;class Resource$Regioninplacesnapshots{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","inPlaceSnapshot"],pathParams:["inPlaceSnapshot","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","inPlaceSnapshot"],pathParams:["inPlaceSnapshot","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninplacesnapshots=Resource$Regioninplacesnapshots;class Resource$Regioninstancegroupmanagers{constructor(e){this.context=e}abandonInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}applyUpdatesToInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}createInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deleteInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deletePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listErrors(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listManagedInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchPerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}recreateInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager","size"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoHealingPolicies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setInstanceTemplate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setTargetPools(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updatePerInstanceConfigs(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroupManager"],pathParams:["instanceGroupManager","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninstancegroupmanagers=Resource$Regioninstancegroupmanagers;class Resource$Regioninstancegroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNamedPorts(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","instanceGroup"],pathParams:["instanceGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninstancegroups=Resource$Regioninstancegroups;class Resource$Regioninstances{constructor(e){this.context=e}bulkInsert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regioninstances=Resource$Regioninstances;class Resource$Regionnetworkendpointgroups{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","networkEndpointGroup"],pathParams:["networkEndpointGroup","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionnetworkendpointgroups=Resource$Regionnetworkendpointgroups;class Resource$Regionnotificationendpoints{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","notificationEndpoint"],pathParams:["notificationEndpoint","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","notificationEndpoint"],pathParams:["notificationEndpoint","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionnotificationendpoints=Resource$Regionnotificationendpoints;class Resource$Regionoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","operation"],pathParams:["operation","project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionoperations=Resource$Regionoperations;class Resource$Regions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regions=Resource$Regions;class Resource$Regionsslcertificates{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","sslCertificate"],pathParams:["project","region","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","sslCertificate"],pathParams:["project","region","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionsslcertificates=Resource$Regionsslcertificates;class Resource$Regiontargethttpproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpProxy"],pathParams:["project","region","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiontargethttpproxies=Resource$Regiontargethttpproxies;class Resource$Regiontargethttpsproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetHttpsProxy"],pathParams:["project","region","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regiontargethttpsproxies=Resource$Regiontargethttpsproxies;class Resource$Regionurlmaps{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}invalidateCache(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","urlMap"],pathParams:["project","region","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regionurlmaps=Resource$Regionurlmaps;class Resource$Reservations{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","reservation"],pathParams:["project","reservation","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reservations=Resource$Reservations;class Resource$Resourcepolicies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","resourcePolicy"],pathParams:["project","region","resourcePolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resourcePolicy"],pathParams:["project","region","resourcePolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Resourcepolicies=Resource$Resourcepolicies;class Resource$Routers{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/routers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getNatMappingInfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRouterStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}preview(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}/preview").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/routers/{router}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","region","router"],pathParams:["project","region","router"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Routers=Resource$Routers;class Resource$Routes{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/routes/{route}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","route"],pathParams:["project","route"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/routes/{route}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","route"],pathParams:["project","route"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/routes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/routes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Routes=Resource$Routes;class Resource$Securitypolicies{constructor(e){this.context=e}addRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listPreconfiguredExpressionSets(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patchRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeRule(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","securityPolicy"],pathParams:["project","securityPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Securitypolicies=Resource$Securitypolicies;class Resource$Serviceattachments{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","serviceAttachment"],pathParams:["project","region","serviceAttachment"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","serviceAttachment"],pathParams:["project","region","serviceAttachment"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Serviceattachments=Resource$Serviceattachments;class Resource$Snapshots{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{snapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","snapshot"],pathParams:["project","snapshot"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{snapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","snapshot"],pathParams:["project","snapshot"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/snapshots/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Snapshots=Resource$Snapshots;class Resource$Sslcertificates{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","sslCertificate"],pathParams:["project","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","sslCertificate"],pathParams:["project","sslCertificate"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sslcertificates=Resource$Sslcertificates;class Resource$Sslpolicies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listAvailableFeatures(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","sslPolicy"],pathParams:["project","sslPolicy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sslpolicies=Resource$Sslpolicies;class Resource$Subnetworks{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}expandIpCidrRange(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listUsable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setPrivateIpGoogleAccess(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","subnetwork"],pathParams:["project","region","subnetwork"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subnetworks=Resource$Subnetworks;class Resource$Targetgrpcproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetGrpcProxy"],pathParams:["project","targetGrpcProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetGrpcProxy"],pathParams:["project","targetGrpcProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetGrpcProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetGrpcProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetgrpcproxies=Resource$Targetgrpcproxies;class Resource$Targethttpproxies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpProxy"],pathParams:["project","targetHttpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targethttpproxies=Resource$Targethttpproxies;class Resource$Targethttpsproxies{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setQuicOverride(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setUrlMap(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetHttpsProxy"],pathParams:["project","targetHttpsProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targethttpsproxies=Resource$Targethttpsproxies;class Resource$Targetinstances{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","targetInstance"],pathParams:["project","targetInstance","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","targetInstance"],pathParams:["project","targetInstance","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/targetInstances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetinstances=Resource$Targetinstances;class Resource$Targetpools{constructor(e){this.context=e}addHealthCheck(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}addInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getHealth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeHealthCheck(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}removeInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackup(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","targetPool"],pathParams:["project","region","targetPool"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetpools=Resource$Targetpools;class Resource$Targetsslproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackendService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setProxyHeader(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslCertificates(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSslPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetSslProxy"],pathParams:["project","targetSslProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetsslproxies=Resource$Targetsslproxies;class Resource$Targettcpproxies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setBackendService(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setProxyHeader(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","targetTcpProxy"],pathParams:["project","targetTcpProxy"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targettcpproxies=Resource$Targettcpproxies;class Resource$Targetvpngateways{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","targetVpnGateway"],pathParams:["project","region","targetVpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","targetVpnGateway"],pathParams:["project","region","targetVpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetvpngateways=Resource$Targetvpngateways;class Resource$Urlmaps{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}invalidateCache(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","resource"],pathParams:["project","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","urlMap"],pathParams:["project","urlMap"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Urlmaps=Resource$Urlmaps;class Resource$Vpngateways{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnGateway"],pathParams:["project","region","vpnGateway"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Vpngateways=Resource$Vpngateways;class Resource$Vpntunnels{constructor(e){this.context=e}aggregatedList(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/aggregated/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","region","vpnTunnel"],pathParams:["project","region","vpnTunnel"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region","vpnTunnel"],pathParams:["project","region","vpnTunnel"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","region"],pathParams:["project","region"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","region","resource"],pathParams:["project","region","resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Vpntunnels=Resource$Vpntunnels;class Resource$Zoneinplacesnapshots{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","inPlaceSnapshot"],pathParams:["inPlaceSnapshot","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","inPlaceSnapshot"],pathParams:["inPlaceSnapshot","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","resource"],pathParams:["project","resource","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Zoneinplacesnapshots=Resource$Zoneinplacesnapshots;class Resource$Zoneoperations{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}wait(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["project","zone","operation"],pathParams:["operation","project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Zoneoperations=Resource$Zoneoperations;class Resource$Zones{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones/{zone}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project","zone"],pathParams:["project","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://compute.googleapis.com/";const c={options:Object.assign({url:(i+"/compute/alpha/projects/{project}/zones").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["project"],pathParams:["project"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Zones=Resource$Zones})(o=t.compute_alpha||(t.compute_alpha={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.serviceusage_v1beta1=void 0;const r=s(927);var o;(function(e){class Serviceusage{constructor(e,t){this.context={_options:e||{},google:t};this.operations=new Resource$Operations(this.context);this.services=new Resource$Services(this.context)}}e.Serviceusage=Serviceusage;class Resource$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operations=Resource$Operations;class Resource$Services{constructor(e){this.context=e;this.consumerQuotaMetrics=new Resource$Services$Consumerquotametrics(this.context)}batchEnable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/services:batchEnable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:disable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:enable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services=Resource$Services;class Resource$Services$Consumerquotametrics{constructor(e){this.context=e;this.limits=new Resource$Services$Consumerquotametrics$Limits(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/consumerQuotaMetrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics=Resource$Services$Consumerquotametrics;class Resource$Services$Consumerquotametrics$Limits{constructor(e){this.context=e;this.adminOverrides=new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(this.context);this.consumerOverrides=new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics$Limits=Resource$Services$Consumerquotametrics$Limits;class Resource$Services$Consumerquotametrics$Limits$Adminoverrides{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/adminOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/adminOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics$Limits$Adminoverrides=Resource$Services$Consumerquotametrics$Limits$Adminoverrides;class Resource$Services$Consumerquotametrics$Limits$Consumeroverrides{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/consumerOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/consumerOverrides").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://serviceusage.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides=Resource$Services$Consumerquotametrics$Limits$Consumeroverrides})(o=t.serviceusage_v1beta1||(t.serviceusage_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.bigqueryreservation_v1beta1=void 0;const r=s(927);var o;(function(e){class Bigqueryreservation{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Bigqueryreservation=Bigqueryreservation;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.capacityCommitments=new Resource$Projects$Locations$Capacitycommitments(this.context);this.reservations=new Resource$Projects$Locations$Reservations(this.context)}getBiReservation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchAssignments(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}:searchAssignments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateBiReservation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Capacitycommitments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/capacityCommitments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/capacityCommitments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}merge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/capacityCommitments:merge").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}split(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:split").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Capacitycommitments=Resource$Projects$Locations$Capacitycommitments;class Resource$Projects$Locations$Reservations{constructor(e){this.context=e;this.assignments=new Resource$Projects$Locations$Reservations$Assignments(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/reservations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Reservations=Resource$Projects$Locations$Reservations;class Resource$Projects$Locations$Reservations$Assignments{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/assignments").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/assignments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}move(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://bigqueryreservation.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:move").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Reservations$Assignments=Resource$Projects$Locations$Reservations$Assignments})(o=t.bigqueryreservation_v1beta1||(t.bigqueryreservation_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dataflow_v1b3=void 0;const r=s(927);var o;(function(e){class Dataflow{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Dataflow=Dataflow;class Resource$Projects{constructor(e){this.context=e;this.jobs=new Resource$Projects$Jobs(this.context);this.locations=new Resource$Projects$Locations(this.context);this.snapshots=new Resource$Projects$Snapshots(this.context);this.templates=new Resource$Projects$Templates(this.context)}deleteSnapshots(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}workerMessages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/WorkerMessages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Jobs{constructor(e){this.context=e;this.debug=new Resource$Projects$Jobs$Debug(this.context);this.messages=new Resource$Projects$Jobs$Messages(this.context);this.workItems=new Resource$Projects$Jobs$Workitems(this.context)}aggregated(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs:aggregated").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getMetrics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/metrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}snapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}:snapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs=Resource$Projects$Jobs;class Resource$Projects$Jobs$Debug{constructor(e){this.context=e}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendCapture(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs$Debug=Resource$Projects$Jobs$Debug;class Resource$Projects$Jobs$Messages{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/messages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs$Messages=Resource$Projects$Jobs$Messages;class Resource$Projects$Jobs$Workitems{constructor(e){this.context=e}lease(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reportStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","jobId"],pathParams:["jobId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Jobs$Workitems=Resource$Projects$Jobs$Workitems;class Resource$Projects$Locations{constructor(e){this.context=e;this.flexTemplates=new Resource$Projects$Locations$Flextemplates(this.context);this.jobs=new Resource$Projects$Locations$Jobs(this.context);this.snapshots=new Resource$Projects$Locations$Snapshots(this.context);this.sql=new Resource$Projects$Locations$Sql(this.context);this.templates=new Resource$Projects$Locations$Templates(this.context)}workerMessages(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/WorkerMessages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Flextemplates{constructor(e){this.context=e}launch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Flextemplates=Resource$Projects$Locations$Flextemplates;class Resource$Projects$Locations$Jobs{constructor(e){this.context=e;this.debug=new Resource$Projects$Locations$Jobs$Debug(this.context);this.messages=new Resource$Projects$Locations$Jobs$Messages(this.context);this.snapshots=new Resource$Projects$Locations$Jobs$Snapshots(this.context);this.workItems=new Resource$Projects$Locations$Jobs$Workitems(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getMetrics(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}snapshot(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs=Resource$Projects$Locations$Jobs;class Resource$Projects$Locations$Jobs$Debug{constructor(e){this.context=e}getConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}sendCapture(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs$Debug=Resource$Projects$Locations$Jobs$Debug;class Resource$Projects$Locations$Jobs$Messages{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs$Messages=Resource$Projects$Locations$Jobs$Messages;class Resource$Projects$Locations$Jobs$Snapshots{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs$Snapshots=Resource$Projects$Locations$Jobs$Snapshots;class Resource$Projects$Locations$Jobs$Workitems{constructor(e){this.context=e}lease(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}reportStatus(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location","jobId"],pathParams:["jobId","location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Jobs$Workitems=Resource$Projects$Locations$Jobs$Workitems;class Resource$Projects$Locations$Snapshots{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","location","snapshotId"],pathParams:["location","projectId","snapshotId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location","snapshotId"],pathParams:["location","projectId","snapshotId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Snapshots=Resource$Projects$Locations$Snapshots;class Resource$Projects$Locations$Sql{constructor(e){this.context=e}validate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/sql:validate").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Sql=Resource$Projects$Locations$Sql;class Resource$Projects$Locations$Templates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/templates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/templates:get").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}launch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/locations/{location}/templates:launch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","location"],pathParams:["location","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Templates=Resource$Projects$Locations$Templates;class Resource$Projects$Snapshots{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/snapshots/{snapshotId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","snapshotId"],pathParams:["projectId","snapshotId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/snapshots").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Snapshots=Resource$Projects$Snapshots;class Resource$Projects$Templates{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/templates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/templates:get").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}launch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://dataflow.googleapis.com/";const c={options:Object.assign({url:(i+"/v1b3/projects/{projectId}/templates:launch").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId"],pathParams:["projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Templates=Resource$Projects$Templates})(o=t.dataflow_v1b3||(t.dataflow_v1b3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.container_v1=void 0;const r=s(927);var o;(function(e){class Container{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Container=Container;class Resource$Projects{constructor(e){this.context=e;this.aggregated=new Resource$Projects$Aggregated(this.context);this.locations=new Resource$Projects$Locations(this.context);this.zones=new Resource$Projects$Zones(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Aggregated{constructor(e){this.context=e;this.usableSubnetworks=new Resource$Projects$Aggregated$Usablesubnetworks(this.context)}}e.Resource$Projects$Aggregated=Resource$Projects$Aggregated;class Resource$Projects$Aggregated$Usablesubnetworks{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/aggregated/usableSubnetworks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Aggregated$Usablesubnetworks=Resource$Projects$Aggregated$Usablesubnetworks;class Resource$Projects$Locations{constructor(e){this.context=e;this.clusters=new Resource$Projects$Locations$Clusters(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}getServerConfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/serverConfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Clusters{constructor(e){this.context=e;this.nodePools=new Resource$Projects$Locations$Clusters$Nodepools(this.context);this.wellKnown=new Resource$Projects$Locations$Clusters$WellKnown(this.context)}completeIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:completeIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getJwks(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/jwks").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAddons(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setAddons").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLegacyAbac(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setLegacyAbac").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLocations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setLocations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setLogging(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setLogging").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMaintenancePolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setMaintenancePolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMasterAuth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setMasterAuth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMonitoring(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setMonitoring").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNetworkPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setNetworkPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setResourceLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setResourceLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:startIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}updateMaster(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:updateMaster").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters=Resource$Projects$Locations$Clusters;class Resource$Projects$Locations$Clusters$Nodepools{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setAutoscaling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setAutoscaling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setManagement(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setManagement").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:setSize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters$Nodepools=Resource$Projects$Locations$Clusters$Nodepools;class Resource$Projects$Locations$Clusters$WellKnown{constructor(e){this.context=e}getOpenidConfiguration(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/.well-known/openid-configuration").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Clusters$WellKnown=Resource$Projects$Locations$Clusters$WellKnown;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations;class Resource$Projects$Zones{constructor(e){this.context=e;this.clusters=new Resource$Projects$Zones$Clusters(this.context);this.operations=new Resource$Projects$Zones$Operations(this.context)}getServerconfig(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/serverconfig").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones=Resource$Projects$Zones;class Resource$Projects$Zones$Clusters{constructor(e){this.context=e;this.nodePools=new Resource$Projects$Zones$Clusters$Nodepools(this.context)}addons(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}completeIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}legacyAbac(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}locations(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}logging(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}master(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}monitoring(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resourceLabels(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMaintenancePolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setMasterAuth(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setNetworkPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}startIpRotation(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Clusters=Resource$Projects$Zones$Clusters;class Resource$Projects$Zones$Clusters$Nodepools{constructor(e){this.context=e}autoscaling(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","clusterId"],pathParams:["clusterId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}rollback(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setManagement(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setSize(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","clusterId","nodePoolId"],pathParams:["clusterId","nodePoolId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Clusters$Nodepools=Resource$Projects$Zones$Clusters$Nodepools;class Resource$Projects$Zones$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["projectId","zone","operationId"],pathParams:["operationId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/operations/{operationId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone","operationId"],pathParams:["operationId","projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://container.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/projects/{projectId}/zones/{zone}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["projectId","zone"],pathParams:["projectId","zone"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Zones$Operations=Resource$Projects$Zones$Operations})(o=t.container_v1||(t.container_v1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.playcustomapp=t.VERSIONS=void 0;const r=s(927);const o=s(241);t.VERSIONS={v1:o.playcustomapp_v1.Playcustomapp};function playcustomapp(e){return r.getAPI("playcustomapp",e,t.VERSIONS,this)}t.playcustomapp=playcustomapp;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.firebaseml_v1beta2=void 0;const r=s(927);var o;(function(e){class Firebaseml{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Firebaseml=Firebaseml;class Resource$Projects{constructor(e){this.context=e;this.models=new Resource$Projects$Models(this.context);this.operations=new Resource$Projects$Operations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Models{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+parent}/models").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+parent}/models").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Models=Resource$Projects$Models;class Resource$Projects$Operations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://firebaseml.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta2/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Operations=Resource$Projects$Operations})(o=t.firebaseml_v1beta2||(t.firebaseml_v1beta2={}))},function(e,t,s){"use strict";e.exports=PassThrough;var r=s(392);var o=Object.create(s(683));o.inherits=s(689);o.inherits(PassThrough,r);function PassThrough(e){if(!(this instanceof PassThrough))return new PassThrough(e);r.call(this,e)}PassThrough.prototype._transform=function(e,t,s){s(null,e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.dfareporting_v3_3=void 0;const r=s(927);var o;(function(e){class Dfareporting{constructor(e,t){this.context={_options:e||{},google:t};this.accountActiveAdSummaries=new Resource$Accountactiveadsummaries(this.context);this.accountPermissionGroups=new Resource$Accountpermissiongroups(this.context);this.accountPermissions=new Resource$Accountpermissions(this.context);this.accounts=new Resource$Accounts(this.context);this.accountUserProfiles=new Resource$Accountuserprofiles(this.context);this.ads=new Resource$Ads(this.context);this.advertiserGroups=new Resource$Advertisergroups(this.context);this.advertiserLandingPages=new Resource$Advertiserlandingpages(this.context);this.advertisers=new Resource$Advertisers(this.context);this.browsers=new Resource$Browsers(this.context);this.campaignCreativeAssociations=new Resource$Campaigncreativeassociations(this.context);this.campaigns=new Resource$Campaigns(this.context);this.changeLogs=new Resource$Changelogs(this.context);this.cities=new Resource$Cities(this.context);this.connectionTypes=new Resource$Connectiontypes(this.context);this.contentCategories=new Resource$Contentcategories(this.context);this.conversions=new Resource$Conversions(this.context);this.countries=new Resource$Countries(this.context);this.creativeAssets=new Resource$Creativeassets(this.context);this.creativeFields=new Resource$Creativefields(this.context);this.creativeFieldValues=new Resource$Creativefieldvalues(this.context);this.creativeGroups=new Resource$Creativegroups(this.context);this.creatives=new Resource$Creatives(this.context);this.dimensionValues=new Resource$Dimensionvalues(this.context);this.directorySites=new Resource$Directorysites(this.context);this.dynamicTargetingKeys=new Resource$Dynamictargetingkeys(this.context);this.eventTags=new Resource$Eventtags(this.context);this.files=new Resource$Files(this.context);this.floodlightActivities=new Resource$Floodlightactivities(this.context);this.floodlightActivityGroups=new Resource$Floodlightactivitygroups(this.context);this.floodlightConfigurations=new Resource$Floodlightconfigurations(this.context);this.inventoryItems=new Resource$Inventoryitems(this.context);this.languages=new Resource$Languages(this.context);this.metros=new Resource$Metros(this.context);this.mobileApps=new Resource$Mobileapps(this.context);this.mobileCarriers=new Resource$Mobilecarriers(this.context);this.operatingSystems=new Resource$Operatingsystems(this.context);this.operatingSystemVersions=new Resource$Operatingsystemversions(this.context);this.orderDocuments=new Resource$Orderdocuments(this.context);this.orders=new Resource$Orders(this.context);this.placementGroups=new Resource$Placementgroups(this.context);this.placements=new Resource$Placements(this.context);this.placementStrategies=new Resource$Placementstrategies(this.context);this.platformTypes=new Resource$Platformtypes(this.context);this.postalCodes=new Resource$Postalcodes(this.context);this.projects=new Resource$Projects(this.context);this.regions=new Resource$Regions(this.context);this.remarketingLists=new Resource$Remarketinglists(this.context);this.remarketingListShares=new Resource$Remarketinglistshares(this.context);this.reports=new Resource$Reports(this.context);this.sites=new Resource$Sites(this.context);this.sizes=new Resource$Sizes(this.context);this.subaccounts=new Resource$Subaccounts(this.context);this.targetableRemarketingLists=new Resource$Targetableremarketinglists(this.context);this.targetingTemplates=new Resource$Targetingtemplates(this.context);this.userProfiles=new Resource$Userprofiles(this.context);this.userRolePermissionGroups=new Resource$Userrolepermissiongroups(this.context);this.userRolePermissions=new Resource$Userrolepermissions(this.context);this.userRoles=new Resource$Userroles(this.context);this.videoFormats=new Resource$Videoformats(this.context)}}e.Dfareporting=Dfareporting;class Resource$Accountactiveadsummaries{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","summaryAccountId"],pathParams:["profileId","summaryAccountId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accountactiveadsummaries=Resource$Accountactiveadsummaries;class Resource$Accountpermissiongroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accountpermissiongroups=Resource$Accountpermissiongroups;class Resource$Accountpermissions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accountpermissions=Resource$Accountpermissions;class Resource$Accounts{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accounts").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accounts=Resource$Accounts;class Resource$Accountuserprofiles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Accountuserprofiles=Resource$Accountuserprofiles;class Resource$Ads{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/ads").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/ads").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/ads").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/ads").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Ads=Resource$Ads;class Resource$Advertisergroups{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisergroups=Resource$Advertisergroups;class Resource$Advertiserlandingpages{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertiserlandingpages=Resource$Advertiserlandingpages;class Resource$Advertisers{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/advertisers").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Advertisers=Resource$Advertisers;class Resource$Browsers{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/browsers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Browsers=Resource$Browsers;class Resource$Campaigncreativeassociations{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId","campaignId"],pathParams:["campaignId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","campaignId"],pathParams:["campaignId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Campaigncreativeassociations=Resource$Campaigncreativeassociations;class Resource$Campaigns{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/campaigns").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Campaigns=Resource$Campaigns;class Resource$Changelogs{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/changeLogs").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Changelogs=Resource$Changelogs;class Resource$Cities{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/cities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Cities=Resource$Cities;class Resource$Connectiontypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Connectiontypes=Resource$Connectiontypes;class Resource$Contentcategories{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/contentCategories").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Contentcategories=Resource$Contentcategories;class Resource$Conversions{constructor(e){this.context=e}batchinsert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}batchupdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Conversions=Resource$Conversions;class Resource$Countries{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","dartId"],pathParams:["dartId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/countries").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Countries=Resource$Countries;class Resource$Creativeassets{constructor(e){this.context=e}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,mediaUrl:(i+"/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets").replace(/([^:]\/)\/+/g,"$1"),requiredParams:["profileId","advertiserId"],pathParams:["advertiserId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creativeassets=Resource$Creativeassets;class Resource$Creativefields{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creativefields=Resource$Creativefields;class Resource$Creativefieldvalues{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","creativeFieldId","id"],pathParams:["creativeFieldId","id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","creativeFieldId","id"],pathParams:["creativeFieldId","id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId","creativeFieldId"],pathParams:["creativeFieldId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","creativeFieldId"],pathParams:["creativeFieldId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","creativeFieldId","id"],pathParams:["creativeFieldId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId","creativeFieldId"],pathParams:["creativeFieldId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creativefieldvalues=Resource$Creativefieldvalues;class Resource$Creativegroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creativegroups=Resource$Creativegroups;class Resource$Creatives{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/creatives").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Creatives=Resource$Creatives;class Resource$Dimensionvalues{constructor(e){this.context=e}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Dimensionvalues=Resource$Dimensionvalues;class Resource$Directorysites{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/directorySites").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/directorySites").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Directorysites=Resource$Directorysites;class Resource$Dynamictargetingkeys{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","objectId","name","objectType"],pathParams:["objectId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Dynamictargetingkeys=Resource$Dynamictargetingkeys;class Resource$Eventtags{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/eventTags").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Eventtags=Resource$Eventtags;class Resource$Files{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/reports/{reportId}/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["reportId","fileId"],pathParams:["fileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/files").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Files=Resource$Files;class Resource$Floodlightactivities{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}generatetag(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Floodlightactivities=Resource$Floodlightactivities;class Resource$Floodlightactivitygroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Floodlightactivitygroups=Resource$Floodlightactivitygroups;class Resource$Floodlightconfigurations{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Floodlightconfigurations=Resource$Floodlightconfigurations;class Resource$Inventoryitems{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId","id"],pathParams:["id","profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId"],pathParams:["profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Inventoryitems=Resource$Inventoryitems;class Resource$Languages{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/languages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Languages=Resource$Languages;class Resource$Metros{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/metros").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Metros=Resource$Metros;class Resource$Mobileapps{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/mobileApps").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Mobileapps=Resource$Mobileapps;class Resource$Mobilecarriers{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Mobilecarriers=Resource$Mobilecarriers;class Resource$Operatingsystems{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","dartId"],pathParams:["dartId","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operatingsystems=Resource$Operatingsystems;class Resource$Operatingsystemversions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Operatingsystemversions=Resource$Operatingsystemversions;class Resource$Orderdocuments{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId","id"],pathParams:["id","profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId"],pathParams:["profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orderdocuments=Resource$Orderdocuments;class Resource$Orders{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId","id"],pathParams:["id","profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","projectId"],pathParams:["profileId","projectId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Orders=Resource$Orders;class Resource$Placementgroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementGroups").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementGroups").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Placementgroups=Resource$Placementgroups;class Resource$Placements{constructor(e){this.context=e}generatetags(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placements").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Placements=Resource$Placements;class Resource$Placementstrategies{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Placementstrategies=Resource$Placementstrategies;class Resource$Platformtypes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/platformTypes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Platformtypes=Resource$Platformtypes;class Resource$Postalcodes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","code"],pathParams:["code","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/postalCodes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Postalcodes=Resource$Postalcodes;class Resource$Projects{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/projects").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects=Resource$Projects;class Resource$Regions{constructor(e){this.context=e}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/regions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Regions=Resource$Regions;class Resource$Remarketinglists{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","advertiserId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Remarketinglists=Resource$Remarketinglists;class Resource$Remarketinglistshares{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","remarketingListId"],pathParams:["profileId","remarketingListId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","remarketingListId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Remarketinglistshares=Resource$Remarketinglistshares;class Resource$Reports{constructor(e){this.context=e;this.compatibleFields=new Resource$Reports$Compatiblefields(this.context);this.files=new Resource$Reports$Files(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}run(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports=Resource$Reports;class Resource$Reports$Compatiblefields{constructor(e){this.context=e}query(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports$Compatiblefields=Resource$Reports$Compatiblefields;class Resource$Reports$Files{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","reportId","fileId"],pathParams:["fileId","profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","reportId"],pathParams:["profileId","reportId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Reports$Files=Resource$Reports$Files;class Resource$Sites{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sites").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sites").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sites").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sites").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sites=Resource$Sites;class Resource$Sizes{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sizes").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/sizes").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Sizes=Resource$Sizes;class Resource$Subaccounts{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/subaccounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/subaccounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/subaccounts").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/subaccounts").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Subaccounts=Resource$Subaccounts;class Resource$Targetableremarketinglists{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","advertiserId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetableremarketinglists=Resource$Targetableremarketinglists;class Resource$Targetingtemplates{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Targetingtemplates=Resource$Targetingtemplates;class Resource$Userprofiles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userprofiles=Resource$Userprofiles;class Resource$Userrolepermissiongroups{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userrolepermissiongroups=Resource$Userrolepermissiongroups;class Resource$Userrolepermissions{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userrolepermissions=Resource$Userrolepermissions;class Resource$Userroles{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["profileId","id"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/userRoles").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userroles=Resource$Userroles;class Resource$Videoformats{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId","id"],pathParams:["id","profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/dfareporting/v3.3/userprofiles/{profileId}/videoFormats").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["profileId"],pathParams:["profileId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Videoformats=Resource$Videoformats})(o=t.dfareporting_v3_3||(t.dfareporting_v3_3={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.siteVerification=t.VERSIONS=void 0;const r=s(927);const o=s(477);t.VERSIONS={v1:o.siteVerification_v1.Siteverification};function siteVerification(e){return r.getAPI("siteVerification",e,t.VERSIONS,this)}t.siteVerification=siteVerification;const n=new r.AuthPlus;t.auth=n},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.healthcare_v1beta1=void 0;const r=s(927);var o;(function(e){class Healthcare{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Healthcare=Healthcare;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.datasets=new Resource$Projects$Locations$Datasets(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Datasets{constructor(e){this.context=e;this.annotationStores=new Resource$Projects$Locations$Datasets$Annotationstores(this.context);this.dicomStores=new Resource$Projects$Locations$Datasets$Dicomstores(this.context);this.fhirStores=new Resource$Projects$Locations$Datasets$Fhirstores(this.context);this.hl7V2Stores=new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context);this.operations=new Resource$Projects$Locations$Datasets$Operations(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/datasets").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+sourceDataset}:deidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["sourceDataset"],pathParams:["sourceDataset"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/datasets").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets=Resource$Projects$Locations$Datasets;class Resource$Projects$Locations$Datasets$Annotationstores{constructor(e){this.context=e}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Annotationstores=Resource$Projects$Locations$Datasets$Annotationstores;class Resource$Projects$Locations$Datasets$Dicomstores{constructor(e){this.context=e;this.studies=new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomStores").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+sourceStore}:deidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["sourceStore"],pathParams:["sourceStore"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomStores").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForSeries(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForStudies(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}storeInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Dicomstores=Resource$Projects$Locations$Datasets$Dicomstores;class Resource$Projects$Locations$Datasets$Dicomstores$Studies{constructor(e){this.context=e;this.series=new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveStudy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForSeries(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}storeInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Dicomstores$Studies=Resource$Projects$Locations$Datasets$Dicomstores$Studies;class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series{constructor(e){this.context=e;this.instances=new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveSeries(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}searchForInstances(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series=Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series;class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances{constructor(e){this.context=e;this.frames=new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context)}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveInstance(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveMetadata(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveRendered(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances=Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances;class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames{constructor(e){this.context=e}retrieveFrames(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}retrieveRendered(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent","dicomWebPath"],pathParams:["dicomWebPath","parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames=Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames;class Resource$Projects$Locations$Datasets$Fhirstores{constructor(e){this.context=e;this.fhir=new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhirStores").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}deidentify(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+sourceStore}:deidentify").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["sourceStore"],pathParams:["sourceStore"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}export(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:export").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}import(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:import").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhirStores").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Fhirstores=Resource$Projects$Locations$Datasets$Fhirstores;class Resource$Projects$Locations$Datasets$Fhirstores$Fhir{constructor(e){this.context=e}capabilities(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/fhir/metadata").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}ConceptMapSearchTranslate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/ConceptMap/$translate").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}ConceptMapTranslate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/$translate").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}conditionalDelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/{+type}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["parent","type"],pathParams:["parent","type"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}conditionalPatch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/{+type}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["parent","type"],pathParams:["parent","type"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}conditionalUpdate(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/{+type}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["parent","type"],pathParams:["parent","type"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/{+type}").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent","type"],pathParams:["parent","type"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}executeBundle(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}history(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/_history").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}ObservationLastn(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/Observation/$lastn").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}PatientEverything(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/$everything").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}read(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}ResourcePurge(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/$purge").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}search(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/fhir/_search").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}vread(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Fhirstores$Fhir=Resource$Projects$Locations$Datasets$Fhirstores$Fhir;class Resource$Projects$Locations$Datasets$Hl7v2stores{constructor(e){this.context=e;this.messages=new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/hl7V2Stores").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/hl7V2Stores").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Hl7v2stores=Resource$Projects$Locations$Datasets$Hl7v2stores;class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/messages").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}ingest(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/messages:ingest").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/messages").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages=Resource$Projects$Locations$Datasets$Hl7v2stores$Messages;class Resource$Projects$Locations$Datasets$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://healthcare.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Datasets$Operations=Resource$Projects$Locations$Datasets$Operations})(o=t.healthcare_v1beta1||(t.healthcare_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.poly=t.VERSIONS=void 0;const r=s(927);const o=s(930);t.VERSIONS={v1:o.poly_v1.Poly};function poly(e){return r.getAPI("poly",e,t.VERSIONS,this)}t.poly=poly;const n=new r.AuthPlus;t.auth=n},function(e,t,s){var r=s(239);s(828);s(784);s(794);s(988);s(76);s(638);s(707);s(152);s(249);var o=r.asn1;var n=e.exports=r.pkcs7=r.pkcs7||{};n.messageFromPem=function(e){var t=r.pem.decode(e)[0];if(t.type!=="PKCS7"){var s=new Error("Could not convert PKCS#7 message from PEM; PEM "+'header type is not "PKCS#7".');s.headerType=t.type;throw s}if(t.procType&&t.procType.type==="ENCRYPTED"){throw new Error("Could not convert PKCS#7 message from PEM; PEM is encrypted.")}var i=o.fromDer(t.body);return n.messageFromAsn1(i)};n.messageToPem=function(e,t){var s={type:"PKCS7",body:o.toDer(e.toAsn1()).getBytes()};return r.pem.encode(s,{maxline:t})};n.messageFromAsn1=function(e){var t={};var s=[];if(!o.validate(e,n.asn1.contentInfoValidator,t,s)){var i=new Error("Cannot read PKCS#7 message. "+"ASN.1 object is not an PKCS#7 ContentInfo.");i.errors=s;throw i}var c=o.derToOid(t.contentType);var u;switch(c){case r.pki.oids.envelopedData:u=n.createEnvelopedData();break;case r.pki.oids.encryptedData:u=n.createEncryptedData();break;case r.pki.oids.signedData:u=n.createSignedData();break;default:throw new Error("Cannot read PKCS#7 message. ContentType with OID "+c+" is not (yet) supported.")}u.fromAsn1(t.content.value[0]);return u};n.createSignedData=function(){var e=null;e={type:r.pki.oids.signedData,version:1,certificates:[],crls:[],signers:[],digestAlgorithmIdentifiers:[],contentInfo:null,signerInfos:[],fromAsn1:function(t){_fromAsn1(e,t,n.asn1.signedDataValidator);e.certificates=[];e.crls=[];e.digestAlgorithmIdentifiers=[];e.contentInfo=null;e.signerInfos=[];if(e.rawCapture.certificates){var s=e.rawCapture.certificates.value;for(var o=0;o0){i.value[0].value.push(o.create(o.Class.CONTEXT_SPECIFIC,0,true,t))}if(n.length>0){i.value[0].value.push(o.create(o.Class.CONTEXT_SPECIFIC,1,true,n))}i.value[0].value.push(o.create(o.Class.UNIVERSAL,o.Type.SET,true,e.signerInfos));return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(e.type).getBytes()),i])},addSigner:function(t){var s=t.issuer;var o=t.serialNumber;if(t.certificate){var n=t.certificate;if(typeof n==="string"){n=r.pki.certificateFromPem(n)}s=n.issuer.attributes;o=n.serialNumber}var i=t.key;if(!i){throw new Error("Could not add PKCS#7 signer; no private key specified.")}if(typeof i==="string"){i=r.pki.privateKeyFromPem(i)}var c=t.digestAlgorithm||r.pki.oids.sha1;switch(c){case r.pki.oids.sha1:case r.pki.oids.sha256:case r.pki.oids.sha384:case r.pki.oids.sha512:case r.pki.oids.md5:break;default:throw new Error("Could not add PKCS#7 signer; unknown message digest algorithm: "+c)}var u=t.authenticatedAttributes||[];if(u.length>0){var a=false;var f=false;for(var p=0;p0){var s=o.create(o.Class.CONTEXT_SPECIFIC,1,true,[]);for(var n=0;n=s&&i{t(null,e)},e=>{t(this.processError(e))})}else{return r.request(e).catch(e=>{throw this.processError(e)})}}processError(e){const t=e.response;const s=e;const r=t?t.data:null;if(t&&r&&r.error&&t.status!==200){if(typeof r.error==="string"){s.message=r.error;s.code=t.status.toString()}else if(Array.isArray(r.error.errors)){s.message=r.error.errors.map(e=>e.message).join("\n");s.code=r.error.code;s.errors=r.error.errors}else{s.message=r.error.message;s.code=r.error.code||t.status}}else if(t&&t.status>=400){s.message=r;s.code=t.status.toString()}return s}}t.DefaultTransporter=DefaultTransporter;DefaultTransporter.USER_AGENT=`${i}/${n.version}`},function(e,t,s){var r=s(293).Buffer;e.exports=function toString(e){if(typeof e==="string")return e;if(typeof e==="number"||r.isBuffer(e))return e.toString();return JSON.stringify(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.licensing_v1=void 0;const r=s(927);var o;(function(e){class Licensing{constructor(e,t){this.context={_options:e||{},google:t};this.licenseAssignments=new Resource$Licenseassignments(this.context)}}e.Licensing=Licensing;class Resource$Licenseassignments{constructor(e){this.context=e}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["productId","skuId","userId"],pathParams:["productId","skuId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["productId","skuId","userId"],pathParams:["productId","skuId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}insert(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/user").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["productId","skuId"],pathParams:["productId","skuId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listForProduct(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["productId","customerId"],pathParams:["productId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}listForProductAndSku(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/users").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["productId","skuId","customerId"],pathParams:["productId","skuId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["productId","skuId","userId"],pathParams:["productId","skuId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["productId","skuId","userId"],pathParams:["productId","skuId","userId"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Licenseassignments=Resource$Licenseassignments})(o=t.licensing_v1||(t.licensing_v1={}))},,,function(e,t,s){var r=s(662);var o=s(307);var n=["HS256","HS384","HS512","RS256","RS384","RS512","PS256","PS384","PS512","ES256","ES384","ES512"];t.ALGORITHMS=n;t.sign=r.sign;t.verify=o.verify;t.decode=o.decode;t.isValid=o.isValid;t.createSign=function createSign(e){return new r(e)};t.createVerify=function createVerify(e){return new o(e)}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.oauth2_v2=void 0;const r=s(927);var o;(function(e){class Oauth2{constructor(e,t){this.context={_options:e||{},google:t};this.userinfo=new Resource$Userinfo(this.context)}tokeninfo(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/oauth2/v2/tokeninfo").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Oauth2=Oauth2;class Resource$Userinfo{constructor(e){this.context=e;this.v2=new Resource$Userinfo$V2(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/oauth2/v2/userinfo").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userinfo=Resource$Userinfo;class Resource$Userinfo$V2{constructor(e){this.context=e;this.me=new Resource$Userinfo$V2$Me(this.context)}}e.Resource$Userinfo$V2=Resource$Userinfo$V2;class Resource$Userinfo$V2$Me{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://www.googleapis.com/";const c={options:Object.assign({url:(i+"/userinfo/v2/me").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Userinfo$V2$Me=Resource$Userinfo$V2$Me})(o=t.oauth2_v2||(t.oauth2_v2={}))},function(e,t,s){var r=s(622);var o=process.platform==="win32";var n=s(747);var i=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function rethrow(){var e;if(i){var t=new Error;e=debugCallback}else e=missingCallback;return e;function debugCallback(e){if(e){t.message=e.message;e=t;missingCallback(e)}}function missingCallback(e){if(e){if(process.throwDeprecation)throw e;else if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);if(process.traceDeprecation)console.trace(t);else console.error(t)}}}}function maybeCallback(e){return typeof e==="function"?e:rethrow()}var c=r.normalize;if(o){var u=/(.*?)(?:[\/\\]+|$)/g}else{var u=/(.*?)(?:[\/]+|$)/g}if(o){var a=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/}else{var a=/^[\/]*/}t.realpathSync=function realpathSync(e,t){e=r.resolve(e);if(t&&Object.prototype.hasOwnProperty.call(t,e)){return t[e]}var s=e,i={},c={};var f;var p;var h;var d;start();function start(){var t=a.exec(e);f=t[0].length;p=t[0];h=t[0];d="";if(o&&!c[h]){n.lstatSync(h);c[h]=true}}while(f=e.length){if(t)t[i]=e;return s(null,e)}u.lastIndex=p;var r=u.exec(e);l=h;h+=r[0];d=l+r[1];p=u.lastIndex;if(f[d]||t&&t[d]===d){return process.nextTick(LOOP)}if(t&&Object.prototype.hasOwnProperty.call(t,d)){return gotResolvedLink(t[d])}return n.lstat(d,gotStat)}function gotStat(e,r){if(e)return s(e);if(!r.isSymbolicLink()){f[d]=true;if(t)t[d]=d;return process.nextTick(LOOP)}if(!o){var i=r.dev.toString(32)+":"+r.ino.toString(32);if(c.hasOwnProperty(i)){return gotTarget(null,c[i],d)}}n.stat(d,function(e){if(e)return s(e);n.readlink(d,function(e,t){if(!o)c[i]=t;gotTarget(e,t)})})}function gotTarget(e,o,n){if(e)return s(e);var i=r.resolve(l,o);if(t)t[n]=i;gotResolvedLink(i)}function gotResolvedLink(t){e=r.resolve(t,e.slice(p));start()}}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.file_v1=void 0;const r=s(927);var o;(function(e){class File{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.File=File;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.instances=new Resource$Projects$Locations$Instances(this.context);this.operations=new Resource$Projects$Locations$Operations(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Instances{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/instances").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Instances=Resource$Projects$Locations$Instances;class Resource$Projects$Locations$Operations{constructor(e){this.context=e}cancel(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:cancel").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://file.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/operations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Operations=Resource$Projects$Locations$Operations})(o=t.file_v1||(t.file_v1={}))},function(e){e.exports={"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});const r=s(378);const o=s(386);function createCrypto(){if(hasBrowserCrypto()){return new r.BrowserCrypto}return new o.NodeCrypto}t.createCrypto=createCrypto;function hasBrowserCrypto(){return typeof window!=="undefined"&&typeof window.crypto!=="undefined"&&typeof window.crypto.subtle!=="undefined"}t.hasBrowserCrypto=hasBrowserCrypto},,,function(e){e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("expected path to be a string")}if(e==="\\"||e==="/")return"/";var s=e.length;if(s<=1)return e;var r="";if(s>4&&e[3]==="\\"){var o=e[2];if((o==="?"||o===".")&&e.slice(0,2)==="\\\\"){e=e.slice(2);r="//"}}var n=e.split(/[\/\\]+/);if(t!==false&&n[n.length-1]===""){n.pop()}return r+n.join("/")}},function(e,t,s){var r=s(239);r.pki=r.pki||{};var o=e.exports=r.pki.oids=r.oids=r.oids||{};function _IN(e,t){o[e]=t;o[t]=e}function _I_(e,t){o[e]=t}_IN("1.2.840.113549.1.1.1","rsaEncryption");_IN("1.2.840.113549.1.1.4","md5WithRSAEncryption");_IN("1.2.840.113549.1.1.5","sha1WithRSAEncryption");_IN("1.2.840.113549.1.1.7","RSAES-OAEP");_IN("1.2.840.113549.1.1.8","mgf1");_IN("1.2.840.113549.1.1.9","pSpecified");_IN("1.2.840.113549.1.1.10","RSASSA-PSS");_IN("1.2.840.113549.1.1.11","sha256WithRSAEncryption");_IN("1.2.840.113549.1.1.12","sha384WithRSAEncryption");_IN("1.2.840.113549.1.1.13","sha512WithRSAEncryption");_IN("1.3.101.112","EdDSA25519");_IN("1.2.840.10040.4.3","dsa-with-sha1");_IN("1.3.14.3.2.7","desCBC");_IN("1.3.14.3.2.26","sha1");_IN("2.16.840.1.101.3.4.2.1","sha256");_IN("2.16.840.1.101.3.4.2.2","sha384");_IN("2.16.840.1.101.3.4.2.3","sha512");_IN("1.2.840.113549.2.5","md5");_IN("1.2.840.113549.1.7.1","data");_IN("1.2.840.113549.1.7.2","signedData");_IN("1.2.840.113549.1.7.3","envelopedData");_IN("1.2.840.113549.1.7.4","signedAndEnvelopedData");_IN("1.2.840.113549.1.7.5","digestedData");_IN("1.2.840.113549.1.7.6","encryptedData");_IN("1.2.840.113549.1.9.1","emailAddress");_IN("1.2.840.113549.1.9.2","unstructuredName");_IN("1.2.840.113549.1.9.3","contentType");_IN("1.2.840.113549.1.9.4","messageDigest");_IN("1.2.840.113549.1.9.5","signingTime");_IN("1.2.840.113549.1.9.6","counterSignature");_IN("1.2.840.113549.1.9.7","challengePassword");_IN("1.2.840.113549.1.9.8","unstructuredAddress");_IN("1.2.840.113549.1.9.14","extensionRequest");_IN("1.2.840.113549.1.9.20","friendlyName");_IN("1.2.840.113549.1.9.21","localKeyId");_IN("1.2.840.113549.1.9.22.1","x509Certificate");_IN("1.2.840.113549.1.12.10.1.1","keyBag");_IN("1.2.840.113549.1.12.10.1.2","pkcs8ShroudedKeyBag");_IN("1.2.840.113549.1.12.10.1.3","certBag");_IN("1.2.840.113549.1.12.10.1.4","crlBag");_IN("1.2.840.113549.1.12.10.1.5","secretBag");_IN("1.2.840.113549.1.12.10.1.6","safeContentsBag");_IN("1.2.840.113549.1.5.13","pkcs5PBES2");_IN("1.2.840.113549.1.5.12","pkcs5PBKDF2");_IN("1.2.840.113549.1.12.1.1","pbeWithSHAAnd128BitRC4");_IN("1.2.840.113549.1.12.1.2","pbeWithSHAAnd40BitRC4");_IN("1.2.840.113549.1.12.1.3","pbeWithSHAAnd3-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.4","pbeWithSHAAnd2-KeyTripleDES-CBC");_IN("1.2.840.113549.1.12.1.5","pbeWithSHAAnd128BitRC2-CBC");_IN("1.2.840.113549.1.12.1.6","pbewithSHAAnd40BitRC2-CBC");_IN("1.2.840.113549.2.7","hmacWithSHA1");_IN("1.2.840.113549.2.8","hmacWithSHA224");_IN("1.2.840.113549.2.9","hmacWithSHA256");_IN("1.2.840.113549.2.10","hmacWithSHA384");_IN("1.2.840.113549.2.11","hmacWithSHA512");_IN("1.2.840.113549.3.7","des-EDE3-CBC");_IN("2.16.840.1.101.3.4.1.2","aes128-CBC");_IN("2.16.840.1.101.3.4.1.22","aes192-CBC");_IN("2.16.840.1.101.3.4.1.42","aes256-CBC");_IN("2.5.4.3","commonName");_IN("2.5.4.5","serialName");_IN("2.5.4.6","countryName");_IN("2.5.4.7","localityName");_IN("2.5.4.8","stateOrProvinceName");_IN("2.5.4.9","streetAddress");_IN("2.5.4.10","organizationName");_IN("2.5.4.11","organizationalUnitName");_IN("2.5.4.13","description");_IN("2.5.4.15","businessCategory");_IN("2.5.4.17","postalCode");_IN("1.3.6.1.4.1.311.60.2.1.2","jurisdictionOfIncorporationStateOrProvinceName");_IN("1.3.6.1.4.1.311.60.2.1.3","jurisdictionOfIncorporationCountryName");_IN("2.16.840.1.113730.1.1","nsCertType");_IN("2.16.840.1.113730.1.13","nsComment");_I_("2.5.29.1","authorityKeyIdentifier");_I_("2.5.29.2","keyAttributes");_I_("2.5.29.3","certificatePolicies");_I_("2.5.29.4","keyUsageRestriction");_I_("2.5.29.5","policyMapping");_I_("2.5.29.6","subtreesConstraint");_I_("2.5.29.7","subjectAltName");_I_("2.5.29.8","issuerAltName");_I_("2.5.29.9","subjectDirectoryAttributes");_I_("2.5.29.10","basicConstraints");_I_("2.5.29.11","nameConstraints");_I_("2.5.29.12","policyConstraints");_I_("2.5.29.13","basicConstraints");_IN("2.5.29.14","subjectKeyIdentifier");_IN("2.5.29.15","keyUsage");_I_("2.5.29.16","privateKeyUsagePeriod");_IN("2.5.29.17","subjectAltName");_IN("2.5.29.18","issuerAltName");_IN("2.5.29.19","basicConstraints");_I_("2.5.29.20","cRLNumber");_I_("2.5.29.21","cRLReason");_I_("2.5.29.22","expirationDate");_I_("2.5.29.23","instructionCode");_I_("2.5.29.24","invalidityDate");_I_("2.5.29.25","cRLDistributionPoints");_I_("2.5.29.26","issuingDistributionPoint");_I_("2.5.29.27","deltaCRLIndicator");_I_("2.5.29.28","issuingDistributionPoint");_I_("2.5.29.29","certificateIssuer");_I_("2.5.29.30","nameConstraints");_IN("2.5.29.31","cRLDistributionPoints");_IN("2.5.29.32","certificatePolicies");_I_("2.5.29.33","policyMappings");_I_("2.5.29.34","policyConstraints");_IN("2.5.29.35","authorityKeyIdentifier");_I_("2.5.29.36","policyConstraints");_IN("2.5.29.37","extKeyUsage");_I_("2.5.29.46","freshestCRL");_I_("2.5.29.54","inhibitAnyPolicy");_IN("1.3.6.1.4.1.11129.2.4.2","timestampList");_IN("1.3.6.1.5.5.7.1.1","authorityInfoAccess");_IN("1.3.6.1.5.5.7.3.1","serverAuth");_IN("1.3.6.1.5.5.7.3.2","clientAuth");_IN("1.3.6.1.5.5.7.3.3","codeSigning");_IN("1.3.6.1.5.5.7.3.4","emailProtection");_IN("1.3.6.1.5.5.7.3.8","timeStamping")},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.auth=t.analytics=t.VERSIONS=void 0;const r=s(927);const o=s(842);t.VERSIONS={v3:o.analytics_v3.Analytics};function analytics(e){return r.getAPI("analytics",e,t.VERSIONS,this)}t.analytics=analytics;const n=new r.AuthPlus;t.auth=n},,function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.servicedirectory_v1beta1=void 0;const r=s(927);var o;(function(e){class Servicedirectory{constructor(e,t){this.context={_options:e||{},google:t};this.projects=new Resource$Projects(this.context)}}e.Servicedirectory=Servicedirectory;class Resource$Projects{constructor(e){this.context=e;this.locations=new Resource$Projects$Locations(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Locations{constructor(e){this.context=e;this.namespaces=new Resource$Projects$Locations$Namespaces(this.context)}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}/locations").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations=Resource$Projects$Locations;class Resource$Projects$Locations$Namespaces{constructor(e){this.context=e;this.services=new Resource$Projects$Locations$Namespaces$Services(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/namespaces").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/namespaces").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Namespaces=Resource$Projects$Locations$Namespaces;class Resource$Projects$Locations$Namespaces$Services{constructor(e){this.context=e;this.endpoints=new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/services").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}resolve(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}:resolve").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Namespaces$Services=Resource$Projects$Locations$Namespaces$Services;class Resource$Projects$Locations$Namespaces$Services$Endpoints{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/endpoints").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+parent}/endpoints").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://servicedirectory.googleapis.com/";const c={options:Object.assign({url:(i+"/v1beta1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Locations$Namespaces$Services$Endpoints=Resource$Projects$Locations$Namespaces$Services$Endpoints})(o=t.servicedirectory_v1beta1||(t.servicedirectory_v1beta1={}))},function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.iam_v1=void 0;const r=s(927);var o;(function(e){class Iam{constructor(e,t){this.context={_options:e||{},google:t};this.iamPolicies=new Resource$Iampolicies(this.context);this.organizations=new Resource$Organizations(this.context);this.permissions=new Resource$Permissions(this.context);this.projects=new Resource$Projects(this.context);this.roles=new Resource$Roles(this.context)}}e.Iam=Iam;class Resource$Iampolicies{constructor(e){this.context=e}lintPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/iamPolicies:lintPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}queryAuditableServices(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/iamPolicies:queryAuditableServices").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Iampolicies=Resource$Iampolicies;class Resource$Organizations{constructor(e){this.context=e;this.roles=new Resource$Organizations$Roles(this.context)}}e.Resource$Organizations=Resource$Organizations;class Resource$Organizations$Roles{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/roles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/roles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Organizations$Roles=Resource$Organizations$Roles;class Resource$Permissions{constructor(e){this.context=e}queryTestablePermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/permissions:queryTestablePermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Permissions=Resource$Permissions;class Resource$Projects{constructor(e){this.context=e;this.roles=new Resource$Projects$Roles(this.context);this.serviceAccounts=new Resource$Projects$Serviceaccounts(this.context)}}e.Resource$Projects=Resource$Projects;class Resource$Projects$Roles{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/roles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+parent}/roles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["parent"],pathParams:["parent"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Roles=Resource$Projects$Roles;class Resource$Projects$Serviceaccounts{constructor(e){this.context=e;this.keys=new Resource$Projects$Serviceaccounts$Keys(this.context)}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/serviceAccounts").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}disable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:disable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}enable(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:enable").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}getIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:getIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/serviceAccounts").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}patch(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PATCH"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}setIamPolicy(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:setIamPolicy").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signBlob(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:signBlob").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}signJwt(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:signJwt").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}testIamPermissions(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+resource}:testIamPermissions").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["resource"],pathParams:["resource"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}undelete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}:undelete").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}update(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"PUT"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Serviceaccounts=Resource$Projects$Serviceaccounts;class Resource$Projects$Serviceaccounts$Keys{constructor(e){this.context=e}create(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/keys").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}delete(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"DELETE"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/keys").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}upload(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}/keys:upload").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Projects$Serviceaccounts$Keys=Resource$Projects$Serviceaccounts$Keys;class Resource$Roles{constructor(e){this.context=e}get(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/{+name}").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:["name"],pathParams:["name"],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}list(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/roles").replace(/([^:]\/)\/+/g,"$1"),method:"GET"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}queryGrantableRoles(e,t,s){let o=e||{};let n=t||{};if(typeof e==="function"){s=e;o={};n={}}if(typeof t==="function"){s=t;n={}}const i=n.rootUrl||"https://iam.googleapis.com/";const c={options:Object.assign({url:(i+"/v1/roles:queryGrantableRoles").replace(/([^:]\/)\/+/g,"$1"),method:"POST"},n),params:o,requiredParams:[],pathParams:[],context:this.context};if(s){r.createAPIRequest(c,s)}else{return r.createAPIRequest(c)}}}e.Resource$Roles=Resource$Roles})(o=t.iam_v1||(t.iam_v1={}))},,function(e,t,s){var r=s(239);s(828);s(171);var o=e.exports=r.tls;o.CipherSuites["TLS_RSA_WITH_AES_128_CBC_SHA"]={id:[0,47],name:"TLS_RSA_WITH_AES_128_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=o.BulkCipherAlgorithm.aes;e.cipher_type=o.CipherType.block;e.enc_key_length=16;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=o.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};o.CipherSuites["TLS_RSA_WITH_AES_256_CBC_SHA"]={id:[0,53],name:"TLS_RSA_WITH_AES_256_CBC_SHA",initSecurityParameters:function(e){e.bulk_cipher_algorithm=o.BulkCipherAlgorithm.aes;e.cipher_type=o.CipherType.block;e.enc_key_length=32;e.block_length=16;e.fixed_iv_length=16;e.record_iv_length=16;e.mac_algorithm=o.MACAlgorithm.hmac_sha1;e.mac_length=20;e.mac_key_length=20},initConnectionState:initConnectionState};function initConnectionState(e,t,s){var n=t.entity===r.tls.ConnectionEnd.client;e.read.cipherState={init:false,cipher:r.cipher.createDecipher("AES-CBC",n?s.keys.server_write_key:s.keys.client_write_key),iv:n?s.keys.server_write_IV:s.keys.client_write_IV};e.write.cipherState={init:false,cipher:r.cipher.createCipher("AES-CBC",n?s.keys.client_write_key:s.keys.server_write_key),iv:n?s.keys.client_write_IV:s.keys.server_write_IV};e.read.cipherFunction=decrypt_aes_cbc_sha1;e.write.cipherFunction=encrypt_aes_cbc_sha1;e.read.macLength=e.write.macLength=s.mac_length;e.read.macFunction=e.write.macFunction=o.hmac_sha1}function encrypt_aes_cbc_sha1(e,t){var s=false;var n=t.macFunction(t.macKey,t.sequenceNumber,e);e.fragment.putBytes(n);t.updateSequenceNumber();var i;if(e.version.minor===o.Versions.TLS_1_0.minor){i=t.cipherState.init?null:t.cipherState.iv}else{i=r.random.getBytesSync(16)}t.cipherState.init=true;var c=t.cipherState.cipher;c.start({iv:i});if(e.version.minor>=o.Versions.TLS_1_1.minor){c.output.putBytes(i)}c.update(e.fragment);if(c.finish(encrypt_aes_cbc_sha1_padding)){e.fragment=c.output;e.length=e.fragment.length();s=true}return s}function encrypt_aes_cbc_sha1_padding(e,t,s){if(!s){var r=e-t.length()%e;t.fillWithByte(r-1,r)}return true}function decrypt_aes_cbc_sha1_padding(e,t,s){var r=true;if(s){var o=t.length();var n=t.last();for(var i=o-1-n;i=c){e.fragment=i.output.getBytes(a-c);u=i.output.getBytes(c)}else{e.fragment=i.output.getBytes()}e.fragment=r.util.createBuffer(e.fragment);e.length=e.fragment.length();var f=t.macFunction(t.macKey,t.sequenceNumber,e);t.updateSequenceNumber();s=compareMacs(t.macKey,u,f)&&s;return s}function compareMacs(e,t,s){var o=r.hmac.create();o.start("SHA1",e);o.update(t);t=o.digest().getBytes();o.start(null,null);o.update(s);s=o.digest().getBytes();return t===s}},function(e){var t=9007199254740991;var s="[object Arguments]",r="[object Function]",o="[object GeneratorFunction]";var n=/^(?:0|[1-9]\d*)$/;function apply(e,t,s){switch(s.length){case 0:return e.call(t);case 1:return e.call(t,s[0]);case 2:return e.call(t,s[0],s[1]);case 3:return e.call(t,s[0],s[1],s[2])}return e.apply(t,s)}function baseTimes(e,t){var s=-1,r=Array(e);while(++s1?s[o-1]:undefined,i=o>2?s[2]:undefined;n=e.length>3&&typeof n=="function"?(o--,n):undefined;if(i&&isIterateeCall(s[0],s[1],i)){n=o<3?undefined:n;o=1}t=Object(t);while(++r-1&&e%1==0&&e-1&&e%1==0&&e<=t}function isObject(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function isObjectLike(e){return!!e&&typeof e=="object"}var h=createAssigner(function(e,t,s,r){copyObject(t,keysIn(t),e,r)});var d=baseRest(function(e){e.push(undefined,assignInDefaults);return apply(h,undefined,e)});function keysIn(e){return isArrayLike(e)?arrayLikeKeys(e,true):baseKeysIn(e)}e.exports=d},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getAPI=void 0;function getAPI(e,t,s,r){let o;if(typeof t==="string"){o=t;t={}}else if(typeof t==="object"){o=t.version;delete t.version}else{throw new Error("Argument error: Accepts only string or object")}try{const n=s[o];const i=new n(t,r);return Object.freeze(i)}catch(t){throw new Error(`Unable to load endpoint ${e}("${o}"): ${t.message}`)}}t.getAPI=getAPI},function(e,t,s){var r=s(239);s(784);s(0);s(988);s(638);s(131);s(707);s(526);s(908);s(152);s(249);var o=r.asn1;var n=r.pki;var i=e.exports=r.pkcs12=r.pkcs12||{};var c={name:"ContentInfo",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"ContentInfo.contentType",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"contentType"},{name:"ContentInfo.content",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"content"}]};var u={name:"PFX",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PFX.version",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,capture:"version"},c,{name:"PFX.macData",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,optional:true,captureAsn1:"mac",value:[{name:"PFX.macData.mac",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"PFX.macData.mac.digestAlgorithm.algorithm",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"macAlgorithm"},{name:"PFX.macData.mac.digestAlgorithm.parameters",tagClass:o.Class.UNIVERSAL,captureAsn1:"macAlgorithmParameters"}]},{name:"PFX.macData.mac.digest",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"macDigest"}]},{name:"PFX.macData.macSalt",tagClass:o.Class.UNIVERSAL,type:o.Type.OCTETSTRING,constructed:false,capture:"macSalt"},{name:"PFX.macData.iterations",tagClass:o.Class.UNIVERSAL,type:o.Type.INTEGER,constructed:false,optional:true,capture:"macIterations"}]}]};var a={name:"SafeBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"SafeBag.bagId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"bagId"},{name:"SafeBag.bagValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:true,captureAsn1:"bagValue"},{name:"SafeBag.bagAttributes",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:true,optional:true,capture:"bagAttributes"}]};var f={name:"Attribute",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"Attribute.attrId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"oid"},{name:"Attribute.attrValues",tagClass:o.Class.UNIVERSAL,type:o.Type.SET,constructed:true,capture:"values"}]};var p={name:"CertBag",tagClass:o.Class.UNIVERSAL,type:o.Type.SEQUENCE,constructed:true,value:[{name:"CertBag.certId",tagClass:o.Class.UNIVERSAL,type:o.Type.OID,constructed:false,capture:"certId"},{name:"CertBag.certValue",tagClass:o.Class.CONTEXT_SPECIFIC,constructed:true,value:[{name:"CertBag.certValue[0]",tagClass:o.Class.UNIVERSAL,type:o.Class.OCTETSTRING,constructed:false,capture:"cert"}]}]};function _getBagsByAttribute(e,t,s,r){var o=[];for(var n=0;n=0){o.push(c)}}}return o}i.pkcs12FromAsn1=function(e,t,s){if(typeof t==="string"){s=t;t=true}else if(t===undefined){t=true}var c={};var a=[];if(!o.validate(e,u,c,a)){var f=new Error("Cannot read PKCS#12 PFX. "+"ASN.1 object is not an PKCS#12 PFX.");f.errors=f;throw f}var p={version:c.version.charCodeAt(0),safeContents:[],getBags:function(e){var t={};var s;if("localKeyId"in e){s=e.localKeyId}else if("localKeyIdHex"in e){s=r.util.hexToBytes(e.localKeyIdHex)}if(s===undefined&&!("friendlyName"in e)&&"bagType"in e){t[e.bagType]=_getBagsByAttribute(p.safeContents,null,null,e.bagType)}if(s!==undefined){t.localKeyId=_getBagsByAttribute(p.safeContents,"localKeyId",s,e.bagType)}if("friendlyName"in e){t.friendlyName=_getBagsByAttribute(p.safeContents,"friendlyName",e.friendlyName,e.bagType)}return t},getBagsByFriendlyName:function(e,t){return _getBagsByAttribute(p.safeContents,"friendlyName",e,t)},getBagsByLocalKeyId:function(e,t){return _getBagsByAttribute(p.safeContents,"localKeyId",e,t)}};if(c.version.charCodeAt(0)!==3){var f=new Error("PKCS#12 PFX of version other than 3 not supported.");f.version=c.version.charCodeAt(0);throw f}if(o.derToOid(c.contentType)!==n.oids.data){var f=new Error("Only PKCS#12 PFX in password integrity mode supported.");f.oid=o.derToOid(c.contentType);throw f}var h=c.content.value[0];if(h.tagClass!==o.Class.UNIVERSAL||h.type!==o.Type.OCTETSTRING){throw new Error("PKCS#12 authSafe content data is not an OCTET STRING.")}h=_decodePkcs7Data(h);if(c.mac){var d=null;var l=0;var P=o.derToOid(c.macAlgorithm);switch(P){case n.oids.sha1:d=r.md.sha1.create();l=20;break;case n.oids.sha256:d=r.md.sha256.create();l=32;break;case n.oids.sha384:d=r.md.sha384.create();l=48;break;case n.oids.sha512:d=r.md.sha512.create();l=64;break;case n.oids.md5:d=r.md.md5.create();l=16;break}if(d===null){throw new Error("PKCS#12 uses unsupported MAC algorithm: "+P)}var y=new r.util.ByteBuffer(c.macSalt);var I="macIterations"in c?parseInt(r.util.bytesToHex(c.macIterations),16):1;var R=i.generateKey(s,y,3,I,l,d);var g=r.hmac.create();g.start(d,R);g.update(h.value);var q=g.getMac();if(q.getBytes()!==c.macDigest){throw new Error("PKCS#12 MAC could not be verified. Invalid password?")}}_decodeAuthenticatedSafe(p,h.value,t,s);return p};function _decodePkcs7Data(e){if(e.composed||e.constructed){var t=r.util.createBuffer();for(var s=0;s0){a=o.create(o.Class.UNIVERSAL,o.Type.SET,true,h)}var d=[];var l=[];if(t!==null){if(r.util.isArray(t)){l=t}else{l=[t]}}var P=[];for(var y=0;y0){var q=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,P);var x=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,true,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,o.toDer(q).getBytes())])]);d.push(x)}var $=null;if(e!==null){var j=n.wrapRsaPrivateKey(n.privateKeyToAsn1(e));if(s===null){$=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.keyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,true,[j]),a])}else{$=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.pkcs8ShroudedKeyBag).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,true,[n.encryptPrivateKeyInfo(j,s,c)]),a])}var v=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[$]);var A=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,true,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,o.toDer(v).getBytes())])]);d.push(A)}var m=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,d);var O;if(c.useMac){var p=r.md.sha1.create();var w=new r.util.ByteBuffer(r.random.getBytes(c.saltSize));var T=c.count;var e=i.generateKey(s,w,3,T,20);var E=r.hmac.create();E.start(p,e);E.update(o.toDer(m).getBytes());var S=E.getMac();O=o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.sha1).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.NULL,false,"")]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,S.getBytes())]),o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,w.getBytes()),o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(T).getBytes())])}return o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.INTEGER,false,o.integerToDer(3).getBytes()),o.create(o.Class.UNIVERSAL,o.Type.SEQUENCE,true,[o.create(o.Class.UNIVERSAL,o.Type.OID,false,o.oidToDer(n.oids.data).getBytes()),o.create(o.Class.CONTEXT_SPECIFIC,0,true,[o.create(o.Class.UNIVERSAL,o.Type.OCTETSTRING,false,o.toDer(m).getBytes())])]),O])};i.generateKey=r.pbe.generatePkcs12Key}],function(e){"use strict";!function(){e.nmd=function(e){e.paths=[];if(!e.children)e.children=[];Object.defineProperty(e,"loaded",{enumerable:true,get:function(){return e.l}});Object.defineProperty(e,"id",{enumerable:true,get:function(){return e.i}});return e}}()}); \ No newline at end of file +/******/ (() => { // webpackBootstrap +/******/ var __webpack_modules__ = ({ + +/***/ 3276: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.issue = exports.issueCommand = void 0; +const os = __importStar(__nccwpck_require__(22037)); +const utils_1 = __nccwpck_require__(58328); +/** + * Commands + * + * Command Format: + * ::name key=value,key=value::message + * + * Examples: + * ::warning::This is the message + * ::set-env name=MY_VAR::some value + */ +function issueCommand(command, properties, message) { + const cmd = new Command(command, properties, message); + process.stdout.write(cmd.toString() + os.EOL); +} +exports.issueCommand = issueCommand; +function issue(name, message = '') { + issueCommand(name, {}, message); +} +exports.issue = issue; +const CMD_STRING = '::'; +class Command { + constructor(command, properties, message) { + if (!command) { + command = 'missing.command'; + } + this.command = command; + this.properties = properties; + this.message = message; + } + toString() { + let cmdStr = CMD_STRING + this.command; + if (this.properties && Object.keys(this.properties).length > 0) { + cmdStr += ' '; + let first = true; + for (const key in this.properties) { + if (this.properties.hasOwnProperty(key)) { + const val = this.properties[key]; + if (val) { + if (first) { + first = false; + } + else { + cmdStr += ','; + } + cmdStr += `${key}=${escapeProperty(val)}`; + } + } + } + } + cmdStr += `${CMD_STRING}${escapeData(this.message)}`; + return cmdStr; + } +} +function escapeData(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A'); +} +function escapeProperty(s) { + return utils_1.toCommandValue(s) + .replace(/%/g, '%25') + .replace(/\r/g, '%0D') + .replace(/\n/g, '%0A') + .replace(/:/g, '%3A') + .replace(/,/g, '%2C'); +} +//# sourceMappingURL=command.js.map + +/***/ }), + +/***/ 43876: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getIDToken = exports.getState = exports.saveState = exports.group = exports.endGroup = exports.startGroup = exports.info = exports.notice = exports.warning = exports.error = exports.debug = exports.isDebug = exports.setFailed = exports.setCommandEcho = exports.setOutput = exports.getBooleanInput = exports.getMultilineInput = exports.getInput = exports.addPath = exports.setSecret = exports.exportVariable = exports.ExitCode = void 0; +const command_1 = __nccwpck_require__(3276); +const file_command_1 = __nccwpck_require__(28690); +const utils_1 = __nccwpck_require__(58328); +const os = __importStar(__nccwpck_require__(22037)); +const path = __importStar(__nccwpck_require__(71017)); +const oidc_utils_1 = __nccwpck_require__(85756); +/** + * The code to exit an action + */ +var ExitCode; +(function (ExitCode) { + /** + * A code indicating that the action was successful + */ + ExitCode[ExitCode["Success"] = 0] = "Success"; + /** + * A code indicating that the action was a failure + */ + ExitCode[ExitCode["Failure"] = 1] = "Failure"; +})(ExitCode = exports.ExitCode || (exports.ExitCode = {})); +//----------------------------------------------------------------------- +// Variables +//----------------------------------------------------------------------- +/** + * Sets env variable for this action and future actions in the job + * @param name the name of the variable to set + * @param val the value of the variable. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function exportVariable(name, val) { + const convertedVal = utils_1.toCommandValue(val); + process.env[name] = convertedVal; + const filePath = process.env['GITHUB_ENV'] || ''; + if (filePath) { + const delimiter = '_GitHubActionsFileCommandDelimeter_'; + const commandValue = `${name}<<${delimiter}${os.EOL}${convertedVal}${os.EOL}${delimiter}`; + file_command_1.issueCommand('ENV', commandValue); + } + else { + command_1.issueCommand('set-env', { name }, convertedVal); + } +} +exports.exportVariable = exportVariable; +/** + * Registers a secret which will get masked from logs + * @param secret value of the secret + */ +function setSecret(secret) { + command_1.issueCommand('add-mask', {}, secret); +} +exports.setSecret = setSecret; +/** + * Prepends inputPath to the PATH (for this action and future actions) + * @param inputPath + */ +function addPath(inputPath) { + const filePath = process.env['GITHUB_PATH'] || ''; + if (filePath) { + file_command_1.issueCommand('PATH', inputPath); + } + else { + command_1.issueCommand('add-path', {}, inputPath); + } + process.env['PATH'] = `${inputPath}${path.delimiter}${process.env['PATH']}`; +} +exports.addPath = addPath; +/** + * Gets the value of an input. + * Unless trimWhitespace is set to false in InputOptions, the value is also trimmed. + * Returns an empty string if the value is not defined. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string + */ +function getInput(name, options) { + const val = process.env[`INPUT_${name.replace(/ /g, '_').toUpperCase()}`] || ''; + if (options && options.required && !val) { + throw new Error(`Input required and not supplied: ${name}`); + } + if (options && options.trimWhitespace === false) { + return val; + } + return val.trim(); +} +exports.getInput = getInput; +/** + * Gets the values of an multiline input. Each value is also trimmed. + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns string[] + * + */ +function getMultilineInput(name, options) { + const inputs = getInput(name, options) + .split('\n') + .filter(x => x !== ''); + return inputs; +} +exports.getMultilineInput = getMultilineInput; +/** + * Gets the input value of the boolean type in the YAML 1.2 "core schema" specification. + * Support boolean input list: `true | True | TRUE | false | False | FALSE` . + * The return value is also in boolean type. + * ref: https://yaml.org/spec/1.2/spec.html#id2804923 + * + * @param name name of the input to get + * @param options optional. See InputOptions. + * @returns boolean + */ +function getBooleanInput(name, options) { + const trueValue = ['true', 'True', 'TRUE']; + const falseValue = ['false', 'False', 'FALSE']; + const val = getInput(name, options); + if (trueValue.includes(val)) + return true; + if (falseValue.includes(val)) + return false; + throw new TypeError(`Input does not meet YAML 1.2 "Core Schema" specification: ${name}\n` + + `Support boolean input list: \`true | True | TRUE | false | False | FALSE\``); +} +exports.getBooleanInput = getBooleanInput; +/** + * Sets the value of an output. + * + * @param name name of the output to set + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function setOutput(name, value) { + process.stdout.write(os.EOL); + command_1.issueCommand('set-output', { name }, value); +} +exports.setOutput = setOutput; +/** + * Enables or disables the echoing of commands into stdout for the rest of the step. + * Echoing is disabled by default if ACTIONS_STEP_DEBUG is not set. + * + */ +function setCommandEcho(enabled) { + command_1.issue('echo', enabled ? 'on' : 'off'); +} +exports.setCommandEcho = setCommandEcho; +//----------------------------------------------------------------------- +// Results +//----------------------------------------------------------------------- +/** + * Sets the action status to failed. + * When the action exits it will be with an exit code of 1 + * @param message add error issue message + */ +function setFailed(message) { + process.exitCode = ExitCode.Failure; + error(message); +} +exports.setFailed = setFailed; +//----------------------------------------------------------------------- +// Logging Commands +//----------------------------------------------------------------------- +/** + * Gets whether Actions Step Debug is on or not + */ +function isDebug() { + return process.env['RUNNER_DEBUG'] === '1'; +} +exports.isDebug = isDebug; +/** + * Writes debug message to user log + * @param message debug message + */ +function debug(message) { + command_1.issueCommand('debug', {}, message); +} +exports.debug = debug; +/** + * Adds an error issue + * @param message error issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function error(message, properties = {}) { + command_1.issueCommand('error', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.error = error; +/** + * Adds a warning issue + * @param message warning issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function warning(message, properties = {}) { + command_1.issueCommand('warning', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.warning = warning; +/** + * Adds a notice issue + * @param message notice issue message. Errors will be converted to string via toString() + * @param properties optional properties to add to the annotation. + */ +function notice(message, properties = {}) { + command_1.issueCommand('notice', utils_1.toCommandProperties(properties), message instanceof Error ? message.toString() : message); +} +exports.notice = notice; +/** + * Writes info to log with console.log. + * @param message info message + */ +function info(message) { + process.stdout.write(message + os.EOL); +} +exports.info = info; +/** + * Begin an output group. + * + * Output until the next `groupEnd` will be foldable in this group + * + * @param name The name of the output group + */ +function startGroup(name) { + command_1.issue('group', name); +} +exports.startGroup = startGroup; +/** + * End an output group. + */ +function endGroup() { + command_1.issue('endgroup'); +} +exports.endGroup = endGroup; +/** + * Wrap an asynchronous function call in a group. + * + * Returns the same type as the function itself. + * + * @param name The name of the group + * @param fn The function to wrap in the group + */ +function group(name, fn) { + return __awaiter(this, void 0, void 0, function* () { + startGroup(name); + let result; + try { + result = yield fn(); + } + finally { + endGroup(); + } + return result; + }); +} +exports.group = group; +//----------------------------------------------------------------------- +// Wrapper action state +//----------------------------------------------------------------------- +/** + * Saves state for current action, the state can only be retrieved by this action's post job execution. + * + * @param name name of the state to store + * @param value value to store. Non-string values will be converted to a string via JSON.stringify + */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function saveState(name, value) { + command_1.issueCommand('save-state', { name }, value); +} +exports.saveState = saveState; +/** + * Gets the value of an state set by this action's main execution. + * + * @param name name of the state to get + * @returns string + */ +function getState(name) { + return process.env[`STATE_${name}`] || ''; +} +exports.getState = getState; +function getIDToken(aud) { + return __awaiter(this, void 0, void 0, function* () { + return yield oidc_utils_1.OidcClient.getIDToken(aud); + }); +} +exports.getIDToken = getIDToken; +/** + * Summary exports + */ +var summary_1 = __nccwpck_require__(1842); +Object.defineProperty(exports, "summary", ({ enumerable: true, get: function () { return summary_1.summary; } })); +/** + * @deprecated use core.summary + */ +var summary_2 = __nccwpck_require__(1842); +Object.defineProperty(exports, "markdownSummary", ({ enumerable: true, get: function () { return summary_2.markdownSummary; } })); +//# sourceMappingURL=core.js.map + +/***/ }), + +/***/ 28690: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// For internal use, subject to change. +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.issueCommand = void 0; +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +const fs = __importStar(__nccwpck_require__(57147)); +const os = __importStar(__nccwpck_require__(22037)); +const utils_1 = __nccwpck_require__(58328); +function issueCommand(command, message) { + const filePath = process.env[`GITHUB_${command}`]; + if (!filePath) { + throw new Error(`Unable to find environment variable for file command ${command}`); + } + if (!fs.existsSync(filePath)) { + throw new Error(`Missing file at path: ${filePath}`); + } + fs.appendFileSync(filePath, `${utils_1.toCommandValue(message)}${os.EOL}`, { + encoding: 'utf8' + }); +} +exports.issueCommand = issueCommand; +//# sourceMappingURL=file-command.js.map + +/***/ }), + +/***/ 85756: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.OidcClient = void 0; +const http_client_1 = __nccwpck_require__(79726); +const auth_1 = __nccwpck_require__(35392); +const core_1 = __nccwpck_require__(43876); +class OidcClient { + static createHttpClient(allowRetry = true, maxRetry = 10) { + const requestOptions = { + allowRetries: allowRetry, + maxRetries: maxRetry + }; + return new http_client_1.HttpClient('actions/oidc-client', [new auth_1.BearerCredentialHandler(OidcClient.getRequestToken())], requestOptions); + } + static getRequestToken() { + const token = process.env['ACTIONS_ID_TOKEN_REQUEST_TOKEN']; + if (!token) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_TOKEN env variable'); + } + return token; + } + static getIDTokenUrl() { + const runtimeUrl = process.env['ACTIONS_ID_TOKEN_REQUEST_URL']; + if (!runtimeUrl) { + throw new Error('Unable to get ACTIONS_ID_TOKEN_REQUEST_URL env variable'); + } + return runtimeUrl; + } + static getCall(id_token_url) { + var _a; + return __awaiter(this, void 0, void 0, function* () { + const httpclient = OidcClient.createHttpClient(); + const res = yield httpclient + .getJson(id_token_url) + .catch(error => { + throw new Error(`Failed to get ID Token. \n + Error Code : ${error.statusCode}\n + Error Message: ${error.result.message}`); + }); + const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; + if (!id_token) { + throw new Error('Response json body do not have ID Token field'); + } + return id_token; + }); + } + static getIDToken(audience) { + return __awaiter(this, void 0, void 0, function* () { + try { + // New ID Token is requested from action service + let id_token_url = OidcClient.getIDTokenUrl(); + if (audience) { + const encodedAudience = encodeURIComponent(audience); + id_token_url = `${id_token_url}&audience=${encodedAudience}`; + } + core_1.debug(`ID token url is ${id_token_url}`); + const id_token = yield OidcClient.getCall(id_token_url); + core_1.setSecret(id_token); + return id_token; + } + catch (error) { + throw new Error(`Error message: ${error.message}`); + } + }); + } +} +exports.OidcClient = OidcClient; +//# sourceMappingURL=oidc-utils.js.map + +/***/ }), + +/***/ 1842: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.summary = exports.markdownSummary = exports.SUMMARY_DOCS_URL = exports.SUMMARY_ENV_VAR = void 0; +const os_1 = __nccwpck_require__(22037); +const fs_1 = __nccwpck_require__(57147); +const { access, appendFile, writeFile } = fs_1.promises; +exports.SUMMARY_ENV_VAR = 'GITHUB_STEP_SUMMARY'; +exports.SUMMARY_DOCS_URL = 'https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary'; +class Summary { + constructor() { + this._buffer = ''; + } + /** + * Finds the summary file path from the environment, rejects if env var is not found or file does not exist + * Also checks r/w permissions. + * + * @returns step summary file path + */ + filePath() { + return __awaiter(this, void 0, void 0, function* () { + if (this._filePath) { + return this._filePath; + } + const pathFromEnv = process.env[exports.SUMMARY_ENV_VAR]; + if (!pathFromEnv) { + throw new Error(`Unable to find environment variable for $${exports.SUMMARY_ENV_VAR}. Check if your runtime environment supports job summaries.`); + } + try { + yield access(pathFromEnv, fs_1.constants.R_OK | fs_1.constants.W_OK); + } + catch (_a) { + throw new Error(`Unable to access summary file: '${pathFromEnv}'. Check if the file has correct read/write permissions.`); + } + this._filePath = pathFromEnv; + return this._filePath; + }); + } + /** + * Wraps content in an HTML tag, adding any HTML attributes + * + * @param {string} tag HTML tag to wrap + * @param {string | null} content content within the tag + * @param {[attribute: string]: string} attrs key-value list of HTML attributes to add + * + * @returns {string} content wrapped in HTML element + */ + wrap(tag, content, attrs = {}) { + const htmlAttrs = Object.entries(attrs) + .map(([key, value]) => ` ${key}="${value}"`) + .join(''); + if (!content) { + return `<${tag}${htmlAttrs}>`; + } + return `<${tag}${htmlAttrs}>${content}`; + } + /** + * Writes text in the buffer to the summary buffer file and empties buffer. Will append by default. + * + * @param {SummaryWriteOptions} [options] (optional) options for write operation + * + * @returns {Promise} summary instance + */ + write(options) { + return __awaiter(this, void 0, void 0, function* () { + const overwrite = !!(options === null || options === void 0 ? void 0 : options.overwrite); + const filePath = yield this.filePath(); + const writeFunc = overwrite ? writeFile : appendFile; + yield writeFunc(filePath, this._buffer, { encoding: 'utf8' }); + return this.emptyBuffer(); + }); + } + /** + * Clears the summary buffer and wipes the summary file + * + * @returns {Summary} summary instance + */ + clear() { + return __awaiter(this, void 0, void 0, function* () { + return this.emptyBuffer().write({ overwrite: true }); + }); + } + /** + * Returns the current summary buffer as a string + * + * @returns {string} string of summary buffer + */ + stringify() { + return this._buffer; + } + /** + * If the summary buffer is empty + * + * @returns {boolen} true if the buffer is empty + */ + isEmptyBuffer() { + return this._buffer.length === 0; + } + /** + * Resets the summary buffer without writing to summary file + * + * @returns {Summary} summary instance + */ + emptyBuffer() { + this._buffer = ''; + return this; + } + /** + * Adds raw text to the summary buffer + * + * @param {string} text content to add + * @param {boolean} [addEOL=false] (optional) append an EOL to the raw text (default: false) + * + * @returns {Summary} summary instance + */ + addRaw(text, addEOL = false) { + this._buffer += text; + return addEOL ? this.addEOL() : this; + } + /** + * Adds the operating system-specific end-of-line marker to the buffer + * + * @returns {Summary} summary instance + */ + addEOL() { + return this.addRaw(os_1.EOL); + } + /** + * Adds an HTML codeblock to the summary buffer + * + * @param {string} code content to render within fenced code block + * @param {string} lang (optional) language to syntax highlight code + * + * @returns {Summary} summary instance + */ + addCodeBlock(code, lang) { + const attrs = Object.assign({}, (lang && { lang })); + const element = this.wrap('pre', this.wrap('code', code), attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML list to the summary buffer + * + * @param {string[]} items list of items to render + * @param {boolean} [ordered=false] (optional) if the rendered list should be ordered or not (default: false) + * + * @returns {Summary} summary instance + */ + addList(items, ordered = false) { + const tag = ordered ? 'ol' : 'ul'; + const listItems = items.map(item => this.wrap('li', item)).join(''); + const element = this.wrap(tag, listItems); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML table to the summary buffer + * + * @param {SummaryTableCell[]} rows table rows + * + * @returns {Summary} summary instance + */ + addTable(rows) { + const tableBody = rows + .map(row => { + const cells = row + .map(cell => { + if (typeof cell === 'string') { + return this.wrap('td', cell); + } + const { header, data, colspan, rowspan } = cell; + const tag = header ? 'th' : 'td'; + const attrs = Object.assign(Object.assign({}, (colspan && { colspan })), (rowspan && { rowspan })); + return this.wrap(tag, data, attrs); + }) + .join(''); + return this.wrap('tr', cells); + }) + .join(''); + const element = this.wrap('table', tableBody); + return this.addRaw(element).addEOL(); + } + /** + * Adds a collapsable HTML details element to the summary buffer + * + * @param {string} label text for the closed state + * @param {string} content collapsable content + * + * @returns {Summary} summary instance + */ + addDetails(label, content) { + const element = this.wrap('details', this.wrap('summary', label) + content); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML image tag to the summary buffer + * + * @param {string} src path to the image you to embed + * @param {string} alt text description of the image + * @param {SummaryImageOptions} options (optional) addition image attributes + * + * @returns {Summary} summary instance + */ + addImage(src, alt, options) { + const { width, height } = options || {}; + const attrs = Object.assign(Object.assign({}, (width && { width })), (height && { height })); + const element = this.wrap('img', null, Object.assign({ src, alt }, attrs)); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML section heading element + * + * @param {string} text heading text + * @param {number | string} [level=1] (optional) the heading level, default: 1 + * + * @returns {Summary} summary instance + */ + addHeading(text, level) { + const tag = `h${level}`; + const allowedTag = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6'].includes(tag) + ? tag + : 'h1'; + const element = this.wrap(allowedTag, text); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML thematic break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addSeparator() { + const element = this.wrap('hr', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML line break (
) to the summary buffer + * + * @returns {Summary} summary instance + */ + addBreak() { + const element = this.wrap('br', null); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML blockquote to the summary buffer + * + * @param {string} text quote text + * @param {string} cite (optional) citation url + * + * @returns {Summary} summary instance + */ + addQuote(text, cite) { + const attrs = Object.assign({}, (cite && { cite })); + const element = this.wrap('blockquote', text, attrs); + return this.addRaw(element).addEOL(); + } + /** + * Adds an HTML anchor tag to the summary buffer + * + * @param {string} text link text/content + * @param {string} href hyperlink + * + * @returns {Summary} summary instance + */ + addLink(text, href) { + const element = this.wrap('a', text, { href }); + return this.addRaw(element).addEOL(); + } +} +const _summary = new Summary(); +/** + * @deprecated use `core.summary` + */ +exports.markdownSummary = _summary; +exports.summary = _summary; +//# sourceMappingURL=summary.js.map + +/***/ }), + +/***/ 58328: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// We use any as a valid input type +/* eslint-disable @typescript-eslint/no-explicit-any */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toCommandProperties = exports.toCommandValue = void 0; +/** + * Sanitizes an input into a string so it can be passed into issueCommand safely + * @param input input to sanitize into a string + */ +function toCommandValue(input) { + if (input === null || input === undefined) { + return ''; + } + else if (typeof input === 'string' || input instanceof String) { + return input; + } + return JSON.stringify(input); +} +exports.toCommandValue = toCommandValue; +/** + * + * @param annotationProperties + * @returns The command properties to send with the actual annotation command + * See IssueCommandProperties: https://github.com/actions/runner/blob/main/src/Runner.Worker/ActionCommandManager.cs#L646 + */ +function toCommandProperties(annotationProperties) { + if (!Object.keys(annotationProperties).length) { + return {}; + } + return { + title: annotationProperties.title, + file: annotationProperties.file, + line: annotationProperties.startLine, + endLine: annotationProperties.endLine, + col: annotationProperties.startColumn, + endColumn: annotationProperties.endColumn + }; +} +exports.toCommandProperties = toCommandProperties; +//# sourceMappingURL=utils.js.map + +/***/ }), + +/***/ 35392: +/***/ (function(__unused_webpack_module, exports) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.PersonalAccessTokenCredentialHandler = exports.BearerCredentialHandler = exports.BasicCredentialHandler = void 0; +class BasicCredentialHandler { + constructor(username, password) { + this.username = username; + this.password = password; + } + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`${this.username}:${this.password}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BasicCredentialHandler = BasicCredentialHandler; +class BearerCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Bearer ${this.token}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.BearerCredentialHandler = BearerCredentialHandler; +class PersonalAccessTokenCredentialHandler { + constructor(token) { + this.token = token; + } + // currently implements pre-authorization + // TODO: support preAuth = false where it hooks on 401 + prepareRequest(options) { + if (!options.headers) { + throw Error('The request has no headers'); + } + options.headers['Authorization'] = `Basic ${Buffer.from(`PAT:${this.token}`).toString('base64')}`; + } + // This handler cannot handle 401 + canHandleAuthentication() { + return false; + } + handleAuthentication() { + return __awaiter(this, void 0, void 0, function* () { + throw new Error('not implemented'); + }); + } +} +exports.PersonalAccessTokenCredentialHandler = PersonalAccessTokenCredentialHandler; +//# sourceMappingURL=auth.js.map + +/***/ }), + +/***/ 79726: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +/* eslint-disable @typescript-eslint/no-explicit-any */ +var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); +}) : (function(o, m, k, k2) { + if (k2 === undefined) k2 = k; + o[k2] = m[k]; +})); +var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) { + Object.defineProperty(o, "default", { enumerable: true, value: v }); +}) : function(o, v) { + o["default"] = v; +}); +var __importStar = (this && this.__importStar) || function (mod) { + if (mod && mod.__esModule) return mod; + var result = {}; + if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k); + __setModuleDefault(result, mod); + return result; +}; +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.HttpClient = exports.isHttps = exports.HttpClientResponse = exports.HttpClientError = exports.getProxyUrl = exports.MediaTypes = exports.Headers = exports.HttpCodes = void 0; +const http = __importStar(__nccwpck_require__(13685)); +const https = __importStar(__nccwpck_require__(95687)); +const pm = __importStar(__nccwpck_require__(84770)); +const tunnel = __importStar(__nccwpck_require__(24655)); +var HttpCodes; +(function (HttpCodes) { + HttpCodes[HttpCodes["OK"] = 200] = "OK"; + HttpCodes[HttpCodes["MultipleChoices"] = 300] = "MultipleChoices"; + HttpCodes[HttpCodes["MovedPermanently"] = 301] = "MovedPermanently"; + HttpCodes[HttpCodes["ResourceMoved"] = 302] = "ResourceMoved"; + HttpCodes[HttpCodes["SeeOther"] = 303] = "SeeOther"; + HttpCodes[HttpCodes["NotModified"] = 304] = "NotModified"; + HttpCodes[HttpCodes["UseProxy"] = 305] = "UseProxy"; + HttpCodes[HttpCodes["SwitchProxy"] = 306] = "SwitchProxy"; + HttpCodes[HttpCodes["TemporaryRedirect"] = 307] = "TemporaryRedirect"; + HttpCodes[HttpCodes["PermanentRedirect"] = 308] = "PermanentRedirect"; + HttpCodes[HttpCodes["BadRequest"] = 400] = "BadRequest"; + HttpCodes[HttpCodes["Unauthorized"] = 401] = "Unauthorized"; + HttpCodes[HttpCodes["PaymentRequired"] = 402] = "PaymentRequired"; + HttpCodes[HttpCodes["Forbidden"] = 403] = "Forbidden"; + HttpCodes[HttpCodes["NotFound"] = 404] = "NotFound"; + HttpCodes[HttpCodes["MethodNotAllowed"] = 405] = "MethodNotAllowed"; + HttpCodes[HttpCodes["NotAcceptable"] = 406] = "NotAcceptable"; + HttpCodes[HttpCodes["ProxyAuthenticationRequired"] = 407] = "ProxyAuthenticationRequired"; + HttpCodes[HttpCodes["RequestTimeout"] = 408] = "RequestTimeout"; + HttpCodes[HttpCodes["Conflict"] = 409] = "Conflict"; + HttpCodes[HttpCodes["Gone"] = 410] = "Gone"; + HttpCodes[HttpCodes["TooManyRequests"] = 429] = "TooManyRequests"; + HttpCodes[HttpCodes["InternalServerError"] = 500] = "InternalServerError"; + HttpCodes[HttpCodes["NotImplemented"] = 501] = "NotImplemented"; + HttpCodes[HttpCodes["BadGateway"] = 502] = "BadGateway"; + HttpCodes[HttpCodes["ServiceUnavailable"] = 503] = "ServiceUnavailable"; + HttpCodes[HttpCodes["GatewayTimeout"] = 504] = "GatewayTimeout"; +})(HttpCodes = exports.HttpCodes || (exports.HttpCodes = {})); +var Headers; +(function (Headers) { + Headers["Accept"] = "accept"; + Headers["ContentType"] = "content-type"; +})(Headers = exports.Headers || (exports.Headers = {})); +var MediaTypes; +(function (MediaTypes) { + MediaTypes["ApplicationJson"] = "application/json"; +})(MediaTypes = exports.MediaTypes || (exports.MediaTypes = {})); +/** + * Returns the proxy URL, depending upon the supplied url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ +function getProxyUrl(serverUrl) { + const proxyUrl = pm.getProxyUrl(new URL(serverUrl)); + return proxyUrl ? proxyUrl.href : ''; +} +exports.getProxyUrl = getProxyUrl; +const HttpRedirectCodes = [ + HttpCodes.MovedPermanently, + HttpCodes.ResourceMoved, + HttpCodes.SeeOther, + HttpCodes.TemporaryRedirect, + HttpCodes.PermanentRedirect +]; +const HttpResponseRetryCodes = [ + HttpCodes.BadGateway, + HttpCodes.ServiceUnavailable, + HttpCodes.GatewayTimeout +]; +const RetryableHttpVerbs = ['OPTIONS', 'GET', 'DELETE', 'HEAD']; +const ExponentialBackoffCeiling = 10; +const ExponentialBackoffTimeSlice = 5; +class HttpClientError extends Error { + constructor(message, statusCode) { + super(message); + this.name = 'HttpClientError'; + this.statusCode = statusCode; + Object.setPrototypeOf(this, HttpClientError.prototype); + } +} +exports.HttpClientError = HttpClientError; +class HttpClientResponse { + constructor(message) { + this.message = message; + } + readBody() { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve) => __awaiter(this, void 0, void 0, function* () { + let output = Buffer.alloc(0); + this.message.on('data', (chunk) => { + output = Buffer.concat([output, chunk]); + }); + this.message.on('end', () => { + resolve(output.toString()); + }); + })); + }); + } +} +exports.HttpClientResponse = HttpClientResponse; +function isHttps(requestUrl) { + const parsedUrl = new URL(requestUrl); + return parsedUrl.protocol === 'https:'; +} +exports.isHttps = isHttps; +class HttpClient { + constructor(userAgent, handlers, requestOptions) { + this._ignoreSslError = false; + this._allowRedirects = true; + this._allowRedirectDowngrade = false; + this._maxRedirects = 50; + this._allowRetries = false; + this._maxRetries = 1; + this._keepAlive = false; + this._disposed = false; + this.userAgent = userAgent; + this.handlers = handlers || []; + this.requestOptions = requestOptions; + if (requestOptions) { + if (requestOptions.ignoreSslError != null) { + this._ignoreSslError = requestOptions.ignoreSslError; + } + this._socketTimeout = requestOptions.socketTimeout; + if (requestOptions.allowRedirects != null) { + this._allowRedirects = requestOptions.allowRedirects; + } + if (requestOptions.allowRedirectDowngrade != null) { + this._allowRedirectDowngrade = requestOptions.allowRedirectDowngrade; + } + if (requestOptions.maxRedirects != null) { + this._maxRedirects = Math.max(requestOptions.maxRedirects, 0); + } + if (requestOptions.keepAlive != null) { + this._keepAlive = requestOptions.keepAlive; + } + if (requestOptions.allowRetries != null) { + this._allowRetries = requestOptions.allowRetries; + } + if (requestOptions.maxRetries != null) { + this._maxRetries = requestOptions.maxRetries; + } + } + } + options(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('OPTIONS', requestUrl, null, additionalHeaders || {}); + }); + } + get(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('GET', requestUrl, null, additionalHeaders || {}); + }); + } + del(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('DELETE', requestUrl, null, additionalHeaders || {}); + }); + } + post(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('POST', requestUrl, data, additionalHeaders || {}); + }); + } + patch(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PATCH', requestUrl, data, additionalHeaders || {}); + }); + } + put(requestUrl, data, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('PUT', requestUrl, data, additionalHeaders || {}); + }); + } + head(requestUrl, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request('HEAD', requestUrl, null, additionalHeaders || {}); + }); + } + sendStream(verb, requestUrl, stream, additionalHeaders) { + return __awaiter(this, void 0, void 0, function* () { + return this.request(verb, requestUrl, stream, additionalHeaders); + }); + } + /** + * Gets a typed object from an endpoint + * Be aware that not found returns a null. Other errors (4xx, 5xx) reject the promise + */ + getJson(requestUrl, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + const res = yield this.get(requestUrl, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + postJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.post(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + putJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.put(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + patchJson(requestUrl, obj, additionalHeaders = {}) { + return __awaiter(this, void 0, void 0, function* () { + const data = JSON.stringify(obj, null, 2); + additionalHeaders[Headers.Accept] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.Accept, MediaTypes.ApplicationJson); + additionalHeaders[Headers.ContentType] = this._getExistingOrDefaultHeader(additionalHeaders, Headers.ContentType, MediaTypes.ApplicationJson); + const res = yield this.patch(requestUrl, data, additionalHeaders); + return this._processResponse(res, this.requestOptions); + }); + } + /** + * Makes a raw http request. + * All other methods such as get, post, patch, and request ultimately call this. + * Prefer get, del, post and patch + */ + request(verb, requestUrl, data, headers) { + return __awaiter(this, void 0, void 0, function* () { + if (this._disposed) { + throw new Error('Client has already been disposed.'); + } + const parsedUrl = new URL(requestUrl); + let info = this._prepareRequest(verb, parsedUrl, headers); + // Only perform retries on reads since writes may not be idempotent. + const maxTries = this._allowRetries && RetryableHttpVerbs.includes(verb) + ? this._maxRetries + 1 + : 1; + let numTries = 0; + let response; + do { + response = yield this.requestRaw(info, data); + // Check if it's an authentication challenge + if (response && + response.message && + response.message.statusCode === HttpCodes.Unauthorized) { + let authenticationHandler; + for (const handler of this.handlers) { + if (handler.canHandleAuthentication(response)) { + authenticationHandler = handler; + break; + } + } + if (authenticationHandler) { + return authenticationHandler.handleAuthentication(this, info, data); + } + else { + // We have received an unauthorized response but have no handlers to handle it. + // Let the response return to the caller. + return response; + } + } + let redirectsRemaining = this._maxRedirects; + while (response.message.statusCode && + HttpRedirectCodes.includes(response.message.statusCode) && + this._allowRedirects && + redirectsRemaining > 0) { + const redirectUrl = response.message.headers['location']; + if (!redirectUrl) { + // if there's no location to redirect to, we won't + break; + } + const parsedRedirectUrl = new URL(redirectUrl); + if (parsedUrl.protocol === 'https:' && + parsedUrl.protocol !== parsedRedirectUrl.protocol && + !this._allowRedirectDowngrade) { + throw new Error('Redirect from HTTPS to HTTP protocol. This downgrade is not allowed for security reasons. If you want to allow this behavior, set the allowRedirectDowngrade option to true.'); + } + // we need to finish reading the response before reassigning response + // which will leak the open socket. + yield response.readBody(); + // strip authorization header if redirected to a different hostname + if (parsedRedirectUrl.hostname !== parsedUrl.hostname) { + for (const header in headers) { + // header names are case insensitive + if (header.toLowerCase() === 'authorization') { + delete headers[header]; + } + } + } + // let's make the request with the new redirectUrl + info = this._prepareRequest(verb, parsedRedirectUrl, headers); + response = yield this.requestRaw(info, data); + redirectsRemaining--; + } + if (!response.message.statusCode || + !HttpResponseRetryCodes.includes(response.message.statusCode)) { + // If not a retry code, return immediately instead of retrying + return response; + } + numTries += 1; + if (numTries < maxTries) { + yield response.readBody(); + yield this._performExponentialBackoff(numTries); + } + } while (numTries < maxTries); + return response; + }); + } + /** + * Needs to be called if keepAlive is set to true in request options. + */ + dispose() { + if (this._agent) { + this._agent.destroy(); + } + this._disposed = true; + } + /** + * Raw request. + * @param info + * @param data + */ + requestRaw(info, data) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => { + function callbackForResult(err, res) { + if (err) { + reject(err); + } + else if (!res) { + // If `err` is not passed, then `res` must be passed. + reject(new Error('Unknown error')); + } + else { + resolve(res); + } + } + this.requestRawWithCallback(info, data, callbackForResult); + }); + }); + } + /** + * Raw request with callback. + * @param info + * @param data + * @param onResult + */ + requestRawWithCallback(info, data, onResult) { + if (typeof data === 'string') { + if (!info.options.headers) { + info.options.headers = {}; + } + info.options.headers['Content-Length'] = Buffer.byteLength(data, 'utf8'); + } + let callbackCalled = false; + function handleResult(err, res) { + if (!callbackCalled) { + callbackCalled = true; + onResult(err, res); + } + } + const req = info.httpModule.request(info.options, (msg) => { + const res = new HttpClientResponse(msg); + handleResult(undefined, res); + }); + let socket; + req.on('socket', sock => { + socket = sock; + }); + // If we ever get disconnected, we want the socket to timeout eventually + req.setTimeout(this._socketTimeout || 3 * 60000, () => { + if (socket) { + socket.end(); + } + handleResult(new Error(`Request timeout: ${info.options.path}`)); + }); + req.on('error', function (err) { + // err has statusCode property + // res should have headers + handleResult(err); + }); + if (data && typeof data === 'string') { + req.write(data, 'utf8'); + } + if (data && typeof data !== 'string') { + data.on('close', function () { + req.end(); + }); + data.pipe(req); + } + else { + req.end(); + } + } + /** + * Gets an http agent. This function is useful when you need an http agent that handles + * routing through a proxy server - depending upon the url and proxy environment variables. + * @param serverUrl The server URL where the request will be sent. For example, https://api.github.com + */ + getAgent(serverUrl) { + const parsedUrl = new URL(serverUrl); + return this._getAgent(parsedUrl); + } + _prepareRequest(method, requestUrl, headers) { + const info = {}; + info.parsedUrl = requestUrl; + const usingSsl = info.parsedUrl.protocol === 'https:'; + info.httpModule = usingSsl ? https : http; + const defaultPort = usingSsl ? 443 : 80; + info.options = {}; + info.options.host = info.parsedUrl.hostname; + info.options.port = info.parsedUrl.port + ? parseInt(info.parsedUrl.port) + : defaultPort; + info.options.path = + (info.parsedUrl.pathname || '') + (info.parsedUrl.search || ''); + info.options.method = method; + info.options.headers = this._mergeHeaders(headers); + if (this.userAgent != null) { + info.options.headers['user-agent'] = this.userAgent; + } + info.options.agent = this._getAgent(info.parsedUrl); + // gives handlers an opportunity to participate + if (this.handlers) { + for (const handler of this.handlers) { + handler.prepareRequest(info.options); + } + } + return info; + } + _mergeHeaders(headers) { + if (this.requestOptions && this.requestOptions.headers) { + return Object.assign({}, lowercaseKeys(this.requestOptions.headers), lowercaseKeys(headers || {})); + } + return lowercaseKeys(headers || {}); + } + _getExistingOrDefaultHeader(additionalHeaders, header, _default) { + let clientHeader; + if (this.requestOptions && this.requestOptions.headers) { + clientHeader = lowercaseKeys(this.requestOptions.headers)[header]; + } + return additionalHeaders[header] || clientHeader || _default; + } + _getAgent(parsedUrl) { + let agent; + const proxyUrl = pm.getProxyUrl(parsedUrl); + const useProxy = proxyUrl && proxyUrl.hostname; + if (this._keepAlive && useProxy) { + agent = this._proxyAgent; + } + if (this._keepAlive && !useProxy) { + agent = this._agent; + } + // if agent is already assigned use that agent. + if (agent) { + return agent; + } + const usingSsl = parsedUrl.protocol === 'https:'; + let maxSockets = 100; + if (this.requestOptions) { + maxSockets = this.requestOptions.maxSockets || http.globalAgent.maxSockets; + } + // This is `useProxy` again, but we need to check `proxyURl` directly for TypeScripts's flow analysis. + if (proxyUrl && proxyUrl.hostname) { + const agentOptions = { + maxSockets, + keepAlive: this._keepAlive, + proxy: Object.assign(Object.assign({}, ((proxyUrl.username || proxyUrl.password) && { + proxyAuth: `${proxyUrl.username}:${proxyUrl.password}` + })), { host: proxyUrl.hostname, port: proxyUrl.port }) + }; + let tunnelAgent; + const overHttps = proxyUrl.protocol === 'https:'; + if (usingSsl) { + tunnelAgent = overHttps ? tunnel.httpsOverHttps : tunnel.httpsOverHttp; + } + else { + tunnelAgent = overHttps ? tunnel.httpOverHttps : tunnel.httpOverHttp; + } + agent = tunnelAgent(agentOptions); + this._proxyAgent = agent; + } + // if reusing agent across request and tunneling agent isn't assigned create a new agent + if (this._keepAlive && !agent) { + const options = { keepAlive: this._keepAlive, maxSockets }; + agent = usingSsl ? new https.Agent(options) : new http.Agent(options); + this._agent = agent; + } + // if not using private agent and tunnel agent isn't setup then use global agent + if (!agent) { + agent = usingSsl ? https.globalAgent : http.globalAgent; + } + if (usingSsl && this._ignoreSslError) { + // we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process + // http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options + // we have to cast it to any and change it directly + agent.options = Object.assign(agent.options || {}, { + rejectUnauthorized: false + }); + } + return agent; + } + _performExponentialBackoff(retryNumber) { + return __awaiter(this, void 0, void 0, function* () { + retryNumber = Math.min(ExponentialBackoffCeiling, retryNumber); + const ms = ExponentialBackoffTimeSlice * Math.pow(2, retryNumber); + return new Promise(resolve => setTimeout(() => resolve(), ms)); + }); + } + _processResponse(res, options) { + return __awaiter(this, void 0, void 0, function* () { + return new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () { + const statusCode = res.message.statusCode || 0; + const response = { + statusCode, + result: null, + headers: {} + }; + // not found leads to null obj returned + if (statusCode === HttpCodes.NotFound) { + resolve(response); + } + // get the result from the body + function dateTimeDeserializer(key, value) { + if (typeof value === 'string') { + const a = new Date(value); + if (!isNaN(a.valueOf())) { + return a; + } + } + return value; + } + let obj; + let contents; + try { + contents = yield res.readBody(); + if (contents && contents.length > 0) { + if (options && options.deserializeDates) { + obj = JSON.parse(contents, dateTimeDeserializer); + } + else { + obj = JSON.parse(contents); + } + response.result = obj; + } + response.headers = res.message.headers; + } + catch (err) { + // Invalid resource (contents not json); leaving result obj null + } + // note that 3xx redirects are handled by the http layer. + if (statusCode > 299) { + let msg; + // if exception/error in body, attempt to get better error + if (obj && obj.message) { + msg = obj.message; + } + else if (contents && contents.length > 0) { + // it may be the case that the exception is in the body message as string + msg = contents; + } + else { + msg = `Failed request: (${statusCode})`; + } + const err = new HttpClientError(msg, statusCode); + err.result = response.result; + reject(err); + } + else { + resolve(response); + } + })); + }); + } +} +exports.HttpClient = HttpClient; +const lowercaseKeys = (obj) => Object.keys(obj).reduce((c, k) => ((c[k.toLowerCase()] = obj[k]), c), {}); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 84770: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.checkBypass = exports.getProxyUrl = void 0; +function getProxyUrl(reqUrl) { + const usingSsl = reqUrl.protocol === 'https:'; + if (checkBypass(reqUrl)) { + return undefined; + } + const proxyVar = (() => { + if (usingSsl) { + return process.env['https_proxy'] || process.env['HTTPS_PROXY']; + } + else { + return process.env['http_proxy'] || process.env['HTTP_PROXY']; + } + })(); + if (proxyVar) { + return new URL(proxyVar); + } + else { + return undefined; + } +} +exports.getProxyUrl = getProxyUrl; +function checkBypass(reqUrl) { + if (!reqUrl.hostname) { + return false; + } + const noProxy = process.env['no_proxy'] || process.env['NO_PROXY'] || ''; + if (!noProxy) { + return false; + } + // Determine the request port + let reqPort; + if (reqUrl.port) { + reqPort = Number(reqUrl.port); + } + else if (reqUrl.protocol === 'http:') { + reqPort = 80; + } + else if (reqUrl.protocol === 'https:') { + reqPort = 443; + } + // Format the request hostname and hostname with port + const upperReqHosts = [reqUrl.hostname.toUpperCase()]; + if (typeof reqPort === 'number') { + upperReqHosts.push(`${upperReqHosts[0]}:${reqPort}`); + } + // Compare request host against noproxy + for (const upperNoProxyItem of noProxy + .split(',') + .map(x => x.trim().toUpperCase()) + .filter(x => x)) { + if (upperReqHosts.some(x => x === upperNoProxyItem)) { + return true; + } + } + return false; +} +exports.checkBypass = checkBypass; +//# sourceMappingURL=proxy.js.map + +/***/ }), + +/***/ 69649: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const events_1 = __nccwpck_require__(82361); +const debug_1 = __importDefault(__nccwpck_require__(24548)); +const promisify_1 = __importDefault(__nccwpck_require__(48990)); +const debug = debug_1.default('agent-base'); +function isAgent(v) { + return Boolean(v) && typeof v.addRequest === 'function'; +} +function isSecureEndpoint() { + const { stack } = new Error(); + if (typeof stack !== 'string') + return false; + return stack.split('\n').some(l => l.indexOf('(https.js:') !== -1); +} +function createAgent(callback, opts) { + return new createAgent.Agent(callback, opts); +} +(function (createAgent) { + /** + * Base `http.Agent` implementation. + * No pooling/keep-alive is implemented by default. + * + * @param {Function} callback + * @api public + */ + class Agent extends events_1.EventEmitter { + constructor(callback, _opts) { + super(); + let opts = _opts; + if (typeof callback === 'function') { + this.callback = callback; + } + else if (callback) { + opts = callback; + } + // Timeout for the socket to be returned from the callback + this.timeout = null; + if (opts && typeof opts.timeout === 'number') { + this.timeout = opts.timeout; + } + // These aren't actually used by `agent-base`, but are required + // for the TypeScript definition files in `@types/node` :/ + this.maxFreeSockets = 1; + this.maxSockets = 1; + this.sockets = {}; + this.requests = {}; + } + get defaultPort() { + if (typeof this.explicitDefaultPort === 'number') { + return this.explicitDefaultPort; + } + return isSecureEndpoint() ? 443 : 80; + } + set defaultPort(v) { + this.explicitDefaultPort = v; + } + get protocol() { + if (typeof this.explicitProtocol === 'string') { + return this.explicitProtocol; + } + return isSecureEndpoint() ? 'https:' : 'http:'; + } + set protocol(v) { + this.explicitProtocol = v; + } + callback(req, opts, fn) { + throw new Error('"agent-base" has no default implementation, you must subclass and override `callback()`'); + } + /** + * Called by node-core's "_http_client.js" module when creating + * a new HTTP request with this Agent instance. + * + * @api public + */ + addRequest(req, _opts) { + const opts = Object.assign({}, _opts); + if (typeof opts.secureEndpoint !== 'boolean') { + opts.secureEndpoint = isSecureEndpoint(); + } + if (opts.host == null) { + opts.host = 'localhost'; + } + if (opts.port == null) { + opts.port = opts.secureEndpoint ? 443 : 80; + } + if (opts.protocol == null) { + opts.protocol = opts.secureEndpoint ? 'https:' : 'http:'; + } + if (opts.host && opts.path) { + // If both a `host` and `path` are specified then it's most + // likely the result of a `url.parse()` call... we need to + // remove the `path` portion so that `net.connect()` doesn't + // attempt to open that as a unix socket file. + delete opts.path; + } + delete opts.agent; + delete opts.hostname; + delete opts._defaultAgent; + delete opts.defaultPort; + delete opts.createConnection; + // Hint to use "Connection: close" + // XXX: non-documented `http` module API :( + req._last = true; + req.shouldKeepAlive = false; + let timedOut = false; + let timeoutId = null; + const timeoutMs = opts.timeout || this.timeout; + const onerror = (err) => { + if (req._hadError) + return; + req.emit('error', err); + // For Safety. Some additional errors might fire later on + // and we need to make sure we don't double-fire the error event. + req._hadError = true; + }; + const ontimeout = () => { + timeoutId = null; + timedOut = true; + const err = new Error(`A "socket" was not created for HTTP request before ${timeoutMs}ms`); + err.code = 'ETIMEOUT'; + onerror(err); + }; + const callbackError = (err) => { + if (timedOut) + return; + if (timeoutId !== null) { + clearTimeout(timeoutId); + timeoutId = null; + } + onerror(err); + }; + const onsocket = (socket) => { + if (timedOut) + return; + if (timeoutId != null) { + clearTimeout(timeoutId); + timeoutId = null; + } + if (isAgent(socket)) { + // `socket` is actually an `http.Agent` instance, so + // relinquish responsibility for this `req` to the Agent + // from here on + debug('Callback returned another Agent instance %o', socket.constructor.name); + socket.addRequest(req, opts); + return; + } + if (socket) { + socket.once('free', () => { + this.freeSocket(socket, opts); + }); + req.onSocket(socket); + return; + } + const err = new Error(`no Duplex stream was returned to agent-base for \`${req.method} ${req.path}\``); + onerror(err); + }; + if (typeof this.callback !== 'function') { + onerror(new Error('`callback` is not defined')); + return; + } + if (!this.promisifiedCallback) { + if (this.callback.length >= 3) { + debug('Converting legacy callback function to promise'); + this.promisifiedCallback = promisify_1.default(this.callback); + } + else { + this.promisifiedCallback = this.callback; + } + } + if (typeof timeoutMs === 'number' && timeoutMs > 0) { + timeoutId = setTimeout(ontimeout, timeoutMs); + } + if ('port' in opts && typeof opts.port !== 'number') { + opts.port = Number(opts.port); + } + try { + debug('Resolving socket for %o request: %o', opts.protocol, `${req.method} ${req.path}`); + Promise.resolve(this.promisifiedCallback(req, opts)).then(onsocket, callbackError); + } + catch (err) { + Promise.reject(err).catch(callbackError); + } + } + freeSocket(socket, opts) { + debug('Freeing socket %o %o', socket.constructor.name, opts); + socket.destroy(); + } + destroy() { + debug('Destroying agent %o', this.constructor.name); + } + } + createAgent.Agent = Agent; + // So that `instanceof` works correctly + createAgent.prototype = createAgent.Agent.prototype; +})(createAgent || (createAgent = {})); +module.exports = createAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 48990: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +function promisify(fn) { + return function (req, opts) { + return new Promise((resolve, reject) => { + fn.call(this, req, opts, (err, rtn) => { + if (err) { + reject(err); + } + else { + resolve(rtn); + } + }); + }); + }; +} +exports["default"] = promisify; +//# sourceMappingURL=promisify.js.map + +/***/ }), + +/***/ 27588: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-env browser */ + +/** + * This is the web browser implementation of `debug()`. + */ + +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.storage = localstorage(); + +/** + * Colors. + */ + +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; + +/** + * Currently only WebKit-based Web Inspectors, Firefox >= v31, + * and the Firebug extension (any Firefox version) are known + * to support "%c" CSS customizations. + * + * TODO: add a `localStorage` variable to explicitly enable/disable colors + */ + +// eslint-disable-next-line complexity +function useColors() { + // NB: In an Electron preload script, document will be defined but not fully + // initialized. Since we know we're in Chrome, we'll just detect this case + // explicitly + if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { + return true; + } + + // Internet Explorer and Edge do not support colors. + if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { + return false; + } + + // Is webkit? http://stackoverflow.com/a/16459606/376773 + // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); +} + +/** + * Colorize log arguments if enabled. + * + * @api public + */ + +function formatArgs(args) { + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); + + if (!this.useColors) { + return; + } + + const c = 'color: ' + this.color; + args.splice(1, 0, c, 'color: inherit'); + + // The final "%c" is somewhat tricky, because there could be other + // arguments passed either before or after the %c, so we need to + // figure out the correct index to insert the CSS into + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { + if (match === '%%') { + return; + } + index++; + if (match === '%c') { + // We only are interested in the *last* %c + // (the user may have provided their own) + lastC = index; + } + }); + + args.splice(lastC, 0, c); +} + +/** + * Invokes `console.log()` when available. + * No-op when `console.log` is not a "function". + * + * @api public + */ +function log(...args) { + // This hackery is required for IE8/9, where + // the `console.log` function doesn't have 'apply' + return typeof console === 'object' && + console.log && + console.log(...args); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + try { + if (namespaces) { + exports.storage.setItem('debug', namespaces); + } else { + exports.storage.removeItem('debug'); + } + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ +function load() { + let r; + try { + r = exports.storage.getItem('debug'); + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } + + // If debug isn't set in LS, and we're in Electron, try to load $DEBUG + if (!r && typeof process !== 'undefined' && 'env' in process) { + r = process.env.DEBUG; + } + + return r; +} + +/** + * Localstorage attempts to return the localstorage. + * + * This is necessary because safari throws + * when a user disables cookies/localstorage + * and you attempt to access it. + * + * @return {LocalStorage} + * @api private + */ + +function localstorage() { + try { + // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context + // The Browser also has localStorage in the global context. + return localStorage; + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +module.exports = __nccwpck_require__(51655)(exports); + +const {formatters} = module.exports; + +/** + * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + */ + +formatters.j = function (v) { + try { + return JSON.stringify(v); + } catch (error) { + return '[UnexpectedJSONParseError]: ' + error.message; + } +}; + + +/***/ }), + +/***/ 51655: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + + +/** + * This is the common logic for both the Node.js and web browser + * implementations of `debug()`. + */ + +function setup(env) { + createDebug.debug = createDebug; + createDebug.default = createDebug; + createDebug.coerce = coerce; + createDebug.disable = disable; + createDebug.enable = enable; + createDebug.enabled = enabled; + createDebug.humanize = __nccwpck_require__(43679); + + Object.keys(env).forEach(key => { + createDebug[key] = env[key]; + }); + + /** + * Active `debug` instances. + */ + createDebug.instances = []; + + /** + * The currently active debug mode names, and names to skip. + */ + + createDebug.names = []; + createDebug.skips = []; + + /** + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ + createDebug.formatters = {}; + + /** + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ + function selectColor(namespace) { + let hash = 0; + + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); + hash |= 0; // Convert to 32bit integer + } + + return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; + } + createDebug.selectColor = selectColor; + + /** + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ + function createDebug(namespace) { + let prevTime; + + function debug(...args) { + // Disabled? + if (!debug.enabled) { + return; + } + + const self = debug; + + // Set `diff` timestamp + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); + self.diff = ms; + self.prev = prevTime; + self.curr = curr; + prevTime = curr; + + args[0] = createDebug.coerce(args[0]); + + if (typeof args[0] !== 'string') { + // Anything else let's inspect with %O + args.unshift('%O'); + } + + // Apply any `formatters` transformations + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { + // If we encounter an escaped % then don't increase the array index + if (match === '%%') { + return match; + } + index++; + const formatter = createDebug.formatters[format]; + if (typeof formatter === 'function') { + const val = args[index]; + match = formatter.call(self, val); + + // Now we need to remove `args[index]` since it's inlined in the `format` + args.splice(index, 1); + index--; + } + return match; + }); + + // Apply env-specific formatting (colors, etc.) + createDebug.formatArgs.call(self, args); + + const logFn = self.log || createDebug.log; + logFn.apply(self, args); + } + + debug.namespace = namespace; + debug.enabled = createDebug.enabled(namespace); + debug.useColors = createDebug.useColors(); + debug.color = selectColor(namespace); + debug.destroy = destroy; + debug.extend = extend; + // Debug.formatArgs = formatArgs; + // debug.rawLog = rawLog; + + // env-specific initialization logic for debug instances + if (typeof createDebug.init === 'function') { + createDebug.init(debug); + } + + createDebug.instances.push(debug); + + return debug; + } + + function destroy() { + const index = createDebug.instances.indexOf(this); + if (index !== -1) { + createDebug.instances.splice(index, 1); + return true; + } + return false; + } + + function extend(namespace, delimiter) { + const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); + newDebug.log = this.log; + return newDebug; + } + + /** + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ + function enable(namespaces) { + createDebug.save(namespaces); + + createDebug.names = []; + createDebug.skips = []; + + let i; + const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); + const len = split.length; + + for (i = 0; i < len; i++) { + if (!split[i]) { + // ignore empty strings + continue; + } + + namespaces = split[i].replace(/\*/g, '.*?'); + + if (namespaces[0] === '-') { + createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); + } else { + createDebug.names.push(new RegExp('^' + namespaces + '$')); + } + } + + for (i = 0; i < createDebug.instances.length; i++) { + const instance = createDebug.instances[i]; + instance.enabled = createDebug.enabled(instance.namespace); + } + } + + /** + * Disable debug output. + * + * @return {String} namespaces + * @api public + */ + function disable() { + const namespaces = [ + ...createDebug.names.map(toNamespace), + ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) + ].join(','); + createDebug.enable(''); + return namespaces; + } + + /** + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ + function enabled(name) { + if (name[name.length - 1] === '*') { + return true; + } + + let i; + let len; + + for (i = 0, len = createDebug.skips.length; i < len; i++) { + if (createDebug.skips[i].test(name)) { + return false; + } + } + + for (i = 0, len = createDebug.names.length; i < len; i++) { + if (createDebug.names[i].test(name)) { + return true; + } + } + + return false; + } + + /** + * Convert regexp to namespace + * + * @param {RegExp} regxep + * @return {String} namespace + * @api private + */ + function toNamespace(regexp) { + return regexp.toString() + .substring(2, regexp.toString().length - 2) + .replace(/\.\*\?$/, '*'); + } + + /** + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ + function coerce(val) { + if (val instanceof Error) { + return val.stack || val.message; + } + return val; + } + + createDebug.enable(createDebug.load()); + + return createDebug; +} + +module.exports = setup; + + +/***/ }), + +/***/ 24548: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Detect Electron renderer / nwjs process, which is node, but we should + * treat as a browser. + */ + +if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { + module.exports = __nccwpck_require__(27588); +} else { + module.exports = __nccwpck_require__(80843); +} + + +/***/ }), + +/***/ 80843: +/***/ ((module, exports, __nccwpck_require__) => { + +/** + * Module dependencies. + */ + +const tty = __nccwpck_require__(76224); +const util = __nccwpck_require__(73837); + +/** + * This is the Node.js implementation of `debug()`. + */ + +exports.init = init; +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; + +/** + * Colors. + */ + +exports.colors = [6, 2, 3, 4, 5, 1]; + +try { + // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) + // eslint-disable-next-line import/no-extraneous-dependencies + const supportsColor = __nccwpck_require__(13259); + + if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { + exports.colors = [ + 20, + 21, + 26, + 27, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 56, + 57, + 62, + 63, + 68, + 69, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 92, + 93, + 98, + 99, + 112, + 113, + 128, + 129, + 134, + 135, + 148, + 149, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 178, + 179, + 184, + 185, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 214, + 215, + 220, + 221 + ]; + } +} catch (error) { + // Swallow - we only care if `supports-color` is available; it doesn't have to be. +} + +/** + * Build up the default `inspectOpts` object from the environment variables. + * + * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js + */ + +exports.inspectOpts = Object.keys(process.env).filter(key => { + return /^debug_/i.test(key); +}).reduce((obj, key) => { + // Camel-case + const prop = key + .substring(6) + .toLowerCase() + .replace(/_([a-z])/g, (_, k) => { + return k.toUpperCase(); + }); + + // Coerce string value into JS value + let val = process.env[key]; + if (/^(yes|on|true|enabled)$/i.test(val)) { + val = true; + } else if (/^(no|off|false|disabled)$/i.test(val)) { + val = false; + } else if (val === 'null') { + val = null; + } else { + val = Number(val); + } + + obj[prop] = val; + return obj; +}, {}); + +/** + * Is stdout a TTY? Colored output is enabled when `true`. + */ + +function useColors() { + return 'colors' in exports.inspectOpts ? + Boolean(exports.inspectOpts.colors) : + tty.isatty(process.stderr.fd); +} + +/** + * Adds ANSI color escape codes if enabled. + * + * @api public + */ + +function formatArgs(args) { + const {namespace: name, useColors} = this; + + if (useColors) { + const c = this.color; + const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); + const prefix = ` ${colorCode};1m${name} \u001B[0m`; + + args[0] = prefix + args[0].split('\n').join('\n' + prefix); + args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); + } else { + args[0] = getDate() + name + ' ' + args[0]; + } +} + +function getDate() { + if (exports.inspectOpts.hideDate) { + return ''; + } + return new Date().toISOString() + ' '; +} + +/** + * Invokes `util.format()` with the specified arguments and writes to stderr. + */ + +function log(...args) { + return process.stderr.write(util.format(...args) + '\n'); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + if (namespaces) { + process.env.DEBUG = namespaces; + } else { + // If you set a process.env field to null or undefined, it gets cast to the + // string 'null' or 'undefined'. Just delete instead. + delete process.env.DEBUG; + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ + +function load() { + return process.env.DEBUG; +} + +/** + * Init logic for `debug` instances. + * + * Create a new `inspectOpts` object in case `useColors` is set + * differently for a particular `debug` instance. + */ + +function init(debug) { + debug.inspectOpts = {}; + + const keys = Object.keys(exports.inspectOpts); + for (let i = 0; i < keys.length; i++) { + debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; + } +} + +module.exports = __nccwpck_require__(51655)(exports); + +const {formatters} = module.exports; + +/** + * Map %o to `util.inspect()`, all on a single line. + */ + +formatters.o = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts) + .replace(/\s*\n\s*/g, ' '); +}; + +/** + * Map %O to `util.inspect()`, allowing multiple lines if needed. + */ + +formatters.O = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts); +}; + + +/***/ }), + +/***/ 12367: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * archiver-utils + * + * Copyright (c) 2012-2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-archiver/blob/master/LICENSE-MIT + */ +var fs = __nccwpck_require__(54215); +var path = __nccwpck_require__(71017); + +var flatten = __nccwpck_require__(39063); +var difference = __nccwpck_require__(18206); +var union = __nccwpck_require__(3807); +var isPlainObject = __nccwpck_require__(7539); + +var glob = __nccwpck_require__(43822); + +var file = module.exports = {}; + +var pathSeparatorRe = /[\/\\]/g; + +// Process specified wildcard glob patterns or filenames against a +// callback, excluding and uniquing files in the result set. +var processPatterns = function(patterns, fn) { + // Filepaths to return. + var result = []; + // Iterate over flattened patterns array. + flatten(patterns).forEach(function(pattern) { + // If the first character is ! it should be omitted + var exclusion = pattern.indexOf('!') === 0; + // If the pattern is an exclusion, remove the ! + if (exclusion) { pattern = pattern.slice(1); } + // Find all matching files for this pattern. + var matches = fn(pattern); + if (exclusion) { + // If an exclusion, remove matching files. + result = difference(result, matches); + } else { + // Otherwise add matching files. + result = union(result, matches); + } + }); + return result; +}; + +// True if the file path exists. +file.exists = function() { + var filepath = path.join.apply(path, arguments); + return fs.existsSync(filepath); +}; + +// Return an array of all file paths that match the given wildcard patterns. +file.expand = function(...args) { + // If the first argument is an options object, save those options to pass + // into the File.prototype.glob.sync method. + var options = isPlainObject(args[0]) ? args.shift() : {}; + // Use the first argument if it's an Array, otherwise convert the arguments + // object to an array and use that. + var patterns = Array.isArray(args[0]) ? args[0] : args; + // Return empty set if there are no patterns or filepaths. + if (patterns.length === 0) { return []; } + // Return all matching filepaths. + var matches = processPatterns(patterns, function(pattern) { + // Find all matching files for this pattern. + return glob.sync(pattern, options); + }); + // Filter result set? + if (options.filter) { + matches = matches.filter(function(filepath) { + filepath = path.join(options.cwd || '', filepath); + try { + if (typeof options.filter === 'function') { + return options.filter(filepath); + } else { + // If the file is of the right type and exists, this should work. + return fs.statSync(filepath)[options.filter](); + } + } catch(e) { + // Otherwise, it's probably not the right type. + return false; + } + }); + } + return matches; +}; + +// Build a multi task "files" object dynamically. +file.expandMapping = function(patterns, destBase, options) { + options = Object.assign({ + rename: function(destBase, destPath) { + return path.join(destBase || '', destPath); + } + }, options); + var files = []; + var fileByDest = {}; + // Find all files matching pattern, using passed-in options. + file.expand(options, patterns).forEach(function(src) { + var destPath = src; + // Flatten? + if (options.flatten) { + destPath = path.basename(destPath); + } + // Change the extension? + if (options.ext) { + destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext); + } + // Generate destination filename. + var dest = options.rename(destBase, destPath, options); + // Prepend cwd to src path if necessary. + if (options.cwd) { src = path.join(options.cwd, src); } + // Normalize filepaths to be unix-style. + dest = dest.replace(pathSeparatorRe, '/'); + src = src.replace(pathSeparatorRe, '/'); + // Map correct src path to dest path. + if (fileByDest[dest]) { + // If dest already exists, push this src onto that dest's src array. + fileByDest[dest].src.push(src); + } else { + // Otherwise create a new src-dest file mapping object. + files.push({ + src: [src], + dest: dest, + }); + // And store a reference for later use. + fileByDest[dest] = files[files.length - 1]; + } + }); + return files; +}; + +// reusing bits of grunt's multi-task source normalization +file.normalizeFilesArray = function(data) { + var files = []; + + data.forEach(function(obj) { + var prop; + if ('src' in obj || 'dest' in obj) { + files.push(obj); + } + }); + + if (files.length === 0) { + return []; + } + + files = _(files).chain().forEach(function(obj) { + if (!('src' in obj) || !obj.src) { return; } + // Normalize .src properties to flattened array. + if (Array.isArray(obj.src)) { + obj.src = flatten(obj.src); + } else { + obj.src = [obj.src]; + } + }).map(function(obj) { + // Build options object, removing unwanted properties. + var expandOptions = Object.assign({}, obj); + delete expandOptions.src; + delete expandOptions.dest; + + // Expand file mappings. + if (obj.expand) { + return file.expandMapping(obj.src, obj.dest, expandOptions).map(function(mapObj) { + // Copy obj properties to result. + var result = Object.assign({}, obj); + // Make a clone of the orig obj available. + result.orig = Object.assign({}, obj); + // Set .src and .dest, processing both as templates. + result.src = mapObj.src; + result.dest = mapObj.dest; + // Remove unwanted properties. + ['expand', 'cwd', 'flatten', 'rename', 'ext'].forEach(function(prop) { + delete result[prop]; + }); + return result; + }); + } + + // Copy obj properties to result, adding an .orig property. + var result = Object.assign({}, obj); + // Make a clone of the orig obj available. + result.orig = Object.assign({}, obj); + + if ('src' in result) { + // Expose an expand-on-demand getter method as .src. + Object.defineProperty(result, 'src', { + enumerable: true, + get: function fn() { + var src; + if (!('result' in fn)) { + src = obj.src; + // If src is an array, flatten it. Otherwise, make it into an array. + src = Array.isArray(src) ? flatten(src) : [src]; + // Expand src files, memoizing result. + fn.result = file.expand(expandOptions, src); + } + return fn.result; + } + }); + } + + if ('dest' in result) { + result.dest = obj.dest; + } + + return result; + }).flatten().value(); + + return files; +}; + + +/***/ }), + +/***/ 11342: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * archiver-utils + * + * Copyright (c) 2015 Chris Talkington. + * Licensed under the MIT license. + * https://github.com/archiverjs/archiver-utils/blob/master/LICENSE + */ +var fs = __nccwpck_require__(54215); +var path = __nccwpck_require__(71017); +var nutil = __nccwpck_require__(73837); +var lazystream = __nccwpck_require__(50362); +var normalizePath = __nccwpck_require__(98629); +var defaults = __nccwpck_require__(97006); + +var Stream = (__nccwpck_require__(12781).Stream); +var PassThrough = (__nccwpck_require__(7088).PassThrough); + +var utils = module.exports = {}; +utils.file = __nccwpck_require__(12367); + +function assertPath(path) { + if (typeof path !== 'string') { + throw new TypeError('Path must be a string. Received ' + nutils.inspect(path)); + } +} + +utils.collectStream = function(source, callback) { + var collection = []; + var size = 0; + + source.on('error', callback); + + source.on('data', function(chunk) { + collection.push(chunk); + size += chunk.length; + }); + + source.on('end', function() { + var buf = new Buffer(size); + var offset = 0; + + collection.forEach(function(data) { + data.copy(buf, offset); + offset += data.length; + }); + + callback(null, buf); + }); +}; + +utils.dateify = function(dateish) { + dateish = dateish || new Date(); + + if (dateish instanceof Date) { + dateish = dateish; + } else if (typeof dateish === 'string') { + dateish = new Date(dateish); + } else { + dateish = new Date(); + } + + return dateish; +}; + +// this is slightly different from lodash version +utils.defaults = function(object, source, guard) { + var args = arguments; + args[0] = args[0] || {}; + + return defaults(...args); +}; + +utils.isStream = function(source) { + return source instanceof Stream; +}; + +utils.lazyReadStream = function(filepath) { + return new lazystream.Readable(function() { + return fs.createReadStream(filepath); + }); +}; + +utils.normalizeInputSource = function(source) { + if (source === null) { + return new Buffer(0); + } else if (typeof source === 'string') { + return new Buffer(source); + } else if (utils.isStream(source) && !source._readableState) { + var normalized = new PassThrough(); + source.pipe(normalized); + + return normalized; + } + + return source; +}; + +utils.sanitizePath = function(filepath) { + return normalizePath(filepath, false).replace(/^\w+:/, '').replace(/^(\.\.\/|\/)+/, ''); +}; + +utils.trailingSlashIt = function(str) { + return str.slice(-1) !== '/' ? str + '/' : str; +}; + +utils.unixifyPath = function(filepath) { + return normalizePath(filepath, false).replace(/^\w+:/, ''); +}; + +utils.walkdir = function(dirpath, base, callback) { + var results = []; + + if (typeof base === 'function') { + callback = base; + base = dirpath; + } + + fs.readdir(dirpath, function(err, list) { + var i = 0; + var file; + var filepath; + + if (err) { + return callback(err); + } + + (function next() { + file = list[i++]; + + if (!file) { + return callback(null, results); + } + + filepath = path.join(dirpath, file); + + fs.stat(filepath, function(err, stats) { + results.push({ + path: filepath, + relative: path.relative(base, filepath).replace(/\\/g, '/'), + stats: stats + }); + + if (stats && stats.isDirectory()) { + utils.walkdir(filepath, base, function(err, res) { + res.forEach(function(dirEntry) { + results.push(dirEntry); + }); + next(); + }); + } else { + next(); + } + }); + })(); + }); +}; + + +/***/ }), + +/***/ 79481: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +/**/ +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) { + keys.push(key); + }return keys; +}; +/**/ + +module.exports = Duplex; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +var Readable = __nccwpck_require__(47073); +var Writable = __nccwpck_require__(14241); + +util.inherits(Duplex, Readable); + +{ + // avoid scope creep, the keys array can then be collected + var keys = objectKeys(Writable.prototype); + for (var v = 0; v < keys.length; v++) { + var method = keys[v]; + if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + } +} + +function Duplex(options) { + if (!(this instanceof Duplex)) return new Duplex(options); + + Readable.call(this, options); + Writable.call(this, options); + + if (options && options.readable === false) this.readable = false; + + if (options && options.writable === false) this.writable = false; + + this.allowHalfOpen = true; + if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; + + this.once('end', onend); +} + +Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// the no-half-open enforcer +function onend() { + // if we allow half-open state, or if the writable side ended, + // then we're ok. + if (this.allowHalfOpen || this._writableState.ended) return; + + // no more data can be written. + // But allow more writes to happen in this tick. + pna.nextTick(onEndNT, this); +} + +function onEndNT(self) { + self.end(); +} + +Object.defineProperty(Duplex.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined || this._writableState === undefined) { + return false; + } + return this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (this._readableState === undefined || this._writableState === undefined) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + this._writableState.destroyed = value; + } +}); + +Duplex.prototype._destroy = function (err, cb) { + this.push(null); + this.end(); + + pna.nextTick(cb, err); +}; + +/***/ }), + +/***/ 82939: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a passthrough stream. +// basically just the most minimal sort of Transform stream. +// Every written chunk gets output as-is. + + + +module.exports = PassThrough; + +var Transform = __nccwpck_require__(14340); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(PassThrough, Transform); + +function PassThrough(options) { + if (!(this instanceof PassThrough)) return new PassThrough(options); + + Transform.call(this, options); +} + +PassThrough.prototype._transform = function (chunk, encoding, cb) { + cb(null, chunk); +}; + +/***/ }), + +/***/ 47073: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Readable; + +/**/ +var isArray = __nccwpck_require__(78320); +/**/ + +/**/ +var Duplex; +/**/ + +Readable.ReadableState = ReadableState; + +/**/ +var EE = (__nccwpck_require__(82361).EventEmitter); + +var EElistenerCount = function (emitter, type) { + return emitter.listeners(type).length; +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(66966); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(62061).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var debugUtil = __nccwpck_require__(73837); +var debug = void 0; +if (debugUtil && debugUtil.debuglog) { + debug = debugUtil.debuglog('stream'); +} else { + debug = function () {}; +} +/**/ + +var BufferList = __nccwpck_require__(427); +var destroyImpl = __nccwpck_require__(45051); +var StringDecoder; + +util.inherits(Readable, Stream); + +var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; + +function prependListener(emitter, event, fn) { + // Sadly this is not cacheable as some libraries bundle their own + // event emitter implementation with them. + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + + // This is a hack to make sure that our error handler is attached before any + // userland ones. NEVER DO THIS. This is here only because this code needs + // to continue to work with older versions of Node.js that do not include + // the prependListener() method. The goal is to eventually remove this hack. + if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; +} + +function ReadableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(79481); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + + // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + var hwm = options.highWaterMark; + var readableHwm = options.readableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // A linked list is used to store data chunks instead of an array because the + // linked list can remove elements from the beginning faster than + // array.shift() + this.buffer = new BufferList(); + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; + + // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. + this.sync = true; + + // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + this.resumeScheduled = false; + + // has it been destroyed + this.destroyed = false; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + + // if true, a maybeReadMore has been scheduled + this.readingMore = false; + + this.decoder = null; + this.encoding = null; + if (options.encoding) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } +} + +function Readable(options) { + Duplex = Duplex || __nccwpck_require__(79481); + + if (!(this instanceof Readable)) return new Readable(options); + + this._readableState = new ReadableState(options, this); + + // legacy + this.readable = true; + + if (options) { + if (typeof options.read === 'function') this._read = options.read; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + } + + Stream.call(this); +} + +Object.defineProperty(Readable.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined) { + return false; + } + return this._readableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._readableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + } +}); + +Readable.prototype.destroy = destroyImpl.destroy; +Readable.prototype._undestroy = destroyImpl.undestroy; +Readable.prototype._destroy = function (err, cb) { + this.push(null); + cb(err); +}; + +// Manually shove something into the read() buffer. +// This returns true if the highWaterMark has not been hit yet, +// similar to how Writable.write() returns true if you should +// write() some more. +Readable.prototype.push = function (chunk, encoding) { + var state = this._readableState; + var skipChunkCheck; + + if (!state.objectMode) { + if (typeof chunk === 'string') { + encoding = encoding || state.defaultEncoding; + if (encoding !== state.encoding) { + chunk = Buffer.from(chunk, encoding); + encoding = ''; + } + skipChunkCheck = true; + } + } else { + skipChunkCheck = true; + } + + return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); +}; + +// Unshift should *always* be something directly out of read() +Readable.prototype.unshift = function (chunk) { + return readableAddChunk(this, chunk, null, true, false); +}; + +function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { + var state = stream._readableState; + if (chunk === null) { + state.reading = false; + onEofChunk(stream, state); + } else { + var er; + if (!skipChunkCheck) er = chunkInvalid(state, chunk); + if (er) { + stream.emit('error', er); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (addToFront) { + if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true); + } else if (state.ended) { + stream.emit('error', new Error('stream.push() after EOF')); + } else { + state.reading = false; + if (state.decoder && !encoding) { + chunk = state.decoder.write(chunk); + if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); + } else { + addChunk(stream, state, chunk, false); + } + } + } else if (!addToFront) { + state.reading = false; + } + } + + return needMoreData(state); +} + +function addChunk(stream, state, chunk, addToFront) { + if (state.flowing && state.length === 0 && !state.sync) { + stream.emit('data', chunk); + stream.read(0); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + + if (state.needReadable) emitReadable(stream); + } + maybeReadMore(stream, state); +} + +function chunkInvalid(state, chunk) { + var er; + if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + return er; +} + +// if it's past the high water mark, we can push in some more. +// Also, if we have no data yet, we can stand some +// more bytes. This is to work around cases where hwm=0, +// such as the repl. Also, if the push() triggered a +// readable event, and the user called read(largeNumber) such that +// needReadable was set, then we ought to push more, so that another +// 'readable' event will be triggered. +function needMoreData(state) { + return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); +} + +Readable.prototype.isPaused = function () { + return this._readableState.flowing === false; +}; + +// backwards compatibility. +Readable.prototype.setEncoding = function (enc) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this._readableState.decoder = new StringDecoder(enc); + this._readableState.encoding = enc; + return this; +}; + +// Don't raise the hwm > 8MB +var MAX_HWM = 0x800000; +function computeNewHighWaterMark(n) { + if (n >= MAX_HWM) { + n = MAX_HWM; + } else { + // Get the next highest power of 2 to prevent increasing hwm excessively in + // tiny amounts + n--; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n++; + } + return n; +} + +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function howMuchToRead(n, state) { + if (n <= 0 || state.length === 0 && state.ended) return 0; + if (state.objectMode) return 1; + if (n !== n) { + // Only flow one buffer at a time + if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; + } + // If we're asking for more than the current hwm, then raise the hwm. + if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n <= state.length) return n; + // Don't have enough + if (!state.ended) { + state.needReadable = true; + return 0; + } + return state.length; +} + +// you can override either this method, or the async _read(n) below. +Readable.prototype.read = function (n) { + debug('read', n); + n = parseInt(n, 10); + var state = this._readableState; + var nOrig = n; + + if (n !== 0) state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + return null; + } + + n = howMuchToRead(n, state); + + // if we've ended, and we're now clear, then finish it up. + if (n === 0 && state.ended) { + if (state.length === 0) endReadable(this); + return null; + } + + // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + + // if we need a readable event, then we need to do some reading. + var doRead = state.needReadable; + debug('need readable', doRead); + + // if we currently have less than the highWaterMark, then also read some + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } + + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } else if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) state.needReadable = true; + // call internal read method + this._read(state.highWaterMark); + state.sync = false; + // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + if (!state.reading) n = howMuchToRead(nOrig, state); + } + + var ret; + if (n > 0) ret = fromList(n, state);else ret = null; + + if (ret === null) { + state.needReadable = true; + n = 0; + } else { + state.length -= n; + } + + if (state.length === 0) { + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (!state.ended) state.needReadable = true; + + // If we tried to read() past the EOF, then emit end on the next tick. + if (nOrig !== n && state.ended) endReadable(this); + } + + if (ret !== null) this.emit('data', ret); + + return ret; +}; + +function onEofChunk(stream, state) { + if (state.ended) return; + if (state.decoder) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + state.ended = true; + + // emit 'readable' now to make sure it gets picked up. + emitReadable(stream); +} + +// Don't emit readable right away in sync mode, because this can trigger +// another read() call => stack overflow. This way, it might trigger +// a nextTick recursion warning, but that's not so bad. +function emitReadable(stream) { + var state = stream._readableState; + state.needReadable = false; + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream); + } +} + +function emitReadable_(stream) { + debug('emit readable'); + stream.emit('readable'); + flow(stream); +} + +// at this point, the user has presumably seen the 'readable' event, +// and called read() to consume some data. that may have triggered +// in turn another _read(n) call, in which case reading = true if +// it's in progress. +// However, if we're not ended, or reading, and the length < hwm, +// then go ahead and try to read some more preemptively. +function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + pna.nextTick(maybeReadMore_, stream, state); + } +} + +function maybeReadMore_(stream, state) { + var len = state.length; + while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) + // didn't get any data, stop spinning. + break;else len = state.length; + } + state.readingMore = false; +} + +// abstract method. to be overridden in specific implementation classes. +// call cb(er, data) where data is <= n in length. +// for virtual (non-string, non-buffer) streams, "length" is somewhat +// arbitrary, and perhaps not very meaningful. +Readable.prototype._read = function (n) { + this.emit('error', new Error('_read() is not implemented')); +}; + +Readable.prototype.pipe = function (dest, pipeOpts) { + var src = this; + var state = this._readableState; + + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + case 1: + state.pipes = [state.pipes, dest]; + break; + default: + state.pipes.push(dest); + break; + } + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + + var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + + var endFn = doEnd ? onend : unpipe; + if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn); + + dest.on('unpipe', onunpipe); + function onunpipe(readable, unpipeInfo) { + debug('onunpipe'); + if (readable === src) { + if (unpipeInfo && unpipeInfo.hasUnpiped === false) { + unpipeInfo.hasUnpiped = true; + cleanup(); + } + } + } + + function onend() { + debug('onend'); + dest.end(); + } + + // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + + var cleanedUp = false; + function cleanup() { + debug('cleanup'); + // cleanup event handlers once the pipe is broken + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', unpipe); + src.removeListener('data', ondata); + + cleanedUp = true; + + // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + } + + // If the user pushes more data while we're writing to dest then we'll end up + // in ondata again. However, we only want to increase awaitDrain once because + // dest will only emit one 'drain' event for the multiple writes. + // => Introduce a guard on increasing awaitDrain. + var increasedAwaitDrain = false; + src.on('data', ondata); + function ondata(chunk) { + debug('ondata'); + increasedAwaitDrain = false; + var ret = dest.write(chunk); + if (false === ret && !increasedAwaitDrain) { + // If the user unpiped during `dest.write()`, it is possible + // to get stuck in a permanently paused state if that write + // also returned false. + // => Check whether `dest` is still a piping destination. + if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { + debug('false write response, pause', src._readableState.awaitDrain); + src._readableState.awaitDrain++; + increasedAwaitDrain = true; + } + src.pause(); + } + } + + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); + } + + // Make sure our error handler is attached before userland ones. + prependListener(dest, 'error', onerror); + + // Both close and finish should trigger unpipe, but only once. + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + dest.once('close', onclose); + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + dest.once('finish', onfinish); + + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } + + // tell the dest that it's being piped to + dest.emit('pipe', src); + + // start the flow if it hasn't been started already. + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + + return dest; +}; + +function pipeOnDrain(src) { + return function () { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) state.awaitDrain--; + if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; +} + +Readable.prototype.unpipe = function (dest) { + var state = this._readableState; + var unpipeInfo = { hasUnpiped: false }; + + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) return this; + + // just one destination. most common case. + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) return this; + + if (!dest) dest = state.pipes; + + // got a match. + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) dest.emit('unpipe', this, unpipeInfo); + return this; + } + + // slow case. multiple pipe destinations. + + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + + for (var i = 0; i < len; i++) { + dests[i].emit('unpipe', this, unpipeInfo); + }return this; + } + + // try to find the right one. + var index = indexOf(state.pipes, dest); + if (index === -1) return this; + + state.pipes.splice(index, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) state.pipes = state.pipes[0]; + + dest.emit('unpipe', this, unpipeInfo); + + return this; +}; + +// set up data events if they are asked for +// Ensure readable listeners eventually get something +Readable.prototype.on = function (ev, fn) { + var res = Stream.prototype.on.call(this, ev, fn); + + if (ev === 'data') { + // Start flowing on next tick if stream isn't explicitly paused + if (this._readableState.flowing !== false) this.resume(); + } else if (ev === 'readable') { + var state = this._readableState; + if (!state.endEmitted && !state.readableListening) { + state.readableListening = state.needReadable = true; + state.emittedReadable = false; + if (!state.reading) { + pna.nextTick(nReadingNextTick, this); + } else if (state.length) { + emitReadable(this); + } + } + } + + return res; +}; +Readable.prototype.addListener = Readable.prototype.on; + +function nReadingNextTick(self) { + debug('readable nexttick read 0'); + self.read(0); +} + +// pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. +Readable.prototype.resume = function () { + var state = this._readableState; + if (!state.flowing) { + debug('resume'); + state.flowing = true; + resume(this, state); + } + return this; +}; + +function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + pna.nextTick(resume_, stream, state); + } +} + +function resume_(stream, state) { + if (!state.reading) { + debug('resume read 0'); + stream.read(0); + } + + state.resumeScheduled = false; + state.awaitDrain = 0; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) stream.read(0); +} + +Readable.prototype.pause = function () { + debug('call pause flowing=%j', this._readableState.flowing); + if (false !== this._readableState.flowing) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + return this; +}; + +function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + while (state.flowing && stream.read() !== null) {} +} + +// wrap an old-style stream as the async data source. +// This is *not* part of the readable stream interface. +// It is an ugly unfortunate mess of history. +Readable.prototype.wrap = function (stream) { + var _this = this; + + var state = this._readableState; + var paused = false; + + stream.on('end', function () { + debug('wrapped end'); + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) _this.push(chunk); + } + + _this.push(null); + }); + + stream.on('data', function (chunk) { + debug('wrapped data'); + if (state.decoder) chunk = state.decoder.write(chunk); + + // don't skip over falsy values in objectMode + if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + + var ret = _this.push(chunk); + if (!ret) { + paused = true; + stream.pause(); + } + }); + + // proxy all the other methods. + // important when wrapping filters and duplexes. + for (var i in stream) { + if (this[i] === undefined && typeof stream[i] === 'function') { + this[i] = function (method) { + return function () { + return stream[method].apply(stream, arguments); + }; + }(i); + } + } + + // proxy certain important events. + for (var n = 0; n < kProxyEvents.length; n++) { + stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); + } + + // when we try to consume some more bytes, simply unpause the + // underlying stream. + this._read = function (n) { + debug('wrapped _read', n); + if (paused) { + paused = false; + stream.resume(); + } + }; + + return this; +}; + +Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._readableState.highWaterMark; + } +}); + +// exposed for testing purposes only. +Readable._fromList = fromList; + +// Pluck off n bytes from an array of buffers. +// Length is the combined lengths of all the buffers in the list. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromList(n, state) { + // nothing buffered + if (state.length === 0) return null; + + var ret; + if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { + // read it all, truncate the list + if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); + state.buffer.clear(); + } else { + // read part of list + ret = fromListPartial(n, state.buffer, state.decoder); + } + + return ret; +} + +// Extracts only enough buffered data to satisfy the amount requested. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromListPartial(n, list, hasStrings) { + var ret; + if (n < list.head.data.length) { + // slice is the same for buffers and strings + ret = list.head.data.slice(0, n); + list.head.data = list.head.data.slice(n); + } else if (n === list.head.data.length) { + // first chunk is a perfect match + ret = list.shift(); + } else { + // result spans more than one buffer + ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); + } + return ret; +} + +// Copies a specified amount of characters from the list of buffered data +// chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBufferString(n, list) { + var p = list.head; + var c = 1; + var ret = p.data; + n -= ret.length; + while (p = p.next) { + var str = p.data; + var nb = n > str.length ? str.length : n; + if (nb === str.length) ret += str;else ret += str.slice(0, n); + n -= nb; + if (n === 0) { + if (nb === str.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = str.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +// Copies a specified amount of bytes from the list of buffered data chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBuffer(n, list) { + var ret = Buffer.allocUnsafe(n); + var p = list.head; + var c = 1; + p.data.copy(ret); + n -= p.data.length; + while (p = p.next) { + var buf = p.data; + var nb = n > buf.length ? buf.length : n; + buf.copy(ret, ret.length - n, 0, nb); + n -= nb; + if (n === 0) { + if (nb === buf.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = buf.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +function endReadable(stream) { + var state = stream._readableState; + + // If we get here before consuming all the bytes, then that is a + // bug in node. Should never happen. + if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); + + if (!state.endEmitted) { + state.ended = true; + pna.nextTick(endReadableNT, state, stream); + } +} + +function endReadableNT(state, stream) { + // Check that we didn't get one last unshift. + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + } +} + +function indexOf(xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) return i; + } + return -1; +} + +/***/ }), + +/***/ 14340: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a transform stream is a readable/writable stream where you do +// something with the data. Sometimes it's called a "filter", +// but that's not a great name for it, since that implies a thing where +// some bits pass through, and others are simply ignored. (That would +// be a valid example of a transform, of course.) +// +// While the output is causally related to the input, it's not a +// necessarily symmetric or synchronous transformation. For example, +// a zlib stream might take multiple plain-text writes(), and then +// emit a single compressed chunk some time in the future. +// +// Here's how this works: +// +// The Transform stream has all the aspects of the readable and writable +// stream classes. When you write(chunk), that calls _write(chunk,cb) +// internally, and returns false if there's a lot of pending writes +// buffered up. When you call read(), that calls _read(n) until +// there's enough pending readable data buffered up. +// +// In a transform stream, the written data is placed in a buffer. When +// _read(n) is called, it transforms the queued up data, calling the +// buffered _write cb's as it consumes chunks. If consuming a single +// written chunk would result in multiple output chunks, then the first +// outputted bit calls the readcb, and subsequent chunks just go into +// the read buffer, and will cause it to emit 'readable' if necessary. +// +// This way, back-pressure is actually determined by the reading side, +// since _read has to be called to start processing a new chunk. However, +// a pathological inflate type of transform can cause excessive buffering +// here. For example, imagine a stream where every byte of input is +// interpreted as an integer from 0-255, and then results in that many +// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in +// 1kb of data being output. In this case, you could write a very small +// amount of input, and end up with a very large amount of output. In +// such a pathological inflating mechanism, there'd be no way to tell +// the system to stop doing the transform. A single 4MB write could +// cause the system to run out of memory. +// +// However, even in such a pathological case, only a single written chunk +// would be consumed, and then the rest would wait (un-transformed) until +// the results of the previous transformed chunk were consumed. + + + +module.exports = Transform; + +var Duplex = __nccwpck_require__(79481); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(Transform, Duplex); + +function afterTransform(er, data) { + var ts = this._transformState; + ts.transforming = false; + + var cb = ts.writecb; + + if (!cb) { + return this.emit('error', new Error('write callback called multiple times')); + } + + ts.writechunk = null; + ts.writecb = null; + + if (data != null) // single equals check for both `null` and `undefined` + this.push(data); + + cb(er); + + var rs = this._readableState; + rs.reading = false; + if (rs.needReadable || rs.length < rs.highWaterMark) { + this._read(rs.highWaterMark); + } +} + +function Transform(options) { + if (!(this instanceof Transform)) return new Transform(options); + + Duplex.call(this, options); + + this._transformState = { + afterTransform: afterTransform.bind(this), + needTransform: false, + transforming: false, + writecb: null, + writechunk: null, + writeencoding: null + }; + + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; + + // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + this._readableState.sync = false; + + if (options) { + if (typeof options.transform === 'function') this._transform = options.transform; + + if (typeof options.flush === 'function') this._flush = options.flush; + } + + // When the writable side finishes, then flush out anything remaining. + this.on('prefinish', prefinish); +} + +function prefinish() { + var _this = this; + + if (typeof this._flush === 'function') { + this._flush(function (er, data) { + done(_this, er, data); + }); + } else { + done(this, null, null); + } +} + +Transform.prototype.push = function (chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); +}; + +// This is the part where you do stuff! +// override this function in implementation classes. +// 'chunk' is an input chunk. +// +// Call `push(newChunk)` to pass along transformed output +// to the readable side. You may call 'push' zero or more times. +// +// Call `cb(err)` when you are done with this chunk. If you pass +// an error, then that'll put the hurt on the whole operation. If you +// never call cb(), then you'll never get another chunk. +Transform.prototype._transform = function (chunk, encoding, cb) { + throw new Error('_transform() is not implemented'); +}; + +Transform.prototype._write = function (chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + } +}; + +// Doesn't matter what the args are here. +// _transform does all the work. +// That we got here means that the readable side wants more data. +Transform.prototype._read = function (n) { + var ts = this._transformState; + + if (ts.writechunk !== null && ts.writecb && !ts.transforming) { + ts.transforming = true; + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } +}; + +Transform.prototype._destroy = function (err, cb) { + var _this2 = this; + + Duplex.prototype._destroy.call(this, err, function (err2) { + cb(err2); + _this2.emit('close'); + }); +}; + +function done(stream, er, data) { + if (er) return stream.emit('error', er); + + if (data != null) // single equals check for both `null` and `undefined` + stream.push(data); + + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0'); + + if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming'); + + return stream.push(null); +} + +/***/ }), + +/***/ 14241: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// A bit simpler than readable streams. +// Implement an async ._write(chunk, encoding, cb), and it'll handle all +// the drain event emission and buffering. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Writable; + +/* */ +function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + this.next = null; +} + +// It seems a linked list but it is not +// there will be only 2 of these for each stream +function CorkedRequest(state) { + var _this = this; + + this.next = null; + this.entry = null; + this.finish = function () { + onCorkedFinish(_this, state); + }; +} +/* */ + +/**/ +var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; +/**/ + +/**/ +var Duplex; +/**/ + +Writable.WritableState = WritableState; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var internalUtil = { + deprecate: __nccwpck_require__(31674) +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(66966); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(62061).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +var destroyImpl = __nccwpck_require__(45051); + +util.inherits(Writable, Stream); + +function nop() {} + +function WritableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(79481); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag to indicate whether or not this stream + // contains buffers or objects. + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + + // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + var hwm = options.highWaterMark; + var writableHwm = options.writableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // if _final has been called + this.finalCalled = false; + + // drain event flag. + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; + + // has it been destroyed + this.destroyed = false; + + // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + this.length = 0; + + // a flag to see when we're in the middle of a write. + this.writing = false; + + // when true all writes will be buffered until .uncork() call + this.corked = 0; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + this.bufferProcessing = false; + + // the callback that's passed to _write(chunk,cb) + this.onwrite = function (er) { + onwrite(stream, er); + }; + + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; + + // the amount that is being written when _write is called. + this.writelen = 0; + + this.bufferedRequest = null; + this.lastBufferedRequest = null; + + // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; + + // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + this.prefinished = false; + + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; + + // count buffered requests + this.bufferedRequestCount = 0; + + // allocate the first CorkedRequest, there is always + // one allocated and free to use, and we maintain at most two + this.corkedRequestsFree = new CorkedRequest(this); +} + +WritableState.prototype.getBuffer = function getBuffer() { + var current = this.bufferedRequest; + var out = []; + while (current) { + out.push(current); + current = current.next; + } + return out; +}; + +(function () { + try { + Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function () { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') + }); + } catch (_) {} +})(); + +// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. +var realHasInstance; +if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { + realHasInstance = Function.prototype[Symbol.hasInstance]; + Object.defineProperty(Writable, Symbol.hasInstance, { + value: function (object) { + if (realHasInstance.call(this, object)) return true; + if (this !== Writable) return false; + + return object && object._writableState instanceof WritableState; + } + }); +} else { + realHasInstance = function (object) { + return object instanceof this; + }; +} + +function Writable(options) { + Duplex = Duplex || __nccwpck_require__(79481); + + // Writable ctor is applied to Duplexes, too. + // `realHasInstance` is necessary because using plain `instanceof` + // would return false, as no `_writableState` property is attached. + + // Trying to use the custom `instanceof` for Writable here will also break the + // Node.js LazyTransform implementation, which has a non-trivial getter for + // `_writableState` that would lead to infinite recursion. + if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { + return new Writable(options); + } + + this._writableState = new WritableState(options, this); + + // legacy. + this.writable = true; + + if (options) { + if (typeof options.write === 'function') this._write = options.write; + + if (typeof options.writev === 'function') this._writev = options.writev; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + + if (typeof options.final === 'function') this._final = options.final; + } + + Stream.call(this); +} + +// Otherwise people can pipe Writable streams, which is just wrong. +Writable.prototype.pipe = function () { + this.emit('error', new Error('Cannot pipe, not readable')); +}; + +function writeAfterEnd(stream, cb) { + var er = new Error('write after end'); + // TODO: defer error events consistently everywhere, not just the cb + stream.emit('error', er); + pna.nextTick(cb, er); +} + +// Checks that a user-supplied chunk is valid, especially for the particular +// mode the stream is in. Currently this means that `null` is never accepted +// and undefined/non-string values are only allowed in object mode. +function validChunk(stream, state, chunk, cb) { + var valid = true; + var er = false; + + if (chunk === null) { + er = new TypeError('May not write null values to stream'); + } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + if (er) { + stream.emit('error', er); + pna.nextTick(cb, er); + valid = false; + } + return valid; +} + +Writable.prototype.write = function (chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + var isBuf = !state.objectMode && _isUint8Array(chunk); + + if (isBuf && !Buffer.isBuffer(chunk)) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + + if (typeof cb !== 'function') cb = nop; + + if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); + } + + return ret; +}; + +Writable.prototype.cork = function () { + var state = this._writableState; + + state.corked++; +}; + +Writable.prototype.uncork = function () { + var state = this._writableState; + + if (state.corked) { + state.corked--; + + if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + } +}; + +Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { + // node::ParseEncoding() requires lower case. + if (typeof encoding === 'string') encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); + this._writableState.defaultEncoding = encoding; + return this; +}; + +function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + chunk = Buffer.from(chunk, encoding); + } + return chunk; +} + +Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. +function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { + if (!isBuf) { + var newChunk = decodeChunk(state, chunk, encoding); + if (chunk !== newChunk) { + isBuf = true; + encoding = 'buffer'; + chunk = newChunk; + } + } + var len = state.objectMode ? 1 : chunk.length; + + state.length += len; + + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. + if (!ret) state.needDrain = true; + + if (state.writing || state.corked) { + var last = state.lastBufferedRequest; + state.lastBufferedRequest = { + chunk: chunk, + encoding: encoding, + isBuf: isBuf, + callback: cb, + next: null + }; + if (last) { + last.next = state.lastBufferedRequest; + } else { + state.bufferedRequest = state.lastBufferedRequest; + } + state.bufferedRequestCount += 1; + } else { + doWrite(stream, state, false, len, chunk, encoding, cb); + } + + return ret; +} + +function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + state.sync = false; +} + +function onwriteError(stream, state, sync, er, cb) { + --state.pendingcb; + + if (sync) { + // defer the callback if we are being called synchronously + // to avoid piling up things on the stack + pna.nextTick(cb, er); + // this can emit finish, and it will always happen + // after error + pna.nextTick(finishMaybe, stream, state); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + } else { + // the caller expect this to happen before if + // it is async + cb(er); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + // this can emit finish, but finish must + // always follow error + finishMaybe(stream, state); + } +} + +function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; +} + +function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + + onwriteStateUpdate(state); + + if (er) onwriteError(stream, state, sync, er, cb);else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(state); + + if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + clearBuffer(stream, state); + } + + if (sync) { + /**/ + asyncWrite(afterWrite, stream, state, finished, cb); + /**/ + } else { + afterWrite(stream, state, finished, cb); + } + } +} + +function afterWrite(stream, state, finished, cb) { + if (!finished) onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); +} + +// Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. +function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } +} + +// if there's something in the buffer waiting, then process it +function clearBuffer(stream, state) { + state.bufferProcessing = true; + var entry = state.bufferedRequest; + + if (stream._writev && entry && entry.next) { + // Fast case, write everything using _writev() + var l = state.bufferedRequestCount; + var buffer = new Array(l); + var holder = state.corkedRequestsFree; + holder.entry = entry; + + var count = 0; + var allBuffers = true; + while (entry) { + buffer[count] = entry; + if (!entry.isBuf) allBuffers = false; + entry = entry.next; + count += 1; + } + buffer.allBuffers = allBuffers; + + doWrite(stream, state, true, state.length, buffer, '', holder.finish); + + // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite + state.pendingcb++; + state.lastBufferedRequest = null; + if (holder.next) { + state.corkedRequestsFree = holder.next; + holder.next = null; + } else { + state.corkedRequestsFree = new CorkedRequest(state); + } + state.bufferedRequestCount = 0; + } else { + // Slow case, write chunks one-by-one + while (entry) { + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + + doWrite(stream, state, false, len, chunk, encoding, cb); + entry = entry.next; + state.bufferedRequestCount--; + // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + if (state.writing) { + break; + } + } + + if (entry === null) state.lastBufferedRequest = null; + } + + state.bufferedRequest = entry; + state.bufferProcessing = false; +} + +Writable.prototype._write = function (chunk, encoding, cb) { + cb(new Error('_write() is not implemented')); +}; + +Writable.prototype._writev = null; + +Writable.prototype.end = function (chunk, encoding, cb) { + var state = this._writableState; + + if (typeof chunk === 'function') { + cb = chunk; + chunk = null; + encoding = null; + } else if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); + + // .end() fully uncorks + if (state.corked) { + state.corked = 1; + this.uncork(); + } + + // ignore unnecessary end() calls. + if (!state.ending && !state.finished) endWritable(this, state, cb); +}; + +function needFinish(state) { + return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; +} +function callFinal(stream, state) { + stream._final(function (err) { + state.pendingcb--; + if (err) { + stream.emit('error', err); + } + state.prefinished = true; + stream.emit('prefinish'); + finishMaybe(stream, state); + }); +} +function prefinish(stream, state) { + if (!state.prefinished && !state.finalCalled) { + if (typeof stream._final === 'function') { + state.pendingcb++; + state.finalCalled = true; + pna.nextTick(callFinal, stream, state); + } else { + state.prefinished = true; + stream.emit('prefinish'); + } + } +} + +function finishMaybe(stream, state) { + var need = needFinish(state); + if (need) { + prefinish(stream, state); + if (state.pendingcb === 0) { + state.finished = true; + stream.emit('finish'); + } + } + return need; +} + +function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + if (cb) { + if (state.finished) pna.nextTick(cb);else stream.once('finish', cb); + } + state.ended = true; + stream.writable = false; +} + +function onCorkedFinish(corkReq, state, err) { + var entry = corkReq.entry; + corkReq.entry = null; + while (entry) { + var cb = entry.callback; + state.pendingcb--; + cb(err); + entry = entry.next; + } + if (state.corkedRequestsFree) { + state.corkedRequestsFree.next = corkReq; + } else { + state.corkedRequestsFree = corkReq; + } +} + +Object.defineProperty(Writable.prototype, 'destroyed', { + get: function () { + if (this._writableState === undefined) { + return false; + } + return this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._writableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._writableState.destroyed = value; + } +}); + +Writable.prototype.destroy = destroyImpl.destroy; +Writable.prototype._undestroy = destroyImpl.undestroy; +Writable.prototype._destroy = function (err, cb) { + this.end(); + cb(err); +}; + +/***/ }), + +/***/ 427: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Buffer = (__nccwpck_require__(62061).Buffer); +var util = __nccwpck_require__(73837); + +function copyBuffer(src, target, offset) { + src.copy(target, offset); +} + +module.exports = function () { + function BufferList() { + _classCallCheck(this, BufferList); + + this.head = null; + this.tail = null; + this.length = 0; + } + + BufferList.prototype.push = function push(v) { + var entry = { data: v, next: null }; + if (this.length > 0) this.tail.next = entry;else this.head = entry; + this.tail = entry; + ++this.length; + }; + + BufferList.prototype.unshift = function unshift(v) { + var entry = { data: v, next: this.head }; + if (this.length === 0) this.tail = entry; + this.head = entry; + ++this.length; + }; + + BufferList.prototype.shift = function shift() { + if (this.length === 0) return; + var ret = this.head.data; + if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; + --this.length; + return ret; + }; + + BufferList.prototype.clear = function clear() { + this.head = this.tail = null; + this.length = 0; + }; + + BufferList.prototype.join = function join(s) { + if (this.length === 0) return ''; + var p = this.head; + var ret = '' + p.data; + while (p = p.next) { + ret += s + p.data; + }return ret; + }; + + BufferList.prototype.concat = function concat(n) { + if (this.length === 0) return Buffer.alloc(0); + if (this.length === 1) return this.head.data; + var ret = Buffer.allocUnsafe(n >>> 0); + var p = this.head; + var i = 0; + while (p) { + copyBuffer(p.data, ret, i); + i += p.data.length; + p = p.next; + } + return ret; + }; + + return BufferList; +}(); + +if (util && util.inspect && util.inspect.custom) { + module.exports.prototype[util.inspect.custom] = function () { + var obj = util.inspect({ length: this.length }); + return this.constructor.name + ' ' + obj; + }; +} + +/***/ }), + +/***/ 45051: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +// undocumented cb() API, needed for core, not for public API +function destroy(err, cb) { + var _this = this; + + var readableDestroyed = this._readableState && this._readableState.destroyed; + var writableDestroyed = this._writableState && this._writableState.destroyed; + + if (readableDestroyed || writableDestroyed) { + if (cb) { + cb(err); + } else if (err && (!this._writableState || !this._writableState.errorEmitted)) { + pna.nextTick(emitErrorNT, this, err); + } + return this; + } + + // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks + + if (this._readableState) { + this._readableState.destroyed = true; + } + + // if this is a duplex stream mark the writable part as destroyed as well + if (this._writableState) { + this._writableState.destroyed = true; + } + + this._destroy(err || null, function (err) { + if (!cb && err) { + pna.nextTick(emitErrorNT, _this, err); + if (_this._writableState) { + _this._writableState.errorEmitted = true; + } + } else if (cb) { + cb(err); + } + }); + + return this; +} + +function undestroy() { + if (this._readableState) { + this._readableState.destroyed = false; + this._readableState.reading = false; + this._readableState.ended = false; + this._readableState.endEmitted = false; + } + + if (this._writableState) { + this._writableState.destroyed = false; + this._writableState.ended = false; + this._writableState.ending = false; + this._writableState.finished = false; + this._writableState.errorEmitted = false; + } +} + +function emitErrorNT(self, err) { + self.emit('error', err); +} + +module.exports = { + destroy: destroy, + undestroy: undestroy +}; + +/***/ }), + +/***/ 66966: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(12781); + + +/***/ }), + +/***/ 7088: +/***/ ((module, exports, __nccwpck_require__) => { + +var Stream = __nccwpck_require__(12781); +if (process.env.READABLE_STREAM === 'disable' && Stream) { + module.exports = Stream; + exports = module.exports = Stream.Readable; + exports.Readable = Stream.Readable; + exports.Writable = Stream.Writable; + exports.Duplex = Stream.Duplex; + exports.Transform = Stream.Transform; + exports.PassThrough = Stream.PassThrough; + exports.Stream = Stream; +} else { + exports = module.exports = __nccwpck_require__(47073); + exports.Stream = Stream || exports; + exports.Readable = exports; + exports.Writable = __nccwpck_require__(14241); + exports.Duplex = __nccwpck_require__(79481); + exports.Transform = __nccwpck_require__(14340); + exports.PassThrough = __nccwpck_require__(82939); +} + + +/***/ }), + +/***/ 62061: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 70957: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Archiver Vending + * + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var Archiver = __nccwpck_require__(98879); + +var formats = {}; + +/** + * Dispenses a new Archiver instance. + * + * @constructor + * @param {String} format The archive format to use. + * @param {Object} options See [Archiver]{@link Archiver} + * @return {Archiver} + */ +var vending = function(format, options) { + return vending.create(format, options); +}; + +/** + * Creates a new Archiver instance. + * + * @param {String} format The archive format to use. + * @param {Object} options See [Archiver]{@link Archiver} + * @return {Archiver} + */ +vending.create = function(format, options) { + if (formats[format]) { + var instance = new Archiver(format, options); + instance.setFormat(format); + instance.setModule(new formats[format](options)); + + return instance; + } else { + throw new Error('create(' + format + '): format not registered'); + } +}; + +/** + * Registers a format for use with archiver. + * + * @param {String} format The name of the format. + * @param {Function} module The function for archiver to interact with. + * @return void + */ +vending.registerFormat = function(format, module) { + if (formats[format]) { + throw new Error('register(' + format + '): format already registered'); + } + + if (typeof module !== 'function') { + throw new Error('register(' + format + '): format module invalid'); + } + + if (typeof module.prototype.append !== 'function' || typeof module.prototype.finalize !== 'function') { + throw new Error('register(' + format + '): format module missing methods'); + } + + formats[format] = module; +}; + +vending.registerFormat('zip', __nccwpck_require__(35125)); +vending.registerFormat('tar', __nccwpck_require__(50317)); +vending.registerFormat('json', __nccwpck_require__(73192)); + +module.exports = vending; + +/***/ }), + +/***/ 98879: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Archiver Core + * + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var fs = __nccwpck_require__(57147); +var glob = __nccwpck_require__(43822); +var async = __nccwpck_require__(60085); +var path = __nccwpck_require__(71017); +var util = __nccwpck_require__(11342); + +var inherits = (__nccwpck_require__(73837).inherits); +var ArchiverError = __nccwpck_require__(41888); +var Transform = (__nccwpck_require__(85635).Transform); + +var win32 = process.platform === 'win32'; + +/** + * @constructor + * @param {String} format The archive format to use. + * @param {(CoreOptions|TransformOptions)} options See also {@link ZipOptions} and {@link TarOptions}. + */ +var Archiver = function(format, options) { + if (!(this instanceof Archiver)) { + return new Archiver(format, options); + } + + if (typeof format !== 'string') { + options = format; + format = 'zip'; + } + + options = this.options = util.defaults(options, { + highWaterMark: 1024 * 1024, + statConcurrency: 4 + }); + + Transform.call(this, options); + + this._format = false; + this._module = false; + this._pending = 0; + this._pointer = 0; + + this._entriesCount = 0; + this._entriesProcessedCount = 0; + this._fsEntriesTotalBytes = 0; + this._fsEntriesProcessedBytes = 0; + + this._queue = async.queue(this._onQueueTask.bind(this), 1); + this._queue.drain = this._onQueueDrain.bind(this); + + this._statQueue = async.queue(this._onStatQueueTask.bind(this), options.statConcurrency); + this._statQueue.drain = this._onQueueDrain.bind(this); + + this._state = { + aborted: false, + finalize: false, + finalizing: false, + finalized: false, + modulePiped: false + }; + + this._streams = []; +}; + +inherits(Archiver, Transform); + +/** + * Internal logic for `abort`. + * + * @private + * @return void + */ +Archiver.prototype._abort = function() { + this._state.aborted = true; + this._queue.kill(); + this._statQueue.kill(); + + if (this._queue.idle()) { + this._shutdown(); + } +}; + +/** + * Internal helper for appending files. + * + * @private + * @param {String} filepath The source filepath. + * @param {EntryData} data The entry data. + * @return void + */ +Archiver.prototype._append = function(filepath, data) { + data = data || {}; + + var task = { + source: null, + filepath: filepath + }; + + if (!data.name) { + data.name = filepath; + } + + data.sourcePath = filepath; + task.data = data; + this._entriesCount++; + + if (data.stats && data.stats instanceof fs.Stats) { + task = this._updateQueueTaskWithStats(task, data.stats); + if (task) { + if (data.stats.size) { + this._fsEntriesTotalBytes += data.stats.size; + } + + this._queue.push(task); + } + } else { + this._statQueue.push(task); + } +}; + +/** + * Internal logic for `finalize`. + * + * @private + * @return void + */ +Archiver.prototype._finalize = function() { + if (this._state.finalizing || this._state.finalized || this._state.aborted) { + return; + } + + this._state.finalizing = true; + + this._moduleFinalize(); + + this._state.finalizing = false; + this._state.finalized = true; +}; + +/** + * Checks the various state variables to determine if we can `finalize`. + * + * @private + * @return {Boolean} + */ +Archiver.prototype._maybeFinalize = function() { + if (this._state.finalizing || this._state.finalized || this._state.aborted) { + return false; + } + + if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) { + this._finalize(); + return true; + } + + return false; +}; + +/** + * Appends an entry to the module. + * + * @private + * @fires Archiver#entry + * @param {(Buffer|Stream)} source + * @param {EntryData} data + * @param {Function} callback + * @return void + */ +Archiver.prototype._moduleAppend = function(source, data, callback) { + if (this._state.aborted) { + callback(); + return; + } + + this._module.append(source, data, function(err) { + this._task = null; + + if (this._state.aborted) { + this._shutdown(); + return; + } + + if (err) { + this.emit('error', err); + setImmediate(callback); + return; + } + + /** + * Fires when the entry's input has been processed and appended to the archive. + * + * @event Archiver#entry + * @type {EntryData} + */ + this.emit('entry', data); + this._entriesProcessedCount++; + + if (data.stats && data.stats.size) { + this._fsEntriesProcessedBytes += data.stats.size; + } + + /** + * @event Archiver#progress + * @type {ProgressData} + */ + this.emit('progress', { + entries: { + total: this._entriesCount, + processed: this._entriesProcessedCount + }, + fs: { + totalBytes: this._fsEntriesTotalBytes, + processedBytes: this._fsEntriesProcessedBytes + } + }); + + setImmediate(callback); + }.bind(this)); +}; + +/** + * Finalizes the module. + * + * @private + * @return void + */ +Archiver.prototype._moduleFinalize = function() { + if (typeof this._module.finalize === 'function') { + this._module.finalize(); + } else if (typeof this._module.end === 'function') { + this._module.end(); + } else { + this.emit('error', new ArchiverError('NOENDMETHOD')); + } +}; + +/** + * Pipes the module to our internal stream with error bubbling. + * + * @private + * @return void + */ +Archiver.prototype._modulePipe = function() { + this._module.on('error', this._onModuleError.bind(this)); + this._module.pipe(this); + this._state.modulePiped = true; +}; + +/** + * Determines if the current module supports a defined feature. + * + * @private + * @param {String} key + * @return {Boolean} + */ +Archiver.prototype._moduleSupports = function(key) { + if (!this._module.supports || !this._module.supports[key]) { + return false; + } + + return this._module.supports[key]; +}; + +/** + * Unpipes the module from our internal stream. + * + * @private + * @return void + */ +Archiver.prototype._moduleUnpipe = function() { + this._module.unpipe(this); + this._state.modulePiped = false; +}; + +/** + * Normalizes entry data with fallbacks for key properties. + * + * @private + * @param {Object} data + * @param {fs.Stats} stats + * @return {Object} + */ +Archiver.prototype._normalizeEntryData = function(data, stats) { + data = util.defaults(data, { + type: 'file', + name: null, + date: null, + mode: null, + prefix: null, + sourcePath: null, + stats: false + }); + + if (stats && data.stats === false) { + data.stats = stats; + } + + var isDir = data.type === 'directory'; + + if (data.name) { + if (typeof data.prefix === 'string' && '' !== data.prefix) { + data.name = data.prefix + '/' + data.name; + data.prefix = null; + } + + data.name = util.sanitizePath(data.name); + + if (data.type !== 'symlink' && data.name.slice(-1) === '/') { + isDir = true; + data.type = 'directory'; + } else if (isDir) { + data.name += '/'; + } + } + + // 511 === 0777; 493 === 0755; 438 === 0666; 420 === 0644 + if (typeof data.mode === 'number') { + if (win32) { + data.mode &= 511; + } else { + data.mode &= 4095 + } + } else if (data.stats && data.mode === null) { + if (win32) { + data.mode = data.stats.mode & 511; + } else { + data.mode = data.stats.mode & 4095; + } + + // stat isn't reliable on windows; force 0755 for dir + if (win32 && isDir) { + data.mode = 493; + } + } else if (data.mode === null) { + data.mode = isDir ? 493 : 420; + } + + if (data.stats && data.date === null) { + data.date = data.stats.mtime; + } else { + data.date = util.dateify(data.date); + } + + return data; +}; + +/** + * Error listener that re-emits error on to our internal stream. + * + * @private + * @param {Error} err + * @return void + */ +Archiver.prototype._onModuleError = function(err) { + /** + * @event Archiver#error + * @type {ErrorData} + */ + this.emit('error', err); +}; + +/** + * Checks the various state variables after queue has drained to determine if + * we need to `finalize`. + * + * @private + * @return void + */ +Archiver.prototype._onQueueDrain = function() { + if (this._state.finalizing || this._state.finalized || this._state.aborted) { + return; + } + + if (this._state.finalize && this._pending === 0 && this._queue.idle() && this._statQueue.idle()) { + this._finalize(); + } +}; + +/** + * Appends each queue task to the module. + * + * @private + * @param {Object} task + * @param {Function} callback + * @return void + */ +Archiver.prototype._onQueueTask = function(task, callback) { + if (this._state.finalizing || this._state.finalized || this._state.aborted) { + callback(); + return; + } + + this._task = task; + this._moduleAppend(task.source, task.data, callback); +}; + +/** + * Performs a file stat and reinjects the task back into the queue. + * + * @private + * @param {Object} task + * @param {Function} callback + * @return void + */ +Archiver.prototype._onStatQueueTask = function(task, callback) { + if (this._state.finalizing || this._state.finalized || this._state.aborted) { + callback(); + return; + } + + fs.lstat(task.filepath, function(err, stats) { + if (this._state.aborted) { + setImmediate(callback); + return; + } + + if (err) { + this._entriesCount--; + + /** + * @event Archiver#warning + * @type {ErrorData} + */ + this.emit('warning', err); + setImmediate(callback); + return; + } + + task = this._updateQueueTaskWithStats(task, stats); + + if (task) { + if (stats.size) { + this._fsEntriesTotalBytes += stats.size; + } + + this._queue.push(task); + } + + setImmediate(callback); + }.bind(this)); +}; + +/** + * Unpipes the module and ends our internal stream. + * + * @private + * @return void + */ +Archiver.prototype._shutdown = function() { + this._moduleUnpipe(); + this.end(); +}; + +/** + * Tracks the bytes emitted by our internal stream. + * + * @private + * @param {Buffer} chunk + * @param {String} encoding + * @param {Function} callback + * @return void + */ +Archiver.prototype._transform = function(chunk, encoding, callback) { + if (chunk) { + this._pointer += chunk.length; + } + + callback(null, chunk); +}; + +/** + * Updates and normalizes a queue task using stats data. + * + * @private + * @param {Object} task + * @param {fs.Stats} stats + * @return {Object} + */ +Archiver.prototype._updateQueueTaskWithStats = function(task, stats) { + if (stats.isFile()) { + task.data.type = 'file'; + task.data.sourceType = 'stream'; + task.source = util.lazyReadStream(task.filepath); + } else if (stats.isDirectory() && this._moduleSupports('directory')) { + task.data.name = util.trailingSlashIt(task.data.name); + task.data.type = 'directory'; + task.data.sourcePath = util.trailingSlashIt(task.filepath); + task.data.sourceType = 'buffer'; + task.source = Buffer.concat([]); + } else if (stats.isSymbolicLink() && this._moduleSupports('symlink')) { + var linkPath = fs.readlinkSync(task.filepath); + var dirName = path.dirname(task.filepath); + task.data.type = 'symlink'; + task.data.linkname = path.relative(dirName, path.resolve(dirName, linkPath)); + task.data.sourceType = 'buffer'; + task.source = Buffer.concat([]); + } else { + if (stats.isDirectory()) { + this.emit('warning', new ArchiverError('DIRECTORYNOTSUPPORTED', task.data)); + } else if (stats.isSymbolicLink()) { + this.emit('warning', new ArchiverError('SYMLINKNOTSUPPORTED', task.data)); + } else { + this.emit('warning', new ArchiverError('ENTRYNOTSUPPORTED', task.data)); + } + + return null; + } + + task.data = this._normalizeEntryData(task.data, stats); + + return task; +}; + +/** + * Aborts the archiving process, taking a best-effort approach, by: + * + * - removing any pending queue tasks + * - allowing any active queue workers to finish + * - detaching internal module pipes + * - ending both sides of the Transform stream + * + * It will NOT drain any remaining sources. + * + * @return {this} + */ +Archiver.prototype.abort = function() { + if (this._state.aborted || this._state.finalized) { + return this; + } + + this._abort(); + + return this; +}; + +/** + * Appends an input source (text string, buffer, or stream) to the instance. + * + * When the instance has received, processed, and emitted the input, the `entry` + * event is fired. + * + * @fires Archiver#entry + * @param {(Buffer|Stream|String)} source The input source. + * @param {EntryData} data See also {@link ZipEntryData} and {@link TarEntryData}. + * @return {this} + */ +Archiver.prototype.append = function(source, data) { + if (this._state.finalize || this._state.aborted) { + this.emit('error', new ArchiverError('QUEUECLOSED')); + return this; + } + + data = this._normalizeEntryData(data); + + if (typeof data.name !== 'string' || data.name.length === 0) { + this.emit('error', new ArchiverError('ENTRYNAMEREQUIRED')); + return this; + } + + if (data.type === 'directory' && !this._moduleSupports('directory')) { + this.emit('error', new ArchiverError('DIRECTORYNOTSUPPORTED', { name: data.name })); + return this; + } + + source = util.normalizeInputSource(source); + + if (Buffer.isBuffer(source)) { + data.sourceType = 'buffer'; + } else if (util.isStream(source)) { + data.sourceType = 'stream'; + } else { + this.emit('error', new ArchiverError('INPUTSTEAMBUFFERREQUIRED', { name: data.name })); + return this; + } + + this._entriesCount++; + this._queue.push({ + data: data, + source: source + }); + + return this; +}; + +/** + * Appends a directory and its files, recursively, given its dirpath. + * + * @param {String} dirpath The source directory path. + * @param {String} destpath The destination path within the archive. + * @param {(EntryData|Function)} data See also [ZipEntryData]{@link ZipEntryData} and + * [TarEntryData]{@link TarEntryData}. + * @return {this} + */ +Archiver.prototype.directory = function(dirpath, destpath, data) { + if (this._state.finalize || this._state.aborted) { + this.emit('error', new ArchiverError('QUEUECLOSED')); + return this; + } + + if (typeof dirpath !== 'string' || dirpath.length === 0) { + this.emit('error', new ArchiverError('DIRECTORYDIRPATHREQUIRED')); + return this; + } + + this._pending++; + + if (destpath === false) { + destpath = ''; + } else if (typeof destpath !== 'string'){ + destpath = dirpath; + } + + var dataFunction = false; + if (typeof data === 'function') { + dataFunction = data; + data = {}; + } else if (typeof data !== 'object') { + data = {}; + } + + var globOptions = { + stat: false, + dot: true, + cwd: dirpath + }; + + function onGlobEnd() { + this._pending--; + this._maybeFinalize(); + } + + function onGlobError(err) { + this.emit('error', err); + } + + function onGlobMatch(match){ + var ignoreMatch = false; + var entryData = Object.assign({}, data); + entryData.name = match; + entryData.prefix = destpath; + match = globber._makeAbs(match); + + try { + if (dataFunction) { + entryData = dataFunction(entryData); + + if (entryData === false) { + ignoreMatch = true; + } else if (typeof entryData !== 'object') { + throw new ArchiverError('DIRECTORYFUNCTIONINVALIDDATA', { dirpath: dirpath }); + } + } + } catch(e) { + this.emit('error', e); + return; + } + + if (ignoreMatch) { + return; + } + + this._append(match, entryData); + } + + var globber = glob('**', globOptions); + globber.on('error', onGlobError.bind(this)); + globber.on('match', onGlobMatch.bind(this)); + globber.on('end', onGlobEnd.bind(this)); + + return this; +}; + +/** + * Appends a file given its filepath using a + * [lazystream]{@link https://github.com/jpommerening/node-lazystream} wrapper to + * prevent issues with open file limits. + * + * When the instance has received, processed, and emitted the file, the `entry` + * event is fired. + * + * @param {String} filepath The source filepath. + * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and + * [TarEntryData]{@link TarEntryData}. + * @return {this} + */ +Archiver.prototype.file = function(filepath, data) { + if (this._state.finalize || this._state.aborted) { + this.emit('error', new ArchiverError('QUEUECLOSED')); + return this; + } + + if (typeof filepath !== 'string' || filepath.length === 0) { + this.emit('error', new ArchiverError('FILEFILEPATHREQUIRED')); + return this; + } + + this._append(filepath, data); + + return this; +}; + +/** + * Appends multiple files that match a glob pattern. + * + * @param {String} pattern The [glob pattern]{@link https://github.com/isaacs/node-glob#glob-primer} to match. + * @param {Object} options See [node-glob]{@link https://github.com/isaacs/node-glob#options}. + * @param {EntryData} data See also [ZipEntryData]{@link ZipEntryData} and + * [TarEntryData]{@link TarEntryData}. + * @return {this} + */ +Archiver.prototype.glob = function(pattern, options, data) { + this._pending++; + + options = util.defaults(options, { + stat: false + }); + + function onGlobEnd() { + this._pending--; + this._maybeFinalize(); + } + + function onGlobError(err) { + this.emit('error', err); + } + + function onGlobMatch(match){ + var entryData = Object.assign({}, data); + + if (options.cwd) { + entryData.name = match; + match = globber._makeAbs(match); + } + + this._append(match, entryData); + } + + var globber = glob(pattern, options); + globber.on('error', onGlobError.bind(this)); + globber.on('match', onGlobMatch.bind(this)); + globber.on('end', onGlobEnd.bind(this)); + + return this; +}; + +/** + * Finalizes the instance and prevents further appending to the archive + * structure (queue will continue til drained). + * + * The `end`, `close` or `finish` events on the destination stream may fire + * right after calling this method so you should set listeners beforehand to + * properly detect stream completion. + * + * @return {this} + */ +Archiver.prototype.finalize = function() { + if (this._state.aborted) { + this.emit('error', new ArchiverError('ABORTED')); + return this; + } + + if (this._state.finalize) { + this.emit('error', new ArchiverError('FINALIZING')); + return this; + } + + this._state.finalize = true; + + if (this._pending === 0 && this._queue.idle() && this._statQueue.idle()) { + this._finalize(); + } + + var self = this; + + return new Promise(function(resolve, reject) { + var errored; + + self._module.on('end', function() { + if (!errored) { + resolve(); + } + }) + + self._module.on('error', function(err) { + errored = true; + reject(err); + }) + }) +}; + +/** + * Sets the module format name used for archiving. + * + * @param {String} format The name of the format. + * @return {this} + */ +Archiver.prototype.setFormat = function(format) { + if (this._format) { + this.emit('error', new ArchiverError('FORMATSET')); + return this; + } + + this._format = format; + + return this; +}; + +/** + * Sets the module used for archiving. + * + * @param {Function} module The function for archiver to interact with. + * @return {this} + */ +Archiver.prototype.setModule = function(module) { + if (this._state.aborted) { + this.emit('error', new ArchiverError('ABORTED')); + return this; + } + + if (this._state.module) { + this.emit('error', new ArchiverError('MODULESET')); + return this; + } + + this._module = module; + this._modulePipe(); + + return this; +}; + +/** + * Appends a symlink to the instance. + * + * This does NOT interact with filesystem and is used for programmatically creating symlinks. + * + * @param {String} filepath The symlink path (within archive). + * @param {String} target The target path (within archive). + * @return {this} + */ +Archiver.prototype.symlink = function(filepath, target) { + if (this._state.finalize || this._state.aborted) { + this.emit('error', new ArchiverError('QUEUECLOSED')); + return this; + } + + if (typeof filepath !== 'string' || filepath.length === 0) { + this.emit('error', new ArchiverError('SYMLINKFILEPATHREQUIRED')); + return this; + } + + if (typeof target !== 'string' || target.length === 0) { + this.emit('error', new ArchiverError('SYMLINKTARGETREQUIRED', { filepath: filepath })); + return this; + } + + if (!this._moduleSupports('symlink')) { + this.emit('error', new ArchiverError('SYMLINKNOTSUPPORTED', { filepath: filepath })); + return this; + } + + var data = {}; + data.type = 'symlink'; + data.name = filepath.replace(/\\/g, '/'); + data.linkname = target.replace(/\\/g, '/'); + data.sourceType = 'buffer'; + + this._entriesCount++; + this._queue.push({ + data: data, + source: Buffer.concat([]) + }); + + return this; +}; + +/** + * Returns the current length (in bytes) that has been emitted. + * + * @return {Number} + */ +Archiver.prototype.pointer = function() { + return this._pointer; +}; + +/** + * Middleware-like helper that has yet to be fully implemented. + * + * @private + * @param {Function} plugin + * @return {this} + */ +Archiver.prototype.use = function(plugin) { + this._streams.push(plugin); + return this; +}; + +module.exports = Archiver; + +/** + * @typedef {Object} CoreOptions + * @global + * @property {Number} [statConcurrency=4] Sets the number of workers used to + * process the internal fs stat queue. + */ + +/** + * @typedef {Object} TransformOptions + * @property {Boolean} [allowHalfOpen=true] If set to false, then the stream + * will automatically end the readable side when the writable side ends and vice + * versa. + * @property {Boolean} [readableObjectMode=false] Sets objectMode for readable + * side of the stream. Has no effect if objectMode is true. + * @property {Boolean} [writableObjectMode=false] Sets objectMode for writable + * side of the stream. Has no effect if objectMode is true. + * @property {Boolean} [decodeStrings=true] Whether or not to decode strings + * into Buffers before passing them to _write(). `Writable` + * @property {String} [encoding=NULL] If specified, then buffers will be decoded + * to strings using the specified encoding. `Readable` + * @property {Number} [highWaterMark=16kb] The maximum number of bytes to store + * in the internal buffer before ceasing to read from the underlying resource. + * `Readable` `Writable` + * @property {Boolean} [objectMode=false] Whether this stream should behave as a + * stream of objects. Meaning that stream.read(n) returns a single value instead + * of a Buffer of size n. `Readable` `Writable` + */ + +/** + * @typedef {Object} EntryData + * @property {String} name Sets the entry name including internal path. + * @property {(String|Date)} [date=NOW()] Sets the entry date. + * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions. + * @property {String} [prefix] Sets a path prefix for the entry name. Useful + * when working with methods like `directory` or `glob`. + * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing + * for reduction of fs stat calls when stat data is already known. + */ + +/** + * @typedef {Object} ErrorData + * @property {String} message The message of the error. + * @property {String} code The error code assigned to this error. + * @property {String} data Additional data provided for reporting or debugging (where available). + */ + +/** + * @typedef {Object} ProgressData + * @property {Object} entries + * @property {Number} entries.total Number of entries that have been appended. + * @property {Number} entries.processed Number of entries that have been processed. + * @property {Object} fs + * @property {Number} fs.totalBytes Number of bytes that have been appended. Calculated asynchronously and might not be accurate: it growth while entries are added. (based on fs.Stats) + * @property {Number} fs.processedBytes Number of bytes that have been processed. (based on fs.Stats) + */ + + +/***/ }), + +/***/ 41888: +/***/ ((module, exports, __nccwpck_require__) => { + +/** + * Archiver Core + * + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ + +var util = __nccwpck_require__(73837); + +const ERROR_CODES = { + 'ABORTED': 'archive was aborted', + 'DIRECTORYDIRPATHREQUIRED': 'diretory dirpath argument must be a non-empty string value', + 'DIRECTORYFUNCTIONINVALIDDATA': 'invalid data returned by directory custom data function', + 'ENTRYNAMEREQUIRED': 'entry name must be a non-empty string value', + 'FILEFILEPATHREQUIRED': 'file filepath argument must be a non-empty string value', + 'FINALIZING': 'archive already finalizing', + 'QUEUECLOSED': 'queue closed', + 'NOENDMETHOD': 'no suitable finalize/end method defined by module', + 'DIRECTORYNOTSUPPORTED': 'support for directory entries not defined by module', + 'FORMATSET': 'archive format already set', + 'INPUTSTEAMBUFFERREQUIRED': 'input source must be valid Stream or Buffer instance', + 'MODULESET': 'module already set', + 'SYMLINKNOTSUPPORTED': 'support for symlink entries not defined by module', + 'SYMLINKFILEPATHREQUIRED': 'symlink filepath argument must be a non-empty string value', + 'SYMLINKTARGETREQUIRED': 'symlink target argument must be a non-empty string value', + 'ENTRYNOTSUPPORTED': 'entry not supported' +}; + +function ArchiverError(code, data) { + Error.captureStackTrace(this, this.constructor); + //this.name = this.constructor.name; + this.message = ERROR_CODES[code] || code; + this.code = code; + this.data = data; +} + +util.inherits(ArchiverError, Error); + +exports = module.exports = ArchiverError; + +/***/ }), + +/***/ 73192: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * JSON Format Plugin + * + * @module plugins/json + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var inherits = (__nccwpck_require__(73837).inherits); +var Transform = (__nccwpck_require__(85635).Transform); + +var crc32 = __nccwpck_require__(51588); +var util = __nccwpck_require__(11342); + +/** + * @constructor + * @param {(JsonOptions|TransformOptions)} options + */ +var Json = function(options) { + if (!(this instanceof Json)) { + return new Json(options); + } + + options = this.options = util.defaults(options, {}); + + Transform.call(this, options); + + this.supports = { + directory: true, + symlink: true + }; + + this.files = []; +}; + +inherits(Json, Transform); + +/** + * [_transform description] + * + * @private + * @param {Buffer} chunk + * @param {String} encoding + * @param {Function} callback + * @return void + */ +Json.prototype._transform = function(chunk, encoding, callback) { + callback(null, chunk); +}; + +/** + * [_writeStringified description] + * + * @private + * @return void + */ +Json.prototype._writeStringified = function() { + var fileString = JSON.stringify(this.files); + this.write(fileString); +}; + +/** + * [append description] + * + * @param {(Buffer|Stream)} source + * @param {EntryData} data + * @param {Function} callback + * @return void + */ +Json.prototype.append = function(source, data, callback) { + var self = this; + + data.crc32 = 0; + + function onend(err, sourceBuffer) { + if (err) { + callback(err); + return; + } + + data.size = sourceBuffer.length || 0; + data.crc32 = crc32.unsigned(sourceBuffer); + + self.files.push(data); + + callback(null, data); + } + + if (data.sourceType === 'buffer') { + onend(null, source); + } else if (data.sourceType === 'stream') { + util.collectStream(source, onend); + } +}; + +/** + * [finalize description] + * + * @return void + */ +Json.prototype.finalize = function() { + this._writeStringified(); + this.end(); +}; + +module.exports = Json; + +/** + * @typedef {Object} JsonOptions + * @global + */ + + +/***/ }), + +/***/ 50317: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * TAR Format Plugin + * + * @module plugins/tar + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var zlib = __nccwpck_require__(59796); + +var engine = __nccwpck_require__(40934); +var util = __nccwpck_require__(11342); + +/** + * @constructor + * @param {TarOptions} options + */ +var Tar = function(options) { + if (!(this instanceof Tar)) { + return new Tar(options); + } + + options = this.options = util.defaults(options, { + gzip: false + }); + + if (typeof options.gzipOptions !== 'object') { + options.gzipOptions = {}; + } + + this.supports = { + directory: true, + symlink: true + }; + + this.engine = engine.pack(options); + this.compressor = false; + + if (options.gzip) { + this.compressor = zlib.createGzip(options.gzipOptions); + this.compressor.on('error', this._onCompressorError.bind(this)); + } +}; + +/** + * [_onCompressorError description] + * + * @private + * @param {Error} err + * @return void + */ +Tar.prototype._onCompressorError = function(err) { + this.engine.emit('error', err); +}; + +/** + * [append description] + * + * @param {(Buffer|Stream)} source + * @param {TarEntryData} data + * @param {Function} callback + * @return void + */ +Tar.prototype.append = function(source, data, callback) { + var self = this; + + data.mtime = data.date; + + function append(err, sourceBuffer) { + if (err) { + callback(err); + return; + } + + self.engine.entry(data, sourceBuffer, function(err) { + callback(err, data); + }); + } + + if (data.sourceType === 'buffer') { + append(null, source); + } else if (data.sourceType === 'stream' && data.stats) { + data.size = data.stats.size; + + var entry = self.engine.entry(data, function(err) { + callback(err, data); + }); + + source.pipe(entry); + } else if (data.sourceType === 'stream') { + util.collectStream(source, append); + } +}; + +/** + * [finalize description] + * + * @return void + */ +Tar.prototype.finalize = function() { + this.engine.finalize(); +}; + +/** + * [on description] + * + * @return this.engine + */ +Tar.prototype.on = function() { + return this.engine.on.apply(this.engine, arguments); +}; + +/** + * [pipe description] + * + * @param {String} destination + * @param {Object} options + * @return this.engine + */ +Tar.prototype.pipe = function(destination, options) { + if (this.compressor) { + return this.engine.pipe.apply(this.engine, [this.compressor]).pipe(destination, options); + } else { + return this.engine.pipe.apply(this.engine, arguments); + } +}; + +/** + * [unpipe description] + * + * @return this.engine + */ +Tar.prototype.unpipe = function() { + if (this.compressor) { + return this.compressor.unpipe.apply(this.compressor, arguments); + } else { + return this.engine.unpipe.apply(this.engine, arguments); + } +}; + +module.exports = Tar; + +/** + * @typedef {Object} TarOptions + * @global + * @property {Boolean} [gzip=false] Compress the tar archive using gzip. + * @property {Object} [gzipOptions] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options} + * to control compression. + * @property {*} [*] See [tar-stream]{@link https://github.com/mafintosh/tar-stream} documentation for additional properties. + */ + +/** + * @typedef {Object} TarEntryData + * @global + * @property {String} name Sets the entry name including internal path. + * @property {(String|Date)} [date=NOW()] Sets the entry date. + * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions. + * @property {String} [prefix] Sets a path prefix for the entry name. Useful + * when working with methods like `directory` or `glob`. + * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing + * for reduction of fs stat calls when stat data is already known. + */ + +/** + * TarStream Module + * @external TarStream + * @see {@link https://github.com/mafintosh/tar-stream} + */ + + +/***/ }), + +/***/ 35125: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * ZIP Format Plugin + * + * @module plugins/zip + * @license [MIT]{@link https://github.com/archiverjs/node-archiver/blob/master/LICENSE} + * @copyright (c) 2012-2014 Chris Talkington, contributors. + */ +var engine = __nccwpck_require__(394); +var util = __nccwpck_require__(11342); + +/** + * @constructor + * @param {ZipOptions} [options] + * @param {String} [options.comment] Sets the zip archive comment. + * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC. + * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers. + * @param {Boolean} [options.store=false] Sets the compression method to STORE. + * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options} + */ +var Zip = function(options) { + if (!(this instanceof Zip)) { + return new Zip(options); + } + + options = this.options = util.defaults(options, { + comment: '', + forceUTC: false, + store: false + }); + + this.supports = { + directory: true, + symlink: true + }; + + this.engine = new engine(options); +}; + +/** + * @param {(Buffer|Stream)} source + * @param {ZipEntryData} data + * @param {String} data.name Sets the entry name including internal path. + * @param {(String|Date)} [data.date=NOW()] Sets the entry date. + * @param {Number} [data.mode=D:0755/F:0644] Sets the entry permissions. + * @param {String} [data.prefix] Sets a path prefix for the entry name. Useful + * when working with methods like `directory` or `glob`. + * @param {fs.Stats} [data.stats] Sets the fs stat data for this entry allowing + * for reduction of fs stat calls when stat data is already known. + * @param {Boolean} [data.store=ZipOptions.store] Sets the compression method to STORE. + * @param {Function} callback + * @return void + */ +Zip.prototype.append = function(source, data, callback) { + this.engine.entry(source, data, callback); +}; + +/** + * @return void + */ +Zip.prototype.finalize = function() { + this.engine.finalize(); +}; + +/** + * @return this.engine + */ +Zip.prototype.on = function() { + return this.engine.on.apply(this.engine, arguments); +}; + +/** + * @return this.engine + */ +Zip.prototype.pipe = function() { + return this.engine.pipe.apply(this.engine, arguments); +}; + +/** + * @return this.engine + */ +Zip.prototype.unpipe = function() { + return this.engine.unpipe.apply(this.engine, arguments); +}; + +module.exports = Zip; + +/** + * @typedef {Object} ZipOptions + * @global + * @property {String} [comment] Sets the zip archive comment. + * @property {Boolean} [forceLocalTime=false] Forces the archive to contain local file times instead of UTC. + * @property {Boolean} [forceZip64=false] Forces the archive to contain ZIP64 headers. + * @property {Boolean} [store=false] Sets the compression method to STORE. + * @property {Object} [zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options} + * to control compression. + * @property {*} [*] See [zip-stream]{@link https://archiverjs.com/zip-stream/ZipStream.html} documentation for current list of properties. + */ + +/** + * @typedef {Object} ZipEntryData + * @global + * @property {String} name Sets the entry name including internal path. + * @property {(String|Date)} [date=NOW()] Sets the entry date. + * @property {Number} [mode=D:0755/F:0644] Sets the entry permissions. + * @property {String} [prefix] Sets a path prefix for the entry name. Useful + * when working with methods like `directory` or `glob`. + * @property {fs.Stats} [stats] Sets the fs stat data for this entry allowing + * for reduction of fs stat calls when stat data is already known. + * @property {Boolean} [store=ZipOptions.store] Sets the compression method to STORE. + */ + +/** + * ZipStream Module + * @external ZipStream + * @see {@link https://www.archiverjs.com/zip-stream/ZipStream.html} + */ + + +/***/ }), + +/***/ 69298: +/***/ ((module) => { + +"use strict"; + + +const arrify = value => { + if (value === null || value === undefined) { + return []; + } + + if (Array.isArray(value)) { + return value; + } + + if (typeof value === 'string') { + return [value]; + } + + if (typeof value[Symbol.iterator] === 'function') { + return [...value]; + } + + return [value]; +}; + +module.exports = arrify; + + +/***/ }), + +/***/ 60085: +/***/ (function(module, exports, __nccwpck_require__) { + +/* module decorator */ module = __nccwpck_require__.nmd(module); +(function (global, factory) { + true ? factory(exports) : + 0; +}(this, (function (exports) { 'use strict'; + +function slice(arrayLike, start) { + start = start|0; + var newLen = Math.max(arrayLike.length - start, 0); + var newArr = Array(newLen); + for(var idx = 0; idx < newLen; idx++) { + newArr[idx] = arrayLike[start + idx]; + } + return newArr; +} + +/** + * Creates a continuation function with some arguments already applied. + * + * Useful as a shorthand when combined with other control flow functions. Any + * arguments passed to the returned function are added to the arguments + * originally passed to apply. + * + * @name apply + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {Function} fn - The function you want to eventually apply all + * arguments to. Invokes with (arguments...). + * @param {...*} arguments... - Any number of arguments to automatically apply + * when the continuation is called. + * @returns {Function} the partially-applied function + * @example + * + * // using apply + * async.parallel([ + * async.apply(fs.writeFile, 'testfile1', 'test1'), + * async.apply(fs.writeFile, 'testfile2', 'test2') + * ]); + * + * + * // the same process without using apply + * async.parallel([ + * function(callback) { + * fs.writeFile('testfile1', 'test1', callback); + * }, + * function(callback) { + * fs.writeFile('testfile2', 'test2', callback); + * } + * ]); + * + * // It's possible to pass any number of additional arguments when calling the + * // continuation: + * + * node> var fn = async.apply(sys.puts, 'one'); + * node> fn('two', 'three'); + * one + * two + * three + */ +var apply = function(fn/*, ...args*/) { + var args = slice(arguments, 1); + return function(/*callArgs*/) { + var callArgs = slice(arguments); + return fn.apply(null, args.concat(callArgs)); + }; +}; + +var initialParams = function (fn) { + return function (/*...args, callback*/) { + var args = slice(arguments); + var callback = args.pop(); + fn.call(this, args, callback); + }; +}; + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return value != null && (type == 'object' || type == 'function'); +} + +var hasSetImmediate = typeof setImmediate === 'function' && setImmediate; +var hasNextTick = typeof process === 'object' && typeof process.nextTick === 'function'; + +function fallback(fn) { + setTimeout(fn, 0); +} + +function wrap(defer) { + return function (fn/*, ...args*/) { + var args = slice(arguments, 1); + defer(function () { + fn.apply(null, args); + }); + }; +} + +var _defer; + +if (hasSetImmediate) { + _defer = setImmediate; +} else if (hasNextTick) { + _defer = process.nextTick; +} else { + _defer = fallback; +} + +var setImmediate$1 = wrap(_defer); + +/** + * Take a sync function and make it async, passing its return value to a + * callback. This is useful for plugging sync functions into a waterfall, + * series, or other async functions. Any arguments passed to the generated + * function will be passed to the wrapped function (except for the final + * callback argument). Errors thrown will be passed to the callback. + * + * If the function passed to `asyncify` returns a Promise, that promises's + * resolved/rejected state will be used to call the callback, rather than simply + * the synchronous return value. + * + * This also means you can asyncify ES2017 `async` functions. + * + * @name asyncify + * @static + * @memberOf module:Utils + * @method + * @alias wrapSync + * @category Util + * @param {Function} func - The synchronous function, or Promise-returning + * function to convert to an {@link AsyncFunction}. + * @returns {AsyncFunction} An asynchronous wrapper of the `func`. To be + * invoked with `(args..., callback)`. + * @example + * + * // passing a regular synchronous function + * async.waterfall([ + * async.apply(fs.readFile, filename, "utf8"), + * async.asyncify(JSON.parse), + * function (data, next) { + * // data is the result of parsing the text. + * // If there was a parsing error, it would have been caught. + * } + * ], callback); + * + * // passing a function returning a promise + * async.waterfall([ + * async.apply(fs.readFile, filename, "utf8"), + * async.asyncify(function (contents) { + * return db.model.create(contents); + * }), + * function (model, next) { + * // `model` is the instantiated model object. + * // If there was an error, this function would be skipped. + * } + * ], callback); + * + * // es2017 example, though `asyncify` is not needed if your JS environment + * // supports async functions out of the box + * var q = async.queue(async.asyncify(async function(file) { + * var intermediateStep = await processFile(file); + * return await somePromise(intermediateStep) + * })); + * + * q.push(files); + */ +function asyncify(func) { + return initialParams(function (args, callback) { + var result; + try { + result = func.apply(this, args); + } catch (e) { + return callback(e); + } + // if result is Promise object + if (isObject(result) && typeof result.then === 'function') { + result.then(function(value) { + invokeCallback(callback, null, value); + }, function(err) { + invokeCallback(callback, err.message ? err : new Error(err)); + }); + } else { + callback(null, result); + } + }); +} + +function invokeCallback(callback, error, value) { + try { + callback(error, value); + } catch (e) { + setImmediate$1(rethrow, e); + } +} + +function rethrow(error) { + throw error; +} + +var supportsSymbol = typeof Symbol === 'function'; + +function isAsync(fn) { + return supportsSymbol && fn[Symbol.toStringTag] === 'AsyncFunction'; +} + +function wrapAsync(asyncFn) { + return isAsync(asyncFn) ? asyncify(asyncFn) : asyncFn; +} + +function applyEach$1(eachfn) { + return function(fns/*, ...args*/) { + var args = slice(arguments, 1); + var go = initialParams(function(args, callback) { + var that = this; + return eachfn(fns, function (fn, cb) { + wrapAsync(fn).apply(that, args.concat(cb)); + }, callback); + }); + if (args.length) { + return go.apply(this, args); + } + else { + return go; + } + }; +} + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** Built-in value references. */ +var Symbol$1 = root.Symbol; + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString = objectProto.toString; + +/** Built-in value references. */ +var symToStringTag$1 = Symbol$1 ? Symbol$1.toStringTag : undefined; + +/** + * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the raw `toStringTag`. + */ +function getRawTag(value) { + var isOwn = hasOwnProperty.call(value, symToStringTag$1), + tag = value[symToStringTag$1]; + + try { + value[symToStringTag$1] = undefined; + var unmasked = true; + } catch (e) {} + + var result = nativeObjectToString.call(value); + if (unmasked) { + if (isOwn) { + value[symToStringTag$1] = tag; + } else { + delete value[symToStringTag$1]; + } + } + return result; +} + +/** Used for built-in method references. */ +var objectProto$1 = Object.prototype; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var nativeObjectToString$1 = objectProto$1.toString; + +/** + * Converts `value` to a string using `Object.prototype.toString`. + * + * @private + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + */ +function objectToString(value) { + return nativeObjectToString$1.call(value); +} + +/** `Object#toString` result references. */ +var nullTag = '[object Null]'; +var undefinedTag = '[object Undefined]'; + +/** Built-in value references. */ +var symToStringTag = Symbol$1 ? Symbol$1.toStringTag : undefined; + +/** + * The base implementation of `getTag` without fallbacks for buggy environments. + * + * @private + * @param {*} value The value to query. + * @returns {string} Returns the `toStringTag`. + */ +function baseGetTag(value) { + if (value == null) { + return value === undefined ? undefinedTag : nullTag; + } + return (symToStringTag && symToStringTag in Object(value)) + ? getRawTag(value) + : objectToString(value); +} + +/** `Object#toString` result references. */ +var asyncTag = '[object AsyncFunction]'; +var funcTag = '[object Function]'; +var genTag = '[object GeneratorFunction]'; +var proxyTag = '[object Proxy]'; + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + if (!isObject(value)) { + return false; + } + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 9 which returns 'object' for typed arrays and other constructors. + var tag = baseGetTag(value); + return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag; +} + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +// A temporary value used to identify if the loop should be broken. +// See #1064, #1293 +var breakLoop = {}; + +/** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ +function noop() { + // No operation performed. +} + +function once(fn) { + return function () { + if (fn === null) return; + var callFn = fn; + fn = null; + callFn.apply(this, arguments); + }; +} + +var iteratorSymbol = typeof Symbol === 'function' && Symbol.iterator; + +var getIterator = function (coll) { + return iteratorSymbol && coll[iteratorSymbol] && coll[iteratorSymbol](); +}; + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return value != null && typeof value == 'object'; +} + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]'; + +/** + * The base implementation of `_.isArguments`. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + */ +function baseIsArguments(value) { + return isObjectLike(value) && baseGetTag(value) == argsTag; +} + +/** Used for built-in method references. */ +var objectProto$3 = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty$2 = objectProto$3.hasOwnProperty; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto$3.propertyIsEnumerable; + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +var isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) { + return isObjectLike(value) && hasOwnProperty$2.call(value, 'callee') && + !propertyIsEnumerable.call(value, 'callee'); +}; + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * This method returns `false`. + * + * @static + * @memberOf _ + * @since 4.13.0 + * @category Util + * @returns {boolean} Returns `false`. + * @example + * + * _.times(2, _.stubFalse); + * // => [false, false] + */ +function stubFalse() { + return false; +} + +/** Detect free variable `exports`. */ +var freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule = freeExports && "object" == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports = freeModule && freeModule.exports === freeExports; + +/** Built-in value references. */ +var Buffer = moduleExports ? root.Buffer : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined; + +/** + * Checks if `value` is a buffer. + * + * @static + * @memberOf _ + * @since 4.3.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a buffer, else `false`. + * @example + * + * _.isBuffer(new Buffer(2)); + * // => true + * + * _.isBuffer(new Uint8Array(2)); + * // => false + */ +var isBuffer = nativeIsBuffer || stubFalse; + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER$1 = 9007199254740991; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + var type = typeof value; + length = length == null ? MAX_SAFE_INTEGER$1 : length; + + return !!length && + (type == 'number' || + (type != 'symbol' && reIsUint.test(value))) && + (value > -1 && value % 1 == 0 && value < length); +} + +/** `Object#toString` result references. */ +var argsTag$1 = '[object Arguments]'; +var arrayTag = '[object Array]'; +var boolTag = '[object Boolean]'; +var dateTag = '[object Date]'; +var errorTag = '[object Error]'; +var funcTag$1 = '[object Function]'; +var mapTag = '[object Map]'; +var numberTag = '[object Number]'; +var objectTag = '[object Object]'; +var regexpTag = '[object RegExp]'; +var setTag = '[object Set]'; +var stringTag = '[object String]'; +var weakMapTag = '[object WeakMap]'; + +var arrayBufferTag = '[object ArrayBuffer]'; +var dataViewTag = '[object DataView]'; +var float32Tag = '[object Float32Array]'; +var float64Tag = '[object Float64Array]'; +var int8Tag = '[object Int8Array]'; +var int16Tag = '[object Int16Array]'; +var int32Tag = '[object Int32Array]'; +var uint8Tag = '[object Uint8Array]'; +var uint8ClampedTag = '[object Uint8ClampedArray]'; +var uint16Tag = '[object Uint16Array]'; +var uint32Tag = '[object Uint32Array]'; + +/** Used to identify `toStringTag` values of typed arrays. */ +var typedArrayTags = {}; +typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = +typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = +typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = +typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = +typedArrayTags[uint32Tag] = true; +typedArrayTags[argsTag$1] = typedArrayTags[arrayTag] = +typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = +typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = +typedArrayTags[errorTag] = typedArrayTags[funcTag$1] = +typedArrayTags[mapTag] = typedArrayTags[numberTag] = +typedArrayTags[objectTag] = typedArrayTags[regexpTag] = +typedArrayTags[setTag] = typedArrayTags[stringTag] = +typedArrayTags[weakMapTag] = false; + +/** + * The base implementation of `_.isTypedArray` without Node.js optimizations. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + */ +function baseIsTypedArray(value) { + return isObjectLike(value) && + isLength(value.length) && !!typedArrayTags[baseGetTag(value)]; +} + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +/** Detect free variable `exports`. */ +var freeExports$1 = typeof exports == 'object' && exports && !exports.nodeType && exports; + +/** Detect free variable `module`. */ +var freeModule$1 = freeExports$1 && "object" == 'object' && module && !module.nodeType && module; + +/** Detect the popular CommonJS extension `module.exports`. */ +var moduleExports$1 = freeModule$1 && freeModule$1.exports === freeExports$1; + +/** Detect free variable `process` from Node.js. */ +var freeProcess = moduleExports$1 && freeGlobal.process; + +/** Used to access faster Node.js helpers. */ +var nodeUtil = (function() { + try { + // Use `util.types` for Node.js 10+. + var types = freeModule$1 && freeModule$1.require && freeModule$1.require('util').types; + + if (types) { + return types; + } + + // Legacy `process.binding('util')` for Node.js < 10. + return freeProcess && freeProcess.binding && freeProcess.binding('util'); + } catch (e) {} +}()); + +/* Node.js helper references. */ +var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray; + +/** + * Checks if `value` is classified as a typed array. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a typed array, else `false`. + * @example + * + * _.isTypedArray(new Uint8Array); + * // => true + * + * _.isTypedArray([]); + * // => false + */ +var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray; + +/** Used for built-in method references. */ +var objectProto$2 = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty$1 = objectProto$2.hasOwnProperty; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + var isArr = isArray(value), + isArg = !isArr && isArguments(value), + isBuff = !isArr && !isArg && isBuffer(value), + isType = !isArr && !isArg && !isBuff && isTypedArray(value), + skipIndexes = isArr || isArg || isBuff || isType, + result = skipIndexes ? baseTimes(value.length, String) : [], + length = result.length; + + for (var key in value) { + if ((inherited || hasOwnProperty$1.call(value, key)) && + !(skipIndexes && ( + // Safari 9 has enumerable `arguments.length` in strict mode. + key == 'length' || + // Node.js 0.10 has enumerable non-index properties on buffers. + (isBuff && (key == 'offset' || key == 'parent')) || + // PhantomJS 2 has enumerable non-index properties on typed arrays. + (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) || + // Skip index properties. + isIndex(key, length) + ))) { + result.push(key); + } + } + return result; +} + +/** Used for built-in method references. */ +var objectProto$5 = Object.prototype; + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto$5; + + return value === proto; +} + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeKeys = overArg(Object.keys, Object); + +/** Used for built-in method references. */ +var objectProto$4 = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty$3 = objectProto$4.hasOwnProperty; + +/** + * The base implementation of `_.keys` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeys(object) { + if (!isPrototype(object)) { + return nativeKeys(object); + } + var result = []; + for (var key in Object(object)) { + if (hasOwnProperty$3.call(object, key) && key != 'constructor') { + result.push(key); + } + } + return result; +} + +/** + * Creates an array of the own enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. See the + * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * for more details. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keys(new Foo); + * // => ['a', 'b'] (iteration order is not guaranteed) + * + * _.keys('hi'); + * // => ['0', '1'] + */ +function keys(object) { + return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object); +} + +function createArrayIterator(coll) { + var i = -1; + var len = coll.length; + return function next() { + return ++i < len ? {value: coll[i], key: i} : null; + } +} + +function createES2015Iterator(iterator) { + var i = -1; + return function next() { + var item = iterator.next(); + if (item.done) + return null; + i++; + return {value: item.value, key: i}; + } +} + +function createObjectIterator(obj) { + var okeys = keys(obj); + var i = -1; + var len = okeys.length; + return function next() { + var key = okeys[++i]; + return i < len ? {value: obj[key], key: key} : null; + }; +} + +function iterator(coll) { + if (isArrayLike(coll)) { + return createArrayIterator(coll); + } + + var iterator = getIterator(coll); + return iterator ? createES2015Iterator(iterator) : createObjectIterator(coll); +} + +function onlyOnce(fn) { + return function() { + if (fn === null) throw new Error("Callback was already called."); + var callFn = fn; + fn = null; + callFn.apply(this, arguments); + }; +} + +function _eachOfLimit(limit) { + return function (obj, iteratee, callback) { + callback = once(callback || noop); + if (limit <= 0 || !obj) { + return callback(null); + } + var nextElem = iterator(obj); + var done = false; + var running = 0; + var looping = false; + + function iterateeCallback(err, value) { + running -= 1; + if (err) { + done = true; + callback(err); + } + else if (value === breakLoop || (done && running <= 0)) { + done = true; + return callback(null); + } + else if (!looping) { + replenish(); + } + } + + function replenish () { + looping = true; + while (running < limit && !done) { + var elem = nextElem(); + if (elem === null) { + done = true; + if (running <= 0) { + callback(null); + } + return; + } + running += 1; + iteratee(elem.value, elem.key, onlyOnce(iterateeCallback)); + } + looping = false; + } + + replenish(); + }; +} + +/** + * The same as [`eachOf`]{@link module:Collections.eachOf} but runs a maximum of `limit` async operations at a + * time. + * + * @name eachOfLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.eachOf]{@link module:Collections.eachOf} + * @alias forEachOfLimit + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async function to apply to each + * item in `coll`. The `key` is the item's key, or index in the case of an + * array. + * Invoked with (item, key, callback). + * @param {Function} [callback] - A callback which is called when all + * `iteratee` functions have finished, or an error occurs. Invoked with (err). + */ +function eachOfLimit(coll, limit, iteratee, callback) { + _eachOfLimit(limit)(coll, wrapAsync(iteratee), callback); +} + +function doLimit(fn, limit) { + return function (iterable, iteratee, callback) { + return fn(iterable, limit, iteratee, callback); + }; +} + +// eachOf implementation optimized for array-likes +function eachOfArrayLike(coll, iteratee, callback) { + callback = once(callback || noop); + var index = 0, + completed = 0, + length = coll.length; + if (length === 0) { + callback(null); + } + + function iteratorCallback(err, value) { + if (err) { + callback(err); + } else if ((++completed === length) || value === breakLoop) { + callback(null); + } + } + + for (; index < length; index++) { + iteratee(coll[index], index, onlyOnce(iteratorCallback)); + } +} + +// a generic version of eachOf which can handle array, object, and iterator cases. +var eachOfGeneric = doLimit(eachOfLimit, Infinity); + +/** + * Like [`each`]{@link module:Collections.each}, except that it passes the key (or index) as the second argument + * to the iteratee. + * + * @name eachOf + * @static + * @memberOf module:Collections + * @method + * @alias forEachOf + * @category Collection + * @see [async.each]{@link module:Collections.each} + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - A function to apply to each + * item in `coll`. + * The `key` is the item's key, or index in the case of an array. + * Invoked with (item, key, callback). + * @param {Function} [callback] - A callback which is called when all + * `iteratee` functions have finished, or an error occurs. Invoked with (err). + * @example + * + * var obj = {dev: "/dev.json", test: "/test.json", prod: "/prod.json"}; + * var configs = {}; + * + * async.forEachOf(obj, function (value, key, callback) { + * fs.readFile(__dirname + value, "utf8", function (err, data) { + * if (err) return callback(err); + * try { + * configs[key] = JSON.parse(data); + * } catch (e) { + * return callback(e); + * } + * callback(); + * }); + * }, function (err) { + * if (err) console.error(err.message); + * // configs is now a map of JSON data + * doSomethingWith(configs); + * }); + */ +var eachOf = function(coll, iteratee, callback) { + var eachOfImplementation = isArrayLike(coll) ? eachOfArrayLike : eachOfGeneric; + eachOfImplementation(coll, wrapAsync(iteratee), callback); +}; + +function doParallel(fn) { + return function (obj, iteratee, callback) { + return fn(eachOf, obj, wrapAsync(iteratee), callback); + }; +} + +function _asyncMap(eachfn, arr, iteratee, callback) { + callback = callback || noop; + arr = arr || []; + var results = []; + var counter = 0; + var _iteratee = wrapAsync(iteratee); + + eachfn(arr, function (value, _, callback) { + var index = counter++; + _iteratee(value, function (err, v) { + results[index] = v; + callback(err); + }); + }, function (err) { + callback(err, results); + }); +} + +/** + * Produces a new collection of values by mapping each value in `coll` through + * the `iteratee` function. The `iteratee` is called with an item from `coll` + * and a callback for when it has finished processing. Each of these callback + * takes 2 arguments: an `error`, and the transformed item from `coll`. If + * `iteratee` passes an error to its callback, the main `callback` (for the + * `map` function) is immediately called with the error. + * + * Note, that since this function applies the `iteratee` to each item in + * parallel, there is no guarantee that the `iteratee` functions will complete + * in order. However, the results array will be in the same order as the + * original `coll`. + * + * If `map` is passed an Object, the results will be an Array. The results + * will roughly be in the order of the original Objects' keys (but this can + * vary across JavaScript engines). + * + * @name map + * @static + * @memberOf module:Collections + * @method + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with the transformed item. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Results is an Array of the + * transformed items from the `coll`. Invoked with (err, results). + * @example + * + * async.map(['file1','file2','file3'], fs.stat, function(err, results) { + * // results is now an array of stats for each file + * }); + */ +var map = doParallel(_asyncMap); + +/** + * Applies the provided arguments to each function in the array, calling + * `callback` after all functions have completed. If you only provide the first + * argument, `fns`, then it will return a function which lets you pass in the + * arguments as if it were a single function call. If more arguments are + * provided, `callback` is required while `args` is still optional. + * + * @name applyEach + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s + * to all call with the same arguments + * @param {...*} [args] - any number of separate arguments to pass to the + * function. + * @param {Function} [callback] - the final argument should be the callback, + * called when all functions have completed processing. + * @returns {Function} - If only the first argument, `fns`, is provided, it will + * return a function which lets you pass in the arguments as if it were a single + * function call. The signature is `(..args, callback)`. If invoked with any + * arguments, `callback` is required. + * @example + * + * async.applyEach([enableSearch, updateSchema], 'bucket', callback); + * + * // partial application example: + * async.each( + * buckets, + * async.applyEach([enableSearch, updateSchema]), + * callback + * ); + */ +var applyEach = applyEach$1(map); + +function doParallelLimit(fn) { + return function (obj, limit, iteratee, callback) { + return fn(_eachOfLimit(limit), obj, wrapAsync(iteratee), callback); + }; +} + +/** + * The same as [`map`]{@link module:Collections.map} but runs a maximum of `limit` async operations at a time. + * + * @name mapLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.map]{@link module:Collections.map} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with the transformed item. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Results is an array of the + * transformed items from the `coll`. Invoked with (err, results). + */ +var mapLimit = doParallelLimit(_asyncMap); + +/** + * The same as [`map`]{@link module:Collections.map} but runs only a single async operation at a time. + * + * @name mapSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.map]{@link module:Collections.map} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with the transformed item. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Results is an array of the + * transformed items from the `coll`. Invoked with (err, results). + */ +var mapSeries = doLimit(mapLimit, 1); + +/** + * The same as [`applyEach`]{@link module:ControlFlow.applyEach} but runs only a single async operation at a time. + * + * @name applyEachSeries + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.applyEach]{@link module:ControlFlow.applyEach} + * @category Control Flow + * @param {Array|Iterable|Object} fns - A collection of {@link AsyncFunction}s to all + * call with the same arguments + * @param {...*} [args] - any number of separate arguments to pass to the + * function. + * @param {Function} [callback] - the final argument should be the callback, + * called when all functions have completed processing. + * @returns {Function} - If only the first argument is provided, it will return + * a function which lets you pass in the arguments as if it were a single + * function call. + */ +var applyEachSeries = applyEach$1(mapSeries); + +/** + * A specialized version of `_.forEach` for arrays without support for + * iteratee shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns `array`. + */ +function arrayEach(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length; + + while (++index < length) { + if (iteratee(array[index], index, array) === false) { + break; + } + } + return array; +} + +/** + * Creates a base function for methods like `_.forIn` and `_.forOwn`. + * + * @private + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Function} Returns the new base function. + */ +function createBaseFor(fromRight) { + return function(object, iteratee, keysFunc) { + var index = -1, + iterable = Object(object), + props = keysFunc(object), + length = props.length; + + while (length--) { + var key = props[fromRight ? length : ++index]; + if (iteratee(iterable[key], key, iterable) === false) { + break; + } + } + return object; + }; +} + +/** + * The base implementation of `baseForOwn` which iterates over `object` + * properties returned by `keysFunc` and invokes `iteratee` for each property. + * Iteratee functions may exit iteration early by explicitly returning `false`. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @param {Function} keysFunc The function to get the keys of `object`. + * @returns {Object} Returns `object`. + */ +var baseFor = createBaseFor(); + +/** + * The base implementation of `_.forOwn` without support for iteratee shorthands. + * + * @private + * @param {Object} object The object to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Object} Returns `object`. + */ +function baseForOwn(object, iteratee) { + return object && baseFor(object, iteratee, keys); +} + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +/** + * A specialized version of `_.indexOf` which performs strict equality + * comparisons of values, i.e. `===`. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function strictIndexOf(array, value, fromIndex) { + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + return value === value + ? strictIndexOf(array, value, fromIndex) + : baseFindIndex(array, baseIsNaN, fromIndex); +} + +/** + * Determines the best order for running the {@link AsyncFunction}s in `tasks`, based on + * their requirements. Each function can optionally depend on other functions + * being completed first, and each function is run as soon as its requirements + * are satisfied. + * + * If any of the {@link AsyncFunction}s pass an error to their callback, the `auto` sequence + * will stop. Further tasks will not execute (so any other functions depending + * on it will not run), and the main `callback` is immediately called with the + * error. + * + * {@link AsyncFunction}s also receive an object containing the results of functions which + * have completed so far as the first argument, if they have dependencies. If a + * task function has no dependencies, it will only be passed a callback. + * + * @name auto + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Object} tasks - An object. Each of its properties is either a + * function or an array of requirements, with the {@link AsyncFunction} itself the last item + * in the array. The object's key of a property serves as the name of the task + * defined by that property, i.e. can be used when specifying requirements for + * other tasks. The function receives one or two arguments: + * * a `results` object, containing the results of the previously executed + * functions, only passed if the task has any dependencies, + * * a `callback(err, result)` function, which must be called when finished, + * passing an `error` (which can be `null`) and the result of the function's + * execution. + * @param {number} [concurrency=Infinity] - An optional `integer` for + * determining the maximum number of tasks that can be run in parallel. By + * default, as many as possible. + * @param {Function} [callback] - An optional callback which is called when all + * the tasks have been completed. It receives the `err` argument if any `tasks` + * pass an error to their callback. Results are always returned; however, if an + * error occurs, no further `tasks` will be performed, and the results object + * will only contain partial results. Invoked with (err, results). + * @returns undefined + * @example + * + * async.auto({ + * // this function will just be passed a callback + * readData: async.apply(fs.readFile, 'data.txt', 'utf-8'), + * showData: ['readData', function(results, cb) { + * // results.readData is the file's contents + * // ... + * }] + * }, callback); + * + * async.auto({ + * get_data: function(callback) { + * console.log('in get_data'); + * // async code to get some data + * callback(null, 'data', 'converted to array'); + * }, + * make_folder: function(callback) { + * console.log('in make_folder'); + * // async code to create a directory to store a file in + * // this is run at the same time as getting the data + * callback(null, 'folder'); + * }, + * write_file: ['get_data', 'make_folder', function(results, callback) { + * console.log('in write_file', JSON.stringify(results)); + * // once there is some data and the directory exists, + * // write the data to a file in the directory + * callback(null, 'filename'); + * }], + * email_link: ['write_file', function(results, callback) { + * console.log('in email_link', JSON.stringify(results)); + * // once the file is written let's email a link to it... + * // results.write_file contains the filename returned by write_file. + * callback(null, {'file':results.write_file, 'email':'user@example.com'}); + * }] + * }, function(err, results) { + * console.log('err = ', err); + * console.log('results = ', results); + * }); + */ +var auto = function (tasks, concurrency, callback) { + if (typeof concurrency === 'function') { + // concurrency is optional, shift the args. + callback = concurrency; + concurrency = null; + } + callback = once(callback || noop); + var keys$$1 = keys(tasks); + var numTasks = keys$$1.length; + if (!numTasks) { + return callback(null); + } + if (!concurrency) { + concurrency = numTasks; + } + + var results = {}; + var runningTasks = 0; + var hasError = false; + + var listeners = Object.create(null); + + var readyTasks = []; + + // for cycle detection: + var readyToCheck = []; // tasks that have been identified as reachable + // without the possibility of returning to an ancestor task + var uncheckedDependencies = {}; + + baseForOwn(tasks, function (task, key) { + if (!isArray(task)) { + // no dependencies + enqueueTask(key, [task]); + readyToCheck.push(key); + return; + } + + var dependencies = task.slice(0, task.length - 1); + var remainingDependencies = dependencies.length; + if (remainingDependencies === 0) { + enqueueTask(key, task); + readyToCheck.push(key); + return; + } + uncheckedDependencies[key] = remainingDependencies; + + arrayEach(dependencies, function (dependencyName) { + if (!tasks[dependencyName]) { + throw new Error('async.auto task `' + key + + '` has a non-existent dependency `' + + dependencyName + '` in ' + + dependencies.join(', ')); + } + addListener(dependencyName, function () { + remainingDependencies--; + if (remainingDependencies === 0) { + enqueueTask(key, task); + } + }); + }); + }); + + checkForDeadlocks(); + processQueue(); + + function enqueueTask(key, task) { + readyTasks.push(function () { + runTask(key, task); + }); + } + + function processQueue() { + if (readyTasks.length === 0 && runningTasks === 0) { + return callback(null, results); + } + while(readyTasks.length && runningTasks < concurrency) { + var run = readyTasks.shift(); + run(); + } + + } + + function addListener(taskName, fn) { + var taskListeners = listeners[taskName]; + if (!taskListeners) { + taskListeners = listeners[taskName] = []; + } + + taskListeners.push(fn); + } + + function taskComplete(taskName) { + var taskListeners = listeners[taskName] || []; + arrayEach(taskListeners, function (fn) { + fn(); + }); + processQueue(); + } + + + function runTask(key, task) { + if (hasError) return; + + var taskCallback = onlyOnce(function(err, result) { + runningTasks--; + if (arguments.length > 2) { + result = slice(arguments, 1); + } + if (err) { + var safeResults = {}; + baseForOwn(results, function(val, rkey) { + safeResults[rkey] = val; + }); + safeResults[key] = result; + hasError = true; + listeners = Object.create(null); + + callback(err, safeResults); + } else { + results[key] = result; + taskComplete(key); + } + }); + + runningTasks++; + var taskFn = wrapAsync(task[task.length - 1]); + if (task.length > 1) { + taskFn(results, taskCallback); + } else { + taskFn(taskCallback); + } + } + + function checkForDeadlocks() { + // Kahn's algorithm + // https://en.wikipedia.org/wiki/Topological_sorting#Kahn.27s_algorithm + // http://connalle.blogspot.com/2013/10/topological-sortingkahn-algorithm.html + var currentTask; + var counter = 0; + while (readyToCheck.length) { + currentTask = readyToCheck.pop(); + counter++; + arrayEach(getDependents(currentTask), function (dependent) { + if (--uncheckedDependencies[dependent] === 0) { + readyToCheck.push(dependent); + } + }); + } + + if (counter !== numTasks) { + throw new Error( + 'async.auto cannot execute tasks due to a recursive dependency' + ); + } + } + + function getDependents(taskName) { + var result = []; + baseForOwn(tasks, function (task, key) { + if (isArray(task) && baseIndexOf(task, taskName, 0) >= 0) { + result.push(key); + } + }); + return result; + } +}; + +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array == null ? 0 : array.length, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +/** `Object#toString` result references. */ +var symbolTag = '[object Symbol]'; + +/** + * Checks if `value` is classified as a `Symbol` primitive or object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a symbol, else `false`. + * @example + * + * _.isSymbol(Symbol.iterator); + * // => true + * + * _.isSymbol('abc'); + * // => false + */ +function isSymbol(value) { + return typeof value == 'symbol' || + (isObjectLike(value) && baseGetTag(value) == symbolTag); +} + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0; + +/** Used to convert symbols to primitives and strings. */ +var symbolProto = Symbol$1 ? Symbol$1.prototype : undefined; +var symbolToString = symbolProto ? symbolProto.toString : undefined; + +/** + * The base implementation of `_.toString` which doesn't convert nullish + * values to empty strings. + * + * @private + * @param {*} value The value to process. + * @returns {string} Returns the string. + */ +function baseToString(value) { + // Exit early for strings to avoid a performance hit in some environments. + if (typeof value == 'string') { + return value; + } + if (isArray(value)) { + // Recursively convert values (susceptible to call stack limits). + return arrayMap(value, baseToString) + ''; + } + if (isSymbol(value)) { + return symbolToString ? symbolToString.call(value) : ''; + } + var result = (value + ''); + return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result; +} + +/** + * The base implementation of `_.slice` without an iteratee call guard. + * + * @private + * @param {Array} array The array to slice. + * @param {number} [start=0] The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the slice of `array`. + */ +function baseSlice(array, start, end) { + var index = -1, + length = array.length; + + if (start < 0) { + start = -start > length ? 0 : (length + start); + } + end = end > length ? length : end; + if (end < 0) { + end += length; + } + length = start > end ? 0 : ((end - start) >>> 0); + start >>>= 0; + + var result = Array(length); + while (++index < length) { + result[index] = array[index + start]; + } + return result; +} + +/** + * Casts `array` to a slice if it's needed. + * + * @private + * @param {Array} array The array to inspect. + * @param {number} start The start position. + * @param {number} [end=array.length] The end position. + * @returns {Array} Returns the cast slice. + */ +function castSlice(array, start, end) { + var length = array.length; + end = end === undefined ? length : end; + return (!start && end >= length) ? array : baseSlice(array, start, end); +} + +/** + * Used by `_.trim` and `_.trimEnd` to get the index of the last string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the last unmatched string symbol. + */ +function charsEndIndex(strSymbols, chrSymbols) { + var index = strSymbols.length; + + while (index-- && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +/** + * Used by `_.trim` and `_.trimStart` to get the index of the first string symbol + * that is not found in the character symbols. + * + * @private + * @param {Array} strSymbols The string symbols to inspect. + * @param {Array} chrSymbols The character symbols to find. + * @returns {number} Returns the index of the first unmatched string symbol. + */ +function charsStartIndex(strSymbols, chrSymbols) { + var index = -1, + length = strSymbols.length; + + while (++index < length && baseIndexOf(chrSymbols, strSymbols[index], 0) > -1) {} + return index; +} + +/** + * Converts an ASCII `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function asciiToArray(string) { + return string.split(''); +} + +/** Used to compose unicode character classes. */ +var rsAstralRange = '\\ud800-\\udfff'; +var rsComboMarksRange = '\\u0300-\\u036f'; +var reComboHalfMarksRange = '\\ufe20-\\ufe2f'; +var rsComboSymbolsRange = '\\u20d0-\\u20ff'; +var rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange; +var rsVarRange = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsZWJ = '\\u200d'; + +/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */ +var reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']'); + +/** + * Checks if `string` contains Unicode symbols. + * + * @private + * @param {string} string The string to inspect. + * @returns {boolean} Returns `true` if a symbol is found, else `false`. + */ +function hasUnicode(string) { + return reHasUnicode.test(string); +} + +/** Used to compose unicode character classes. */ +var rsAstralRange$1 = '\\ud800-\\udfff'; +var rsComboMarksRange$1 = '\\u0300-\\u036f'; +var reComboHalfMarksRange$1 = '\\ufe20-\\ufe2f'; +var rsComboSymbolsRange$1 = '\\u20d0-\\u20ff'; +var rsComboRange$1 = rsComboMarksRange$1 + reComboHalfMarksRange$1 + rsComboSymbolsRange$1; +var rsVarRange$1 = '\\ufe0e\\ufe0f'; + +/** Used to compose unicode capture groups. */ +var rsAstral = '[' + rsAstralRange$1 + ']'; +var rsCombo = '[' + rsComboRange$1 + ']'; +var rsFitz = '\\ud83c[\\udffb-\\udfff]'; +var rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')'; +var rsNonAstral = '[^' + rsAstralRange$1 + ']'; +var rsRegional = '(?:\\ud83c[\\udde6-\\uddff]){2}'; +var rsSurrPair = '[\\ud800-\\udbff][\\udc00-\\udfff]'; +var rsZWJ$1 = '\\u200d'; + +/** Used to compose unicode regexes. */ +var reOptMod = rsModifier + '?'; +var rsOptVar = '[' + rsVarRange$1 + ']?'; +var rsOptJoin = '(?:' + rsZWJ$1 + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*'; +var rsSeq = rsOptVar + reOptMod + rsOptJoin; +var rsSymbol = '(?:' + [rsNonAstral + rsCombo + '?', rsCombo, rsRegional, rsSurrPair, rsAstral].join('|') + ')'; + +/** Used to match [string symbols](https://mathiasbynens.be/notes/javascript-unicode). */ +var reUnicode = RegExp(rsFitz + '(?=' + rsFitz + ')|' + rsSymbol + rsSeq, 'g'); + +/** + * Converts a Unicode `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function unicodeToArray(string) { + return string.match(reUnicode) || []; +} + +/** + * Converts `string` to an array. + * + * @private + * @param {string} string The string to convert. + * @returns {Array} Returns the converted array. + */ +function stringToArray(string) { + return hasUnicode(string) + ? unicodeToArray(string) + : asciiToArray(string); +} + +/** + * Converts `value` to a string. An empty string is returned for `null` + * and `undefined` values. The sign of `-0` is preserved. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to convert. + * @returns {string} Returns the converted string. + * @example + * + * _.toString(null); + * // => '' + * + * _.toString(-0); + * // => '-0' + * + * _.toString([1, 2, 3]); + * // => '1,2,3' + */ +function toString(value) { + return value == null ? '' : baseToString(value); +} + +/** Used to match leading and trailing whitespace. */ +var reTrim = /^\s+|\s+$/g; + +/** + * Removes leading and trailing whitespace or specified characters from `string`. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category String + * @param {string} [string=''] The string to trim. + * @param {string} [chars=whitespace] The characters to trim. + * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. + * @returns {string} Returns the trimmed string. + * @example + * + * _.trim(' abc '); + * // => 'abc' + * + * _.trim('-_-abc-_-', '_-'); + * // => 'abc' + * + * _.map([' foo ', ' bar '], _.trim); + * // => ['foo', 'bar'] + */ +function trim(string, chars, guard) { + string = toString(string); + if (string && (guard || chars === undefined)) { + return string.replace(reTrim, ''); + } + if (!string || !(chars = baseToString(chars))) { + return string; + } + var strSymbols = stringToArray(string), + chrSymbols = stringToArray(chars), + start = charsStartIndex(strSymbols, chrSymbols), + end = charsEndIndex(strSymbols, chrSymbols) + 1; + + return castSlice(strSymbols, start, end).join(''); +} + +var FN_ARGS = /^(?:async\s+)?(function)?\s*[^\(]*\(\s*([^\)]*)\)/m; +var FN_ARG_SPLIT = /,/; +var FN_ARG = /(=.+)?(\s*)$/; +var STRIP_COMMENTS = /((\/\/.*$)|(\/\*[\s\S]*?\*\/))/mg; + +function parseParams(func) { + func = func.toString().replace(STRIP_COMMENTS, ''); + func = func.match(FN_ARGS)[2].replace(' ', ''); + func = func ? func.split(FN_ARG_SPLIT) : []; + func = func.map(function (arg){ + return trim(arg.replace(FN_ARG, '')); + }); + return func; +} + +/** + * A dependency-injected version of the [async.auto]{@link module:ControlFlow.auto} function. Dependent + * tasks are specified as parameters to the function, after the usual callback + * parameter, with the parameter names matching the names of the tasks it + * depends on. This can provide even more readable task graphs which can be + * easier to maintain. + * + * If a final callback is specified, the task results are similarly injected, + * specified as named parameters after the initial error parameter. + * + * The autoInject function is purely syntactic sugar and its semantics are + * otherwise equivalent to [async.auto]{@link module:ControlFlow.auto}. + * + * @name autoInject + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.auto]{@link module:ControlFlow.auto} + * @category Control Flow + * @param {Object} tasks - An object, each of whose properties is an {@link AsyncFunction} of + * the form 'func([dependencies...], callback). The object's key of a property + * serves as the name of the task defined by that property, i.e. can be used + * when specifying requirements for other tasks. + * * The `callback` parameter is a `callback(err, result)` which must be called + * when finished, passing an `error` (which can be `null`) and the result of + * the function's execution. The remaining parameters name other tasks on + * which the task is dependent, and the results from those tasks are the + * arguments of those parameters. + * @param {Function} [callback] - An optional callback which is called when all + * the tasks have been completed. It receives the `err` argument if any `tasks` + * pass an error to their callback, and a `results` object with any completed + * task results, similar to `auto`. + * @example + * + * // The example from `auto` can be rewritten as follows: + * async.autoInject({ + * get_data: function(callback) { + * // async code to get some data + * callback(null, 'data', 'converted to array'); + * }, + * make_folder: function(callback) { + * // async code to create a directory to store a file in + * // this is run at the same time as getting the data + * callback(null, 'folder'); + * }, + * write_file: function(get_data, make_folder, callback) { + * // once there is some data and the directory exists, + * // write the data to a file in the directory + * callback(null, 'filename'); + * }, + * email_link: function(write_file, callback) { + * // once the file is written let's email a link to it... + * // write_file contains the filename returned by write_file. + * callback(null, {'file':write_file, 'email':'user@example.com'}); + * } + * }, function(err, results) { + * console.log('err = ', err); + * console.log('email_link = ', results.email_link); + * }); + * + * // If you are using a JS minifier that mangles parameter names, `autoInject` + * // will not work with plain functions, since the parameter names will be + * // collapsed to a single letter identifier. To work around this, you can + * // explicitly specify the names of the parameters your task function needs + * // in an array, similar to Angular.js dependency injection. + * + * // This still has an advantage over plain `auto`, since the results a task + * // depends on are still spread into arguments. + * async.autoInject({ + * //... + * write_file: ['get_data', 'make_folder', function(get_data, make_folder, callback) { + * callback(null, 'filename'); + * }], + * email_link: ['write_file', function(write_file, callback) { + * callback(null, {'file':write_file, 'email':'user@example.com'}); + * }] + * //... + * }, function(err, results) { + * console.log('err = ', err); + * console.log('email_link = ', results.email_link); + * }); + */ +function autoInject(tasks, callback) { + var newTasks = {}; + + baseForOwn(tasks, function (taskFn, key) { + var params; + var fnIsAsync = isAsync(taskFn); + var hasNoDeps = + (!fnIsAsync && taskFn.length === 1) || + (fnIsAsync && taskFn.length === 0); + + if (isArray(taskFn)) { + params = taskFn.slice(0, -1); + taskFn = taskFn[taskFn.length - 1]; + + newTasks[key] = params.concat(params.length > 0 ? newTask : taskFn); + } else if (hasNoDeps) { + // no dependencies, use the function as-is + newTasks[key] = taskFn; + } else { + params = parseParams(taskFn); + if (taskFn.length === 0 && !fnIsAsync && params.length === 0) { + throw new Error("autoInject task functions require explicit parameters."); + } + + // remove callback param + if (!fnIsAsync) params.pop(); + + newTasks[key] = params.concat(newTask); + } + + function newTask(results, taskCb) { + var newArgs = arrayMap(params, function (name) { + return results[name]; + }); + newArgs.push(taskCb); + wrapAsync(taskFn).apply(null, newArgs); + } + }); + + auto(newTasks, callback); +} + +// Simple doubly linked list (https://en.wikipedia.org/wiki/Doubly_linked_list) implementation +// used for queues. This implementation assumes that the node provided by the user can be modified +// to adjust the next and last properties. We implement only the minimal functionality +// for queue support. +function DLL() { + this.head = this.tail = null; + this.length = 0; +} + +function setInitial(dll, node) { + dll.length = 1; + dll.head = dll.tail = node; +} + +DLL.prototype.removeLink = function(node) { + if (node.prev) node.prev.next = node.next; + else this.head = node.next; + if (node.next) node.next.prev = node.prev; + else this.tail = node.prev; + + node.prev = node.next = null; + this.length -= 1; + return node; +}; + +DLL.prototype.empty = function () { + while(this.head) this.shift(); + return this; +}; + +DLL.prototype.insertAfter = function(node, newNode) { + newNode.prev = node; + newNode.next = node.next; + if (node.next) node.next.prev = newNode; + else this.tail = newNode; + node.next = newNode; + this.length += 1; +}; + +DLL.prototype.insertBefore = function(node, newNode) { + newNode.prev = node.prev; + newNode.next = node; + if (node.prev) node.prev.next = newNode; + else this.head = newNode; + node.prev = newNode; + this.length += 1; +}; + +DLL.prototype.unshift = function(node) { + if (this.head) this.insertBefore(this.head, node); + else setInitial(this, node); +}; + +DLL.prototype.push = function(node) { + if (this.tail) this.insertAfter(this.tail, node); + else setInitial(this, node); +}; + +DLL.prototype.shift = function() { + return this.head && this.removeLink(this.head); +}; + +DLL.prototype.pop = function() { + return this.tail && this.removeLink(this.tail); +}; + +DLL.prototype.toArray = function () { + var arr = Array(this.length); + var curr = this.head; + for(var idx = 0; idx < this.length; idx++) { + arr[idx] = curr.data; + curr = curr.next; + } + return arr; +}; + +DLL.prototype.remove = function (testFn) { + var curr = this.head; + while(!!curr) { + var next = curr.next; + if (testFn(curr)) { + this.removeLink(curr); + } + curr = next; + } + return this; +}; + +function queue(worker, concurrency, payload) { + if (concurrency == null) { + concurrency = 1; + } + else if(concurrency === 0) { + throw new Error('Concurrency must not be zero'); + } + + var _worker = wrapAsync(worker); + var numRunning = 0; + var workersList = []; + + var processingScheduled = false; + function _insert(data, insertAtFront, callback) { + if (callback != null && typeof callback !== 'function') { + throw new Error('task callback must be a function'); + } + q.started = true; + if (!isArray(data)) { + data = [data]; + } + if (data.length === 0 && q.idle()) { + // call drain immediately if there are no tasks + return setImmediate$1(function() { + q.drain(); + }); + } + + for (var i = 0, l = data.length; i < l; i++) { + var item = { + data: data[i], + callback: callback || noop + }; + + if (insertAtFront) { + q._tasks.unshift(item); + } else { + q._tasks.push(item); + } + } + + if (!processingScheduled) { + processingScheduled = true; + setImmediate$1(function() { + processingScheduled = false; + q.process(); + }); + } + } + + function _next(tasks) { + return function(err){ + numRunning -= 1; + + for (var i = 0, l = tasks.length; i < l; i++) { + var task = tasks[i]; + + var index = baseIndexOf(workersList, task, 0); + if (index === 0) { + workersList.shift(); + } else if (index > 0) { + workersList.splice(index, 1); + } + + task.callback.apply(task, arguments); + + if (err != null) { + q.error(err, task.data); + } + } + + if (numRunning <= (q.concurrency - q.buffer) ) { + q.unsaturated(); + } + + if (q.idle()) { + q.drain(); + } + q.process(); + }; + } + + var isProcessing = false; + var q = { + _tasks: new DLL(), + concurrency: concurrency, + payload: payload, + saturated: noop, + unsaturated:noop, + buffer: concurrency / 4, + empty: noop, + drain: noop, + error: noop, + started: false, + paused: false, + push: function (data, callback) { + _insert(data, false, callback); + }, + kill: function () { + q.drain = noop; + q._tasks.empty(); + }, + unshift: function (data, callback) { + _insert(data, true, callback); + }, + remove: function (testFn) { + q._tasks.remove(testFn); + }, + process: function () { + // Avoid trying to start too many processing operations. This can occur + // when callbacks resolve synchronously (#1267). + if (isProcessing) { + return; + } + isProcessing = true; + while(!q.paused && numRunning < q.concurrency && q._tasks.length){ + var tasks = [], data = []; + var l = q._tasks.length; + if (q.payload) l = Math.min(l, q.payload); + for (var i = 0; i < l; i++) { + var node = q._tasks.shift(); + tasks.push(node); + workersList.push(node); + data.push(node.data); + } + + numRunning += 1; + + if (q._tasks.length === 0) { + q.empty(); + } + + if (numRunning === q.concurrency) { + q.saturated(); + } + + var cb = onlyOnce(_next(tasks)); + _worker(data, cb); + } + isProcessing = false; + }, + length: function () { + return q._tasks.length; + }, + running: function () { + return numRunning; + }, + workersList: function () { + return workersList; + }, + idle: function() { + return q._tasks.length + numRunning === 0; + }, + pause: function () { + q.paused = true; + }, + resume: function () { + if (q.paused === false) { return; } + q.paused = false; + setImmediate$1(q.process); + } + }; + return q; +} + +/** + * A cargo of tasks for the worker function to complete. Cargo inherits all of + * the same methods and event callbacks as [`queue`]{@link module:ControlFlow.queue}. + * @typedef {Object} CargoObject + * @memberOf module:ControlFlow + * @property {Function} length - A function returning the number of items + * waiting to be processed. Invoke like `cargo.length()`. + * @property {number} payload - An `integer` for determining how many tasks + * should be process per round. This property can be changed after a `cargo` is + * created to alter the payload on-the-fly. + * @property {Function} push - Adds `task` to the `queue`. The callback is + * called once the `worker` has finished processing the task. Instead of a + * single task, an array of `tasks` can be submitted. The respective callback is + * used for every task in the list. Invoke like `cargo.push(task, [callback])`. + * @property {Function} saturated - A callback that is called when the + * `queue.length()` hits the concurrency and further tasks will be queued. + * @property {Function} empty - A callback that is called when the last item + * from the `queue` is given to a `worker`. + * @property {Function} drain - A callback that is called when the last item + * from the `queue` has returned from the `worker`. + * @property {Function} idle - a function returning false if there are items + * waiting or being processed, or true if not. Invoke like `cargo.idle()`. + * @property {Function} pause - a function that pauses the processing of tasks + * until `resume()` is called. Invoke like `cargo.pause()`. + * @property {Function} resume - a function that resumes the processing of + * queued tasks when the queue is paused. Invoke like `cargo.resume()`. + * @property {Function} kill - a function that removes the `drain` callback and + * empties remaining tasks from the queue forcing it to go idle. Invoke like `cargo.kill()`. + */ + +/** + * Creates a `cargo` object with the specified payload. Tasks added to the + * cargo will be processed altogether (up to the `payload` limit). If the + * `worker` is in progress, the task is queued until it becomes available. Once + * the `worker` has completed some tasks, each callback of those tasks is + * called. Check out [these](https://camo.githubusercontent.com/6bbd36f4cf5b35a0f11a96dcd2e97711ffc2fb37/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130382f62626330636662302d356632392d313165322d393734662d3333393763363464633835382e676966) [animations](https://camo.githubusercontent.com/f4810e00e1c5f5f8addbe3e9f49064fd5d102699/68747470733a2f2f662e636c6f75642e6769746875622e636f6d2f6173736574732f313637363837312f36383130312f38346339323036362d356632392d313165322d383134662d3964336430323431336266642e676966) + * for how `cargo` and `queue` work. + * + * While [`queue`]{@link module:ControlFlow.queue} passes only one task to one of a group of workers + * at a time, cargo passes an array of tasks to a single worker, repeating + * when the worker is finished. + * + * @name cargo + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.queue]{@link module:ControlFlow.queue} + * @category Control Flow + * @param {AsyncFunction} worker - An asynchronous function for processing an array + * of queued tasks. Invoked with `(tasks, callback)`. + * @param {number} [payload=Infinity] - An optional `integer` for determining + * how many tasks should be processed per round; if omitted, the default is + * unlimited. + * @returns {module:ControlFlow.CargoObject} A cargo object to manage the tasks. Callbacks can + * attached as certain properties to listen for specific events during the + * lifecycle of the cargo and inner queue. + * @example + * + * // create a cargo object with payload 2 + * var cargo = async.cargo(function(tasks, callback) { + * for (var i=0; i true + */ +function identity(value) { + return value; +} + +function _createTester(check, getResult) { + return function(eachfn, arr, iteratee, cb) { + cb = cb || noop; + var testPassed = false; + var testResult; + eachfn(arr, function(value, _, callback) { + iteratee(value, function(err, result) { + if (err) { + callback(err); + } else if (check(result) && !testResult) { + testPassed = true; + testResult = getResult(true, value); + callback(null, breakLoop); + } else { + callback(); + } + }); + }, function(err) { + if (err) { + cb(err); + } else { + cb(null, testPassed ? testResult : getResult(false)); + } + }); + }; +} + +function _findGetResult(v, x) { + return x; +} + +/** + * Returns the first value in `coll` that passes an async truth test. The + * `iteratee` is applied in parallel, meaning the first iteratee to return + * `true` will fire the detect `callback` with that result. That means the + * result might not be the first item in the original `coll` (in terms of order) + * that passes the test. + + * If order within the original `coll` is important, then look at + * [`detectSeries`]{@link module:Collections.detectSeries}. + * + * @name detect + * @static + * @memberOf module:Collections + * @method + * @alias find + * @category Collections + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`. + * The iteratee must complete with a boolean value as its result. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the `iteratee` functions have finished. + * Result will be the first item in the array that passes the truth test + * (iteratee) or the value `undefined` if none passed. Invoked with + * (err, result). + * @example + * + * async.detect(['file1','file2','file3'], function(filePath, callback) { + * fs.access(filePath, function(err) { + * callback(null, !err) + * }); + * }, function(err, result) { + * // result now equals the first file in the list that exists + * }); + */ +var detect = doParallel(_createTester(identity, _findGetResult)); + +/** + * The same as [`detect`]{@link module:Collections.detect} but runs a maximum of `limit` async operations at a + * time. + * + * @name detectLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.detect]{@link module:Collections.detect} + * @alias findLimit + * @category Collections + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`. + * The iteratee must complete with a boolean value as its result. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the `iteratee` functions have finished. + * Result will be the first item in the array that passes the truth test + * (iteratee) or the value `undefined` if none passed. Invoked with + * (err, result). + */ +var detectLimit = doParallelLimit(_createTester(identity, _findGetResult)); + +/** + * The same as [`detect`]{@link module:Collections.detect} but runs only a single async operation at a time. + * + * @name detectSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.detect]{@link module:Collections.detect} + * @alias findSeries + * @category Collections + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - A truth test to apply to each item in `coll`. + * The iteratee must complete with a boolean value as its result. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the `iteratee` functions have finished. + * Result will be the first item in the array that passes the truth test + * (iteratee) or the value `undefined` if none passed. Invoked with + * (err, result). + */ +var detectSeries = doLimit(detectLimit, 1); + +function consoleFunc(name) { + return function (fn/*, ...args*/) { + var args = slice(arguments, 1); + args.push(function (err/*, ...args*/) { + var args = slice(arguments, 1); + if (typeof console === 'object') { + if (err) { + if (console.error) { + console.error(err); + } + } else if (console[name]) { + arrayEach(args, function (x) { + console[name](x); + }); + } + } + }); + wrapAsync(fn).apply(null, args); + }; +} + +/** + * Logs the result of an [`async` function]{@link AsyncFunction} to the + * `console` using `console.dir` to display the properties of the resulting object. + * Only works in Node.js or in browsers that support `console.dir` and + * `console.error` (such as FF and Chrome). + * If multiple arguments are returned from the async function, + * `console.dir` is called on each argument in order. + * + * @name dir + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} function - The function you want to eventually apply + * all arguments to. + * @param {...*} arguments... - Any number of arguments to apply to the function. + * @example + * + * // in a module + * var hello = function(name, callback) { + * setTimeout(function() { + * callback(null, {hello: name}); + * }, 1000); + * }; + * + * // in the node repl + * node> async.dir(hello, 'world'); + * {hello: 'world'} + */ +var dir = consoleFunc('dir'); + +/** + * The post-check version of [`during`]{@link module:ControlFlow.during}. To reflect the difference in + * the order of operations, the arguments `test` and `fn` are switched. + * + * Also a version of [`doWhilst`]{@link module:ControlFlow.doWhilst} with asynchronous `test` function. + * @name doDuring + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.during]{@link module:ControlFlow.during} + * @category Control Flow + * @param {AsyncFunction} fn - An async function which is called each time + * `test` passes. Invoked with (callback). + * @param {AsyncFunction} test - asynchronous truth test to perform before each + * execution of `fn`. Invoked with (...args, callback), where `...args` are the + * non-error args from the previous callback of `fn`. + * @param {Function} [callback] - A callback which is called after the test + * function has failed and repeated execution of `fn` has stopped. `callback` + * will be passed an error if one occurred, otherwise `null`. + */ +function doDuring(fn, test, callback) { + callback = onlyOnce(callback || noop); + var _fn = wrapAsync(fn); + var _test = wrapAsync(test); + + function next(err/*, ...args*/) { + if (err) return callback(err); + var args = slice(arguments, 1); + args.push(check); + _test.apply(this, args); + } + + function check(err, truth) { + if (err) return callback(err); + if (!truth) return callback(null); + _fn(next); + } + + check(null, true); + +} + +/** + * The post-check version of [`whilst`]{@link module:ControlFlow.whilst}. To reflect the difference in + * the order of operations, the arguments `test` and `iteratee` are switched. + * + * `doWhilst` is to `whilst` as `do while` is to `while` in plain JavaScript. + * + * @name doWhilst + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.whilst]{@link module:ControlFlow.whilst} + * @category Control Flow + * @param {AsyncFunction} iteratee - A function which is called each time `test` + * passes. Invoked with (callback). + * @param {Function} test - synchronous truth test to perform after each + * execution of `iteratee`. Invoked with any non-error callback results of + * `iteratee`. + * @param {Function} [callback] - A callback which is called after the test + * function has failed and repeated execution of `iteratee` has stopped. + * `callback` will be passed an error and any arguments passed to the final + * `iteratee`'s callback. Invoked with (err, [results]); + */ +function doWhilst(iteratee, test, callback) { + callback = onlyOnce(callback || noop); + var _iteratee = wrapAsync(iteratee); + var next = function(err/*, ...args*/) { + if (err) return callback(err); + var args = slice(arguments, 1); + if (test.apply(this, args)) return _iteratee(next); + callback.apply(null, [null].concat(args)); + }; + _iteratee(next); +} + +/** + * Like ['doWhilst']{@link module:ControlFlow.doWhilst}, except the `test` is inverted. Note the + * argument ordering differs from `until`. + * + * @name doUntil + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.doWhilst]{@link module:ControlFlow.doWhilst} + * @category Control Flow + * @param {AsyncFunction} iteratee - An async function which is called each time + * `test` fails. Invoked with (callback). + * @param {Function} test - synchronous truth test to perform after each + * execution of `iteratee`. Invoked with any non-error callback results of + * `iteratee`. + * @param {Function} [callback] - A callback which is called after the test + * function has passed and repeated execution of `iteratee` has stopped. `callback` + * will be passed an error and any arguments passed to the final `iteratee`'s + * callback. Invoked with (err, [results]); + */ +function doUntil(iteratee, test, callback) { + doWhilst(iteratee, function() { + return !test.apply(this, arguments); + }, callback); +} + +/** + * Like [`whilst`]{@link module:ControlFlow.whilst}, except the `test` is an asynchronous function that + * is passed a callback in the form of `function (err, truth)`. If error is + * passed to `test` or `fn`, the main callback is immediately called with the + * value of the error. + * + * @name during + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.whilst]{@link module:ControlFlow.whilst} + * @category Control Flow + * @param {AsyncFunction} test - asynchronous truth test to perform before each + * execution of `fn`. Invoked with (callback). + * @param {AsyncFunction} fn - An async function which is called each time + * `test` passes. Invoked with (callback). + * @param {Function} [callback] - A callback which is called after the test + * function has failed and repeated execution of `fn` has stopped. `callback` + * will be passed an error, if one occurred, otherwise `null`. + * @example + * + * var count = 0; + * + * async.during( + * function (callback) { + * return callback(null, count < 5); + * }, + * function (callback) { + * count++; + * setTimeout(callback, 1000); + * }, + * function (err) { + * // 5 seconds have passed + * } + * ); + */ +function during(test, fn, callback) { + callback = onlyOnce(callback || noop); + var _fn = wrapAsync(fn); + var _test = wrapAsync(test); + + function next(err) { + if (err) return callback(err); + _test(check); + } + + function check(err, truth) { + if (err) return callback(err); + if (!truth) return callback(null); + _fn(next); + } + + _test(check); +} + +function _withoutIndex(iteratee) { + return function (value, index, callback) { + return iteratee(value, callback); + }; +} + +/** + * Applies the function `iteratee` to each item in `coll`, in parallel. + * The `iteratee` is called with an item from the list, and a callback for when + * it has finished. If the `iteratee` passes an error to its `callback`, the + * main `callback` (for the `each` function) is immediately called with the + * error. + * + * Note, that since this function applies `iteratee` to each item in parallel, + * there is no guarantee that the iteratee functions will complete in order. + * + * @name each + * @static + * @memberOf module:Collections + * @method + * @alias forEach + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to + * each item in `coll`. Invoked with (item, callback). + * The array index is not passed to the iteratee. + * If you need the index, use `eachOf`. + * @param {Function} [callback] - A callback which is called when all + * `iteratee` functions have finished, or an error occurs. Invoked with (err). + * @example + * + * // assuming openFiles is an array of file names and saveFile is a function + * // to save the modified contents of that file: + * + * async.each(openFiles, saveFile, function(err){ + * // if any of the saves produced an error, err would equal that error + * }); + * + * // assuming openFiles is an array of file names + * async.each(openFiles, function(file, callback) { + * + * // Perform operation on file here. + * console.log('Processing file ' + file); + * + * if( file.length > 32 ) { + * console.log('This file name is too long'); + * callback('File name too long'); + * } else { + * // Do work to process file here + * console.log('File processed'); + * callback(); + * } + * }, function(err) { + * // if any of the file processing produced an error, err would equal that error + * if( err ) { + * // One of the iterations produced an error. + * // All processing will now stop. + * console.log('A file failed to process'); + * } else { + * console.log('All files have been processed successfully'); + * } + * }); + */ +function eachLimit(coll, iteratee, callback) { + eachOf(coll, _withoutIndex(wrapAsync(iteratee)), callback); +} + +/** + * The same as [`each`]{@link module:Collections.each} but runs a maximum of `limit` async operations at a time. + * + * @name eachLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.each]{@link module:Collections.each} + * @alias forEachLimit + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The array index is not passed to the iteratee. + * If you need the index, use `eachOfLimit`. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called when all + * `iteratee` functions have finished, or an error occurs. Invoked with (err). + */ +function eachLimit$1(coll, limit, iteratee, callback) { + _eachOfLimit(limit)(coll, _withoutIndex(wrapAsync(iteratee)), callback); +} + +/** + * The same as [`each`]{@link module:Collections.each} but runs only a single async operation at a time. + * + * @name eachSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.each]{@link module:Collections.each} + * @alias forEachSeries + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to each + * item in `coll`. + * The array index is not passed to the iteratee. + * If you need the index, use `eachOfSeries`. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called when all + * `iteratee` functions have finished, or an error occurs. Invoked with (err). + */ +var eachSeries = doLimit(eachLimit$1, 1); + +/** + * Wrap an async function and ensure it calls its callback on a later tick of + * the event loop. If the function already calls its callback on a next tick, + * no extra deferral is added. This is useful for preventing stack overflows + * (`RangeError: Maximum call stack size exceeded`) and generally keeping + * [Zalgo](http://blog.izs.me/post/59142742143/designing-apis-for-asynchrony) + * contained. ES2017 `async` functions are returned as-is -- they are immune + * to Zalgo's corrupting influences, as they always resolve on a later tick. + * + * @name ensureAsync + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} fn - an async function, one that expects a node-style + * callback as its last argument. + * @returns {AsyncFunction} Returns a wrapped function with the exact same call + * signature as the function passed in. + * @example + * + * function sometimesAsync(arg, callback) { + * if (cache[arg]) { + * return callback(null, cache[arg]); // this would be synchronous!! + * } else { + * doSomeIO(arg, callback); // this IO would be asynchronous + * } + * } + * + * // this has a risk of stack overflows if many results are cached in a row + * async.mapSeries(args, sometimesAsync, done); + * + * // this will defer sometimesAsync's callback if necessary, + * // preventing stack overflows + * async.mapSeries(args, async.ensureAsync(sometimesAsync), done); + */ +function ensureAsync(fn) { + if (isAsync(fn)) return fn; + return initialParams(function (args, callback) { + var sync = true; + args.push(function () { + var innerArgs = arguments; + if (sync) { + setImmediate$1(function () { + callback.apply(null, innerArgs); + }); + } else { + callback.apply(null, innerArgs); + } + }); + fn.apply(this, args); + sync = false; + }); +} + +function notId(v) { + return !v; +} + +/** + * Returns `true` if every element in `coll` satisfies an async test. If any + * iteratee call returns `false`, the main `callback` is immediately called. + * + * @name every + * @static + * @memberOf module:Collections + * @method + * @alias all + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collection in parallel. + * The iteratee must complete with a boolean result value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Result will be either `true` or `false` + * depending on the values of the async tests. Invoked with (err, result). + * @example + * + * async.every(['file1','file2','file3'], function(filePath, callback) { + * fs.access(filePath, function(err) { + * callback(null, !err) + * }); + * }, function(err, result) { + * // if result is true then every file exists + * }); + */ +var every = doParallel(_createTester(notId, notId)); + +/** + * The same as [`every`]{@link module:Collections.every} but runs a maximum of `limit` async operations at a time. + * + * @name everyLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.every]{@link module:Collections.every} + * @alias allLimit + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collection in parallel. + * The iteratee must complete with a boolean result value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Result will be either `true` or `false` + * depending on the values of the async tests. Invoked with (err, result). + */ +var everyLimit = doParallelLimit(_createTester(notId, notId)); + +/** + * The same as [`every`]{@link module:Collections.every} but runs only a single async operation at a time. + * + * @name everySeries + * @static + * @memberOf module:Collections + * @method + * @see [async.every]{@link module:Collections.every} + * @alias allSeries + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collection in series. + * The iteratee must complete with a boolean result value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Result will be either `true` or `false` + * depending on the values of the async tests. Invoked with (err, result). + */ +var everySeries = doLimit(everyLimit, 1); + +/** + * The base implementation of `_.property` without support for deep paths. + * + * @private + * @param {string} key The key of the property to get. + * @returns {Function} Returns the new accessor function. + */ +function baseProperty(key) { + return function(object) { + return object == null ? undefined : object[key]; + }; +} + +function filterArray(eachfn, arr, iteratee, callback) { + var truthValues = new Array(arr.length); + eachfn(arr, function (x, index, callback) { + iteratee(x, function (err, v) { + truthValues[index] = !!v; + callback(err); + }); + }, function (err) { + if (err) return callback(err); + var results = []; + for (var i = 0; i < arr.length; i++) { + if (truthValues[i]) results.push(arr[i]); + } + callback(null, results); + }); +} + +function filterGeneric(eachfn, coll, iteratee, callback) { + var results = []; + eachfn(coll, function (x, index, callback) { + iteratee(x, function (err, v) { + if (err) { + callback(err); + } else { + if (v) { + results.push({index: index, value: x}); + } + callback(); + } + }); + }, function (err) { + if (err) { + callback(err); + } else { + callback(null, arrayMap(results.sort(function (a, b) { + return a.index - b.index; + }), baseProperty('value'))); + } + }); +} + +function _filter(eachfn, coll, iteratee, callback) { + var filter = isArrayLike(coll) ? filterArray : filterGeneric; + filter(eachfn, coll, wrapAsync(iteratee), callback || noop); +} + +/** + * Returns a new array of all the values in `coll` which pass an async truth + * test. This operation is performed in parallel, but the results array will be + * in the same order as the original. + * + * @name filter + * @static + * @memberOf module:Collections + * @method + * @alias select + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {Function} iteratee - A truth test to apply to each item in `coll`. + * The `iteratee` is passed a `callback(err, truthValue)`, which must be called + * with a boolean argument once it has completed. Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results). + * @example + * + * async.filter(['file1','file2','file3'], function(filePath, callback) { + * fs.access(filePath, function(err) { + * callback(null, !err) + * }); + * }, function(err, results) { + * // results now equals an array of the existing files + * }); + */ +var filter = doParallel(_filter); + +/** + * The same as [`filter`]{@link module:Collections.filter} but runs a maximum of `limit` async operations at a + * time. + * + * @name filterLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.filter]{@link module:Collections.filter} + * @alias selectLimit + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {Function} iteratee - A truth test to apply to each item in `coll`. + * The `iteratee` is passed a `callback(err, truthValue)`, which must be called + * with a boolean argument once it has completed. Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results). + */ +var filterLimit = doParallelLimit(_filter); + +/** + * The same as [`filter`]{@link module:Collections.filter} but runs only a single async operation at a time. + * + * @name filterSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.filter]{@link module:Collections.filter} + * @alias selectSeries + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {Function} iteratee - A truth test to apply to each item in `coll`. + * The `iteratee` is passed a `callback(err, truthValue)`, which must be called + * with a boolean argument once it has completed. Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results) + */ +var filterSeries = doLimit(filterLimit, 1); + +/** + * Calls the asynchronous function `fn` with a callback parameter that allows it + * to call itself again, in series, indefinitely. + + * If an error is passed to the callback then `errback` is called with the + * error, and execution stops, otherwise it will never be called. + * + * @name forever + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {AsyncFunction} fn - an async function to call repeatedly. + * Invoked with (next). + * @param {Function} [errback] - when `fn` passes an error to it's callback, + * this function will be called, and execution stops. Invoked with (err). + * @example + * + * async.forever( + * function(next) { + * // next is suitable for passing to things that need a callback(err [, whatever]); + * // it will result in this function being called again. + * }, + * function(err) { + * // if next is called with a value in its first parameter, it will appear + * // in here as 'err', and execution will stop. + * } + * ); + */ +function forever(fn, errback) { + var done = onlyOnce(errback || noop); + var task = wrapAsync(ensureAsync(fn)); + + function next(err) { + if (err) return done(err); + task(next); + } + next(); +} + +/** + * The same as [`groupBy`]{@link module:Collections.groupBy} but runs a maximum of `limit` async operations at a time. + * + * @name groupByLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.groupBy]{@link module:Collections.groupBy} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with a `key` to group the value under. + * Invoked with (value, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Result is an `Object` whoses + * properties are arrays of values which returned the corresponding key. + */ +var groupByLimit = function(coll, limit, iteratee, callback) { + callback = callback || noop; + var _iteratee = wrapAsync(iteratee); + mapLimit(coll, limit, function(val, callback) { + _iteratee(val, function(err, key) { + if (err) return callback(err); + return callback(null, {key: key, val: val}); + }); + }, function(err, mapResults) { + var result = {}; + // from MDN, handle object having an `hasOwnProperty` prop + var hasOwnProperty = Object.prototype.hasOwnProperty; + + for (var i = 0; i < mapResults.length; i++) { + if (mapResults[i]) { + var key = mapResults[i].key; + var val = mapResults[i].val; + + if (hasOwnProperty.call(result, key)) { + result[key].push(val); + } else { + result[key] = [val]; + } + } + } + + return callback(err, result); + }); +}; + +/** + * Returns a new object, where each value corresponds to an array of items, from + * `coll`, that returned the corresponding key. That is, the keys of the object + * correspond to the values passed to the `iteratee` callback. + * + * Note: Since this function applies the `iteratee` to each item in parallel, + * there is no guarantee that the `iteratee` functions will complete in order. + * However, the values for each key in the `result` will be in the same order as + * the original `coll`. For Objects, the values will roughly be in the order of + * the original Objects' keys (but this can vary across JavaScript engines). + * + * @name groupBy + * @static + * @memberOf module:Collections + * @method + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with a `key` to group the value under. + * Invoked with (value, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Result is an `Object` whoses + * properties are arrays of values which returned the corresponding key. + * @example + * + * async.groupBy(['userId1', 'userId2', 'userId3'], function(userId, callback) { + * db.findById(userId, function(err, user) { + * if (err) return callback(err); + * return callback(null, user.age); + * }); + * }, function(err, result) { + * // result is object containing the userIds grouped by age + * // e.g. { 30: ['userId1', 'userId3'], 42: ['userId2']}; + * }); + */ +var groupBy = doLimit(groupByLimit, Infinity); + +/** + * The same as [`groupBy`]{@link module:Collections.groupBy} but runs only a single async operation at a time. + * + * @name groupBySeries + * @static + * @memberOf module:Collections + * @method + * @see [async.groupBy]{@link module:Collections.groupBy} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with a `key` to group the value under. + * Invoked with (value, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. Result is an `Object` whoses + * properties are arrays of values which returned the corresponding key. + */ +var groupBySeries = doLimit(groupByLimit, 1); + +/** + * Logs the result of an `async` function to the `console`. Only works in + * Node.js or in browsers that support `console.log` and `console.error` (such + * as FF and Chrome). If multiple arguments are returned from the async + * function, `console.log` is called on each argument in order. + * + * @name log + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} function - The function you want to eventually apply + * all arguments to. + * @param {...*} arguments... - Any number of arguments to apply to the function. + * @example + * + * // in a module + * var hello = function(name, callback) { + * setTimeout(function() { + * callback(null, 'hello ' + name); + * }, 1000); + * }; + * + * // in the node repl + * node> async.log(hello, 'world'); + * 'hello world' + */ +var log = consoleFunc('log'); + +/** + * The same as [`mapValues`]{@link module:Collections.mapValues} but runs a maximum of `limit` async operations at a + * time. + * + * @name mapValuesLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.mapValues]{@link module:Collections.mapValues} + * @category Collection + * @param {Object} obj - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - A function to apply to each value and key + * in `coll`. + * The iteratee should complete with the transformed value as its result. + * Invoked with (value, key, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. `result` is a new object consisting + * of each key from `obj`, with each transformed value on the right-hand side. + * Invoked with (err, result). + */ +function mapValuesLimit(obj, limit, iteratee, callback) { + callback = once(callback || noop); + var newObj = {}; + var _iteratee = wrapAsync(iteratee); + eachOfLimit(obj, limit, function(val, key, next) { + _iteratee(val, key, function (err, result) { + if (err) return next(err); + newObj[key] = result; + next(); + }); + }, function (err) { + callback(err, newObj); + }); +} + +/** + * A relative of [`map`]{@link module:Collections.map}, designed for use with objects. + * + * Produces a new Object by mapping each value of `obj` through the `iteratee` + * function. The `iteratee` is called each `value` and `key` from `obj` and a + * callback for when it has finished processing. Each of these callbacks takes + * two arguments: an `error`, and the transformed item from `obj`. If `iteratee` + * passes an error to its callback, the main `callback` (for the `mapValues` + * function) is immediately called with the error. + * + * Note, the order of the keys in the result is not guaranteed. The keys will + * be roughly in the order they complete, (but this is very engine-specific) + * + * @name mapValues + * @static + * @memberOf module:Collections + * @method + * @category Collection + * @param {Object} obj - A collection to iterate over. + * @param {AsyncFunction} iteratee - A function to apply to each value and key + * in `coll`. + * The iteratee should complete with the transformed value as its result. + * Invoked with (value, key, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. `result` is a new object consisting + * of each key from `obj`, with each transformed value on the right-hand side. + * Invoked with (err, result). + * @example + * + * async.mapValues({ + * f1: 'file1', + * f2: 'file2', + * f3: 'file3' + * }, function (file, key, callback) { + * fs.stat(file, callback); + * }, function(err, result) { + * // result is now a map of stats for each file, e.g. + * // { + * // f1: [stats for file1], + * // f2: [stats for file2], + * // f3: [stats for file3] + * // } + * }); + */ + +var mapValues = doLimit(mapValuesLimit, Infinity); + +/** + * The same as [`mapValues`]{@link module:Collections.mapValues} but runs only a single async operation at a time. + * + * @name mapValuesSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.mapValues]{@link module:Collections.mapValues} + * @category Collection + * @param {Object} obj - A collection to iterate over. + * @param {AsyncFunction} iteratee - A function to apply to each value and key + * in `coll`. + * The iteratee should complete with the transformed value as its result. + * Invoked with (value, key, callback). + * @param {Function} [callback] - A callback which is called when all `iteratee` + * functions have finished, or an error occurs. `result` is a new object consisting + * of each key from `obj`, with each transformed value on the right-hand side. + * Invoked with (err, result). + */ +var mapValuesSeries = doLimit(mapValuesLimit, 1); + +function has(obj, key) { + return key in obj; +} + +/** + * Caches the results of an async function. When creating a hash to store + * function results against, the callback is omitted from the hash and an + * optional hash function can be used. + * + * If no hash function is specified, the first argument is used as a hash key, + * which may work reasonably if it is a string or a data type that converts to a + * distinct string. Note that objects and arrays will not behave reasonably. + * Neither will cases where the other arguments are significant. In such cases, + * specify your own hash function. + * + * The cache of results is exposed as the `memo` property of the function + * returned by `memoize`. + * + * @name memoize + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} fn - The async function to proxy and cache results from. + * @param {Function} hasher - An optional function for generating a custom hash + * for storing results. It has all the arguments applied to it apart from the + * callback, and must be synchronous. + * @returns {AsyncFunction} a memoized version of `fn` + * @example + * + * var slow_fn = function(name, callback) { + * // do something + * callback(null, result); + * }; + * var fn = async.memoize(slow_fn); + * + * // fn can now be used as if it were slow_fn + * fn('some name', function() { + * // callback + * }); + */ +function memoize(fn, hasher) { + var memo = Object.create(null); + var queues = Object.create(null); + hasher = hasher || identity; + var _fn = wrapAsync(fn); + var memoized = initialParams(function memoized(args, callback) { + var key = hasher.apply(null, args); + if (has(memo, key)) { + setImmediate$1(function() { + callback.apply(null, memo[key]); + }); + } else if (has(queues, key)) { + queues[key].push(callback); + } else { + queues[key] = [callback]; + _fn.apply(null, args.concat(function(/*args*/) { + var args = slice(arguments); + memo[key] = args; + var q = queues[key]; + delete queues[key]; + for (var i = 0, l = q.length; i < l; i++) { + q[i].apply(null, args); + } + })); + } + }); + memoized.memo = memo; + memoized.unmemoized = fn; + return memoized; +} + +/** + * Calls `callback` on a later loop around the event loop. In Node.js this just + * calls `process.nextTick`. In the browser it will use `setImmediate` if + * available, otherwise `setTimeout(callback, 0)`, which means other higher + * priority events may precede the execution of `callback`. + * + * This is used internally for browser-compatibility purposes. + * + * @name nextTick + * @static + * @memberOf module:Utils + * @method + * @see [async.setImmediate]{@link module:Utils.setImmediate} + * @category Util + * @param {Function} callback - The function to call on a later loop around + * the event loop. Invoked with (args...). + * @param {...*} args... - any number of additional arguments to pass to the + * callback on the next tick. + * @example + * + * var call_order = []; + * async.nextTick(function() { + * call_order.push('two'); + * // call_order now equals ['one','two'] + * }); + * call_order.push('one'); + * + * async.setImmediate(function (a, b, c) { + * // a, b, and c equal 1, 2, and 3 + * }, 1, 2, 3); + */ +var _defer$1; + +if (hasNextTick) { + _defer$1 = process.nextTick; +} else if (hasSetImmediate) { + _defer$1 = setImmediate; +} else { + _defer$1 = fallback; +} + +var nextTick = wrap(_defer$1); + +function _parallel(eachfn, tasks, callback) { + callback = callback || noop; + var results = isArrayLike(tasks) ? [] : {}; + + eachfn(tasks, function (task, key, callback) { + wrapAsync(task)(function (err, result) { + if (arguments.length > 2) { + result = slice(arguments, 1); + } + results[key] = result; + callback(err); + }); + }, function (err) { + callback(err, results); + }); +} + +/** + * Run the `tasks` collection of functions in parallel, without waiting until + * the previous function has completed. If any of the functions pass an error to + * its callback, the main `callback` is immediately called with the value of the + * error. Once the `tasks` have completed, the results are passed to the final + * `callback` as an array. + * + * **Note:** `parallel` is about kicking-off I/O tasks in parallel, not about + * parallel execution of code. If your tasks do not use any timers or perform + * any I/O, they will actually be executed in series. Any synchronous setup + * sections for each task will happen one after the other. JavaScript remains + * single-threaded. + * + * **Hint:** Use [`reflect`]{@link module:Utils.reflect} to continue the + * execution of other tasks when a task fails. + * + * It is also possible to use an object instead of an array. Each property will + * be run as a function and the results will be passed to the final `callback` + * as an object instead of an array. This can be a more readable way of handling + * results from {@link async.parallel}. + * + * @name parallel + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array|Iterable|Object} tasks - A collection of + * [async functions]{@link AsyncFunction} to run. + * Each async function can complete with any number of optional `result` values. + * @param {Function} [callback] - An optional callback to run once all the + * functions have completed successfully. This function gets a results array + * (or object) containing all the result arguments passed to the task callbacks. + * Invoked with (err, results). + * + * @example + * async.parallel([ + * function(callback) { + * setTimeout(function() { + * callback(null, 'one'); + * }, 200); + * }, + * function(callback) { + * setTimeout(function() { + * callback(null, 'two'); + * }, 100); + * } + * ], + * // optional callback + * function(err, results) { + * // the results array will equal ['one','two'] even though + * // the second function had a shorter timeout. + * }); + * + * // an example using an object instead of an array + * async.parallel({ + * one: function(callback) { + * setTimeout(function() { + * callback(null, 1); + * }, 200); + * }, + * two: function(callback) { + * setTimeout(function() { + * callback(null, 2); + * }, 100); + * } + * }, function(err, results) { + * // results is now equals to: {one: 1, two: 2} + * }); + */ +function parallelLimit(tasks, callback) { + _parallel(eachOf, tasks, callback); +} + +/** + * The same as [`parallel`]{@link module:ControlFlow.parallel} but runs a maximum of `limit` async operations at a + * time. + * + * @name parallelLimit + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.parallel]{@link module:ControlFlow.parallel} + * @category Control Flow + * @param {Array|Iterable|Object} tasks - A collection of + * [async functions]{@link AsyncFunction} to run. + * Each async function can complete with any number of optional `result` values. + * @param {number} limit - The maximum number of async operations at a time. + * @param {Function} [callback] - An optional callback to run once all the + * functions have completed successfully. This function gets a results array + * (or object) containing all the result arguments passed to the task callbacks. + * Invoked with (err, results). + */ +function parallelLimit$1(tasks, limit, callback) { + _parallel(_eachOfLimit(limit), tasks, callback); +} + +/** + * A queue of tasks for the worker function to complete. + * @typedef {Object} QueueObject + * @memberOf module:ControlFlow + * @property {Function} length - a function returning the number of items + * waiting to be processed. Invoke with `queue.length()`. + * @property {boolean} started - a boolean indicating whether or not any + * items have been pushed and processed by the queue. + * @property {Function} running - a function returning the number of items + * currently being processed. Invoke with `queue.running()`. + * @property {Function} workersList - a function returning the array of items + * currently being processed. Invoke with `queue.workersList()`. + * @property {Function} idle - a function returning false if there are items + * waiting or being processed, or true if not. Invoke with `queue.idle()`. + * @property {number} concurrency - an integer for determining how many `worker` + * functions should be run in parallel. This property can be changed after a + * `queue` is created to alter the concurrency on-the-fly. + * @property {Function} push - add a new task to the `queue`. Calls `callback` + * once the `worker` has finished processing the task. Instead of a single task, + * a `tasks` array can be submitted. The respective callback is used for every + * task in the list. Invoke with `queue.push(task, [callback])`, + * @property {Function} unshift - add a new task to the front of the `queue`. + * Invoke with `queue.unshift(task, [callback])`. + * @property {Function} remove - remove items from the queue that match a test + * function. The test function will be passed an object with a `data` property, + * and a `priority` property, if this is a + * [priorityQueue]{@link module:ControlFlow.priorityQueue} object. + * Invoked with `queue.remove(testFn)`, where `testFn` is of the form + * `function ({data, priority}) {}` and returns a Boolean. + * @property {Function} saturated - a callback that is called when the number of + * running workers hits the `concurrency` limit, and further tasks will be + * queued. + * @property {Function} unsaturated - a callback that is called when the number + * of running workers is less than the `concurrency` & `buffer` limits, and + * further tasks will not be queued. + * @property {number} buffer - A minimum threshold buffer in order to say that + * the `queue` is `unsaturated`. + * @property {Function} empty - a callback that is called when the last item + * from the `queue` is given to a `worker`. + * @property {Function} drain - a callback that is called when the last item + * from the `queue` has returned from the `worker`. + * @property {Function} error - a callback that is called when a task errors. + * Has the signature `function(error, task)`. + * @property {boolean} paused - a boolean for determining whether the queue is + * in a paused state. + * @property {Function} pause - a function that pauses the processing of tasks + * until `resume()` is called. Invoke with `queue.pause()`. + * @property {Function} resume - a function that resumes the processing of + * queued tasks when the queue is paused. Invoke with `queue.resume()`. + * @property {Function} kill - a function that removes the `drain` callback and + * empties remaining tasks from the queue forcing it to go idle. No more tasks + * should be pushed to the queue after calling this function. Invoke with `queue.kill()`. + */ + +/** + * Creates a `queue` object with the specified `concurrency`. Tasks added to the + * `queue` are processed in parallel (up to the `concurrency` limit). If all + * `worker`s are in progress, the task is queued until one becomes available. + * Once a `worker` completes a `task`, that `task`'s callback is called. + * + * @name queue + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {AsyncFunction} worker - An async function for processing a queued task. + * If you want to handle errors from an individual task, pass a callback to + * `q.push()`. Invoked with (task, callback). + * @param {number} [concurrency=1] - An `integer` for determining how many + * `worker` functions should be run in parallel. If omitted, the concurrency + * defaults to `1`. If the concurrency is `0`, an error is thrown. + * @returns {module:ControlFlow.QueueObject} A queue object to manage the tasks. Callbacks can + * attached as certain properties to listen for specific events during the + * lifecycle of the queue. + * @example + * + * // create a queue object with concurrency 2 + * var q = async.queue(function(task, callback) { + * console.log('hello ' + task.name); + * callback(); + * }, 2); + * + * // assign a callback + * q.drain = function() { + * console.log('all items have been processed'); + * }; + * + * // add some items to the queue + * q.push({name: 'foo'}, function(err) { + * console.log('finished processing foo'); + * }); + * q.push({name: 'bar'}, function (err) { + * console.log('finished processing bar'); + * }); + * + * // add some items to the queue (batch-wise) + * q.push([{name: 'baz'},{name: 'bay'},{name: 'bax'}], function(err) { + * console.log('finished processing item'); + * }); + * + * // add some items to the front of the queue + * q.unshift({name: 'bar'}, function (err) { + * console.log('finished processing bar'); + * }); + */ +var queue$1 = function (worker, concurrency) { + var _worker = wrapAsync(worker); + return queue(function (items, cb) { + _worker(items[0], cb); + }, concurrency, 1); +}; + +/** + * The same as [async.queue]{@link module:ControlFlow.queue} only tasks are assigned a priority and + * completed in ascending priority order. + * + * @name priorityQueue + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.queue]{@link module:ControlFlow.queue} + * @category Control Flow + * @param {AsyncFunction} worker - An async function for processing a queued task. + * If you want to handle errors from an individual task, pass a callback to + * `q.push()`. + * Invoked with (task, callback). + * @param {number} concurrency - An `integer` for determining how many `worker` + * functions should be run in parallel. If omitted, the concurrency defaults to + * `1`. If the concurrency is `0`, an error is thrown. + * @returns {module:ControlFlow.QueueObject} A priorityQueue object to manage the tasks. There are two + * differences between `queue` and `priorityQueue` objects: + * * `push(task, priority, [callback])` - `priority` should be a number. If an + * array of `tasks` is given, all tasks will be assigned the same priority. + * * The `unshift` method was removed. + */ +var priorityQueue = function(worker, concurrency) { + // Start with a normal queue + var q = queue$1(worker, concurrency); + + // Override push to accept second parameter representing priority + q.push = function(data, priority, callback) { + if (callback == null) callback = noop; + if (typeof callback !== 'function') { + throw new Error('task callback must be a function'); + } + q.started = true; + if (!isArray(data)) { + data = [data]; + } + if (data.length === 0) { + // call drain immediately if there are no tasks + return setImmediate$1(function() { + q.drain(); + }); + } + + priority = priority || 0; + var nextNode = q._tasks.head; + while (nextNode && priority >= nextNode.priority) { + nextNode = nextNode.next; + } + + for (var i = 0, l = data.length; i < l; i++) { + var item = { + data: data[i], + priority: priority, + callback: callback + }; + + if (nextNode) { + q._tasks.insertBefore(nextNode, item); + } else { + q._tasks.push(item); + } + } + setImmediate$1(q.process); + }; + + // Remove unshift function + delete q.unshift; + + return q; +}; + +/** + * Runs the `tasks` array of functions in parallel, without waiting until the + * previous function has completed. Once any of the `tasks` complete or pass an + * error to its callback, the main `callback` is immediately called. It's + * equivalent to `Promise.race()`. + * + * @name race + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array} tasks - An array containing [async functions]{@link AsyncFunction} + * to run. Each function can complete with an optional `result` value. + * @param {Function} callback - A callback to run once any of the functions have + * completed. This function gets an error or result from the first function that + * completed. Invoked with (err, result). + * @returns undefined + * @example + * + * async.race([ + * function(callback) { + * setTimeout(function() { + * callback(null, 'one'); + * }, 200); + * }, + * function(callback) { + * setTimeout(function() { + * callback(null, 'two'); + * }, 100); + * } + * ], + * // main callback + * function(err, result) { + * // the result will be equal to 'two' as it finishes earlier + * }); + */ +function race(tasks, callback) { + callback = once(callback || noop); + if (!isArray(tasks)) return callback(new TypeError('First argument to race must be an array of functions')); + if (!tasks.length) return callback(); + for (var i = 0, l = tasks.length; i < l; i++) { + wrapAsync(tasks[i])(callback); + } +} + +/** + * Same as [`reduce`]{@link module:Collections.reduce}, only operates on `array` in reverse order. + * + * @name reduceRight + * @static + * @memberOf module:Collections + * @method + * @see [async.reduce]{@link module:Collections.reduce} + * @alias foldr + * @category Collection + * @param {Array} array - A collection to iterate over. + * @param {*} memo - The initial state of the reduction. + * @param {AsyncFunction} iteratee - A function applied to each item in the + * array to produce the next step in the reduction. + * The `iteratee` should complete with the next state of the reduction. + * If the iteratee complete with an error, the reduction is stopped and the + * main `callback` is immediately called with the error. + * Invoked with (memo, item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Result is the reduced value. Invoked with + * (err, result). + */ +function reduceRight (array, memo, iteratee, callback) { + var reversed = slice(array).reverse(); + reduce(reversed, memo, iteratee, callback); +} + +/** + * Wraps the async function in another function that always completes with a + * result object, even when it errors. + * + * The result object has either the property `error` or `value`. + * + * @name reflect + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} fn - The async function you want to wrap + * @returns {Function} - A function that always passes null to it's callback as + * the error. The second argument to the callback will be an `object` with + * either an `error` or a `value` property. + * @example + * + * async.parallel([ + * async.reflect(function(callback) { + * // do some stuff ... + * callback(null, 'one'); + * }), + * async.reflect(function(callback) { + * // do some more stuff but error ... + * callback('bad stuff happened'); + * }), + * async.reflect(function(callback) { + * // do some more stuff ... + * callback(null, 'two'); + * }) + * ], + * // optional callback + * function(err, results) { + * // values + * // results[0].value = 'one' + * // results[1].error = 'bad stuff happened' + * // results[2].value = 'two' + * }); + */ +function reflect(fn) { + var _fn = wrapAsync(fn); + return initialParams(function reflectOn(args, reflectCallback) { + args.push(function callback(error, cbArg) { + if (error) { + reflectCallback(null, { error: error }); + } else { + var value; + if (arguments.length <= 2) { + value = cbArg; + } else { + value = slice(arguments, 1); + } + reflectCallback(null, { value: value }); + } + }); + + return _fn.apply(this, args); + }); +} + +/** + * A helper function that wraps an array or an object of functions with `reflect`. + * + * @name reflectAll + * @static + * @memberOf module:Utils + * @method + * @see [async.reflect]{@link module:Utils.reflect} + * @category Util + * @param {Array|Object|Iterable} tasks - The collection of + * [async functions]{@link AsyncFunction} to wrap in `async.reflect`. + * @returns {Array} Returns an array of async functions, each wrapped in + * `async.reflect` + * @example + * + * let tasks = [ + * function(callback) { + * setTimeout(function() { + * callback(null, 'one'); + * }, 200); + * }, + * function(callback) { + * // do some more stuff but error ... + * callback(new Error('bad stuff happened')); + * }, + * function(callback) { + * setTimeout(function() { + * callback(null, 'two'); + * }, 100); + * } + * ]; + * + * async.parallel(async.reflectAll(tasks), + * // optional callback + * function(err, results) { + * // values + * // results[0].value = 'one' + * // results[1].error = Error('bad stuff happened') + * // results[2].value = 'two' + * }); + * + * // an example using an object instead of an array + * let tasks = { + * one: function(callback) { + * setTimeout(function() { + * callback(null, 'one'); + * }, 200); + * }, + * two: function(callback) { + * callback('two'); + * }, + * three: function(callback) { + * setTimeout(function() { + * callback(null, 'three'); + * }, 100); + * } + * }; + * + * async.parallel(async.reflectAll(tasks), + * // optional callback + * function(err, results) { + * // values + * // results.one.value = 'one' + * // results.two.error = 'two' + * // results.three.value = 'three' + * }); + */ +function reflectAll(tasks) { + var results; + if (isArray(tasks)) { + results = arrayMap(tasks, reflect); + } else { + results = {}; + baseForOwn(tasks, function(task, key) { + results[key] = reflect.call(this, task); + }); + } + return results; +} + +function reject$1(eachfn, arr, iteratee, callback) { + _filter(eachfn, arr, function(value, cb) { + iteratee(value, function(err, v) { + cb(err, !v); + }); + }, callback); +} + +/** + * The opposite of [`filter`]{@link module:Collections.filter}. Removes values that pass an `async` truth test. + * + * @name reject + * @static + * @memberOf module:Collections + * @method + * @see [async.filter]{@link module:Collections.filter} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {Function} iteratee - An async truth test to apply to each item in + * `coll`. + * The should complete with a boolean value as its `result`. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results). + * @example + * + * async.reject(['file1','file2','file3'], function(filePath, callback) { + * fs.access(filePath, function(err) { + * callback(null, !err) + * }); + * }, function(err, results) { + * // results now equals an array of missing files + * createFiles(results); + * }); + */ +var reject = doParallel(reject$1); + +/** + * The same as [`reject`]{@link module:Collections.reject} but runs a maximum of `limit` async operations at a + * time. + * + * @name rejectLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.reject]{@link module:Collections.reject} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {Function} iteratee - An async truth test to apply to each item in + * `coll`. + * The should complete with a boolean value as its `result`. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results). + */ +var rejectLimit = doParallelLimit(reject$1); + +/** + * The same as [`reject`]{@link module:Collections.reject} but runs only a single async operation at a time. + * + * @name rejectSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.reject]{@link module:Collections.reject} + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {Function} iteratee - An async truth test to apply to each item in + * `coll`. + * The should complete with a boolean value as its `result`. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Invoked with (err, results). + */ +var rejectSeries = doLimit(rejectLimit, 1); + +/** + * Creates a function that returns `value`. + * + * @static + * @memberOf _ + * @since 2.4.0 + * @category Util + * @param {*} value The value to return from the new function. + * @returns {Function} Returns the new constant function. + * @example + * + * var objects = _.times(2, _.constant({ 'a': 1 })); + * + * console.log(objects); + * // => [{ 'a': 1 }, { 'a': 1 }] + * + * console.log(objects[0] === objects[1]); + * // => true + */ +function constant$1(value) { + return function() { + return value; + }; +} + +/** + * Attempts to get a successful response from `task` no more than `times` times + * before returning an error. If the task is successful, the `callback` will be + * passed the result of the successful task. If all attempts fail, the callback + * will be passed the error and result (if any) of the final attempt. + * + * @name retry + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @see [async.retryable]{@link module:ControlFlow.retryable} + * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - Can be either an + * object with `times` and `interval` or a number. + * * `times` - The number of attempts to make before giving up. The default + * is `5`. + * * `interval` - The time to wait between retries, in milliseconds. The + * default is `0`. The interval may also be specified as a function of the + * retry count (see example). + * * `errorFilter` - An optional synchronous function that is invoked on + * erroneous result. If it returns `true` the retry attempts will continue; + * if the function returns `false` the retry flow is aborted with the current + * attempt's error and result being returned to the final callback. + * Invoked with (err). + * * If `opts` is a number, the number specifies the number of times to retry, + * with the default interval of `0`. + * @param {AsyncFunction} task - An async function to retry. + * Invoked with (callback). + * @param {Function} [callback] - An optional callback which is called when the + * task has succeeded, or after the final failed attempt. It receives the `err` + * and `result` arguments of the last attempt at completing the `task`. Invoked + * with (err, results). + * + * @example + * + * // The `retry` function can be used as a stand-alone control flow by passing + * // a callback, as shown below: + * + * // try calling apiMethod 3 times + * async.retry(3, apiMethod, function(err, result) { + * // do something with the result + * }); + * + * // try calling apiMethod 3 times, waiting 200 ms between each retry + * async.retry({times: 3, interval: 200}, apiMethod, function(err, result) { + * // do something with the result + * }); + * + * // try calling apiMethod 10 times with exponential backoff + * // (i.e. intervals of 100, 200, 400, 800, 1600, ... milliseconds) + * async.retry({ + * times: 10, + * interval: function(retryCount) { + * return 50 * Math.pow(2, retryCount); + * } + * }, apiMethod, function(err, result) { + * // do something with the result + * }); + * + * // try calling apiMethod the default 5 times no delay between each retry + * async.retry(apiMethod, function(err, result) { + * // do something with the result + * }); + * + * // try calling apiMethod only when error condition satisfies, all other + * // errors will abort the retry control flow and return to final callback + * async.retry({ + * errorFilter: function(err) { + * return err.message === 'Temporary error'; // only retry on a specific error + * } + * }, apiMethod, function(err, result) { + * // do something with the result + * }); + * + * // to retry individual methods that are not as reliable within other + * // control flow functions, use the `retryable` wrapper: + * async.auto({ + * users: api.getUsers.bind(api), + * payments: async.retryable(3, api.getPayments.bind(api)) + * }, function(err, results) { + * // do something with the results + * }); + * + */ +function retry(opts, task, callback) { + var DEFAULT_TIMES = 5; + var DEFAULT_INTERVAL = 0; + + var options = { + times: DEFAULT_TIMES, + intervalFunc: constant$1(DEFAULT_INTERVAL) + }; + + function parseTimes(acc, t) { + if (typeof t === 'object') { + acc.times = +t.times || DEFAULT_TIMES; + + acc.intervalFunc = typeof t.interval === 'function' ? + t.interval : + constant$1(+t.interval || DEFAULT_INTERVAL); + + acc.errorFilter = t.errorFilter; + } else if (typeof t === 'number' || typeof t === 'string') { + acc.times = +t || DEFAULT_TIMES; + } else { + throw new Error("Invalid arguments for async.retry"); + } + } + + if (arguments.length < 3 && typeof opts === 'function') { + callback = task || noop; + task = opts; + } else { + parseTimes(options, opts); + callback = callback || noop; + } + + if (typeof task !== 'function') { + throw new Error("Invalid arguments for async.retry"); + } + + var _task = wrapAsync(task); + + var attempt = 1; + function retryAttempt() { + _task(function(err) { + if (err && attempt++ < options.times && + (typeof options.errorFilter != 'function' || + options.errorFilter(err))) { + setTimeout(retryAttempt, options.intervalFunc(attempt)); + } else { + callback.apply(null, arguments); + } + }); + } + + retryAttempt(); +} + +/** + * A close relative of [`retry`]{@link module:ControlFlow.retry}. This method + * wraps a task and makes it retryable, rather than immediately calling it + * with retries. + * + * @name retryable + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.retry]{@link module:ControlFlow.retry} + * @category Control Flow + * @param {Object|number} [opts = {times: 5, interval: 0}| 5] - optional + * options, exactly the same as from `retry` + * @param {AsyncFunction} task - the asynchronous function to wrap. + * This function will be passed any arguments passed to the returned wrapper. + * Invoked with (...args, callback). + * @returns {AsyncFunction} The wrapped function, which when invoked, will + * retry on an error, based on the parameters specified in `opts`. + * This function will accept the same parameters as `task`. + * @example + * + * async.auto({ + * dep1: async.retryable(3, getFromFlakyService), + * process: ["dep1", async.retryable(3, function (results, cb) { + * maybeProcessData(results.dep1, cb); + * })] + * }, callback); + */ +var retryable = function (opts, task) { + if (!task) { + task = opts; + opts = null; + } + var _task = wrapAsync(task); + return initialParams(function (args, callback) { + function taskFn(cb) { + _task.apply(null, args.concat(cb)); + } + + if (opts) retry(opts, taskFn, callback); + else retry(taskFn, callback); + + }); +}; + +/** + * Run the functions in the `tasks` collection in series, each one running once + * the previous function has completed. If any functions in the series pass an + * error to its callback, no more functions are run, and `callback` is + * immediately called with the value of the error. Otherwise, `callback` + * receives an array of results when `tasks` have completed. + * + * It is also possible to use an object instead of an array. Each property will + * be run as a function, and the results will be passed to the final `callback` + * as an object instead of an array. This can be a more readable way of handling + * results from {@link async.series}. + * + * **Note** that while many implementations preserve the order of object + * properties, the [ECMAScript Language Specification](http://www.ecma-international.org/ecma-262/5.1/#sec-8.6) + * explicitly states that + * + * > The mechanics and order of enumerating the properties is not specified. + * + * So if you rely on the order in which your series of functions are executed, + * and want this to work on all platforms, consider using an array. + * + * @name series + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array|Iterable|Object} tasks - A collection containing + * [async functions]{@link AsyncFunction} to run in series. + * Each function can complete with any number of optional `result` values. + * @param {Function} [callback] - An optional callback to run once all the + * functions have completed. This function gets a results array (or object) + * containing all the result arguments passed to the `task` callbacks. Invoked + * with (err, result). + * @example + * async.series([ + * function(callback) { + * // do some stuff ... + * callback(null, 'one'); + * }, + * function(callback) { + * // do some more stuff ... + * callback(null, 'two'); + * } + * ], + * // optional callback + * function(err, results) { + * // results is now equal to ['one', 'two'] + * }); + * + * async.series({ + * one: function(callback) { + * setTimeout(function() { + * callback(null, 1); + * }, 200); + * }, + * two: function(callback){ + * setTimeout(function() { + * callback(null, 2); + * }, 100); + * } + * }, function(err, results) { + * // results is now equal to: {one: 1, two: 2} + * }); + */ +function series(tasks, callback) { + _parallel(eachOfSeries, tasks, callback); +} + +/** + * Returns `true` if at least one element in the `coll` satisfies an async test. + * If any iteratee call returns `true`, the main `callback` is immediately + * called. + * + * @name some + * @static + * @memberOf module:Collections + * @method + * @alias any + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collections in parallel. + * The iteratee should complete with a boolean `result` value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the iteratee functions have finished. + * Result will be either `true` or `false` depending on the values of the async + * tests. Invoked with (err, result). + * @example + * + * async.some(['file1','file2','file3'], function(filePath, callback) { + * fs.access(filePath, function(err) { + * callback(null, !err) + * }); + * }, function(err, result) { + * // if result is true then at least one of the files exists + * }); + */ +var some = doParallel(_createTester(Boolean, identity)); + +/** + * The same as [`some`]{@link module:Collections.some} but runs a maximum of `limit` async operations at a time. + * + * @name someLimit + * @static + * @memberOf module:Collections + * @method + * @see [async.some]{@link module:Collections.some} + * @alias anyLimit + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collections in parallel. + * The iteratee should complete with a boolean `result` value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the iteratee functions have finished. + * Result will be either `true` or `false` depending on the values of the async + * tests. Invoked with (err, result). + */ +var someLimit = doParallelLimit(_createTester(Boolean, identity)); + +/** + * The same as [`some`]{@link module:Collections.some} but runs only a single async operation at a time. + * + * @name someSeries + * @static + * @memberOf module:Collections + * @method + * @see [async.some]{@link module:Collections.some} + * @alias anySeries + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async truth test to apply to each item + * in the collections in series. + * The iteratee should complete with a boolean `result` value. + * Invoked with (item, callback). + * @param {Function} [callback] - A callback which is called as soon as any + * iteratee returns `true`, or after all the iteratee functions have finished. + * Result will be either `true` or `false` depending on the values of the async + * tests. Invoked with (err, result). + */ +var someSeries = doLimit(someLimit, 1); + +/** + * Sorts a list by the results of running each `coll` value through an async + * `iteratee`. + * + * @name sortBy + * @static + * @memberOf module:Collections + * @method + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {AsyncFunction} iteratee - An async function to apply to each item in + * `coll`. + * The iteratee should complete with a value to use as the sort criteria as + * its `result`. + * Invoked with (item, callback). + * @param {Function} callback - A callback which is called after all the + * `iteratee` functions have finished, or an error occurs. Results is the items + * from the original `coll` sorted by the values returned by the `iteratee` + * calls. Invoked with (err, results). + * @example + * + * async.sortBy(['file1','file2','file3'], function(file, callback) { + * fs.stat(file, function(err, stats) { + * callback(err, stats.mtime); + * }); + * }, function(err, results) { + * // results is now the original array of files sorted by + * // modified date + * }); + * + * // By modifying the callback parameter the + * // sorting order can be influenced: + * + * // ascending order + * async.sortBy([1,9,3,5], function(x, callback) { + * callback(null, x); + * }, function(err,result) { + * // result callback + * }); + * + * // descending order + * async.sortBy([1,9,3,5], function(x, callback) { + * callback(null, x*-1); //<- x*-1 instead of x, turns the order around + * }, function(err,result) { + * // result callback + * }); + */ +function sortBy (coll, iteratee, callback) { + var _iteratee = wrapAsync(iteratee); + map(coll, function (x, callback) { + _iteratee(x, function (err, criteria) { + if (err) return callback(err); + callback(null, {value: x, criteria: criteria}); + }); + }, function (err, results) { + if (err) return callback(err); + callback(null, arrayMap(results.sort(comparator), baseProperty('value'))); + }); + + function comparator(left, right) { + var a = left.criteria, b = right.criteria; + return a < b ? -1 : a > b ? 1 : 0; + } +} + +/** + * Sets a time limit on an asynchronous function. If the function does not call + * its callback within the specified milliseconds, it will be called with a + * timeout error. The code property for the error object will be `'ETIMEDOUT'`. + * + * @name timeout + * @static + * @memberOf module:Utils + * @method + * @category Util + * @param {AsyncFunction} asyncFn - The async function to limit in time. + * @param {number} milliseconds - The specified time limit. + * @param {*} [info] - Any variable you want attached (`string`, `object`, etc) + * to timeout Error for more information.. + * @returns {AsyncFunction} Returns a wrapped function that can be used with any + * of the control flow functions. + * Invoke this function with the same parameters as you would `asyncFunc`. + * @example + * + * function myFunction(foo, callback) { + * doAsyncTask(foo, function(err, data) { + * // handle errors + * if (err) return callback(err); + * + * // do some stuff ... + * + * // return processed data + * return callback(null, data); + * }); + * } + * + * var wrapped = async.timeout(myFunction, 1000); + * + * // call `wrapped` as you would `myFunction` + * wrapped({ bar: 'bar' }, function(err, data) { + * // if `myFunction` takes < 1000 ms to execute, `err` + * // and `data` will have their expected values + * + * // else `err` will be an Error with the code 'ETIMEDOUT' + * }); + */ +function timeout(asyncFn, milliseconds, info) { + var fn = wrapAsync(asyncFn); + + return initialParams(function (args, callback) { + var timedOut = false; + var timer; + + function timeoutCallback() { + var name = asyncFn.name || 'anonymous'; + var error = new Error('Callback function "' + name + '" timed out.'); + error.code = 'ETIMEDOUT'; + if (info) { + error.info = info; + } + timedOut = true; + callback(error); + } + + args.push(function () { + if (!timedOut) { + callback.apply(null, arguments); + clearTimeout(timer); + } + }); + + // setup timer and call original function + timer = setTimeout(timeoutCallback, milliseconds); + fn.apply(null, args); + }); +} + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeCeil = Math.ceil; +var nativeMax = Math.max; + +/** + * The base implementation of `_.range` and `_.rangeRight` which doesn't + * coerce arguments. + * + * @private + * @param {number} start The start of the range. + * @param {number} end The end of the range. + * @param {number} step The value to increment or decrement by. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {Array} Returns the range of numbers. + */ +function baseRange(start, end, step, fromRight) { + var index = -1, + length = nativeMax(nativeCeil((end - start) / (step || 1)), 0), + result = Array(length); + + while (length--) { + result[fromRight ? length : ++index] = start; + start += step; + } + return result; +} + +/** + * The same as [times]{@link module:ControlFlow.times} but runs a maximum of `limit` async operations at a + * time. + * + * @name timesLimit + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.times]{@link module:ControlFlow.times} + * @category Control Flow + * @param {number} count - The number of times to run the function. + * @param {number} limit - The maximum number of async operations at a time. + * @param {AsyncFunction} iteratee - The async function to call `n` times. + * Invoked with the iteration index and a callback: (n, next). + * @param {Function} callback - see [async.map]{@link module:Collections.map}. + */ +function timeLimit(count, limit, iteratee, callback) { + var _iteratee = wrapAsync(iteratee); + mapLimit(baseRange(0, count, 1), limit, _iteratee, callback); +} + +/** + * Calls the `iteratee` function `n` times, and accumulates results in the same + * manner you would use with [map]{@link module:Collections.map}. + * + * @name times + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.map]{@link module:Collections.map} + * @category Control Flow + * @param {number} n - The number of times to run the function. + * @param {AsyncFunction} iteratee - The async function to call `n` times. + * Invoked with the iteration index and a callback: (n, next). + * @param {Function} callback - see {@link module:Collections.map}. + * @example + * + * // Pretend this is some complicated async factory + * var createUser = function(id, callback) { + * callback(null, { + * id: 'user' + id + * }); + * }; + * + * // generate 5 users + * async.times(5, function(n, next) { + * createUser(n, function(err, user) { + * next(err, user); + * }); + * }, function(err, users) { + * // we should now have 5 users + * }); + */ +var times = doLimit(timeLimit, Infinity); + +/** + * The same as [times]{@link module:ControlFlow.times} but runs only a single async operation at a time. + * + * @name timesSeries + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.times]{@link module:ControlFlow.times} + * @category Control Flow + * @param {number} n - The number of times to run the function. + * @param {AsyncFunction} iteratee - The async function to call `n` times. + * Invoked with the iteration index and a callback: (n, next). + * @param {Function} callback - see {@link module:Collections.map}. + */ +var timesSeries = doLimit(timeLimit, 1); + +/** + * A relative of `reduce`. Takes an Object or Array, and iterates over each + * element in series, each step potentially mutating an `accumulator` value. + * The type of the accumulator defaults to the type of collection passed in. + * + * @name transform + * @static + * @memberOf module:Collections + * @method + * @category Collection + * @param {Array|Iterable|Object} coll - A collection to iterate over. + * @param {*} [accumulator] - The initial state of the transform. If omitted, + * it will default to an empty Object or Array, depending on the type of `coll` + * @param {AsyncFunction} iteratee - A function applied to each item in the + * collection that potentially modifies the accumulator. + * Invoked with (accumulator, item, key, callback). + * @param {Function} [callback] - A callback which is called after all the + * `iteratee` functions have finished. Result is the transformed accumulator. + * Invoked with (err, result). + * @example + * + * async.transform([1,2,3], function(acc, item, index, callback) { + * // pointless async: + * process.nextTick(function() { + * acc.push(item * 2) + * callback(null) + * }); + * }, function(err, result) { + * // result is now equal to [2, 4, 6] + * }); + * + * @example + * + * async.transform({a: 1, b: 2, c: 3}, function (obj, val, key, callback) { + * setImmediate(function () { + * obj[key] = val * 2; + * callback(); + * }) + * }, function (err, result) { + * // result is equal to {a: 2, b: 4, c: 6} + * }) + */ +function transform (coll, accumulator, iteratee, callback) { + if (arguments.length <= 3) { + callback = iteratee; + iteratee = accumulator; + accumulator = isArray(coll) ? [] : {}; + } + callback = once(callback || noop); + var _iteratee = wrapAsync(iteratee); + + eachOf(coll, function(v, k, cb) { + _iteratee(accumulator, v, k, cb); + }, function(err) { + callback(err, accumulator); + }); +} + +/** + * It runs each task in series but stops whenever any of the functions were + * successful. If one of the tasks were successful, the `callback` will be + * passed the result of the successful task. If all tasks fail, the callback + * will be passed the error and result (if any) of the final attempt. + * + * @name tryEach + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array|Iterable|Object} tasks - A collection containing functions to + * run, each function is passed a `callback(err, result)` it must call on + * completion with an error `err` (which can be `null`) and an optional `result` + * value. + * @param {Function} [callback] - An optional callback which is called when one + * of the tasks has succeeded, or all have failed. It receives the `err` and + * `result` arguments of the last attempt at completing the `task`. Invoked with + * (err, results). + * @example + * async.tryEach([ + * function getDataFromFirstWebsite(callback) { + * // Try getting the data from the first website + * callback(err, data); + * }, + * function getDataFromSecondWebsite(callback) { + * // First website failed, + * // Try getting the data from the backup website + * callback(err, data); + * } + * ], + * // optional callback + * function(err, results) { + * Now do something with the data. + * }); + * + */ +function tryEach(tasks, callback) { + var error = null; + var result; + callback = callback || noop; + eachSeries(tasks, function(task, callback) { + wrapAsync(task)(function (err, res/*, ...args*/) { + if (arguments.length > 2) { + result = slice(arguments, 1); + } else { + result = res; + } + error = err; + callback(!err); + }); + }, function () { + callback(error, result); + }); +} + +/** + * Undoes a [memoize]{@link module:Utils.memoize}d function, reverting it to the original, + * unmemoized form. Handy for testing. + * + * @name unmemoize + * @static + * @memberOf module:Utils + * @method + * @see [async.memoize]{@link module:Utils.memoize} + * @category Util + * @param {AsyncFunction} fn - the memoized function + * @returns {AsyncFunction} a function that calls the original unmemoized function + */ +function unmemoize(fn) { + return function () { + return (fn.unmemoized || fn).apply(null, arguments); + }; +} + +/** + * Repeatedly call `iteratee`, while `test` returns `true`. Calls `callback` when + * stopped, or an error occurs. + * + * @name whilst + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Function} test - synchronous truth test to perform before each + * execution of `iteratee`. Invoked with (). + * @param {AsyncFunction} iteratee - An async function which is called each time + * `test` passes. Invoked with (callback). + * @param {Function} [callback] - A callback which is called after the test + * function has failed and repeated execution of `iteratee` has stopped. `callback` + * will be passed an error and any arguments passed to the final `iteratee`'s + * callback. Invoked with (err, [results]); + * @returns undefined + * @example + * + * var count = 0; + * async.whilst( + * function() { return count < 5; }, + * function(callback) { + * count++; + * setTimeout(function() { + * callback(null, count); + * }, 1000); + * }, + * function (err, n) { + * // 5 seconds have passed, n = 5 + * } + * ); + */ +function whilst(test, iteratee, callback) { + callback = onlyOnce(callback || noop); + var _iteratee = wrapAsync(iteratee); + if (!test()) return callback(null); + var next = function(err/*, ...args*/) { + if (err) return callback(err); + if (test()) return _iteratee(next); + var args = slice(arguments, 1); + callback.apply(null, [null].concat(args)); + }; + _iteratee(next); +} + +/** + * Repeatedly call `iteratee` until `test` returns `true`. Calls `callback` when + * stopped, or an error occurs. `callback` will be passed an error and any + * arguments passed to the final `iteratee`'s callback. + * + * The inverse of [whilst]{@link module:ControlFlow.whilst}. + * + * @name until + * @static + * @memberOf module:ControlFlow + * @method + * @see [async.whilst]{@link module:ControlFlow.whilst} + * @category Control Flow + * @param {Function} test - synchronous truth test to perform before each + * execution of `iteratee`. Invoked with (). + * @param {AsyncFunction} iteratee - An async function which is called each time + * `test` fails. Invoked with (callback). + * @param {Function} [callback] - A callback which is called after the test + * function has passed and repeated execution of `iteratee` has stopped. `callback` + * will be passed an error and any arguments passed to the final `iteratee`'s + * callback. Invoked with (err, [results]); + */ +function until(test, iteratee, callback) { + whilst(function() { + return !test.apply(this, arguments); + }, iteratee, callback); +} + +/** + * Runs the `tasks` array of functions in series, each passing their results to + * the next in the array. However, if any of the `tasks` pass an error to their + * own callback, the next function is not executed, and the main `callback` is + * immediately called with the error. + * + * @name waterfall + * @static + * @memberOf module:ControlFlow + * @method + * @category Control Flow + * @param {Array} tasks - An array of [async functions]{@link AsyncFunction} + * to run. + * Each function should complete with any number of `result` values. + * The `result` values will be passed as arguments, in order, to the next task. + * @param {Function} [callback] - An optional callback to run once all the + * functions have completed. This will be passed the results of the last task's + * callback. Invoked with (err, [results]). + * @returns undefined + * @example + * + * async.waterfall([ + * function(callback) { + * callback(null, 'one', 'two'); + * }, + * function(arg1, arg2, callback) { + * // arg1 now equals 'one' and arg2 now equals 'two' + * callback(null, 'three'); + * }, + * function(arg1, callback) { + * // arg1 now equals 'three' + * callback(null, 'done'); + * } + * ], function (err, result) { + * // result now equals 'done' + * }); + * + * // Or, with named functions: + * async.waterfall([ + * myFirstFunction, + * mySecondFunction, + * myLastFunction, + * ], function (err, result) { + * // result now equals 'done' + * }); + * function myFirstFunction(callback) { + * callback(null, 'one', 'two'); + * } + * function mySecondFunction(arg1, arg2, callback) { + * // arg1 now equals 'one' and arg2 now equals 'two' + * callback(null, 'three'); + * } + * function myLastFunction(arg1, callback) { + * // arg1 now equals 'three' + * callback(null, 'done'); + * } + */ +var waterfall = function(tasks, callback) { + callback = once(callback || noop); + if (!isArray(tasks)) return callback(new Error('First argument to waterfall must be an array of functions')); + if (!tasks.length) return callback(); + var taskIndex = 0; + + function nextTask(args) { + var task = wrapAsync(tasks[taskIndex++]); + args.push(onlyOnce(next)); + task.apply(null, args); + } + + function next(err/*, ...args*/) { + if (err || taskIndex === tasks.length) { + return callback.apply(null, arguments); + } + nextTask(slice(arguments, 1)); + } + + nextTask([]); +}; + +/** + * An "async function" in the context of Async is an asynchronous function with + * a variable number of parameters, with the final parameter being a callback. + * (`function (arg1, arg2, ..., callback) {}`) + * The final callback is of the form `callback(err, results...)`, which must be + * called once the function is completed. The callback should be called with a + * Error as its first argument to signal that an error occurred. + * Otherwise, if no error occurred, it should be called with `null` as the first + * argument, and any additional `result` arguments that may apply, to signal + * successful completion. + * The callback must be called exactly once, ideally on a later tick of the + * JavaScript event loop. + * + * This type of function is also referred to as a "Node-style async function", + * or a "continuation passing-style function" (CPS). Most of the methods of this + * library are themselves CPS/Node-style async functions, or functions that + * return CPS/Node-style async functions. + * + * Wherever we accept a Node-style async function, we also directly accept an + * [ES2017 `async` function]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function}. + * In this case, the `async` function will not be passed a final callback + * argument, and any thrown error will be used as the `err` argument of the + * implicit callback, and the return value will be used as the `result` value. + * (i.e. a `rejected` of the returned Promise becomes the `err` callback + * argument, and a `resolved` value becomes the `result`.) + * + * Note, due to JavaScript limitations, we can only detect native `async` + * functions and not transpilied implementations. + * Your environment must have `async`/`await` support for this to work. + * (e.g. Node > v7.6, or a recent version of a modern browser). + * If you are using `async` functions through a transpiler (e.g. Babel), you + * must still wrap the function with [asyncify]{@link module:Utils.asyncify}, + * because the `async function` will be compiled to an ordinary function that + * returns a promise. + * + * @typedef {Function} AsyncFunction + * @static + */ + +/** + * Async is a utility module which provides straight-forward, powerful functions + * for working with asynchronous JavaScript. Although originally designed for + * use with [Node.js](http://nodejs.org) and installable via + * `npm install --save async`, it can also be used directly in the browser. + * @module async + * @see AsyncFunction + */ + + +/** + * A collection of `async` functions for manipulating collections, such as + * arrays and objects. + * @module Collections + */ + +/** + * A collection of `async` functions for controlling the flow through a script. + * @module ControlFlow + */ + +/** + * A collection of `async` utility functions. + * @module Utils + */ + +var index = { + apply: apply, + applyEach: applyEach, + applyEachSeries: applyEachSeries, + asyncify: asyncify, + auto: auto, + autoInject: autoInject, + cargo: cargo, + compose: compose, + concat: concat, + concatLimit: concatLimit, + concatSeries: concatSeries, + constant: constant, + detect: detect, + detectLimit: detectLimit, + detectSeries: detectSeries, + dir: dir, + doDuring: doDuring, + doUntil: doUntil, + doWhilst: doWhilst, + during: during, + each: eachLimit, + eachLimit: eachLimit$1, + eachOf: eachOf, + eachOfLimit: eachOfLimit, + eachOfSeries: eachOfSeries, + eachSeries: eachSeries, + ensureAsync: ensureAsync, + every: every, + everyLimit: everyLimit, + everySeries: everySeries, + filter: filter, + filterLimit: filterLimit, + filterSeries: filterSeries, + forever: forever, + groupBy: groupBy, + groupByLimit: groupByLimit, + groupBySeries: groupBySeries, + log: log, + map: map, + mapLimit: mapLimit, + mapSeries: mapSeries, + mapValues: mapValues, + mapValuesLimit: mapValuesLimit, + mapValuesSeries: mapValuesSeries, + memoize: memoize, + nextTick: nextTick, + parallel: parallelLimit, + parallelLimit: parallelLimit$1, + priorityQueue: priorityQueue, + queue: queue$1, + race: race, + reduce: reduce, + reduceRight: reduceRight, + reflect: reflect, + reflectAll: reflectAll, + reject: reject, + rejectLimit: rejectLimit, + rejectSeries: rejectSeries, + retry: retry, + retryable: retryable, + seq: seq, + series: series, + setImmediate: setImmediate$1, + some: some, + someLimit: someLimit, + someSeries: someSeries, + sortBy: sortBy, + timeout: timeout, + times: times, + timesLimit: timeLimit, + timesSeries: timesSeries, + transform: transform, + tryEach: tryEach, + unmemoize: unmemoize, + until: until, + waterfall: waterfall, + whilst: whilst, + + // aliases + all: every, + allLimit: everyLimit, + allSeries: everySeries, + any: some, + anyLimit: someLimit, + anySeries: someSeries, + find: detect, + findLimit: detectLimit, + findSeries: detectSeries, + forEach: eachLimit, + forEachSeries: eachSeries, + forEachLimit: eachLimit$1, + forEachOf: eachOf, + forEachOfSeries: eachOfSeries, + forEachOfLimit: eachOfLimit, + inject: reduce, + foldl: reduce, + foldr: reduceRight, + select: filter, + selectLimit: filterLimit, + selectSeries: filterSeries, + wrapSync: asyncify +}; + +exports['default'] = index; +exports.apply = apply; +exports.applyEach = applyEach; +exports.applyEachSeries = applyEachSeries; +exports.asyncify = asyncify; +exports.auto = auto; +exports.autoInject = autoInject; +exports.cargo = cargo; +exports.compose = compose; +exports.concat = concat; +exports.concatLimit = concatLimit; +exports.concatSeries = concatSeries; +exports.constant = constant; +exports.detect = detect; +exports.detectLimit = detectLimit; +exports.detectSeries = detectSeries; +exports.dir = dir; +exports.doDuring = doDuring; +exports.doUntil = doUntil; +exports.doWhilst = doWhilst; +exports.during = during; +exports.each = eachLimit; +exports.eachLimit = eachLimit$1; +exports.eachOf = eachOf; +exports.eachOfLimit = eachOfLimit; +exports.eachOfSeries = eachOfSeries; +exports.eachSeries = eachSeries; +exports.ensureAsync = ensureAsync; +exports.every = every; +exports.everyLimit = everyLimit; +exports.everySeries = everySeries; +exports.filter = filter; +exports.filterLimit = filterLimit; +exports.filterSeries = filterSeries; +exports.forever = forever; +exports.groupBy = groupBy; +exports.groupByLimit = groupByLimit; +exports.groupBySeries = groupBySeries; +exports.log = log; +exports.map = map; +exports.mapLimit = mapLimit; +exports.mapSeries = mapSeries; +exports.mapValues = mapValues; +exports.mapValuesLimit = mapValuesLimit; +exports.mapValuesSeries = mapValuesSeries; +exports.memoize = memoize; +exports.nextTick = nextTick; +exports.parallel = parallelLimit; +exports.parallelLimit = parallelLimit$1; +exports.priorityQueue = priorityQueue; +exports.queue = queue$1; +exports.race = race; +exports.reduce = reduce; +exports.reduceRight = reduceRight; +exports.reflect = reflect; +exports.reflectAll = reflectAll; +exports.reject = reject; +exports.rejectLimit = rejectLimit; +exports.rejectSeries = rejectSeries; +exports.retry = retry; +exports.retryable = retryable; +exports.seq = seq; +exports.series = series; +exports.setImmediate = setImmediate$1; +exports.some = some; +exports.someLimit = someLimit; +exports.someSeries = someSeries; +exports.sortBy = sortBy; +exports.timeout = timeout; +exports.times = times; +exports.timesLimit = timeLimit; +exports.timesSeries = timesSeries; +exports.transform = transform; +exports.tryEach = tryEach; +exports.unmemoize = unmemoize; +exports.until = until; +exports.waterfall = waterfall; +exports.whilst = whilst; +exports.all = every; +exports.allLimit = everyLimit; +exports.allSeries = everySeries; +exports.any = some; +exports.anyLimit = someLimit; +exports.anySeries = someSeries; +exports.find = detect; +exports.findLimit = detectLimit; +exports.findSeries = detectSeries; +exports.forEach = eachLimit; +exports.forEachSeries = eachSeries; +exports.forEachLimit = eachLimit$1; +exports.forEachOf = eachOf; +exports.forEachOfSeries = eachOfSeries; +exports.forEachOfLimit = eachOfLimit; +exports.inject = reduce; +exports.foldl = reduce; +exports.foldr = reduceRight; +exports.select = filter; +exports.selectLimit = filterLimit; +exports.selectSeries = filterSeries; +exports.wrapSync = asyncify; + +Object.defineProperty(exports, '__esModule', { value: true }); + +}))); + + +/***/ }), + +/***/ 69187: +/***/ ((module) => { + +"use strict"; + +module.exports = balanced; +function balanced(a, b, str) { + if (a instanceof RegExp) a = maybeMatch(a, str); + if (b instanceof RegExp) b = maybeMatch(b, str); + + var r = range(a, b, str); + + return r && { + start: r[0], + end: r[1], + pre: str.slice(0, r[0]), + body: str.slice(r[0] + a.length, r[1]), + post: str.slice(r[1] + b.length) + }; +} + +function maybeMatch(reg, str) { + var m = str.match(reg); + return m ? m[0] : null; +} + +balanced.range = range; +function range(a, b, str) { + var begs, beg, left, right, result; + var ai = str.indexOf(a); + var bi = str.indexOf(b, ai + 1); + var i = ai; + + if (ai >= 0 && bi > 0) { + begs = []; + left = str.length; + + while (i >= 0 && !result) { + if (i == ai) { + begs.push(i); + ai = str.indexOf(a, i + 1); + } else if (begs.length == 1) { + result = [ begs.pop(), bi ]; + } else { + beg = begs.pop(); + if (beg < left) { + left = beg; + right = bi; + } + + bi = str.indexOf(b, i + 1); + } + + i = ai < bi && ai >= 0 ? ai : bi; + } + + if (begs.length) { + result = [ left, right ]; + } + } + + return result; +} + + +/***/ }), + +/***/ 7575: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +exports.byteLength = byteLength +exports.toByteArray = toByteArray +exports.fromByteArray = fromByteArray + +var lookup = [] +var revLookup = [] +var Arr = typeof Uint8Array !== 'undefined' ? Uint8Array : Array + +var code = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' +for (var i = 0, len = code.length; i < len; ++i) { + lookup[i] = code[i] + revLookup[code.charCodeAt(i)] = i +} + +// Support decoding URL-safe base64 strings, as Node.js does. +// See: https://en.wikipedia.org/wiki/Base64#URL_applications +revLookup['-'.charCodeAt(0)] = 62 +revLookup['_'.charCodeAt(0)] = 63 + +function getLens (b64) { + var len = b64.length + + if (len % 4 > 0) { + throw new Error('Invalid string. Length must be a multiple of 4') + } + + // Trim off extra bytes after placeholder bytes are found + // See: https://github.com/beatgammit/base64-js/issues/42 + var validLen = b64.indexOf('=') + if (validLen === -1) validLen = len + + var placeHoldersLen = validLen === len + ? 0 + : 4 - (validLen % 4) + + return [validLen, placeHoldersLen] +} + +// base64 is 4/3 + up to two characters of the original data +function byteLength (b64) { + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} + +function _byteLength (b64, validLen, placeHoldersLen) { + return ((validLen + placeHoldersLen) * 3 / 4) - placeHoldersLen +} + +function toByteArray (b64) { + var tmp + var lens = getLens(b64) + var validLen = lens[0] + var placeHoldersLen = lens[1] + + var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen)) + + var curByte = 0 + + // if there are placeholders, only get up to the last complete 4 chars + var len = placeHoldersLen > 0 + ? validLen - 4 + : validLen + + var i + for (i = 0; i < len; i += 4) { + tmp = + (revLookup[b64.charCodeAt(i)] << 18) | + (revLookup[b64.charCodeAt(i + 1)] << 12) | + (revLookup[b64.charCodeAt(i + 2)] << 6) | + revLookup[b64.charCodeAt(i + 3)] + arr[curByte++] = (tmp >> 16) & 0xFF + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } + + if (placeHoldersLen === 2) { + tmp = + (revLookup[b64.charCodeAt(i)] << 2) | + (revLookup[b64.charCodeAt(i + 1)] >> 4) + arr[curByte++] = tmp & 0xFF + } + + if (placeHoldersLen === 1) { + tmp = + (revLookup[b64.charCodeAt(i)] << 10) | + (revLookup[b64.charCodeAt(i + 1)] << 4) | + (revLookup[b64.charCodeAt(i + 2)] >> 2) + arr[curByte++] = (tmp >> 8) & 0xFF + arr[curByte++] = tmp & 0xFF + } + + return arr +} + +function tripletToBase64 (num) { + return lookup[num >> 18 & 0x3F] + + lookup[num >> 12 & 0x3F] + + lookup[num >> 6 & 0x3F] + + lookup[num & 0x3F] +} + +function encodeChunk (uint8, start, end) { + var tmp + var output = [] + for (var i = start; i < end; i += 3) { + tmp = + ((uint8[i] << 16) & 0xFF0000) + + ((uint8[i + 1] << 8) & 0xFF00) + + (uint8[i + 2] & 0xFF) + output.push(tripletToBase64(tmp)) + } + return output.join('') +} + +function fromByteArray (uint8) { + var tmp + var len = uint8.length + var extraBytes = len % 3 // if we have 1 byte left, pad 2 bytes + var parts = [] + var maxChunkLength = 16383 // must be multiple of 3 + + // go through the array every three bytes, we'll deal with trailing stuff later + for (var i = 0, len2 = len - extraBytes; i < len2; i += maxChunkLength) { + parts.push(encodeChunk( + uint8, i, (i + maxChunkLength) > len2 ? len2 : (i + maxChunkLength) + )) + } + + // pad the end with zeros, but make sure to not forget the extra bytes + if (extraBytes === 1) { + tmp = uint8[len - 1] + parts.push( + lookup[tmp >> 2] + + lookup[(tmp << 4) & 0x3F] + + '==' + ) + } else if (extraBytes === 2) { + tmp = (uint8[len - 2] << 8) + uint8[len - 1] + parts.push( + lookup[tmp >> 10] + + lookup[(tmp >> 4) & 0x3F] + + lookup[(tmp << 2) & 0x3F] + + '=' + ) + } + + return parts.join('') +} + + +/***/ }), + +/***/ 59833: +/***/ (function(module) { + +;(function (globalObject) { + 'use strict'; + +/* + * bignumber.js v7.2.1 + * A JavaScript library for arbitrary-precision arithmetic. + * https://github.com/MikeMcl/bignumber.js + * Copyright (c) 2018 Michael Mclaughlin + * MIT Licensed. + * + * BigNumber.prototype methods | BigNumber methods + * | + * absoluteValue abs | clone + * comparedTo | config set + * decimalPlaces dp | DECIMAL_PLACES + * dividedBy div | ROUNDING_MODE + * dividedToIntegerBy idiv | EXPONENTIAL_AT + * exponentiatedBy pow | RANGE + * integerValue | CRYPTO + * isEqualTo eq | MODULO_MODE + * isFinite | POW_PRECISION + * isGreaterThan gt | FORMAT + * isGreaterThanOrEqualTo gte | ALPHABET + * isInteger | isBigNumber + * isLessThan lt | maximum max + * isLessThanOrEqualTo lte | minimum min + * isNaN | random + * isNegative | + * isPositive | + * isZero | + * minus | + * modulo mod | + * multipliedBy times | + * negated | + * plus | + * precision sd | + * shiftedBy | + * squareRoot sqrt | + * toExponential | + * toFixed | + * toFormat | + * toFraction | + * toJSON | + * toNumber | + * toPrecision | + * toString | + * valueOf | + * + */ + + + var BigNumber, + isNumeric = /^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i, + + mathceil = Math.ceil, + mathfloor = Math.floor, + + bignumberError = '[BigNumber Error] ', + tooManyDigits = bignumberError + 'Number primitive has more than 15 significant digits: ', + + BASE = 1e14, + LOG_BASE = 14, + MAX_SAFE_INTEGER = 0x1fffffffffffff, // 2^53 - 1 + // MAX_INT32 = 0x7fffffff, // 2^31 - 1 + POWS_TEN = [1, 10, 100, 1e3, 1e4, 1e5, 1e6, 1e7, 1e8, 1e9, 1e10, 1e11, 1e12, 1e13], + SQRT_BASE = 1e7, + + // EDITABLE + // The limit on the value of DECIMAL_PLACES, TO_EXP_NEG, TO_EXP_POS, MIN_EXP, MAX_EXP, and + // the arguments to toExponential, toFixed, toFormat, and toPrecision. + MAX = 1E9; // 0 to MAX_INT32 + + + /* + * Create and return a BigNumber constructor. + */ + function clone(configObject) { + var div, convertBase, parseNumeric, + P = BigNumber.prototype = { constructor: BigNumber, toString: null, valueOf: null }, + ONE = new BigNumber(1), + + + //----------------------------- EDITABLE CONFIG DEFAULTS ------------------------------- + + + // The default values below must be integers within the inclusive ranges stated. + // The values can also be changed at run-time using BigNumber.set. + + // The maximum number of decimal places for operations involving division. + DECIMAL_PLACES = 20, // 0 to MAX + + // The rounding mode used when rounding to the above decimal places, and when using + // toExponential, toFixed, toFormat and toPrecision, and round (default value). + // UP 0 Away from zero. + // DOWN 1 Towards zero. + // CEIL 2 Towards +Infinity. + // FLOOR 3 Towards -Infinity. + // HALF_UP 4 Towards nearest neighbour. If equidistant, up. + // HALF_DOWN 5 Towards nearest neighbour. If equidistant, down. + // HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour. + // HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity. + // HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity. + ROUNDING_MODE = 4, // 0 to 8 + + // EXPONENTIAL_AT : [TO_EXP_NEG , TO_EXP_POS] + + // The exponent value at and beneath which toString returns exponential notation. + // Number type: -7 + TO_EXP_NEG = -7, // 0 to -MAX + + // The exponent value at and above which toString returns exponential notation. + // Number type: 21 + TO_EXP_POS = 21, // 0 to MAX + + // RANGE : [MIN_EXP, MAX_EXP] + + // The minimum exponent value, beneath which underflow to zero occurs. + // Number type: -324 (5e-324) + MIN_EXP = -1e7, // -1 to -MAX + + // The maximum exponent value, above which overflow to Infinity occurs. + // Number type: 308 (1.7976931348623157e+308) + // For MAX_EXP > 1e7, e.g. new BigNumber('1e100000000').plus(1) may be slow. + MAX_EXP = 1e7, // 1 to MAX + + // Whether to use cryptographically-secure random number generation, if available. + CRYPTO = false, // true or false + + // The modulo mode used when calculating the modulus: a mod n. + // The quotient (q = a / n) is calculated according to the corresponding rounding mode. + // The remainder (r) is calculated as: r = a - n * q. + // + // UP 0 The remainder is positive if the dividend is negative, else is negative. + // DOWN 1 The remainder has the same sign as the dividend. + // This modulo mode is commonly known as 'truncated division' and is + // equivalent to (a % n) in JavaScript. + // FLOOR 3 The remainder has the same sign as the divisor (Python %). + // HALF_EVEN 6 This modulo mode implements the IEEE 754 remainder function. + // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). + // The remainder is always positive. + // + // The truncated division, floored division, Euclidian division and IEEE 754 remainder + // modes are commonly used for the modulus operation. + // Although the other rounding modes can also be used, they may not give useful results. + MODULO_MODE = 1, // 0 to 9 + + // The maximum number of significant digits of the result of the exponentiatedBy operation. + // If POW_PRECISION is 0, there will be unlimited significant digits. + POW_PRECISION = 0, // 0 to MAX + + // The format specification used by the BigNumber.prototype.toFormat method. + FORMAT = { + decimalSeparator: '.', + groupSeparator: ',', + groupSize: 3, + secondaryGroupSize: 0, + fractionGroupSeparator: '\xA0', // non-breaking space + fractionGroupSize: 0 + }, + + // The alphabet used for base conversion. + // It must be at least 2 characters long, with no '.' or repeated character. + // '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$_' + ALPHABET = '0123456789abcdefghijklmnopqrstuvwxyz'; + + + //------------------------------------------------------------------------------------------ + + + // CONSTRUCTOR + + + /* + * The BigNumber constructor and exported function. + * Create and return a new instance of a BigNumber object. + * + * n {number|string|BigNumber} A numeric value. + * [b] {number} The base of n. Integer, 2 to ALPHABET.length inclusive. + */ + function BigNumber(n, b) { + var alphabet, c, caseChanged, e, i, isNum, len, str, + x = this; + + // Enable constructor usage without new. + if (!(x instanceof BigNumber)) { + + // Don't throw on constructor call without new (#81). + // '[BigNumber Error] Constructor call without new: {n}' + //throw Error(bignumberError + ' Constructor call without new: ' + n); + return new BigNumber(n, b); + } + + if (b == null) { + + // Duplicate. + if (n instanceof BigNumber) { + x.s = n.s; + x.e = n.e; + x.c = (n = n.c) ? n.slice() : n; + return; + } + + isNum = typeof n == 'number'; + + if (isNum && n * 0 == 0) { + + // Use `1 / n` to handle minus zero also. + x.s = 1 / n < 0 ? (n = -n, -1) : 1; + + // Faster path for integers. + if (n === ~~n) { + for (e = 0, i = n; i >= 10; i /= 10, e++); + x.e = e; + x.c = [n]; + return; + } + + str = n + ''; + } else { + if (!isNumeric.test(str = n + '')) return parseNumeric(x, str, isNum); + x.s = str.charCodeAt(0) == 45 ? (str = str.slice(1), -1) : 1; + } + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + + // Exponential form? + if ((i = str.search(/e/i)) > 0) { + + // Determine exponent. + if (e < 0) e = i; + e += +str.slice(i + 1); + str = str.substring(0, i); + } else if (e < 0) { + + // Integer. + e = str.length; + } + + } else { + + // '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + intCheck(b, 2, ALPHABET.length, 'Base'); + str = n + ''; + + // Allow exponential notation to be used with base 10 argument, while + // also rounding to DECIMAL_PLACES as with other bases. + if (b == 10) { + x = new BigNumber(n instanceof BigNumber ? n : str); + return round(x, DECIMAL_PLACES + x.e + 1, ROUNDING_MODE); + } + + isNum = typeof n == 'number'; + + if (isNum) { + + // Avoid potential interpretation of Infinity and NaN as base 44+ values. + if (n * 0 != 0) return parseNumeric(x, str, isNum, b); + + x.s = 1 / n < 0 ? (str = str.slice(1), -1) : 1; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (BigNumber.DEBUG && str.replace(/^0\.0*|\./, '').length > 15) { + throw Error + (tooManyDigits + n); + } + + // Prevent later check for length on converted number. + isNum = false; + } else { + x.s = str.charCodeAt(0) === 45 ? (str = str.slice(1), -1) : 1; + } + + alphabet = ALPHABET.slice(0, b); + e = i = 0; + + // Check that str is a valid base b number. + // Don't use RegExp so alphabet can contain special characters. + for (len = str.length; i < len; i++) { + if (alphabet.indexOf(c = str.charAt(i)) < 0) { + if (c == '.') { + + // If '.' is not the first character and it has not be found before. + if (i > e) { + e = len; + continue; + } + } else if (!caseChanged) { + + // Allow e.g. hexadecimal 'FF' as well as 'ff'. + if (str == str.toUpperCase() && (str = str.toLowerCase()) || + str == str.toLowerCase() && (str = str.toUpperCase())) { + caseChanged = true; + i = -1; + e = 0; + continue; + } + } + + return parseNumeric(x, n + '', isNum, b); + } + } + + str = convertBase(str, b, 10, x.s); + + // Decimal point? + if ((e = str.indexOf('.')) > -1) str = str.replace('.', ''); + else e = str.length; + } + + // Determine leading zeros. + for (i = 0; str.charCodeAt(i) === 48; i++); + + // Determine trailing zeros. + for (len = str.length; str.charCodeAt(--len) === 48;); + + str = str.slice(i, ++len); + + if (str) { + len -= i; + + // '[BigNumber Error] Number primitive has more than 15 significant digits: {n}' + if (isNum && BigNumber.DEBUG && + len > 15 && (n > MAX_SAFE_INTEGER || n !== mathfloor(n))) { + throw Error + (tooManyDigits + (x.s * n)); + } + + e = e - i - 1; + + // Overflow? + if (e > MAX_EXP) { + + // Infinity. + x.c = x.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + x.c = [x.e = 0]; + } else { + x.e = e; + x.c = []; + + // Transform base + + // e is the base 10 exponent. + // i is where to slice str to get the first element of the coefficient array. + i = (e + 1) % LOG_BASE; + if (e < 0) i += LOG_BASE; + + if (i < len) { + if (i) x.c.push(+str.slice(0, i)); + + for (len -= LOG_BASE; i < len;) { + x.c.push(+str.slice(i, i += LOG_BASE)); + } + + str = str.slice(i); + i = LOG_BASE - str.length; + } else { + i -= len; + } + + for (; i--; str += '0'); + x.c.push(+str); + } + } else { + + // Zero. + x.c = [x.e = 0]; + } + } + + + // CONSTRUCTOR PROPERTIES + + + BigNumber.clone = clone; + + BigNumber.ROUND_UP = 0; + BigNumber.ROUND_DOWN = 1; + BigNumber.ROUND_CEIL = 2; + BigNumber.ROUND_FLOOR = 3; + BigNumber.ROUND_HALF_UP = 4; + BigNumber.ROUND_HALF_DOWN = 5; + BigNumber.ROUND_HALF_EVEN = 6; + BigNumber.ROUND_HALF_CEIL = 7; + BigNumber.ROUND_HALF_FLOOR = 8; + BigNumber.EUCLID = 9; + + + /* + * Configure infrequently-changing library-wide settings. + * + * Accept an object with the following optional properties (if the value of a property is + * a number, it must be an integer within the inclusive range stated): + * + * DECIMAL_PLACES {number} 0 to MAX + * ROUNDING_MODE {number} 0 to 8 + * EXPONENTIAL_AT {number|number[]} -MAX to MAX or [-MAX to 0, 0 to MAX] + * RANGE {number|number[]} -MAX to MAX (not zero) or [-MAX to -1, 1 to MAX] + * CRYPTO {boolean} true or false + * MODULO_MODE {number} 0 to 9 + * POW_PRECISION {number} 0 to MAX + * ALPHABET {string} A string of two or more unique characters which does + * not contain '.'. + * FORMAT {object} An object with some of the following properties: + * decimalSeparator {string} + * groupSeparator {string} + * groupSize {number} + * secondaryGroupSize {number} + * fractionGroupSeparator {string} + * fractionGroupSize {number} + * + * (The values assigned to the above FORMAT object properties are not checked for validity.) + * + * E.g. + * BigNumber.config({ DECIMAL_PLACES : 20, ROUNDING_MODE : 4 }) + * + * Ignore properties/parameters set to null or undefined, except for ALPHABET. + * + * Return an object with the properties current values. + */ + BigNumber.config = BigNumber.set = function (obj) { + var p, v; + + if (obj != null) { + + if (typeof obj == 'object') { + + // DECIMAL_PLACES {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] DECIMAL_PLACES {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'DECIMAL_PLACES')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + DECIMAL_PLACES = v; + } + + // ROUNDING_MODE {number} Integer, 0 to 8 inclusive. + // '[BigNumber Error] ROUNDING_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'ROUNDING_MODE')) { + v = obj[p]; + intCheck(v, 0, 8, p); + ROUNDING_MODE = v; + } + + // EXPONENTIAL_AT {number|number[]} + // Integer, -MAX to MAX inclusive or + // [integer -MAX to 0 inclusive, 0 to MAX inclusive]. + // '[BigNumber Error] EXPONENTIAL_AT {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'EXPONENTIAL_AT')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, 0, p); + intCheck(v[1], 0, MAX, p); + TO_EXP_NEG = v[0]; + TO_EXP_POS = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + TO_EXP_NEG = -(TO_EXP_POS = v < 0 ? -v : v); + } + } + + // RANGE {number|number[]} Non-zero integer, -MAX to MAX inclusive or + // [integer -MAX to -1 inclusive, integer 1 to MAX inclusive]. + // '[BigNumber Error] RANGE {not a primitive number|not an integer|out of range|cannot be zero}: {v}' + if (obj.hasOwnProperty(p = 'RANGE')) { + v = obj[p]; + if (isArray(v)) { + intCheck(v[0], -MAX, -1, p); + intCheck(v[1], 1, MAX, p); + MIN_EXP = v[0]; + MAX_EXP = v[1]; + } else { + intCheck(v, -MAX, MAX, p); + if (v) { + MIN_EXP = -(MAX_EXP = v < 0 ? -v : v); + } else { + throw Error + (bignumberError + p + ' cannot be zero: ' + v); + } + } + } + + // CRYPTO {boolean} true or false. + // '[BigNumber Error] CRYPTO not true or false: {v}' + // '[BigNumber Error] crypto unavailable' + if (obj.hasOwnProperty(p = 'CRYPTO')) { + v = obj[p]; + if (v === !!v) { + if (v) { + if (typeof crypto != 'undefined' && crypto && + (crypto.getRandomValues || crypto.randomBytes)) { + CRYPTO = v; + } else { + CRYPTO = !v; + throw Error + (bignumberError + 'crypto unavailable'); + } + } else { + CRYPTO = v; + } + } else { + throw Error + (bignumberError + p + ' not true or false: ' + v); + } + } + + // MODULO_MODE {number} Integer, 0 to 9 inclusive. + // '[BigNumber Error] MODULO_MODE {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'MODULO_MODE')) { + v = obj[p]; + intCheck(v, 0, 9, p); + MODULO_MODE = v; + } + + // POW_PRECISION {number} Integer, 0 to MAX inclusive. + // '[BigNumber Error] POW_PRECISION {not a primitive number|not an integer|out of range}: {v}' + if (obj.hasOwnProperty(p = 'POW_PRECISION')) { + v = obj[p]; + intCheck(v, 0, MAX, p); + POW_PRECISION = v; + } + + // FORMAT {object} + // '[BigNumber Error] FORMAT not an object: {v}' + if (obj.hasOwnProperty(p = 'FORMAT')) { + v = obj[p]; + if (typeof v == 'object') FORMAT = v; + else throw Error + (bignumberError + p + ' not an object: ' + v); + } + + // ALPHABET {string} + // '[BigNumber Error] ALPHABET invalid: {v}' + if (obj.hasOwnProperty(p = 'ALPHABET')) { + v = obj[p]; + + // Disallow if only one character, or contains '.' or a repeated character. + if (typeof v == 'string' && !/^.$|\.|(.).*\1/.test(v)) { + ALPHABET = v; + } else { + throw Error + (bignumberError + p + ' invalid: ' + v); + } + } + + } else { + + // '[BigNumber Error] Object expected: {v}' + throw Error + (bignumberError + 'Object expected: ' + obj); + } + } + + return { + DECIMAL_PLACES: DECIMAL_PLACES, + ROUNDING_MODE: ROUNDING_MODE, + EXPONENTIAL_AT: [TO_EXP_NEG, TO_EXP_POS], + RANGE: [MIN_EXP, MAX_EXP], + CRYPTO: CRYPTO, + MODULO_MODE: MODULO_MODE, + POW_PRECISION: POW_PRECISION, + FORMAT: FORMAT, + ALPHABET: ALPHABET + }; + }; + + + /* + * Return true if v is a BigNumber instance, otherwise return false. + * + * v {any} + */ + BigNumber.isBigNumber = function (v) { + return v instanceof BigNumber || v && v._isBigNumber === true || false; + }; + + + /* + * Return a new BigNumber whose value is the maximum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.maximum = BigNumber.max = function () { + return maxOrMin(arguments, P.lt); + }; + + + /* + * Return a new BigNumber whose value is the minimum of the arguments. + * + * arguments {number|string|BigNumber} + */ + BigNumber.minimum = BigNumber.min = function () { + return maxOrMin(arguments, P.gt); + }; + + + /* + * Return a new BigNumber with a random value equal to or greater than 0 and less than 1, + * and with dp, or DECIMAL_PLACES if dp is omitted, decimal places (or less if trailing + * zeros are produced). + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp}' + * '[BigNumber Error] crypto unavailable' + */ + BigNumber.random = (function () { + var pow2_53 = 0x20000000000000; + + // Return a 53 bit integer n, where 0 <= n < 9007199254740992. + // Check if Math.random() produces more than 32 bits of randomness. + // If it does, assume at least 53 bits are produced, otherwise assume at least 30 bits. + // 0x40000000 is 2^30, 0x800000 is 2^23, 0x1fffff is 2^21 - 1. + var random53bitInt = (Math.random() * pow2_53) & 0x1fffff + ? function () { return mathfloor(Math.random() * pow2_53); } + : function () { return ((Math.random() * 0x40000000 | 0) * 0x800000) + + (Math.random() * 0x800000 | 0); }; + + return function (dp) { + var a, b, e, k, v, + i = 0, + c = [], + rand = new BigNumber(ONE); + + if (dp == null) dp = DECIMAL_PLACES; + else intCheck(dp, 0, MAX); + + k = mathceil(dp / LOG_BASE); + + if (CRYPTO) { + + // Browsers supporting crypto.getRandomValues. + if (crypto.getRandomValues) { + + a = crypto.getRandomValues(new Uint32Array(k *= 2)); + + for (; i < k;) { + + // 53 bits: + // ((Math.pow(2, 32) - 1) * Math.pow(2, 21)).toString(2) + // 11111 11111111 11111111 11111111 11100000 00000000 00000000 + // ((Math.pow(2, 32) - 1) >>> 11).toString(2) + // 11111 11111111 11111111 + // 0x20000 is 2^21. + v = a[i] * 0x20000 + (a[i + 1] >>> 11); + + // Rejection sampling: + // 0 <= v < 9007199254740992 + // Probability that v >= 9e15, is + // 7199254740992 / 9007199254740992 ~= 0.0008, i.e. 1 in 1251 + if (v >= 9e15) { + b = crypto.getRandomValues(new Uint32Array(2)); + a[i] = b[0]; + a[i + 1] = b[1]; + } else { + + // 0 <= v <= 8999999999999999 + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 2; + } + } + i = k / 2; + + // Node.js supporting crypto.randomBytes. + } else if (crypto.randomBytes) { + + // buffer + a = crypto.randomBytes(k *= 7); + + for (; i < k;) { + + // 0x1000000000000 is 2^48, 0x10000000000 is 2^40 + // 0x100000000 is 2^32, 0x1000000 is 2^24 + // 11111 11111111 11111111 11111111 11111111 11111111 11111111 + // 0 <= v < 9007199254740992 + v = ((a[i] & 31) * 0x1000000000000) + (a[i + 1] * 0x10000000000) + + (a[i + 2] * 0x100000000) + (a[i + 3] * 0x1000000) + + (a[i + 4] << 16) + (a[i + 5] << 8) + a[i + 6]; + + if (v >= 9e15) { + crypto.randomBytes(7).copy(a, i); + } else { + + // 0 <= (v % 1e14) <= 99999999999999 + c.push(v % 1e14); + i += 7; + } + } + i = k / 7; + } else { + CRYPTO = false; + throw Error + (bignumberError + 'crypto unavailable'); + } + } + + // Use Math.random. + if (!CRYPTO) { + + for (; i < k;) { + v = random53bitInt(); + if (v < 9e15) c[i++] = v % 1e14; + } + } + + k = c[--i]; + dp %= LOG_BASE; + + // Convert trailing digits to zeros according to dp. + if (k && dp) { + v = POWS_TEN[LOG_BASE - dp]; + c[i] = mathfloor(k / v) * v; + } + + // Remove trailing elements which are zero. + for (; c[i] === 0; c.pop(), i--); + + // Zero? + if (i < 0) { + c = [e = 0]; + } else { + + // Remove leading elements which are zero and adjust exponent accordingly. + for (e = -1 ; c[0] === 0; c.splice(0, 1), e -= LOG_BASE); + + // Count the digits of the first element of c to determine leading zeros, and... + for (i = 1, v = c[0]; v >= 10; v /= 10, i++); + + // adjust the exponent accordingly. + if (i < LOG_BASE) e -= LOG_BASE - i; + } + + rand.e = e; + rand.c = c; + return rand; + }; + })(); + + + // PRIVATE FUNCTIONS + + + // Called by BigNumber and BigNumber.prototype.toString. + convertBase = (function () { + var decimal = '0123456789'; + + /* + * Convert string of baseIn to an array of numbers of baseOut. + * Eg. toBaseOut('255', 10, 16) returns [15, 15]. + * Eg. toBaseOut('ff', 16, 10) returns [2, 5, 5]. + */ + function toBaseOut(str, baseIn, baseOut, alphabet) { + var j, + arr = [0], + arrL, + i = 0, + len = str.length; + + for (; i < len;) { + for (arrL = arr.length; arrL--; arr[arrL] *= baseIn); + + arr[0] += alphabet.indexOf(str.charAt(i++)); + + for (j = 0; j < arr.length; j++) { + + if (arr[j] > baseOut - 1) { + if (arr[j + 1] == null) arr[j + 1] = 0; + arr[j + 1] += arr[j] / baseOut | 0; + arr[j] %= baseOut; + } + } + } + + return arr.reverse(); + } + + // Convert a numeric string of baseIn to a numeric string of baseOut. + // If the caller is toString, we are converting from base 10 to baseOut. + // If the caller is BigNumber, we are converting from baseIn to base 10. + return function (str, baseIn, baseOut, sign, callerIsToString) { + var alphabet, d, e, k, r, x, xc, y, + i = str.indexOf('.'), + dp = DECIMAL_PLACES, + rm = ROUNDING_MODE; + + // Non-integer. + if (i >= 0) { + k = POW_PRECISION; + + // Unlimited precision. + POW_PRECISION = 0; + str = str.replace('.', ''); + y = new BigNumber(baseIn); + x = y.pow(str.length - i); + POW_PRECISION = k; + + // Convert str as if an integer, then restore the fraction part by dividing the + // result by its base raised to a power. + + y.c = toBaseOut(toFixedPoint(coeffToString(x.c), x.e, '0'), + 10, baseOut, decimal); + y.e = y.c.length; + } + + // Convert the number as integer. + + xc = toBaseOut(str, baseIn, baseOut, callerIsToString + ? (alphabet = ALPHABET, decimal) + : (alphabet = decimal, ALPHABET)); + + // xc now represents str as an integer and converted to baseOut. e is the exponent. + e = k = xc.length; + + // Remove trailing zeros. + for (; xc[--k] == 0; xc.pop()); + + // Zero? + if (!xc[0]) return alphabet.charAt(0); + + // Does str represent an integer? If so, no need for the division. + if (i < 0) { + --e; + } else { + x.c = xc; + x.e = e; + + // The sign is needed for correct rounding. + x.s = sign; + x = div(x, y, dp, rm, baseOut); + xc = x.c; + r = x.r; + e = x.e; + } + + // xc now represents str converted to baseOut. + + // THe index of the rounding digit. + d = e + dp + 1; + + // The rounding digit: the digit to the right of the digit that may be rounded up. + i = xc[d]; + + // Look at the rounding digits and mode to determine whether to round up. + + k = baseOut / 2; + r = r || d < 0 || xc[d + 1] != null; + + r = rm < 4 ? (i != null || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : i > k || i == k &&(rm == 4 || r || rm == 6 && xc[d - 1] & 1 || + rm == (x.s < 0 ? 8 : 7)); + + // If the index of the rounding digit is not greater than zero, or xc represents + // zero, then the result of the base conversion is zero or, if rounding up, a value + // such as 0.00001. + if (d < 1 || !xc[0]) { + + // 1^-dp or 0 + str = r ? toFixedPoint(alphabet.charAt(1), -dp, alphabet.charAt(0)) + : alphabet.charAt(0); + } else { + + // Truncate xc to the required number of decimal places. + xc.length = d; + + // Round up? + if (r) { + + // Rounding up may mean the previous digit has to be rounded up and so on. + for (--baseOut; ++xc[--d] > baseOut;) { + xc[d] = 0; + + if (!d) { + ++e; + xc = [1].concat(xc); + } + } + } + + // Determine trailing zeros. + for (k = xc.length; !xc[--k];); + + // E.g. [4, 11, 15] becomes 4bf. + for (i = 0, str = ''; i <= k; str += alphabet.charAt(xc[i++])); + + // Add leading zeros, decimal point and trailing zeros as required. + str = toFixedPoint(str, e, alphabet.charAt(0)); + } + + // The caller will add the sign. + return str; + }; + })(); + + + // Perform division in the specified base. Called by div and convertBase. + div = (function () { + + // Assume non-zero x and k. + function multiply(x, k, base) { + var m, temp, xlo, xhi, + carry = 0, + i = x.length, + klo = k % SQRT_BASE, + khi = k / SQRT_BASE | 0; + + for (x = x.slice(); i--;) { + xlo = x[i] % SQRT_BASE; + xhi = x[i] / SQRT_BASE | 0; + m = khi * xlo + xhi * klo; + temp = klo * xlo + ((m % SQRT_BASE) * SQRT_BASE) + carry; + carry = (temp / base | 0) + (m / SQRT_BASE | 0) + khi * xhi; + x[i] = temp % base; + } + + if (carry) x = [carry].concat(x); + + return x; + } + + function compare(a, b, aL, bL) { + var i, cmp; + + if (aL != bL) { + cmp = aL > bL ? 1 : -1; + } else { + + for (i = cmp = 0; i < aL; i++) { + + if (a[i] != b[i]) { + cmp = a[i] > b[i] ? 1 : -1; + break; + } + } + } + + return cmp; + } + + function subtract(a, b, aL, base) { + var i = 0; + + // Subtract b from a. + for (; aL--;) { + a[aL] -= i; + i = a[aL] < b[aL] ? 1 : 0; + a[aL] = i * base + a[aL] - b[aL]; + } + + // Remove leading zeros. + for (; !a[0] && a.length > 1; a.splice(0, 1)); + } + + // x: dividend, y: divisor. + return function (x, y, dp, rm, base) { + var cmp, e, i, more, n, prod, prodL, q, qc, rem, remL, rem0, xi, xL, yc0, + yL, yz, + s = x.s == y.s ? 1 : -1, + xc = x.c, + yc = y.c; + + // Either NaN, Infinity or 0? + if (!xc || !xc[0] || !yc || !yc[0]) { + + return new BigNumber( + + // Return NaN if either NaN, or both Infinity or 0. + !x.s || !y.s || (xc ? yc && xc[0] == yc[0] : !yc) ? NaN : + + // Return ±0 if x is ±0 or y is ±Infinity, or return ±Infinity as y is ±0. + xc && xc[0] == 0 || !yc ? s * 0 : s / 0 + ); + } + + q = new BigNumber(s); + qc = q.c = []; + e = x.e - y.e; + s = dp + e + 1; + + if (!base) { + base = BASE; + e = bitFloor(x.e / LOG_BASE) - bitFloor(y.e / LOG_BASE); + s = s / LOG_BASE | 0; + } + + // Result exponent may be one less then the current value of e. + // The coefficients of the BigNumbers from convertBase may have trailing zeros. + for (i = 0; yc[i] == (xc[i] || 0); i++); + + if (yc[i] > (xc[i] || 0)) e--; + + if (s < 0) { + qc.push(1); + more = true; + } else { + xL = xc.length; + yL = yc.length; + i = 0; + s += 2; + + // Normalise xc and yc so highest order digit of yc is >= base / 2. + + n = mathfloor(base / (yc[0] + 1)); + + // Not necessary, but to handle odd bases where yc[0] == (base / 2) - 1. + // if (n > 1 || n++ == 1 && yc[0] < base / 2) { + if (n > 1) { + yc = multiply(yc, n, base); + xc = multiply(xc, n, base); + yL = yc.length; + xL = xc.length; + } + + xi = yL; + rem = xc.slice(0, yL); + remL = rem.length; + + // Add zeros to make remainder as long as divisor. + for (; remL < yL; rem[remL++] = 0); + yz = yc.slice(); + yz = [0].concat(yz); + yc0 = yc[0]; + if (yc[1] >= base / 2) yc0++; + // Not necessary, but to prevent trial digit n > base, when using base 3. + // else if (base == 3 && yc0 == 1) yc0 = 1 + 1e-15; + + do { + n = 0; + + // Compare divisor and remainder. + cmp = compare(yc, rem, yL, remL); + + // If divisor < remainder. + if (cmp < 0) { + + // Calculate trial digit, n. + + rem0 = rem[0]; + if (yL != remL) rem0 = rem0 * base + (rem[1] || 0); + + // n is how many times the divisor goes into the current remainder. + n = mathfloor(rem0 / yc0); + + // Algorithm: + // product = divisor multiplied by trial digit (n). + // Compare product and remainder. + // If product is greater than remainder: + // Subtract divisor from product, decrement trial digit. + // Subtract product from remainder. + // If product was less than remainder at the last compare: + // Compare new remainder and divisor. + // If remainder is greater than divisor: + // Subtract divisor from remainder, increment trial digit. + + if (n > 1) { + + // n may be > base only when base is 3. + if (n >= base) n = base - 1; + + // product = divisor * trial digit. + prod = multiply(yc, n, base); + prodL = prod.length; + remL = rem.length; + + // Compare product and remainder. + // If product > remainder then trial digit n too high. + // n is 1 too high about 5% of the time, and is not known to have + // ever been more than 1 too high. + while (compare(prod, rem, prodL, remL) == 1) { + n--; + + // Subtract divisor from product. + subtract(prod, yL < prodL ? yz : yc, prodL, base); + prodL = prod.length; + cmp = 1; + } + } else { + + // n is 0 or 1, cmp is -1. + // If n is 0, there is no need to compare yc and rem again below, + // so change cmp to 1 to avoid it. + // If n is 1, leave cmp as -1, so yc and rem are compared again. + if (n == 0) { + + // divisor < remainder, so n must be at least 1. + cmp = n = 1; + } + + // product = divisor + prod = yc.slice(); + prodL = prod.length; + } + + if (prodL < remL) prod = [0].concat(prod); + + // Subtract product from remainder. + subtract(rem, prod, remL, base); + remL = rem.length; + + // If product was < remainder. + if (cmp == -1) { + + // Compare divisor and new remainder. + // If divisor < new remainder, subtract divisor from remainder. + // Trial digit n too low. + // n is 1 too low about 5% of the time, and very rarely 2 too low. + while (compare(yc, rem, yL, remL) < 1) { + n++; + + // Subtract divisor from remainder. + subtract(rem, yL < remL ? yz : yc, remL, base); + remL = rem.length; + } + } + } else if (cmp === 0) { + n++; + rem = [0]; + } // else cmp === 1 and n will be 0 + + // Add the next digit, n, to the result array. + qc[i++] = n; + + // Update the remainder. + if (rem[0]) { + rem[remL++] = xc[xi] || 0; + } else { + rem = [xc[xi]]; + remL = 1; + } + } while ((xi++ < xL || rem[0] != null) && s--); + + more = rem[0] != null; + + // Leading zero? + if (!qc[0]) qc.splice(0, 1); + } + + if (base == BASE) { + + // To calculate q.e, first get the number of digits of qc[0]. + for (i = 1, s = qc[0]; s >= 10; s /= 10, i++); + + round(q, dp + (q.e = i + e * LOG_BASE - 1) + 1, rm, more); + + // Caller is convertBase. + } else { + q.e = e; + q.r = +more; + } + + return q; + }; + })(); + + + /* + * Return a string representing the value of BigNumber n in fixed-point or exponential + * notation rounded to the specified decimal places or significant digits. + * + * n: a BigNumber. + * i: the index of the last digit required (i.e. the digit that may be rounded up). + * rm: the rounding mode. + * id: 1 (toExponential) or 2 (toPrecision). + */ + function format(n, i, rm, id) { + var c0, e, ne, len, str; + + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + if (!n.c) return n.toString(); + + c0 = n.c[0]; + ne = n.e; + + if (i == null) { + str = coeffToString(n.c); + str = id == 1 || id == 2 && ne <= TO_EXP_NEG + ? toExponential(str, ne) + : toFixedPoint(str, ne, '0'); + } else { + n = round(new BigNumber(n), i, rm); + + // n.e may have changed if the value was rounded up. + e = n.e; + + str = coeffToString(n.c); + len = str.length; + + // toPrecision returns exponential notation if the number of significant digits + // specified is less than the number of digits necessary to represent the integer + // part of the value in fixed-point notation. + + // Exponential notation. + if (id == 1 || id == 2 && (i <= e || e <= TO_EXP_NEG)) { + + // Append zeros? + for (; len < i; str += '0', len++); + str = toExponential(str, e); + + // Fixed-point notation. + } else { + i -= ne; + str = toFixedPoint(str, e, '0'); + + // Append zeros? + if (e + 1 > len) { + if (--i > 0) for (str += '.'; i--; str += '0'); + } else { + i += e - len; + if (i > 0) { + if (e + 1 == len) str += '.'; + for (; i--; str += '0'); + } + } + } + } + + return n.s < 0 && c0 ? '-' + str : str; + } + + + // Handle BigNumber.max and BigNumber.min. + function maxOrMin(args, method) { + var m, n, + i = 0; + + if (isArray(args[0])) args = args[0]; + m = new BigNumber(args[0]); + + for (; ++i < args.length;) { + n = new BigNumber(args[i]); + + // If any number is NaN, return NaN. + if (!n.s) { + m = n; + break; + } else if (method.call(m, n)) { + m = n; + } + } + + return m; + } + + + /* + * Strip trailing zeros, calculate base 10 exponent and check against MIN_EXP and MAX_EXP. + * Called by minus, plus and times. + */ + function normalise(n, c, e) { + var i = 1, + j = c.length; + + // Remove trailing zeros. + for (; !c[--j]; c.pop()); + + // Calculate the base 10 exponent. First get the number of digits of c[0]. + for (j = c[0]; j >= 10; j /= 10, i++); + + // Overflow? + if ((e = i + e * LOG_BASE - 1) > MAX_EXP) { + + // Infinity. + n.c = n.e = null; + + // Underflow? + } else if (e < MIN_EXP) { + + // Zero. + n.c = [n.e = 0]; + } else { + n.e = e; + n.c = c; + } + + return n; + } + + + // Handle values that fail the validity test in BigNumber. + parseNumeric = (function () { + var basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i, + dotAfter = /^([^.]+)\.$/, + dotBefore = /^\.([^.]+)$/, + isInfinityOrNaN = /^-?(Infinity|NaN)$/, + whitespaceOrPlus = /^\s*\+(?=[\w.])|^\s+|\s+$/g; + + return function (x, str, isNum, b) { + var base, + s = isNum ? str : str.replace(whitespaceOrPlus, ''); + + // No exception on ±Infinity or NaN. + if (isInfinityOrNaN.test(s)) { + x.s = isNaN(s) ? null : s < 0 ? -1 : 1; + x.c = x.e = null; + } else { + if (!isNum) { + + // basePrefix = /^(-?)0([xbo])(?=\w[\w.]*$)/i + s = s.replace(basePrefix, function (m, p1, p2) { + base = (p2 = p2.toLowerCase()) == 'x' ? 16 : p2 == 'b' ? 2 : 8; + return !b || b == base ? p1 : m; + }); + + if (b) { + base = b; + + // E.g. '1.' to '1', '.1' to '0.1' + s = s.replace(dotAfter, '$1').replace(dotBefore, '0.$1'); + } + + if (str != s) return new BigNumber(s, base); + } + + // '[BigNumber Error] Not a number: {n}' + // '[BigNumber Error] Not a base {b} number: {n}' + if (BigNumber.DEBUG) { + throw Error + (bignumberError + 'Not a' + (b ? ' base ' + b : '') + ' number: ' + str); + } + + // NaN + x.c = x.e = x.s = null; + } + } + })(); + + + /* + * Round x to sd significant digits using rounding mode rm. Check for over/under-flow. + * If r is truthy, it is known that there are more digits after the rounding digit. + */ + function round(x, sd, rm, r) { + var d, i, j, k, n, ni, rd, + xc = x.c, + pows10 = POWS_TEN; + + // if x is not Infinity or NaN... + if (xc) { + + // rd is the rounding digit, i.e. the digit after the digit that may be rounded up. + // n is a base 1e14 number, the value of the element of array x.c containing rd. + // ni is the index of n within x.c. + // d is the number of digits of n. + // i is the index of rd within n including leading zeros. + // j is the actual index of rd within n (if < 0, rd is a leading zero). + out: { + + // Get the number of digits of the first element of xc. + for (d = 1, k = xc[0]; k >= 10; k /= 10, d++); + i = sd - d; + + // If the rounding digit is in the first element of xc... + if (i < 0) { + i += LOG_BASE; + j = sd; + n = xc[ni = 0]; + + // Get the rounding digit at index j of n. + rd = n / pows10[d - j - 1] % 10 | 0; + } else { + ni = mathceil((i + 1) / LOG_BASE); + + if (ni >= xc.length) { + + if (r) { + + // Needed by sqrt. + for (; xc.length <= ni; xc.push(0)); + n = rd = 0; + d = 1; + i %= LOG_BASE; + j = i - LOG_BASE + 1; + } else { + break out; + } + } else { + n = k = xc[ni]; + + // Get the number of digits of n. + for (d = 1; k >= 10; k /= 10, d++); + + // Get the index of rd within n. + i %= LOG_BASE; + + // Get the index of rd within n, adjusted for leading zeros. + // The number of leading zeros of n is given by LOG_BASE - d. + j = i - LOG_BASE + d; + + // Get the rounding digit at index j of n. + rd = j < 0 ? 0 : n / pows10[d - j - 1] % 10 | 0; + } + } + + r = r || sd < 0 || + + // Are there any non-zero digits after the rounding digit? + // The expression n % pows10[d - j - 1] returns all digits of n to the right + // of the digit at j, e.g. if n is 908714 and j is 2, the expression gives 714. + xc[ni + 1] != null || (j < 0 ? n : n % pows10[d - j - 1]); + + r = rm < 4 + ? (rd || r) && (rm == 0 || rm == (x.s < 0 ? 3 : 2)) + : rd > 5 || rd == 5 && (rm == 4 || r || rm == 6 && + + // Check whether the digit to the left of the rounding digit is odd. + ((i > 0 ? j > 0 ? n / pows10[d - j] : 0 : xc[ni - 1]) % 10) & 1 || + rm == (x.s < 0 ? 8 : 7)); + + if (sd < 1 || !xc[0]) { + xc.length = 0; + + if (r) { + + // Convert sd to decimal places. + sd -= x.e + 1; + + // 1, 0.1, 0.01, 0.001, 0.0001 etc. + xc[0] = pows10[(LOG_BASE - sd % LOG_BASE) % LOG_BASE]; + x.e = -sd || 0; + } else { + + // Zero. + xc[0] = x.e = 0; + } + + return x; + } + + // Remove excess digits. + if (i == 0) { + xc.length = ni; + k = 1; + ni--; + } else { + xc.length = ni + 1; + k = pows10[LOG_BASE - i]; + + // E.g. 56700 becomes 56000 if 7 is the rounding digit. + // j > 0 means i > number of leading zeros of n. + xc[ni] = j > 0 ? mathfloor(n / pows10[d - j] % pows10[j]) * k : 0; + } + + // Round up? + if (r) { + + for (; ;) { + + // If the digit to be rounded up is in the first element of xc... + if (ni == 0) { + + // i will be the length of xc[0] before k is added. + for (i = 1, j = xc[0]; j >= 10; j /= 10, i++); + j = xc[0] += k; + for (k = 1; j >= 10; j /= 10, k++); + + // if i != k the length has increased. + if (i != k) { + x.e++; + if (xc[0] == BASE) xc[0] = 1; + } + + break; + } else { + xc[ni] += k; + if (xc[ni] != BASE) break; + xc[ni--] = 0; + k = 1; + } + } + } + + // Remove trailing zeros. + for (i = xc.length; xc[--i] === 0; xc.pop()); + } + + // Overflow? Infinity. + if (x.e > MAX_EXP) { + x.c = x.e = null; + + // Underflow? Zero. + } else if (x.e < MIN_EXP) { + x.c = [x.e = 0]; + } + } + + return x; + } + + + // PROTOTYPE/INSTANCE METHODS + + + /* + * Return a new BigNumber whose value is the absolute value of this BigNumber. + */ + P.absoluteValue = P.abs = function () { + var x = new BigNumber(this); + if (x.s < 0) x.s = 1; + return x; + }; + + + /* + * Return + * 1 if the value of this BigNumber is greater than the value of BigNumber(y, b), + * -1 if the value of this BigNumber is less than the value of BigNumber(y, b), + * 0 if they have the same value, + * or null if the value of either is NaN. + */ + P.comparedTo = function (y, b) { + return compare(this, new BigNumber(y, b)); + }; + + + /* + * If dp is undefined or null or true or false, return the number of decimal places of the + * value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * + * Otherwise, if dp is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of dp decimal places using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * [dp] {number} Decimal places: integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.decimalPlaces = P.dp = function (dp, rm) { + var c, n, v, + x = this; + + if (dp != null) { + intCheck(dp, 0, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), dp + x.e + 1, rm); + } + + if (!(c = x.c)) return null; + n = ((v = c.length - 1) - bitFloor(this.e / LOG_BASE)) * LOG_BASE; + + // Subtract the number of trailing zeros of the last number. + if (v = c[v]) for (; v % 10 == 0; v /= 10, n--); + if (n < 0) n = 0; + + return n; + }; + + + /* + * n / 0 = I + * n / N = N + * n / I = 0 + * 0 / n = 0 + * 0 / 0 = N + * 0 / N = N + * 0 / I = 0 + * N / n = N + * N / 0 = N + * N / N = N + * N / I = N + * I / n = I + * I / 0 = I + * I / N = N + * I / I = N + * + * Return a new BigNumber whose value is the value of this BigNumber divided by the value of + * BigNumber(y, b), rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.dividedBy = P.div = function (y, b) { + return div(this, new BigNumber(y, b), DECIMAL_PLACES, ROUNDING_MODE); + }; + + + /* + * Return a new BigNumber whose value is the integer part of dividing the value of this + * BigNumber by the value of BigNumber(y, b). + */ + P.dividedToIntegerBy = P.idiv = function (y, b) { + return div(this, new BigNumber(y, b), 0, 1); + }; + + + /* + * Return a BigNumber whose value is the value of this BigNumber exponentiated by n. + * + * If m is present, return the result modulo m. + * If n is negative round according to DECIMAL_PLACES and ROUNDING_MODE. + * If POW_PRECISION is non-zero and m is not present, round to POW_PRECISION using ROUNDING_MODE. + * + * The modular power operation works efficiently when x, n, and m are integers, otherwise it + * is equivalent to calculating x.exponentiatedBy(n).modulo(m) with a POW_PRECISION of 0. + * + * n {number|string|BigNumber} The exponent. An integer. + * [m] {number|string|BigNumber} The modulus. + * + * '[BigNumber Error] Exponent not an integer: {n}' + */ + P.exponentiatedBy = P.pow = function (n, m) { + var half, isModExp, k, more, nIsBig, nIsNeg, nIsOdd, y, + x = this; + + n = new BigNumber(n); + + // Allow NaN and ±Infinity, but not other non-integers. + if (n.c && !n.isInteger()) { + throw Error + (bignumberError + 'Exponent not an integer: ' + n); + } + + if (m != null) m = new BigNumber(m); + + // Exponent of MAX_SAFE_INTEGER is 15. + nIsBig = n.e > 14; + + // If x is NaN, ±Infinity, ±0 or ±1, or n is ±Infinity, NaN or ±0. + if (!x.c || !x.c[0] || x.c[0] == 1 && !x.e && x.c.length == 1 || !n.c || !n.c[0]) { + + // The sign of the result of pow when x is negative depends on the evenness of n. + // If +n overflows to ±Infinity, the evenness of n would be not be known. + y = new BigNumber(Math.pow(+x.valueOf(), nIsBig ? 2 - isOdd(n) : +n)); + return m ? y.mod(m) : y; + } + + nIsNeg = n.s < 0; + + if (m) { + + // x % m returns NaN if abs(m) is zero, or m is NaN. + if (m.c ? !m.c[0] : !m.s) return new BigNumber(NaN); + + isModExp = !nIsNeg && x.isInteger() && m.isInteger(); + + if (isModExp) x = x.mod(m); + + // Overflow to ±Infinity: >=2**1e10 or >=1.0000024**1e15. + // Underflow to ±0: <=0.79**1e10 or <=0.9999975**1e15. + } else if (n.e > 9 && (x.e > 0 || x.e < -1 || (x.e == 0 + // [1, 240000000] + ? x.c[0] > 1 || nIsBig && x.c[1] >= 24e7 + // [80000000000000] [99999750000000] + : x.c[0] < 8e13 || nIsBig && x.c[0] <= 9999975e7))) { + + // If x is negative and n is odd, k = -0, else k = 0. + k = x.s < 0 && isOdd(n) ? -0 : 0; + + // If x >= 1, k = ±Infinity. + if (x.e > -1) k = 1 / k; + + // If n is negative return ±0, else return ±Infinity. + return new BigNumber(nIsNeg ? 1 / k : k); + + } else if (POW_PRECISION) { + + // Truncating each coefficient array to a length of k after each multiplication + // equates to truncating significant digits to POW_PRECISION + [28, 41], + // i.e. there will be a minimum of 28 guard digits retained. + k = mathceil(POW_PRECISION / LOG_BASE + 2); + } + + if (nIsBig) { + half = new BigNumber(0.5); + nIsOdd = isOdd(n); + } else { + nIsOdd = n % 2; + } + + if (nIsNeg) n.s = 1; + + y = new BigNumber(ONE); + + // Performs 54 loop iterations for n of 9007199254740991. + for (; ;) { + + if (nIsOdd) { + y = y.times(x); + if (!y.c) break; + + if (k) { + if (y.c.length > k) y.c.length = k; + } else if (isModExp) { + y = y.mod(m); //y = y.minus(div(y, m, 0, MODULO_MODE).times(m)); + } + } + + if (nIsBig) { + n = n.times(half); + round(n, n.e + 1, 1); + if (!n.c[0]) break; + nIsBig = n.e > 14; + nIsOdd = isOdd(n); + } else { + n = mathfloor(n / 2); + if (!n) break; + nIsOdd = n % 2; + } + + x = x.times(x); + + if (k) { + if (x.c && x.c.length > k) x.c.length = k; + } else if (isModExp) { + x = x.mod(m); //x = x.minus(div(x, m, 0, MODULO_MODE).times(m)); + } + } + + if (isModExp) return y; + if (nIsNeg) y = ONE.div(y); + + return m ? y.mod(m) : k ? round(y, POW_PRECISION, ROUNDING_MODE, more) : y; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber rounded to an integer + * using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {rm}' + */ + P.integerValue = function (rm) { + var n = new BigNumber(this); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + return round(n, n.e + 1, rm); + }; + + + /* + * Return true if the value of this BigNumber is equal to the value of BigNumber(y, b), + * otherwise return false. + */ + P.isEqualTo = P.eq = function (y, b) { + return compare(this, new BigNumber(y, b)) === 0; + }; + + + /* + * Return true if the value of this BigNumber is a finite number, otherwise return false. + */ + P.isFinite = function () { + return !!this.c; + }; + + + /* + * Return true if the value of this BigNumber is greater than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isGreaterThan = P.gt = function (y, b) { + return compare(this, new BigNumber(y, b)) > 0; + }; + + + /* + * Return true if the value of this BigNumber is greater than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isGreaterThanOrEqualTo = P.gte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === 1 || b === 0; + + }; + + + /* + * Return true if the value of this BigNumber is an integer, otherwise return false. + */ + P.isInteger = function () { + return !!this.c && bitFloor(this.e / LOG_BASE) > this.c.length - 2; + }; + + + /* + * Return true if the value of this BigNumber is less than the value of BigNumber(y, b), + * otherwise return false. + */ + P.isLessThan = P.lt = function (y, b) { + return compare(this, new BigNumber(y, b)) < 0; + }; + + + /* + * Return true if the value of this BigNumber is less than or equal to the value of + * BigNumber(y, b), otherwise return false. + */ + P.isLessThanOrEqualTo = P.lte = function (y, b) { + return (b = compare(this, new BigNumber(y, b))) === -1 || b === 0; + }; + + + /* + * Return true if the value of this BigNumber is NaN, otherwise return false. + */ + P.isNaN = function () { + return !this.s; + }; + + + /* + * Return true if the value of this BigNumber is negative, otherwise return false. + */ + P.isNegative = function () { + return this.s < 0; + }; + + + /* + * Return true if the value of this BigNumber is positive, otherwise return false. + */ + P.isPositive = function () { + return this.s > 0; + }; + + + /* + * Return true if the value of this BigNumber is 0 or -0, otherwise return false. + */ + P.isZero = function () { + return !!this.c && this.c[0] == 0; + }; + + + /* + * n - 0 = n + * n - N = N + * n - I = -I + * 0 - n = -n + * 0 - 0 = 0 + * 0 - N = N + * 0 - I = -I + * N - n = N + * N - 0 = N + * N - N = N + * N - I = N + * I - n = I + * I - 0 = I + * I - N = N + * I - I = N + * + * Return a new BigNumber whose value is the value of this BigNumber minus the value of + * BigNumber(y, b). + */ + P.minus = function (y, b) { + var i, j, t, xLTy, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.plus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Either Infinity? + if (!xc || !yc) return xc ? (y.s = -b, y) : new BigNumber(yc ? x : NaN); + + // Either zero? + if (!xc[0] || !yc[0]) { + + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + return yc[0] ? (y.s = -b, y) : new BigNumber(xc[0] ? x : + + // IEEE 754 (2008) 6.3: n - n = -0 when rounding to -Infinity + ROUNDING_MODE == 3 ? -0 : 0); + } + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Determine which is the bigger number. + if (a = xe - ye) { + + if (xLTy = a < 0) { + a = -a; + t = xc; + } else { + ye = xe; + t = yc; + } + + t.reverse(); + + // Prepend zeros to equalise exponents. + for (b = a; b--; t.push(0)); + t.reverse(); + } else { + + // Exponents equal. Check digit by digit. + j = (xLTy = (a = xc.length) < (b = yc.length)) ? a : b; + + for (a = b = 0; b < j; b++) { + + if (xc[b] != yc[b]) { + xLTy = xc[b] < yc[b]; + break; + } + } + } + + // x < y? Point xc to the array of the bigger number. + if (xLTy) t = xc, xc = yc, yc = t, y.s = -y.s; + + b = (j = yc.length) - (i = xc.length); + + // Append zeros to xc if shorter. + // No need to add zeros to yc if shorter as subtract only needs to start at yc.length. + if (b > 0) for (; b--; xc[i++] = 0); + b = BASE - 1; + + // Subtract yc from xc. + for (; j > a;) { + + if (xc[--j] < yc[j]) { + for (i = j; i && !xc[--i]; xc[i] = b); + --xc[i]; + xc[j] += BASE; + } + + xc[j] -= yc[j]; + } + + // Remove leading zeros and adjust exponent accordingly. + for (; xc[0] == 0; xc.splice(0, 1), --ye); + + // Zero? + if (!xc[0]) { + + // Following IEEE 754 (2008) 6.3, + // n - n = +0 but n - n = -0 when rounding towards -Infinity. + y.s = ROUNDING_MODE == 3 ? -1 : 1; + y.c = [y.e = 0]; + return y; + } + + // No need to check for Infinity as +x - +y != Infinity && -x - -y != Infinity + // for finite x and y. + return normalise(y, xc, ye); + }; + + + /* + * n % 0 = N + * n % N = N + * n % I = n + * 0 % n = 0 + * -0 % n = -0 + * 0 % 0 = N + * 0 % N = N + * 0 % I = 0 + * N % n = N + * N % 0 = N + * N % N = N + * N % I = N + * I % n = N + * I % 0 = N + * I % N = N + * I % I = N + * + * Return a new BigNumber whose value is the value of this BigNumber modulo the value of + * BigNumber(y, b). The result depends on the value of MODULO_MODE. + */ + P.modulo = P.mod = function (y, b) { + var q, s, + x = this; + + y = new BigNumber(y, b); + + // Return NaN if x is Infinity or NaN, or y is NaN or zero. + if (!x.c || !y.s || y.c && !y.c[0]) { + return new BigNumber(NaN); + + // Return x if y is Infinity or x is zero. + } else if (!y.c || x.c && !x.c[0]) { + return new BigNumber(x); + } + + if (MODULO_MODE == 9) { + + // Euclidian division: q = sign(y) * floor(x / abs(y)) + // r = x - qy where 0 <= r < abs(y) + s = y.s; + y.s = 1; + q = div(x, y, 0, 3); + y.s = s; + q.s *= s; + } else { + q = div(x, y, 0, MODULO_MODE); + } + + y = x.minus(q.times(y)); + + // To match JavaScript %, ensure sign of zero is sign of dividend. + if (!y.c[0] && MODULO_MODE == 1) y.s = x.s; + + return y; + }; + + + /* + * n * 0 = 0 + * n * N = N + * n * I = I + * 0 * n = 0 + * 0 * 0 = 0 + * 0 * N = N + * 0 * I = N + * N * n = N + * N * 0 = N + * N * N = N + * N * I = N + * I * n = I + * I * 0 = N + * I * N = N + * I * I = I + * + * Return a new BigNumber whose value is the value of this BigNumber multiplied by the value + * of BigNumber(y, b). + */ + P.multipliedBy = P.times = function (y, b) { + var c, e, i, j, k, m, xcL, xlo, xhi, ycL, ylo, yhi, zc, + base, sqrtBase, + x = this, + xc = x.c, + yc = (y = new BigNumber(y, b)).c; + + // Either NaN, ±Infinity or ±0? + if (!xc || !yc || !xc[0] || !yc[0]) { + + // Return NaN if either is NaN, or one is 0 and the other is Infinity. + if (!x.s || !y.s || xc && !xc[0] && !yc || yc && !yc[0] && !xc) { + y.c = y.e = y.s = null; + } else { + y.s *= x.s; + + // Return ±Infinity if either is ±Infinity. + if (!xc || !yc) { + y.c = y.e = null; + + // Return ±0 if either is ±0. + } else { + y.c = [0]; + y.e = 0; + } + } + + return y; + } + + e = bitFloor(x.e / LOG_BASE) + bitFloor(y.e / LOG_BASE); + y.s *= x.s; + xcL = xc.length; + ycL = yc.length; + + // Ensure xc points to longer array and xcL to its length. + if (xcL < ycL) zc = xc, xc = yc, yc = zc, i = xcL, xcL = ycL, ycL = i; + + // Initialise the result array with zeros. + for (i = xcL + ycL, zc = []; i--; zc.push(0)); + + base = BASE; + sqrtBase = SQRT_BASE; + + for (i = ycL; --i >= 0;) { + c = 0; + ylo = yc[i] % sqrtBase; + yhi = yc[i] / sqrtBase | 0; + + for (k = xcL, j = i + k; j > i;) { + xlo = xc[--k] % sqrtBase; + xhi = xc[k] / sqrtBase | 0; + m = yhi * xlo + xhi * ylo; + xlo = ylo * xlo + ((m % sqrtBase) * sqrtBase) + zc[j] + c; + c = (xlo / base | 0) + (m / sqrtBase | 0) + yhi * xhi; + zc[j--] = xlo % base; + } + + zc[j] = c; + } + + if (c) { + ++e; + } else { + zc.splice(0, 1); + } + + return normalise(y, zc, e); + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber negated, + * i.e. multiplied by -1. + */ + P.negated = function () { + var x = new BigNumber(this); + x.s = -x.s || null; + return x; + }; + + + /* + * n + 0 = n + * n + N = N + * n + I = I + * 0 + n = n + * 0 + 0 = 0 + * 0 + N = N + * 0 + I = I + * N + n = N + * N + 0 = N + * N + N = N + * N + I = N + * I + n = I + * I + 0 = I + * I + N = N + * I + I = I + * + * Return a new BigNumber whose value is the value of this BigNumber plus the value of + * BigNumber(y, b). + */ + P.plus = function (y, b) { + var t, + x = this, + a = x.s; + + y = new BigNumber(y, b); + b = y.s; + + // Either NaN? + if (!a || !b) return new BigNumber(NaN); + + // Signs differ? + if (a != b) { + y.s = -b; + return x.minus(y); + } + + var xe = x.e / LOG_BASE, + ye = y.e / LOG_BASE, + xc = x.c, + yc = y.c; + + if (!xe || !ye) { + + // Return ±Infinity if either ±Infinity. + if (!xc || !yc) return new BigNumber(a / 0); + + // Either zero? + // Return y if y is non-zero, x if x is non-zero, or zero if both are zero. + if (!xc[0] || !yc[0]) return yc[0] ? y : new BigNumber(xc[0] ? x : a * 0); + } + + xe = bitFloor(xe); + ye = bitFloor(ye); + xc = xc.slice(); + + // Prepend zeros to equalise exponents. Faster to use reverse then do unshifts. + if (a = xe - ye) { + if (a > 0) { + ye = xe; + t = yc; + } else { + a = -a; + t = xc; + } + + t.reverse(); + for (; a--; t.push(0)); + t.reverse(); + } + + a = xc.length; + b = yc.length; + + // Point xc to the longer array, and b to the shorter length. + if (a - b < 0) t = yc, yc = xc, xc = t, b = a; + + // Only start adding at yc.length - 1 as the further digits of xc can be ignored. + for (a = 0; b;) { + a = (xc[--b] = xc[b] + yc[b] + a) / BASE | 0; + xc[b] = BASE === xc[b] ? 0 : xc[b] % BASE; + } + + if (a) { + xc = [a].concat(xc); + ++ye; + } + + // No need to check for zero, as +x + +y != 0 && -x + -y != 0 + // ye = MAX_EXP + 1 possible + return normalise(y, xc, ye); + }; + + + /* + * If sd is undefined or null or true or false, return the number of significant digits of + * the value of this BigNumber, or null if the value of this BigNumber is ±Infinity or NaN. + * If sd is true include integer-part trailing zeros in the count. + * + * Otherwise, if sd is a number, return a new BigNumber whose value is the value of this + * BigNumber rounded to a maximum of sd significant digits using rounding mode rm, or + * ROUNDING_MODE if rm is omitted. + * + * sd {number|boolean} number: significant digits: integer, 1 to MAX inclusive. + * boolean: whether to count integer-part trailing zeros: true or false. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.precision = P.sd = function (sd, rm) { + var c, n, v, + x = this; + + if (sd != null && sd !== !!sd) { + intCheck(sd, 1, MAX); + if (rm == null) rm = ROUNDING_MODE; + else intCheck(rm, 0, 8); + + return round(new BigNumber(x), sd, rm); + } + + if (!(c = x.c)) return null; + v = c.length - 1; + n = v * LOG_BASE + 1; + + if (v = c[v]) { + + // Subtract the number of trailing zeros of the last element. + for (; v % 10 == 0; v /= 10, n--); + + // Add the number of digits of the first element. + for (v = c[0]; v >= 10; v /= 10, n++); + } + + if (sd && x.e + 1 > n) n = x.e + 1; + + return n; + }; + + + /* + * Return a new BigNumber whose value is the value of this BigNumber shifted by k places + * (powers of 10). Shift to the right if n > 0, and to the left if n < 0. + * + * k {number} Integer, -MAX_SAFE_INTEGER to MAX_SAFE_INTEGER inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {k}' + */ + P.shiftedBy = function (k) { + intCheck(k, -MAX_SAFE_INTEGER, MAX_SAFE_INTEGER); + return this.times('1e' + k); + }; + + + /* + * sqrt(-n) = N + * sqrt(N) = N + * sqrt(-I) = N + * sqrt(I) = I + * sqrt(0) = 0 + * sqrt(-0) = -0 + * + * Return a new BigNumber whose value is the square root of the value of this BigNumber, + * rounded according to DECIMAL_PLACES and ROUNDING_MODE. + */ + P.squareRoot = P.sqrt = function () { + var m, n, r, rep, t, + x = this, + c = x.c, + s = x.s, + e = x.e, + dp = DECIMAL_PLACES + 4, + half = new BigNumber('0.5'); + + // Negative/NaN/Infinity/zero? + if (s !== 1 || !c || !c[0]) { + return new BigNumber(!s || s < 0 && (!c || c[0]) ? NaN : c ? x : 1 / 0); + } + + // Initial estimate. + s = Math.sqrt(+x); + + // Math.sqrt underflow/overflow? + // Pass x to Math.sqrt as integer, then adjust the exponent of the result. + if (s == 0 || s == 1 / 0) { + n = coeffToString(c); + if ((n.length + e) % 2 == 0) n += '0'; + s = Math.sqrt(n); + e = bitFloor((e + 1) / 2) - (e < 0 || e % 2); + + if (s == 1 / 0) { + n = '1e' + e; + } else { + n = s.toExponential(); + n = n.slice(0, n.indexOf('e') + 1) + e; + } + + r = new BigNumber(n); + } else { + r = new BigNumber(s + ''); + } + + // Check for zero. + // r could be zero if MIN_EXP is changed after the this value was created. + // This would cause a division by zero (x/t) and hence Infinity below, which would cause + // coeffToString to throw. + if (r.c[0]) { + e = r.e; + s = e + dp; + if (s < 3) s = 0; + + // Newton-Raphson iteration. + for (; ;) { + t = r; + r = half.times(t.plus(div(x, t, dp, 1))); + + if (coeffToString(t.c ).slice(0, s) === (n = + coeffToString(r.c)).slice(0, s)) { + + // The exponent of r may here be one less than the final result exponent, + // e.g 0.0009999 (e-4) --> 0.001 (e-3), so adjust s so the rounding digits + // are indexed correctly. + if (r.e < e) --s; + n = n.slice(s - 3, s + 1); + + // The 4th rounding digit may be in error by -1 so if the 4 rounding digits + // are 9999 or 4999 (i.e. approaching a rounding boundary) continue the + // iteration. + if (n == '9999' || !rep && n == '4999') { + + // On the first iteration only, check to see if rounding up gives the + // exact result as the nines may infinitely repeat. + if (!rep) { + round(t, t.e + DECIMAL_PLACES + 2, 0); + + if (t.times(t).eq(x)) { + r = t; + break; + } + } + + dp += 4; + s += 4; + rep = 1; + } else { + + // If rounding digits are null, 0{0,4} or 50{0,3}, check for exact + // result. If not, then there are further digits and m will be truthy. + if (!+n || !+n.slice(1) && n.charAt(0) == '5') { + + // Truncate to the first rounding digit. + round(r, r.e + DECIMAL_PLACES + 2, 1); + m = !r.times(r).eq(x); + } + + break; + } + } + } + } + + return round(r, r.e + DECIMAL_PLACES + 1, ROUNDING_MODE, m); + }; + + + /* + * Return a string representing the value of this BigNumber in exponential notation and + * rounded using ROUNDING_MODE to dp fixed decimal places. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toExponential = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp++; + } + return format(this, dp, rm, 1); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounding + * to dp fixed decimal places using rounding mode rm, or ROUNDING_MODE if rm is omitted. + * + * Note: as with JavaScript's number type, (-0).toFixed(0) is '0', + * but e.g. (-0.00001).toFixed(0) is '-0'. + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFixed = function (dp, rm) { + if (dp != null) { + intCheck(dp, 0, MAX); + dp = dp + this.e + 1; + } + return format(this, dp, rm); + }; + + + /* + * Return a string representing the value of this BigNumber in fixed-point notation rounded + * using rm or ROUNDING_MODE to dp decimal places, and formatted according to the properties + * of the FORMAT object (see BigNumber.set). + * + * FORMAT = { + * decimalSeparator : '.', + * groupSeparator : ',', + * groupSize : 3, + * secondaryGroupSize : 0, + * fractionGroupSeparator : '\xA0', // non-breaking space + * fractionGroupSize : 0 + * }; + * + * [dp] {number} Decimal places. Integer, 0 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {dp|rm}' + */ + P.toFormat = function (dp, rm) { + var str = this.toFixed(dp, rm); + + if (this.c) { + var i, + arr = str.split('.'), + g1 = +FORMAT.groupSize, + g2 = +FORMAT.secondaryGroupSize, + groupSeparator = FORMAT.groupSeparator, + intPart = arr[0], + fractionPart = arr[1], + isNeg = this.s < 0, + intDigits = isNeg ? intPart.slice(1) : intPart, + len = intDigits.length; + + if (g2) i = g1, g1 = g2, g2 = i, len -= i; + + if (g1 > 0 && len > 0) { + i = len % g1 || g1; + intPart = intDigits.substr(0, i); + + for (; i < len; i += g1) { + intPart += groupSeparator + intDigits.substr(i, g1); + } + + if (g2 > 0) intPart += groupSeparator + intDigits.slice(i); + if (isNeg) intPart = '-' + intPart; + } + + str = fractionPart + ? intPart + FORMAT.decimalSeparator + ((g2 = +FORMAT.fractionGroupSize) + ? fractionPart.replace(new RegExp('\\d{' + g2 + '}\\B', 'g'), + '$&' + FORMAT.fractionGroupSeparator) + : fractionPart) + : intPart; + } + + return str; + }; + + + /* + * Return a string array representing the value of this BigNumber as a simple fraction with + * an integer numerator and an integer denominator. The denominator will be a positive + * non-zero value less than or equal to the specified maximum denominator. If a maximum + * denominator is not specified, the denominator will be the lowest value necessary to + * represent the number exactly. + * + * [md] {number|string|BigNumber} Integer >= 1, or Infinity. The maximum denominator. + * + * '[BigNumber Error] Argument {not an integer|out of range} : {md}' + */ + P.toFraction = function (md) { + var arr, d, d0, d1, d2, e, exp, n, n0, n1, q, s, + x = this, + xc = x.c; + + if (md != null) { + n = new BigNumber(md); + + // Throw if md is less than one or is not an integer, unless it is Infinity. + if (!n.isInteger() && (n.c || n.s !== 1) || n.lt(ONE)) { + throw Error + (bignumberError + 'Argument ' + + (n.isInteger() ? 'out of range: ' : 'not an integer: ') + md); + } + } + + if (!xc) return x.toString(); + + d = new BigNumber(ONE); + n1 = d0 = new BigNumber(ONE); + d1 = n0 = new BigNumber(ONE); + s = coeffToString(xc); + + // Determine initial denominator. + // d is a power of 10 and the minimum max denominator that specifies the value exactly. + e = d.e = s.length - x.e - 1; + d.c[0] = POWS_TEN[(exp = e % LOG_BASE) < 0 ? LOG_BASE + exp : exp]; + md = !md || n.comparedTo(d) > 0 ? (e > 0 ? d : n1) : n; + + exp = MAX_EXP; + MAX_EXP = 1 / 0; + n = new BigNumber(s); + + // n0 = d1 = 0 + n0.c[0] = 0; + + for (; ;) { + q = div(n, d, 0, 1); + d2 = d0.plus(q.times(d1)); + if (d2.comparedTo(md) == 1) break; + d0 = d1; + d1 = d2; + n1 = n0.plus(q.times(d2 = n1)); + n0 = d2; + d = n.minus(q.times(d2 = d)); + n = d2; + } + + d2 = div(md.minus(d0), d1, 0, 1); + n0 = n0.plus(d2.times(n1)); + d0 = d0.plus(d2.times(d1)); + n0.s = n1.s = x.s; + e *= 2; + + // Determine which fraction is closer to x, n0/d0 or n1/d1 + arr = div(n1, d1, e, ROUNDING_MODE).minus(x).abs().comparedTo( + div(n0, d0, e, ROUNDING_MODE).minus(x).abs()) < 1 + ? [n1.toString(), d1.toString()] + : [n0.toString(), d0.toString()]; + + MAX_EXP = exp; + return arr; + }; + + + /* + * Return the value of this BigNumber converted to a number primitive. + */ + P.toNumber = function () { + return +this; + }; + + + /* + * Return a string representing the value of this BigNumber rounded to sd significant digits + * using rounding mode rm or ROUNDING_MODE. If sd is less than the number of digits + * necessary to represent the integer part of the value in fixed-point notation, then use + * exponential notation. + * + * [sd] {number} Significant digits. Integer, 1 to MAX inclusive. + * [rm] {number} Rounding mode. Integer, 0 to 8 inclusive. + * + * '[BigNumber Error] Argument {not a primitive number|not an integer|out of range}: {sd|rm}' + */ + P.toPrecision = function (sd, rm) { + if (sd != null) intCheck(sd, 1, MAX); + return format(this, sd, rm, 2); + }; + + + /* + * Return a string representing the value of this BigNumber in base b, or base 10 if b is + * omitted. If a base is specified, including base 10, round according to DECIMAL_PLACES and + * ROUNDING_MODE. If a base is not specified, and this BigNumber has a positive exponent + * that is equal to or greater than TO_EXP_POS, or a negative exponent equal to or less than + * TO_EXP_NEG, return exponential notation. + * + * [b] {number} Integer, 2 to ALPHABET.length inclusive. + * + * '[BigNumber Error] Base {not a primitive number|not an integer|out of range}: {b}' + */ + P.toString = function (b) { + var str, + n = this, + s = n.s, + e = n.e; + + // Infinity or NaN? + if (e === null) { + + if (s) { + str = 'Infinity'; + if (s < 0) str = '-' + str; + } else { + str = 'NaN'; + } + } else { + str = coeffToString(n.c); + + if (b == null) { + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + } else { + intCheck(b, 2, ALPHABET.length, 'Base'); + str = convertBase(toFixedPoint(str, e, '0'), 10, b, s, true); + } + + if (s < 0 && n.c[0]) str = '-' + str; + } + + return str; + }; + + + /* + * Return as toString, but do not accept a base argument, and include the minus sign for + * negative zero. + */ + P.valueOf = P.toJSON = function () { + var str, + n = this, + e = n.e; + + if (e === null) return n.toString(); + + str = coeffToString(n.c); + + str = e <= TO_EXP_NEG || e >= TO_EXP_POS + ? toExponential(str, e) + : toFixedPoint(str, e, '0'); + + return n.s < 0 ? '-' + str : str; + }; + + + P._isBigNumber = true; + + if (configObject != null) BigNumber.set(configObject); + + return BigNumber; + } + + + // PRIVATE HELPER FUNCTIONS + + + function bitFloor(n) { + var i = n | 0; + return n > 0 || n === i ? i : i - 1; + } + + + // Return a coefficient array as a string of base 10 digits. + function coeffToString(a) { + var s, z, + i = 1, + j = a.length, + r = a[0] + ''; + + for (; i < j;) { + s = a[i++] + ''; + z = LOG_BASE - s.length; + for (; z--; s = '0' + s); + r += s; + } + + // Determine trailing zeros. + for (j = r.length; r.charCodeAt(--j) === 48;); + return r.slice(0, j + 1 || 1); + } + + + // Compare the value of BigNumbers x and y. + function compare(x, y) { + var a, b, + xc = x.c, + yc = y.c, + i = x.s, + j = y.s, + k = x.e, + l = y.e; + + // Either NaN? + if (!i || !j) return null; + + a = xc && !xc[0]; + b = yc && !yc[0]; + + // Either zero? + if (a || b) return a ? b ? 0 : -j : i; + + // Signs differ? + if (i != j) return i; + + a = i < 0; + b = k == l; + + // Either Infinity? + if (!xc || !yc) return b ? 0 : !xc ^ a ? 1 : -1; + + // Compare exponents. + if (!b) return k > l ^ a ? 1 : -1; + + j = (k = xc.length) < (l = yc.length) ? k : l; + + // Compare digit by digit. + for (i = 0; i < j; i++) if (xc[i] != yc[i]) return xc[i] > yc[i] ^ a ? 1 : -1; + + // Compare lengths. + return k == l ? 0 : k > l ^ a ? 1 : -1; + } + + + /* + * Check that n is a primitive number, an integer, and in range, otherwise throw. + */ + function intCheck(n, min, max, name) { + if (n < min || n > max || n !== (n < 0 ? mathceil(n) : mathfloor(n))) { + throw Error + (bignumberError + (name || 'Argument') + (typeof n == 'number' + ? n < min || n > max ? ' out of range: ' : ' not an integer: ' + : ' not a primitive number: ') + n); + } + } + + + function isArray(obj) { + return Object.prototype.toString.call(obj) == '[object Array]'; + } + + + // Assumes finite n. + function isOdd(n) { + var k = n.c.length - 1; + return bitFloor(n.e / LOG_BASE) == k && n.c[k] % 2 != 0; + } + + + function toExponential(str, e) { + return (str.length > 1 ? str.charAt(0) + '.' + str.slice(1) : str) + + (e < 0 ? 'e' : 'e+') + e; + } + + + function toFixedPoint(str, e, z) { + var len, zs; + + // Negative exponent? + if (e < 0) { + + // Prepend zeros. + for (zs = z + '.'; ++e; zs += z); + str = zs + str; + + // Positive exponent + } else { + len = str.length; + + // Append zeros. + if (++e > len) { + for (zs = z, e -= len; --e; zs += z); + str += zs; + } else if (e < len) { + str = str.slice(0, e) + '.' + str.slice(e); + } + } + + return str; + } + + + // EXPORT + + + BigNumber = clone(); + BigNumber['default'] = BigNumber.BigNumber = BigNumber; + + // AMD. + if (typeof define == 'function' && define.amd) { + define(function () { return BigNumber; }); + + // Node.js and other environments that support module.exports. + } else if ( true && module.exports) { + module.exports = BigNumber; + + // Browser. + } else { + if (!globalObject) { + globalObject = typeof self != 'undefined' && self ? self : window; + } + + globalObject.BigNumber = BigNumber; + } +})(this); + + +/***/ }), + +/***/ 71499: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const { Buffer } = __nccwpck_require__(14300) +const symbol = Symbol.for('BufferList') + +function BufferList (buf) { + if (!(this instanceof BufferList)) { + return new BufferList(buf) + } + + BufferList._init.call(this, buf) +} + +BufferList._init = function _init (buf) { + Object.defineProperty(this, symbol, { value: true }) + + this._bufs = [] + this.length = 0 + + if (buf) { + this.append(buf) + } +} + +BufferList.prototype._new = function _new (buf) { + return new BufferList(buf) +} + +BufferList.prototype._offset = function _offset (offset) { + if (offset === 0) { + return [0, 0] + } + + let tot = 0 + + for (let i = 0; i < this._bufs.length; i++) { + const _t = tot + this._bufs[i].length + if (offset < _t || i === this._bufs.length - 1) { + return [i, offset - tot] + } + tot = _t + } +} + +BufferList.prototype._reverseOffset = function (blOffset) { + const bufferId = blOffset[0] + let offset = blOffset[1] + + for (let i = 0; i < bufferId; i++) { + offset += this._bufs[i].length + } + + return offset +} + +BufferList.prototype.get = function get (index) { + if (index > this.length || index < 0) { + return undefined + } + + const offset = this._offset(index) + + return this._bufs[offset[0]][offset[1]] +} + +BufferList.prototype.slice = function slice (start, end) { + if (typeof start === 'number' && start < 0) { + start += this.length + } + + if (typeof end === 'number' && end < 0) { + end += this.length + } + + return this.copy(null, 0, start, end) +} + +BufferList.prototype.copy = function copy (dst, dstStart, srcStart, srcEnd) { + if (typeof srcStart !== 'number' || srcStart < 0) { + srcStart = 0 + } + + if (typeof srcEnd !== 'number' || srcEnd > this.length) { + srcEnd = this.length + } + + if (srcStart >= this.length) { + return dst || Buffer.alloc(0) + } + + if (srcEnd <= 0) { + return dst || Buffer.alloc(0) + } + + const copy = !!dst + const off = this._offset(srcStart) + const len = srcEnd - srcStart + let bytes = len + let bufoff = (copy && dstStart) || 0 + let start = off[1] + + // copy/slice everything + if (srcStart === 0 && srcEnd === this.length) { + if (!copy) { + // slice, but full concat if multiple buffers + return this._bufs.length === 1 + ? this._bufs[0] + : Buffer.concat(this._bufs, this.length) + } + + // copy, need to copy individual buffers + for (let i = 0; i < this._bufs.length; i++) { + this._bufs[i].copy(dst, bufoff) + bufoff += this._bufs[i].length + } + + return dst + } + + // easy, cheap case where it's a subset of one of the buffers + if (bytes <= this._bufs[off[0]].length - start) { + return copy + ? this._bufs[off[0]].copy(dst, dstStart, start, start + bytes) + : this._bufs[off[0]].slice(start, start + bytes) + } + + if (!copy) { + // a slice, we need something to copy in to + dst = Buffer.allocUnsafe(len) + } + + for (let i = off[0]; i < this._bufs.length; i++) { + const l = this._bufs[i].length - start + + if (bytes > l) { + this._bufs[i].copy(dst, bufoff, start) + } else { + this._bufs[i].copy(dst, bufoff, start, start + bytes) + break + } + + bufoff += l + bytes -= l + + if (start) { + start = 0 + } + } + + return dst +} + +BufferList.prototype.shallowSlice = function shallowSlice (start, end) { + start = start || 0 + end = typeof end !== 'number' ? this.length : end + + if (start < 0) { + start += this.length + } + + if (end < 0) { + end += this.length + } + + if (start === end) { + return this._new() + } + + const startOffset = this._offset(start) + const endOffset = this._offset(end) + const buffers = this._bufs.slice(startOffset[0], endOffset[0] + 1) + + if (endOffset[1] === 0) { + buffers.pop() + } else { + buffers[buffers.length - 1] = buffers[buffers.length - 1].slice(0, endOffset[1]) + } + + if (startOffset[1] !== 0) { + buffers[0] = buffers[0].slice(startOffset[1]) + } + + return this._new(buffers) +} + +BufferList.prototype.toString = function toString (encoding, start, end) { + return this.slice(start, end).toString(encoding) +} + +BufferList.prototype.consume = function consume (bytes) { + while (this._bufs.length) { + if (bytes >= this._bufs[0].length) { + bytes -= this._bufs[0].length + this.length -= this._bufs[0].length + this._bufs.shift() + } else { + this._bufs[0] = this._bufs[0].slice(bytes) + this.length -= bytes + break + } + } + + return this +} + +BufferList.prototype.duplicate = function duplicate () { + const copy = this._new() + + for (let i = 0; i < this._bufs.length; i++) { + copy.append(this._bufs[i]) + } + + return copy +} + +BufferList.prototype.append = function append (buf) { + if (buf == null) { + return this + } + + if (buf.buffer) { + // append a view of the underlying ArrayBuffer + this._appendBuffer(Buffer.from(buf.buffer, buf.byteOffset, buf.byteLength)) + } else if (Array.isArray(buf)) { + for (let i = 0; i < buf.length; i++) { + this.append(buf[i]) + } + } else if (this._isBufferList(buf)) { + // unwrap argument into individual BufferLists + for (let i = 0; i < buf._bufs.length; i++) { + this.append(buf._bufs[i]) + } + } else { + // coerce number arguments to strings, since Buffer(number) does + // uninitialized memory allocation + if (typeof buf === 'number') { + buf = buf.toString() + } + + this._appendBuffer(Buffer.from(buf)) + } + + return this +} + +BufferList.prototype._appendBuffer = function appendBuffer (buf) { + this._bufs.push(buf) + this.length += buf.length +} + +BufferList.prototype.indexOf = function (search, offset, encoding) { + if (encoding === undefined && typeof offset === 'string') { + encoding = offset + offset = undefined + } + + if (typeof search === 'function' || Array.isArray(search)) { + throw new TypeError('The "value" argument must be one of type string, Buffer, BufferList, or Uint8Array.') + } else if (typeof search === 'number') { + search = Buffer.from([search]) + } else if (typeof search === 'string') { + search = Buffer.from(search, encoding) + } else if (this._isBufferList(search)) { + search = search.slice() + } else if (Array.isArray(search.buffer)) { + search = Buffer.from(search.buffer, search.byteOffset, search.byteLength) + } else if (!Buffer.isBuffer(search)) { + search = Buffer.from(search) + } + + offset = Number(offset || 0) + + if (isNaN(offset)) { + offset = 0 + } + + if (offset < 0) { + offset = this.length + offset + } + + if (offset < 0) { + offset = 0 + } + + if (search.length === 0) { + return offset > this.length ? this.length : offset + } + + const blOffset = this._offset(offset) + let blIndex = blOffset[0] // index of which internal buffer we're working on + let buffOffset = blOffset[1] // offset of the internal buffer we're working on + + // scan over each buffer + for (; blIndex < this._bufs.length; blIndex++) { + const buff = this._bufs[blIndex] + + while (buffOffset < buff.length) { + const availableWindow = buff.length - buffOffset + + if (availableWindow >= search.length) { + const nativeSearchResult = buff.indexOf(search, buffOffset) + + if (nativeSearchResult !== -1) { + return this._reverseOffset([blIndex, nativeSearchResult]) + } + + buffOffset = buff.length - search.length + 1 // end of native search window + } else { + const revOffset = this._reverseOffset([blIndex, buffOffset]) + + if (this._match(revOffset, search)) { + return revOffset + } + + buffOffset++ + } + } + + buffOffset = 0 + } + + return -1 +} + +BufferList.prototype._match = function (offset, search) { + if (this.length - offset < search.length) { + return false + } + + for (let searchOffset = 0; searchOffset < search.length; searchOffset++) { + if (this.get(offset + searchOffset) !== search[searchOffset]) { + return false + } + } + return true +} + +;(function () { + const methods = { + readDoubleBE: 8, + readDoubleLE: 8, + readFloatBE: 4, + readFloatLE: 4, + readInt32BE: 4, + readInt32LE: 4, + readUInt32BE: 4, + readUInt32LE: 4, + readInt16BE: 2, + readInt16LE: 2, + readUInt16BE: 2, + readUInt16LE: 2, + readInt8: 1, + readUInt8: 1, + readIntBE: null, + readIntLE: null, + readUIntBE: null, + readUIntLE: null + } + + for (const m in methods) { + (function (m) { + if (methods[m] === null) { + BufferList.prototype[m] = function (offset, byteLength) { + return this.slice(offset, offset + byteLength)[m](0, byteLength) + } + } else { + BufferList.prototype[m] = function (offset) { + return this.slice(offset, offset + methods[m])[m](0) + } + } + }(m)) + } +}()) + +// Used internally by the class and also as an indicator of this object being +// a `BufferList`. It's not possible to use `instanceof BufferList` in a browser +// environment because there could be multiple different copies of the +// BufferList class and some `BufferList`s might be `BufferList`s. +BufferList.prototype._isBufferList = function _isBufferList (b) { + return b instanceof BufferList || BufferList.isBufferList(b) +} + +BufferList.isBufferList = function isBufferList (b) { + return b != null && b[symbol] +} + +module.exports = BufferList + + +/***/ }), + +/***/ 66738: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +const DuplexStream = (__nccwpck_require__(85635).Duplex) +const inherits = __nccwpck_require__(25333) +const BufferList = __nccwpck_require__(71499) + +function BufferListStream (callback) { + if (!(this instanceof BufferListStream)) { + return new BufferListStream(callback) + } + + if (typeof callback === 'function') { + this._callback = callback + + const piper = function piper (err) { + if (this._callback) { + this._callback(err) + this._callback = null + } + }.bind(this) + + this.on('pipe', function onPipe (src) { + src.on('error', piper) + }) + this.on('unpipe', function onUnpipe (src) { + src.removeListener('error', piper) + }) + + callback = null + } + + BufferList._init.call(this, callback) + DuplexStream.call(this) +} + +inherits(BufferListStream, DuplexStream) +Object.assign(BufferListStream.prototype, BufferList.prototype) + +BufferListStream.prototype._new = function _new (callback) { + return new BufferListStream(callback) +} + +BufferListStream.prototype._write = function _write (buf, encoding, callback) { + this._appendBuffer(buf) + + if (typeof callback === 'function') { + callback() + } +} + +BufferListStream.prototype._read = function _read (size) { + if (!this.length) { + return this.push(null) + } + + size = Math.min(size, this.length) + this.push(this.slice(0, size)) + this.consume(size) +} + +BufferListStream.prototype.end = function end (chunk) { + DuplexStream.prototype.end.call(this, chunk) + + if (this._callback) { + this._callback(null, this.slice()) + this._callback = null + } +} + +BufferListStream.prototype._destroy = function _destroy (err, cb) { + this._bufs.length = 0 + this.length = 0 + cb(err) +} + +BufferListStream.prototype._isBufferList = function _isBufferList (b) { + return b instanceof BufferListStream || b instanceof BufferList || BufferListStream.isBufferList(b) +} + +BufferListStream.isBufferList = BufferList.isBufferList + +module.exports = BufferListStream +module.exports.BufferListStream = BufferListStream +module.exports.BufferList = BufferList + + +/***/ }), + +/***/ 85034: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var concatMap = __nccwpck_require__(65944); +var balanced = __nccwpck_require__(69187); + +module.exports = expandTop; + +var escSlash = '\0SLASH'+Math.random()+'\0'; +var escOpen = '\0OPEN'+Math.random()+'\0'; +var escClose = '\0CLOSE'+Math.random()+'\0'; +var escComma = '\0COMMA'+Math.random()+'\0'; +var escPeriod = '\0PERIOD'+Math.random()+'\0'; + +function numeric(str) { + return parseInt(str, 10) == str + ? parseInt(str, 10) + : str.charCodeAt(0); +} + +function escapeBraces(str) { + return str.split('\\\\').join(escSlash) + .split('\\{').join(escOpen) + .split('\\}').join(escClose) + .split('\\,').join(escComma) + .split('\\.').join(escPeriod); +} + +function unescapeBraces(str) { + return str.split(escSlash).join('\\') + .split(escOpen).join('{') + .split(escClose).join('}') + .split(escComma).join(',') + .split(escPeriod).join('.'); +} + + +// Basically just str.split(","), but handling cases +// where we have nested braced sections, which should be +// treated as individual members, like {a,{b,c},d} +function parseCommaParts(str) { + if (!str) + return ['']; + + var parts = []; + var m = balanced('{', '}', str); + + if (!m) + return str.split(','); + + var pre = m.pre; + var body = m.body; + var post = m.post; + var p = pre.split(','); + + p[p.length-1] += '{' + body + '}'; + var postParts = parseCommaParts(post); + if (post.length) { + p[p.length-1] += postParts.shift(); + p.push.apply(p, postParts); + } + + parts.push.apply(parts, p); + + return parts; +} + +function expandTop(str) { + if (!str) + return []; + + // I don't know why Bash 4.3 does this, but it does. + // Anything starting with {} will have the first two bytes preserved + // but *only* at the top level, so {},a}b will not expand to anything, + // but a{},b}c will be expanded to [a}c,abc]. + // One could argue that this is a bug in Bash, but since the goal of + // this module is to match Bash's rules, we escape a leading {} + if (str.substr(0, 2) === '{}') { + str = '\\{\\}' + str.substr(2); + } + + return expand(escapeBraces(str), true).map(unescapeBraces); +} + +function identity(e) { + return e; +} + +function embrace(str) { + return '{' + str + '}'; +} +function isPadded(el) { + return /^-?0\d/.test(el); +} + +function lte(i, y) { + return i <= y; +} +function gte(i, y) { + return i >= y; +} + +function expand(str, isTop) { + var expansions = []; + + var m = balanced('{', '}', str); + if (!m || /\$$/.test(m.pre)) return [str]; + + var isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body); + var isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body); + var isSequence = isNumericSequence || isAlphaSequence; + var isOptions = m.body.indexOf(',') >= 0; + if (!isSequence && !isOptions) { + // {a},b} + if (m.post.match(/,.*\}/)) { + str = m.pre + '{' + m.body + escClose + m.post; + return expand(str); + } + return [str]; + } + + var n; + if (isSequence) { + n = m.body.split(/\.\./); + } else { + n = parseCommaParts(m.body); + if (n.length === 1) { + // x{{a,b}}y ==> x{a}y x{b}y + n = expand(n[0], false).map(embrace); + if (n.length === 1) { + var post = m.post.length + ? expand(m.post, false) + : ['']; + return post.map(function(p) { + return m.pre + n[0] + p; + }); + } + } + } + + // at this point, n is the parts, and we know it's not a comma set + // with a single entry. + + // no need to expand pre, since it is guaranteed to be free of brace-sets + var pre = m.pre; + var post = m.post.length + ? expand(m.post, false) + : ['']; + + var N; + + if (isSequence) { + var x = numeric(n[0]); + var y = numeric(n[1]); + var width = Math.max(n[0].length, n[1].length) + var incr = n.length == 3 + ? Math.abs(numeric(n[2])) + : 1; + var test = lte; + var reverse = y < x; + if (reverse) { + incr *= -1; + test = gte; + } + var pad = n.some(isPadded); + + N = []; + + for (var i = x; test(i, y); i += incr) { + var c; + if (isAlphaSequence) { + c = String.fromCharCode(i); + if (c === '\\') + c = ''; + } else { + c = String(i); + if (pad) { + var need = width - c.length; + if (need > 0) { + var z = new Array(need + 1).join('0'); + if (i < 0) + c = '-' + z + c.slice(1); + else + c = z + c; + } + } + } + N.push(c); + } + } else { + N = concatMap(n, function(el) { return expand(el, false) }); + } + + for (var j = 0; j < N.length; j++) { + for (var k = 0; k < post.length; k++) { + var expansion = pre + N[j] + post[k]; + if (!isTop || isSequence || expansion) + expansions.push(expansion); + } + } + + return expansions; +} + + + +/***/ }), + +/***/ 51588: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var Buffer = (__nccwpck_require__(14300).Buffer); + +var CRC_TABLE = [ + 0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, + 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, + 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, + 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, + 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, + 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, + 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, + 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, + 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, + 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, + 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, + 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, + 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, + 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, + 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, + 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, + 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, + 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, + 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, + 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, + 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, + 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, + 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, + 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, + 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, + 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, + 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, + 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, + 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, + 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, + 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, + 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, + 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, + 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, + 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, + 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, + 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, + 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, + 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, + 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, + 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, + 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, + 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, + 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, + 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, + 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, + 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, + 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, + 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, + 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, + 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, + 0x2d02ef8d +]; + +if (typeof Int32Array !== 'undefined') { + CRC_TABLE = new Int32Array(CRC_TABLE); +} + +function ensureBuffer(input) { + if (Buffer.isBuffer(input)) { + return input; + } + + var hasNewBufferAPI = + typeof Buffer.alloc === "function" && + typeof Buffer.from === "function"; + + if (typeof input === "number") { + return hasNewBufferAPI ? Buffer.alloc(input) : new Buffer(input); + } + else if (typeof input === "string") { + return hasNewBufferAPI ? Buffer.from(input) : new Buffer(input); + } + else { + throw new Error("input must be buffer, number, or string, received " + + typeof input); + } +} + +function bufferizeInt(num) { + var tmp = ensureBuffer(4); + tmp.writeInt32BE(num, 0); + return tmp; +} + +function _crc32(buf, previous) { + buf = ensureBuffer(buf); + if (Buffer.isBuffer(previous)) { + previous = previous.readUInt32BE(0); + } + var crc = ~~previous ^ -1; + for (var n = 0; n < buf.length; n++) { + crc = CRC_TABLE[(crc ^ buf[n]) & 0xff] ^ (crc >>> 8); + } + return (crc ^ -1); +} + +function crc32() { + return bufferizeInt(_crc32.apply(null, arguments)); +} +crc32.signed = function () { + return _crc32.apply(null, arguments); +}; +crc32.unsigned = function () { + return _crc32.apply(null, arguments) >>> 0; +}; + +module.exports = crc32; + + +/***/ }), + +/***/ 56452: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/*jshint node:true */ + +var Buffer = (__nccwpck_require__(14300).Buffer); // browserify +var SlowBuffer = (__nccwpck_require__(14300).SlowBuffer); + +module.exports = bufferEq; + +function bufferEq(a, b) { + + // shortcutting on type is necessary for correctness + if (!Buffer.isBuffer(a) || !Buffer.isBuffer(b)) { + return false; + } + + // buffer sizes should be well-known information, so despite this + // shortcutting, it doesn't leak any information about the *contents* of the + // buffers. + if (a.length !== b.length) { + return false; + } + + var c = 0; + for (var i = 0; i < a.length; i++) { + /*jshint bitwise:false */ + c |= a[i] ^ b[i]; // XOR + } + return c === 0; +} + +bufferEq.install = function() { + Buffer.prototype.equal = SlowBuffer.prototype.equal = function equal(that) { + return bufferEq(this, that); + }; +}; + +var origBufEqual = Buffer.prototype.equal; +var origSlowBufEqual = SlowBuffer.prototype.equal; +bufferEq.restore = function() { + Buffer.prototype.equal = origBufEqual; + SlowBuffer.prototype.equal = origSlowBufEqual; +}; + + +/***/ }), + +/***/ 25835: +/***/ ((module) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var ArchiveEntry = module.exports = function() {}; + +ArchiveEntry.prototype.getName = function() {}; + +ArchiveEntry.prototype.getSize = function() {}; + +ArchiveEntry.prototype.getLastModifiedDate = function() {}; + +ArchiveEntry.prototype.isDirectory = function() {}; + +/***/ }), + +/***/ 84051: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var inherits = (__nccwpck_require__(73837).inherits); +var Transform = (__nccwpck_require__(71264).Transform); + +var ArchiveEntry = __nccwpck_require__(25835); +var util = __nccwpck_require__(31778); + +var ArchiveOutputStream = module.exports = function(options) { + if (!(this instanceof ArchiveOutputStream)) { + return new ArchiveOutputStream(options); + } + + Transform.call(this, options); + + this.offset = 0; + this._archive = { + finish: false, + finished: false, + processing: false + }; +}; + +inherits(ArchiveOutputStream, Transform); + +ArchiveOutputStream.prototype._appendBuffer = function(zae, source, callback) { + // scaffold only +}; + +ArchiveOutputStream.prototype._appendStream = function(zae, source, callback) { + // scaffold only +}; + +ArchiveOutputStream.prototype._emitErrorCallback = function(err) { + if (err) { + this.emit('error', err); + } +}; + +ArchiveOutputStream.prototype._finish = function(ae) { + // scaffold only +}; + +ArchiveOutputStream.prototype._normalizeEntry = function(ae) { + // scaffold only +}; + +ArchiveOutputStream.prototype._transform = function(chunk, encoding, callback) { + callback(null, chunk); +}; + +ArchiveOutputStream.prototype.entry = function(ae, source, callback) { + source = source || null; + + if (typeof callback !== 'function') { + callback = this._emitErrorCallback.bind(this); + } + + if (!(ae instanceof ArchiveEntry)) { + callback(new Error('not a valid instance of ArchiveEntry')); + return; + } + + if (this._archive.finish || this._archive.finished) { + callback(new Error('unacceptable entry after finish')); + return; + } + + if (this._archive.processing) { + callback(new Error('already processing an entry')); + return; + } + + this._archive.processing = true; + this._normalizeEntry(ae); + this._entry = ae; + + source = util.normalizeInputSource(source); + + if (Buffer.isBuffer(source)) { + this._appendBuffer(ae, source, callback); + } else if (util.isStream(source)) { + this._appendStream(ae, source, callback); + } else { + this._archive.processing = false; + callback(new Error('input source must be valid Stream or Buffer instance')); + return; + } + + return this; +}; + +ArchiveOutputStream.prototype.finish = function() { + if (this._archive.processing) { + this._archive.finish = true; + return; + } + + this._finish(); +}; + +ArchiveOutputStream.prototype.getBytesWritten = function() { + return this.offset; +}; + +ArchiveOutputStream.prototype.write = function(chunk, cb) { + if (chunk) { + this.offset += chunk.length; + } + + return Transform.prototype.write.call(this, chunk, cb); +}; + +/***/ }), + +/***/ 17691: +/***/ ((module) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +module.exports = { + WORD: 4, + DWORD: 8, + EMPTY: Buffer.alloc(0), + + SHORT: 2, + SHORT_MASK: 0xffff, + SHORT_SHIFT: 16, + SHORT_ZERO: Buffer.from(Array(2)), + LONG: 4, + LONG_ZERO: Buffer.from(Array(4)), + + MIN_VERSION_INITIAL: 10, + MIN_VERSION_DATA_DESCRIPTOR: 20, + MIN_VERSION_ZIP64: 45, + VERSION_MADEBY: 45, + + METHOD_STORED: 0, + METHOD_DEFLATED: 8, + + PLATFORM_UNIX: 3, + PLATFORM_FAT: 0, + + SIG_LFH: 0x04034b50, + SIG_DD: 0x08074b50, + SIG_CFH: 0x02014b50, + SIG_EOCD: 0x06054b50, + SIG_ZIP64_EOCD: 0x06064B50, + SIG_ZIP64_EOCD_LOC: 0x07064B50, + + ZIP64_MAGIC_SHORT: 0xffff, + ZIP64_MAGIC: 0xffffffff, + ZIP64_EXTRA_ID: 0x0001, + + ZLIB_NO_COMPRESSION: 0, + ZLIB_BEST_SPEED: 1, + ZLIB_BEST_COMPRESSION: 9, + ZLIB_DEFAULT_COMPRESSION: -1, + + MODE_MASK: 0xFFF, + DEFAULT_FILE_MODE: 33188, // 010644 = -rw-r--r-- = S_IFREG | S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH + DEFAULT_DIR_MODE: 16877, // 040755 = drwxr-xr-x = S_IFDIR | S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH + + EXT_FILE_ATTR_DIR: 1106051088, // 010173200020 = drwxr-xr-x = (((S_IFDIR | 0755) << 16) | S_DOS_D) + EXT_FILE_ATTR_FILE: 2175008800, // 020151000040 = -rw-r--r-- = (((S_IFREG | 0644) << 16) | S_DOS_A) >>> 0 + + // Unix file types + S_IFMT: 61440, // 0170000 type of file mask + S_IFIFO: 4096, // 010000 named pipe (fifo) + S_IFCHR: 8192, // 020000 character special + S_IFDIR: 16384, // 040000 directory + S_IFBLK: 24576, // 060000 block special + S_IFREG: 32768, // 0100000 regular + S_IFLNK: 40960, // 0120000 symbolic link + S_IFSOCK: 49152, // 0140000 socket + + // DOS file type flags + S_DOS_A: 32, // 040 Archive + S_DOS_D: 16, // 020 Directory + S_DOS_V: 8, // 010 Volume + S_DOS_S: 4, // 04 System + S_DOS_H: 2, // 02 Hidden + S_DOS_R: 1 // 01 Read Only +}; + + +/***/ }), + +/***/ 27603: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var zipUtil = __nccwpck_require__(28548); + +var DATA_DESCRIPTOR_FLAG = 1 << 3; +var ENCRYPTION_FLAG = 1 << 0; +var NUMBER_OF_SHANNON_FANO_TREES_FLAG = 1 << 2; +var SLIDING_DICTIONARY_SIZE_FLAG = 1 << 1; +var STRONG_ENCRYPTION_FLAG = 1 << 6; +var UFT8_NAMES_FLAG = 1 << 11; + +var GeneralPurposeBit = module.exports = function() { + if (!(this instanceof GeneralPurposeBit)) { + return new GeneralPurposeBit(); + } + + this.descriptor = false; + this.encryption = false; + this.utf8 = false; + this.numberOfShannonFanoTrees = 0; + this.strongEncryption = false; + this.slidingDictionarySize = 0; + + return this; +}; + +GeneralPurposeBit.prototype.encode = function() { + return zipUtil.getShortBytes( + (this.descriptor ? DATA_DESCRIPTOR_FLAG : 0) | + (this.utf8 ? UFT8_NAMES_FLAG : 0) | + (this.encryption ? ENCRYPTION_FLAG : 0) | + (this.strongEncryption ? STRONG_ENCRYPTION_FLAG : 0) + ); +}; + +GeneralPurposeBit.prototype.parse = function(buf, offset) { + var flag = zipUtil.getShortBytesValue(buf, offset); + var gbp = new GeneralPurposeBit(); + + gbp.useDataDescriptor((flag & DATA_DESCRIPTOR_FLAG) !== 0); + gbp.useUTF8ForNames((flag & UFT8_NAMES_FLAG) !== 0); + gbp.useStrongEncryption((flag & STRONG_ENCRYPTION_FLAG) !== 0); + gbp.useEncryption((flag & ENCRYPTION_FLAG) !== 0); + gbp.setSlidingDictionarySize((flag & SLIDING_DICTIONARY_SIZE_FLAG) !== 0 ? 8192 : 4096); + gbp.setNumberOfShannonFanoTrees((flag & NUMBER_OF_SHANNON_FANO_TREES_FLAG) !== 0 ? 3 : 2); + + return gbp; +}; + +GeneralPurposeBit.prototype.setNumberOfShannonFanoTrees = function(n) { + this.numberOfShannonFanoTrees = n; +}; + +GeneralPurposeBit.prototype.getNumberOfShannonFanoTrees = function() { + return this.numberOfShannonFanoTrees; +}; + +GeneralPurposeBit.prototype.setSlidingDictionarySize = function(n) { + this.slidingDictionarySize = n; +}; + +GeneralPurposeBit.prototype.getSlidingDictionarySize = function() { + return this.slidingDictionarySize; +}; + +GeneralPurposeBit.prototype.useDataDescriptor = function(b) { + this.descriptor = b; +}; + +GeneralPurposeBit.prototype.usesDataDescriptor = function() { + return this.descriptor; +}; + +GeneralPurposeBit.prototype.useEncryption = function(b) { + this.encryption = b; +}; + +GeneralPurposeBit.prototype.usesEncryption = function() { + return this.encryption; +}; + +GeneralPurposeBit.prototype.useStrongEncryption = function(b) { + this.strongEncryption = b; +}; + +GeneralPurposeBit.prototype.usesStrongEncryption = function() { + return this.strongEncryption; +}; + +GeneralPurposeBit.prototype.useUTF8ForNames = function(b) { + this.utf8 = b; +}; + +GeneralPurposeBit.prototype.usesUTF8ForNames = function() { + return this.utf8; +}; + +/***/ }), + +/***/ 70746: +/***/ ((module) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +module.exports = { + /** + * Bits used for permissions (and sticky bit) + */ + PERM_MASK: 4095, // 07777 + + /** + * Bits used to indicate the filesystem object type. + */ + FILE_TYPE_FLAG: 61440, // 0170000 + + /** + * Indicates symbolic links. + */ + LINK_FLAG: 40960, // 0120000 + + /** + * Indicates plain files. + */ + FILE_FLAG: 32768, // 0100000 + + /** + * Indicates directories. + */ + DIR_FLAG: 16384, // 040000 + + // ---------------------------------------------------------- + // somewhat arbitrary choices that are quite common for shared + // installations + // ----------------------------------------------------------- + + /** + * Default permissions for symbolic links. + */ + DEFAULT_LINK_PERM: 511, // 0777 + + /** + * Default permissions for directories. + */ + DEFAULT_DIR_PERM: 493, // 0755 + + /** + * Default permissions for plain files. + */ + DEFAULT_FILE_PERM: 420 // 0644 +}; + +/***/ }), + +/***/ 28548: +/***/ ((module) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var util = module.exports = {}; + +util.dateToDos = function(d, forceLocalTime) { + forceLocalTime = forceLocalTime || false; + + var year = forceLocalTime ? d.getFullYear() : d.getUTCFullYear(); + + if (year < 1980) { + return 2162688; // 1980-1-1 00:00:00 + } else if (year >= 2044) { + return 2141175677; // 2043-12-31 23:59:58 + } + + var val = { + year: year, + month: forceLocalTime ? d.getMonth() : d.getUTCMonth(), + date: forceLocalTime ? d.getDate() : d.getUTCDate(), + hours: forceLocalTime ? d.getHours() : d.getUTCHours(), + minutes: forceLocalTime ? d.getMinutes() : d.getUTCMinutes(), + seconds: forceLocalTime ? d.getSeconds() : d.getUTCSeconds() + }; + + return ((val.year - 1980) << 25) | ((val.month + 1) << 21) | (val.date << 16) | + (val.hours << 11) | (val.minutes << 5) | (val.seconds / 2); +}; + +util.dosToDate = function(dos) { + return new Date(((dos >> 25) & 0x7f) + 1980, ((dos >> 21) & 0x0f) - 1, (dos >> 16) & 0x1f, (dos >> 11) & 0x1f, (dos >> 5) & 0x3f, (dos & 0x1f) << 1); +}; + +util.fromDosTime = function(buf) { + return util.dosToDate(buf.readUInt32LE(0)); +}; + +util.getEightBytes = function(v) { + var buf = Buffer.alloc(8); + buf.writeUInt32LE(v % 0x0100000000, 0); + buf.writeUInt32LE((v / 0x0100000000) | 0, 4); + + return buf; +}; + +util.getShortBytes = function(v) { + var buf = Buffer.alloc(2); + buf.writeUInt16LE((v & 0xFFFF) >>> 0, 0); + + return buf; +}; + +util.getShortBytesValue = function(buf, offset) { + return buf.readUInt16LE(offset); +}; + +util.getLongBytes = function(v) { + var buf = Buffer.alloc(4); + buf.writeUInt32LE((v & 0xFFFFFFFF) >>> 0, 0); + + return buf; +}; + +util.getLongBytesValue = function(buf, offset) { + return buf.readUInt32LE(offset); +}; + +util.toDosTime = function(d) { + return util.getLongBytes(util.dateToDos(d)); +}; + +/***/ }), + +/***/ 99274: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var inherits = (__nccwpck_require__(73837).inherits); +var normalizePath = __nccwpck_require__(98629); + +var ArchiveEntry = __nccwpck_require__(25835); +var GeneralPurposeBit = __nccwpck_require__(27603); +var UnixStat = __nccwpck_require__(70746); + +var constants = __nccwpck_require__(17691); +var zipUtil = __nccwpck_require__(28548); + +var ZipArchiveEntry = module.exports = function(name) { + if (!(this instanceof ZipArchiveEntry)) { + return new ZipArchiveEntry(name); + } + + ArchiveEntry.call(this); + + this.platform = constants.PLATFORM_FAT; + this.method = -1; + + this.name = null; + this.size = 0; + this.csize = 0; + this.gpb = new GeneralPurposeBit(); + this.crc = 0; + this.time = -1; + + this.minver = constants.MIN_VERSION_INITIAL; + this.mode = -1; + this.extra = null; + this.exattr = 0; + this.inattr = 0; + this.comment = null; + + if (name) { + this.setName(name); + } +}; + +inherits(ZipArchiveEntry, ArchiveEntry); + +/** + * Returns the extra fields related to the entry. + * + * @returns {Buffer} + */ +ZipArchiveEntry.prototype.getCentralDirectoryExtra = function() { + return this.getExtra(); +}; + +/** + * Returns the comment set for the entry. + * + * @returns {string} + */ +ZipArchiveEntry.prototype.getComment = function() { + return this.comment !== null ? this.comment : ''; +}; + +/** + * Returns the compressed size of the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getCompressedSize = function() { + return this.csize; +}; + +/** + * Returns the CRC32 digest for the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getCrc = function() { + return this.crc; +}; + +/** + * Returns the external file attributes for the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getExternalAttributes = function() { + return this.exattr; +}; + +/** + * Returns the extra fields related to the entry. + * + * @returns {Buffer} + */ +ZipArchiveEntry.prototype.getExtra = function() { + return this.extra !== null ? this.extra : constants.EMPTY; +}; + +/** + * Returns the general purpose bits related to the entry. + * + * @returns {GeneralPurposeBit} + */ +ZipArchiveEntry.prototype.getGeneralPurposeBit = function() { + return this.gpb; +}; + +/** + * Returns the internal file attributes for the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getInternalAttributes = function() { + return this.inattr; +}; + +/** + * Returns the last modified date of the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getLastModifiedDate = function() { + return this.getTime(); +}; + +/** + * Returns the extra fields related to the entry. + * + * @returns {Buffer} + */ +ZipArchiveEntry.prototype.getLocalFileDataExtra = function() { + return this.getExtra(); +}; + +/** + * Returns the compression method used on the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getMethod = function() { + return this.method; +}; + +/** + * Returns the filename of the entry. + * + * @returns {string} + */ +ZipArchiveEntry.prototype.getName = function() { + return this.name; +}; + +/** + * Returns the platform on which the entry was made. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getPlatform = function() { + return this.platform; +}; + +/** + * Returns the size of the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getSize = function() { + return this.size; +}; + +/** + * Returns a date object representing the last modified date of the entry. + * + * @returns {number|Date} + */ +ZipArchiveEntry.prototype.getTime = function() { + return this.time !== -1 ? zipUtil.dosToDate(this.time) : -1; +}; + +/** + * Returns the DOS timestamp for the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getTimeDos = function() { + return this.time !== -1 ? this.time : 0; +}; + +/** + * Returns the UNIX file permissions for the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getUnixMode = function() { + return this.platform !== constants.PLATFORM_UNIX ? 0 : ((this.getExternalAttributes() >> constants.SHORT_SHIFT) & constants.SHORT_MASK); +}; + +/** + * Returns the version of ZIP needed to extract the entry. + * + * @returns {number} + */ +ZipArchiveEntry.prototype.getVersionNeededToExtract = function() { + return this.minver; +}; + +/** + * Sets the comment of the entry. + * + * @param comment + */ +ZipArchiveEntry.prototype.setComment = function(comment) { + if (Buffer.byteLength(comment) !== comment.length) { + this.getGeneralPurposeBit().useUTF8ForNames(true); + } + + this.comment = comment; +}; + +/** + * Sets the compressed size of the entry. + * + * @param size + */ +ZipArchiveEntry.prototype.setCompressedSize = function(size) { + if (size < 0) { + throw new Error('invalid entry compressed size'); + } + + this.csize = size; +}; + +/** + * Sets the checksum of the entry. + * + * @param crc + */ +ZipArchiveEntry.prototype.setCrc = function(crc) { + if (crc < 0) { + throw new Error('invalid entry crc32'); + } + + this.crc = crc; +}; + +/** + * Sets the external file attributes of the entry. + * + * @param attr + */ +ZipArchiveEntry.prototype.setExternalAttributes = function(attr) { + this.exattr = attr >>> 0; +}; + +/** + * Sets the extra fields related to the entry. + * + * @param extra + */ +ZipArchiveEntry.prototype.setExtra = function(extra) { + this.extra = extra; +}; + +/** + * Sets the general purpose bits related to the entry. + * + * @param gpb + */ +ZipArchiveEntry.prototype.setGeneralPurposeBit = function(gpb) { + if (!(gpb instanceof GeneralPurposeBit)) { + throw new Error('invalid entry GeneralPurposeBit'); + } + + this.gpb = gpb; +}; + +/** + * Sets the internal file attributes of the entry. + * + * @param attr + */ +ZipArchiveEntry.prototype.setInternalAttributes = function(attr) { + this.inattr = attr; +}; + +/** + * Sets the compression method of the entry. + * + * @param method + */ +ZipArchiveEntry.prototype.setMethod = function(method) { + if (method < 0) { + throw new Error('invalid entry compression method'); + } + + this.method = method; +}; + +/** + * Sets the name of the entry. + * + * @param name + */ +ZipArchiveEntry.prototype.setName = function(name) { + name = normalizePath(name, false).replace(/^\w+:/, '').replace(/^(\.\.\/|\/)+/, ''); + + if (Buffer.byteLength(name) !== name.length) { + this.getGeneralPurposeBit().useUTF8ForNames(true); + } + + this.name = name; +}; + +/** + * Sets the platform on which the entry was made. + * + * @param platform + */ +ZipArchiveEntry.prototype.setPlatform = function(platform) { + this.platform = platform; +}; + +/** + * Sets the size of the entry. + * + * @param size + */ +ZipArchiveEntry.prototype.setSize = function(size) { + if (size < 0) { + throw new Error('invalid entry size'); + } + + this.size = size; +}; + +/** + * Sets the time of the entry. + * + * @param time + * @param forceLocalTime + */ +ZipArchiveEntry.prototype.setTime = function(time, forceLocalTime) { + if (!(time instanceof Date)) { + throw new Error('invalid entry time'); + } + + this.time = zipUtil.dateToDos(time, forceLocalTime); +}; + +/** + * Sets the UNIX file permissions for the entry. + * + * @param mode + */ +ZipArchiveEntry.prototype.setUnixMode = function(mode) { + mode |= this.isDirectory() ? constants.S_IFDIR : constants.S_IFREG; + + var extattr = 0; + extattr |= (mode << constants.SHORT_SHIFT) | (this.isDirectory() ? constants.S_DOS_D : constants.S_DOS_A); + + this.setExternalAttributes(extattr); + this.mode = mode & constants.MODE_MASK; + this.platform = constants.PLATFORM_UNIX; +}; + +/** + * Sets the version of ZIP needed to extract this entry. + * + * @param minver + */ +ZipArchiveEntry.prototype.setVersionNeededToExtract = function(minver) { + this.minver = minver; +}; + +/** + * Returns true if this entry represents a directory. + * + * @returns {boolean} + */ +ZipArchiveEntry.prototype.isDirectory = function() { + return this.getName().slice(-1) === '/'; +}; + +/** + * Returns true if this entry represents a unix symlink, + * in which case the entry's content contains the target path + * for the symlink. + * + * @returns {boolean} + */ +ZipArchiveEntry.prototype.isUnixSymlink = function() { + return (this.getUnixMode() & UnixStat.FILE_TYPE_FLAG) === UnixStat.LINK_FLAG; +}; + +/** + * Returns true if this entry is using the ZIP64 extension of ZIP. + * + * @returns {boolean} + */ +ZipArchiveEntry.prototype.isZip64 = function() { + return this.csize > constants.ZIP64_MAGIC || this.size > constants.ZIP64_MAGIC; +}; + + +/***/ }), + +/***/ 36219: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var inherits = (__nccwpck_require__(73837).inherits); +var crc32 = __nccwpck_require__(51588); +var {CRC32Stream} = __nccwpck_require__(87593); +var {DeflateCRC32Stream} = __nccwpck_require__(87593); + +var ArchiveOutputStream = __nccwpck_require__(84051); +var ZipArchiveEntry = __nccwpck_require__(99274); +var GeneralPurposeBit = __nccwpck_require__(27603); + +var constants = __nccwpck_require__(17691); +var util = __nccwpck_require__(31778); +var zipUtil = __nccwpck_require__(28548); + +var ZipArchiveOutputStream = module.exports = function(options) { + if (!(this instanceof ZipArchiveOutputStream)) { + return new ZipArchiveOutputStream(options); + } + + options = this.options = this._defaults(options); + + ArchiveOutputStream.call(this, options); + + this._entry = null; + this._entries = []; + this._archive = { + centralLength: 0, + centralOffset: 0, + comment: '', + finish: false, + finished: false, + processing: false, + forceZip64: options.forceZip64, + forceLocalTime: options.forceLocalTime + }; +}; + +inherits(ZipArchiveOutputStream, ArchiveOutputStream); + +ZipArchiveOutputStream.prototype._afterAppend = function(ae) { + this._entries.push(ae); + + if (ae.getGeneralPurposeBit().usesDataDescriptor()) { + this._writeDataDescriptor(ae); + } + + this._archive.processing = false; + this._entry = null; + + if (this._archive.finish && !this._archive.finished) { + this._finish(); + } +}; + +ZipArchiveOutputStream.prototype._appendBuffer = function(ae, source, callback) { + if (source.length === 0) { + ae.setMethod(constants.METHOD_STORED); + } + + var method = ae.getMethod(); + + if (method === constants.METHOD_STORED) { + ae.setSize(source.length); + ae.setCompressedSize(source.length); + ae.setCrc(crc32.unsigned(source)); + } + + this._writeLocalFileHeader(ae); + + if (method === constants.METHOD_STORED) { + this.write(source); + this._afterAppend(ae); + callback(null, ae); + return; + } else if (method === constants.METHOD_DEFLATED) { + this._smartStream(ae, callback).end(source); + return; + } else { + callback(new Error('compression method ' + method + ' not implemented')); + return; + } +}; + +ZipArchiveOutputStream.prototype._appendStream = function(ae, source, callback) { + ae.getGeneralPurposeBit().useDataDescriptor(true); + ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR); + + this._writeLocalFileHeader(ae); + + var smart = this._smartStream(ae, callback); + source.once('error', function(err) { + smart.emit('error', err); + smart.end(); + }) + source.pipe(smart); +}; + +ZipArchiveOutputStream.prototype._defaults = function(o) { + if (typeof o !== 'object') { + o = {}; + } + + if (typeof o.zlib !== 'object') { + o.zlib = {}; + } + + if (typeof o.zlib.level !== 'number') { + o.zlib.level = constants.ZLIB_BEST_SPEED; + } + + o.forceZip64 = !!o.forceZip64; + o.forceLocalTime = !!o.forceLocalTime; + + return o; +}; + +ZipArchiveOutputStream.prototype._finish = function() { + this._archive.centralOffset = this.offset; + + this._entries.forEach(function(ae) { + this._writeCentralFileHeader(ae); + }.bind(this)); + + this._archive.centralLength = this.offset - this._archive.centralOffset; + + if (this.isZip64()) { + this._writeCentralDirectoryZip64(); + } + + this._writeCentralDirectoryEnd(); + + this._archive.processing = false; + this._archive.finish = true; + this._archive.finished = true; + this.end(); +}; + +ZipArchiveOutputStream.prototype._normalizeEntry = function(ae) { + if (ae.getMethod() === -1) { + ae.setMethod(constants.METHOD_DEFLATED); + } + + if (ae.getMethod() === constants.METHOD_DEFLATED) { + ae.getGeneralPurposeBit().useDataDescriptor(true); + ae.setVersionNeededToExtract(constants.MIN_VERSION_DATA_DESCRIPTOR); + } + + if (ae.getTime() === -1) { + ae.setTime(new Date(), this._archive.forceLocalTime); + } + + ae._offsets = { + file: 0, + data: 0, + contents: 0, + }; +}; + +ZipArchiveOutputStream.prototype._smartStream = function(ae, callback) { + var deflate = ae.getMethod() === constants.METHOD_DEFLATED; + var process = deflate ? new DeflateCRC32Stream(this.options.zlib) : new CRC32Stream(); + var error = null; + + function handleStuff() { + var digest = process.digest().readUInt32BE(0); + ae.setCrc(digest); + ae.setSize(process.size()); + ae.setCompressedSize(process.size(true)); + this._afterAppend(ae); + callback(error, ae); + } + + process.once('end', handleStuff.bind(this)); + process.once('error', function(err) { + error = err; + }); + + process.pipe(this, { end: false }); + + return process; +}; + +ZipArchiveOutputStream.prototype._writeCentralDirectoryEnd = function() { + var records = this._entries.length; + var size = this._archive.centralLength; + var offset = this._archive.centralOffset; + + if (this.isZip64()) { + records = constants.ZIP64_MAGIC_SHORT; + size = constants.ZIP64_MAGIC; + offset = constants.ZIP64_MAGIC; + } + + // signature + this.write(zipUtil.getLongBytes(constants.SIG_EOCD)); + + // disk numbers + this.write(constants.SHORT_ZERO); + this.write(constants.SHORT_ZERO); + + // number of entries + this.write(zipUtil.getShortBytes(records)); + this.write(zipUtil.getShortBytes(records)); + + // length and location of CD + this.write(zipUtil.getLongBytes(size)); + this.write(zipUtil.getLongBytes(offset)); + + // archive comment + var comment = this.getComment(); + var commentLength = Buffer.byteLength(comment); + this.write(zipUtil.getShortBytes(commentLength)); + this.write(comment); +}; + +ZipArchiveOutputStream.prototype._writeCentralDirectoryZip64 = function() { + // signature + this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD)); + + // size of the ZIP64 EOCD record + this.write(zipUtil.getEightBytes(44)); + + // version made by + this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64)); + + // version to extract + this.write(zipUtil.getShortBytes(constants.MIN_VERSION_ZIP64)); + + // disk numbers + this.write(constants.LONG_ZERO); + this.write(constants.LONG_ZERO); + + // number of entries + this.write(zipUtil.getEightBytes(this._entries.length)); + this.write(zipUtil.getEightBytes(this._entries.length)); + + // length and location of CD + this.write(zipUtil.getEightBytes(this._archive.centralLength)); + this.write(zipUtil.getEightBytes(this._archive.centralOffset)); + + // extensible data sector + // not implemented at this time + + // end of central directory locator + this.write(zipUtil.getLongBytes(constants.SIG_ZIP64_EOCD_LOC)); + + // disk number holding the ZIP64 EOCD record + this.write(constants.LONG_ZERO); + + // relative offset of the ZIP64 EOCD record + this.write(zipUtil.getEightBytes(this._archive.centralOffset + this._archive.centralLength)); + + // total number of disks + this.write(zipUtil.getLongBytes(1)); +}; + +ZipArchiveOutputStream.prototype._writeCentralFileHeader = function(ae) { + var gpb = ae.getGeneralPurposeBit(); + var method = ae.getMethod(); + var offsets = ae._offsets; + + var size = ae.getSize(); + var compressedSize = ae.getCompressedSize(); + + if (ae.isZip64() || offsets.file > constants.ZIP64_MAGIC) { + size = constants.ZIP64_MAGIC; + compressedSize = constants.ZIP64_MAGIC; + + ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64); + + var extraBuf = Buffer.concat([ + zipUtil.getShortBytes(constants.ZIP64_EXTRA_ID), + zipUtil.getShortBytes(24), + zipUtil.getEightBytes(ae.getSize()), + zipUtil.getEightBytes(ae.getCompressedSize()), + zipUtil.getEightBytes(offsets.file) + ], 28); + + ae.setExtra(extraBuf); + } + + // signature + this.write(zipUtil.getLongBytes(constants.SIG_CFH)); + + // version made by + this.write(zipUtil.getShortBytes((ae.getPlatform() << 8) | constants.VERSION_MADEBY)); + + // version to extract and general bit flag + this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract())); + this.write(gpb.encode()); + + // compression method + this.write(zipUtil.getShortBytes(method)); + + // datetime + this.write(zipUtil.getLongBytes(ae.getTimeDos())); + + // crc32 checksum + this.write(zipUtil.getLongBytes(ae.getCrc())); + + // sizes + this.write(zipUtil.getLongBytes(compressedSize)); + this.write(zipUtil.getLongBytes(size)); + + var name = ae.getName(); + var comment = ae.getComment(); + var extra = ae.getCentralDirectoryExtra(); + + if (gpb.usesUTF8ForNames()) { + name = Buffer.from(name); + comment = Buffer.from(comment); + } + + // name length + this.write(zipUtil.getShortBytes(name.length)); + + // extra length + this.write(zipUtil.getShortBytes(extra.length)); + + // comments length + this.write(zipUtil.getShortBytes(comment.length)); + + // disk number start + this.write(constants.SHORT_ZERO); + + // internal attributes + this.write(zipUtil.getShortBytes(ae.getInternalAttributes())); + + // external attributes + this.write(zipUtil.getLongBytes(ae.getExternalAttributes())); + + // relative offset of LFH + if (offsets.file > constants.ZIP64_MAGIC) { + this.write(zipUtil.getLongBytes(constants.ZIP64_MAGIC)); + } else { + this.write(zipUtil.getLongBytes(offsets.file)); + } + + // name + this.write(name); + + // extra + this.write(extra); + + // comment + this.write(comment); +}; + +ZipArchiveOutputStream.prototype._writeDataDescriptor = function(ae) { + // signature + this.write(zipUtil.getLongBytes(constants.SIG_DD)); + + // crc32 checksum + this.write(zipUtil.getLongBytes(ae.getCrc())); + + // sizes + if (ae.isZip64()) { + this.write(zipUtil.getEightBytes(ae.getCompressedSize())); + this.write(zipUtil.getEightBytes(ae.getSize())); + } else { + this.write(zipUtil.getLongBytes(ae.getCompressedSize())); + this.write(zipUtil.getLongBytes(ae.getSize())); + } +}; + +ZipArchiveOutputStream.prototype._writeLocalFileHeader = function(ae) { + var gpb = ae.getGeneralPurposeBit(); + var method = ae.getMethod(); + var name = ae.getName(); + var extra = ae.getLocalFileDataExtra(); + + if (ae.isZip64()) { + gpb.useDataDescriptor(true); + ae.setVersionNeededToExtract(constants.MIN_VERSION_ZIP64); + } + + if (gpb.usesUTF8ForNames()) { + name = Buffer.from(name); + } + + ae._offsets.file = this.offset; + + // signature + this.write(zipUtil.getLongBytes(constants.SIG_LFH)); + + // version to extract and general bit flag + this.write(zipUtil.getShortBytes(ae.getVersionNeededToExtract())); + this.write(gpb.encode()); + + // compression method + this.write(zipUtil.getShortBytes(method)); + + // datetime + this.write(zipUtil.getLongBytes(ae.getTimeDos())); + + ae._offsets.data = this.offset; + + // crc32 checksum and sizes + if (gpb.usesDataDescriptor()) { + this.write(constants.LONG_ZERO); + this.write(constants.LONG_ZERO); + this.write(constants.LONG_ZERO); + } else { + this.write(zipUtil.getLongBytes(ae.getCrc())); + this.write(zipUtil.getLongBytes(ae.getCompressedSize())); + this.write(zipUtil.getLongBytes(ae.getSize())); + } + + // name length + this.write(zipUtil.getShortBytes(name.length)); + + // extra length + this.write(zipUtil.getShortBytes(extra.length)); + + // name + this.write(name); + + // extra + this.write(extra); + + ae._offsets.contents = this.offset; +}; + +ZipArchiveOutputStream.prototype.getComment = function(comment) { + return this._archive.comment !== null ? this._archive.comment : ''; +}; + +ZipArchiveOutputStream.prototype.isZip64 = function() { + return this._archive.forceZip64 || this._entries.length > constants.ZIP64_MAGIC_SHORT || this._archive.centralLength > constants.ZIP64_MAGIC || this._archive.centralOffset > constants.ZIP64_MAGIC; +}; + +ZipArchiveOutputStream.prototype.setComment = function(comment) { + this._archive.comment = comment; +}; + + +/***/ }), + +/***/ 64704: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +module.exports = { + ArchiveEntry: __nccwpck_require__(25835), + ZipArchiveEntry: __nccwpck_require__(99274), + ArchiveOutputStream: __nccwpck_require__(84051), + ZipArchiveOutputStream: __nccwpck_require__(36219) +}; + +/***/ }), + +/***/ 31778: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * node-compress-commons + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-compress-commons/blob/master/LICENSE-MIT + */ +var Stream = (__nccwpck_require__(12781).Stream); +var PassThrough = (__nccwpck_require__(71264).PassThrough); + +var util = module.exports = {}; + +util.isStream = function(source) { + return source instanceof Stream; +}; + +util.normalizeInputSource = function(source) { + if (source === null) { + return Buffer.alloc(0); + } else if (typeof source === 'string') { + return Buffer.from(source); + } else if (util.isStream(source) && !source._readableState) { + var normalized = new PassThrough(); + source.pipe(normalized); + + return normalized; + } + + return source; +}; + +/***/ }), + +/***/ 53124: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +/**/ +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) { + keys.push(key); + }return keys; +}; +/**/ + +module.exports = Duplex; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +var Readable = __nccwpck_require__(13944); +var Writable = __nccwpck_require__(50420); + +util.inherits(Duplex, Readable); + +{ + // avoid scope creep, the keys array can then be collected + var keys = objectKeys(Writable.prototype); + for (var v = 0; v < keys.length; v++) { + var method = keys[v]; + if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + } +} + +function Duplex(options) { + if (!(this instanceof Duplex)) return new Duplex(options); + + Readable.call(this, options); + Writable.call(this, options); + + if (options && options.readable === false) this.readable = false; + + if (options && options.writable === false) this.writable = false; + + this.allowHalfOpen = true; + if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; + + this.once('end', onend); +} + +Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// the no-half-open enforcer +function onend() { + // if we allow half-open state, or if the writable side ended, + // then we're ok. + if (this.allowHalfOpen || this._writableState.ended) return; + + // no more data can be written. + // But allow more writes to happen in this tick. + pna.nextTick(onEndNT, this); +} + +function onEndNT(self) { + self.end(); +} + +Object.defineProperty(Duplex.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined || this._writableState === undefined) { + return false; + } + return this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (this._readableState === undefined || this._writableState === undefined) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + this._writableState.destroyed = value; + } +}); + +Duplex.prototype._destroy = function (err, cb) { + this.push(null); + this.end(); + + pna.nextTick(cb, err); +}; + +/***/ }), + +/***/ 53138: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a passthrough stream. +// basically just the most minimal sort of Transform stream. +// Every written chunk gets output as-is. + + + +module.exports = PassThrough; + +var Transform = __nccwpck_require__(60128); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(PassThrough, Transform); + +function PassThrough(options) { + if (!(this instanceof PassThrough)) return new PassThrough(options); + + Transform.call(this, options); +} + +PassThrough.prototype._transform = function (chunk, encoding, cb) { + cb(null, chunk); +}; + +/***/ }), + +/***/ 13944: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Readable; + +/**/ +var isArray = __nccwpck_require__(78320); +/**/ + +/**/ +var Duplex; +/**/ + +Readable.ReadableState = ReadableState; + +/**/ +var EE = (__nccwpck_require__(82361).EventEmitter); + +var EElistenerCount = function (emitter, type) { + return emitter.listeners(type).length; +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(34472); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(4291).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var debugUtil = __nccwpck_require__(73837); +var debug = void 0; +if (debugUtil && debugUtil.debuglog) { + debug = debugUtil.debuglog('stream'); +} else { + debug = function () {}; +} +/**/ + +var BufferList = __nccwpck_require__(96416); +var destroyImpl = __nccwpck_require__(43807); +var StringDecoder; + +util.inherits(Readable, Stream); + +var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; + +function prependListener(emitter, event, fn) { + // Sadly this is not cacheable as some libraries bundle their own + // event emitter implementation with them. + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + + // This is a hack to make sure that our error handler is attached before any + // userland ones. NEVER DO THIS. This is here only because this code needs + // to continue to work with older versions of Node.js that do not include + // the prependListener() method. The goal is to eventually remove this hack. + if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; +} + +function ReadableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(53124); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + + // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + var hwm = options.highWaterMark; + var readableHwm = options.readableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // A linked list is used to store data chunks instead of an array because the + // linked list can remove elements from the beginning faster than + // array.shift() + this.buffer = new BufferList(); + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; + + // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. + this.sync = true; + + // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + this.resumeScheduled = false; + + // has it been destroyed + this.destroyed = false; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + + // if true, a maybeReadMore has been scheduled + this.readingMore = false; + + this.decoder = null; + this.encoding = null; + if (options.encoding) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } +} + +function Readable(options) { + Duplex = Duplex || __nccwpck_require__(53124); + + if (!(this instanceof Readable)) return new Readable(options); + + this._readableState = new ReadableState(options, this); + + // legacy + this.readable = true; + + if (options) { + if (typeof options.read === 'function') this._read = options.read; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + } + + Stream.call(this); +} + +Object.defineProperty(Readable.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined) { + return false; + } + return this._readableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._readableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + } +}); + +Readable.prototype.destroy = destroyImpl.destroy; +Readable.prototype._undestroy = destroyImpl.undestroy; +Readable.prototype._destroy = function (err, cb) { + this.push(null); + cb(err); +}; + +// Manually shove something into the read() buffer. +// This returns true if the highWaterMark has not been hit yet, +// similar to how Writable.write() returns true if you should +// write() some more. +Readable.prototype.push = function (chunk, encoding) { + var state = this._readableState; + var skipChunkCheck; + + if (!state.objectMode) { + if (typeof chunk === 'string') { + encoding = encoding || state.defaultEncoding; + if (encoding !== state.encoding) { + chunk = Buffer.from(chunk, encoding); + encoding = ''; + } + skipChunkCheck = true; + } + } else { + skipChunkCheck = true; + } + + return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); +}; + +// Unshift should *always* be something directly out of read() +Readable.prototype.unshift = function (chunk) { + return readableAddChunk(this, chunk, null, true, false); +}; + +function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { + var state = stream._readableState; + if (chunk === null) { + state.reading = false; + onEofChunk(stream, state); + } else { + var er; + if (!skipChunkCheck) er = chunkInvalid(state, chunk); + if (er) { + stream.emit('error', er); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (addToFront) { + if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true); + } else if (state.ended) { + stream.emit('error', new Error('stream.push() after EOF')); + } else { + state.reading = false; + if (state.decoder && !encoding) { + chunk = state.decoder.write(chunk); + if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); + } else { + addChunk(stream, state, chunk, false); + } + } + } else if (!addToFront) { + state.reading = false; + } + } + + return needMoreData(state); +} + +function addChunk(stream, state, chunk, addToFront) { + if (state.flowing && state.length === 0 && !state.sync) { + stream.emit('data', chunk); + stream.read(0); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + + if (state.needReadable) emitReadable(stream); + } + maybeReadMore(stream, state); +} + +function chunkInvalid(state, chunk) { + var er; + if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + return er; +} + +// if it's past the high water mark, we can push in some more. +// Also, if we have no data yet, we can stand some +// more bytes. This is to work around cases where hwm=0, +// such as the repl. Also, if the push() triggered a +// readable event, and the user called read(largeNumber) such that +// needReadable was set, then we ought to push more, so that another +// 'readable' event will be triggered. +function needMoreData(state) { + return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); +} + +Readable.prototype.isPaused = function () { + return this._readableState.flowing === false; +}; + +// backwards compatibility. +Readable.prototype.setEncoding = function (enc) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this._readableState.decoder = new StringDecoder(enc); + this._readableState.encoding = enc; + return this; +}; + +// Don't raise the hwm > 8MB +var MAX_HWM = 0x800000; +function computeNewHighWaterMark(n) { + if (n >= MAX_HWM) { + n = MAX_HWM; + } else { + // Get the next highest power of 2 to prevent increasing hwm excessively in + // tiny amounts + n--; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n++; + } + return n; +} + +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function howMuchToRead(n, state) { + if (n <= 0 || state.length === 0 && state.ended) return 0; + if (state.objectMode) return 1; + if (n !== n) { + // Only flow one buffer at a time + if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; + } + // If we're asking for more than the current hwm, then raise the hwm. + if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n <= state.length) return n; + // Don't have enough + if (!state.ended) { + state.needReadable = true; + return 0; + } + return state.length; +} + +// you can override either this method, or the async _read(n) below. +Readable.prototype.read = function (n) { + debug('read', n); + n = parseInt(n, 10); + var state = this._readableState; + var nOrig = n; + + if (n !== 0) state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + return null; + } + + n = howMuchToRead(n, state); + + // if we've ended, and we're now clear, then finish it up. + if (n === 0 && state.ended) { + if (state.length === 0) endReadable(this); + return null; + } + + // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + + // if we need a readable event, then we need to do some reading. + var doRead = state.needReadable; + debug('need readable', doRead); + + // if we currently have less than the highWaterMark, then also read some + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } + + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } else if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) state.needReadable = true; + // call internal read method + this._read(state.highWaterMark); + state.sync = false; + // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + if (!state.reading) n = howMuchToRead(nOrig, state); + } + + var ret; + if (n > 0) ret = fromList(n, state);else ret = null; + + if (ret === null) { + state.needReadable = true; + n = 0; + } else { + state.length -= n; + } + + if (state.length === 0) { + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (!state.ended) state.needReadable = true; + + // If we tried to read() past the EOF, then emit end on the next tick. + if (nOrig !== n && state.ended) endReadable(this); + } + + if (ret !== null) this.emit('data', ret); + + return ret; +}; + +function onEofChunk(stream, state) { + if (state.ended) return; + if (state.decoder) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + state.ended = true; + + // emit 'readable' now to make sure it gets picked up. + emitReadable(stream); +} + +// Don't emit readable right away in sync mode, because this can trigger +// another read() call => stack overflow. This way, it might trigger +// a nextTick recursion warning, but that's not so bad. +function emitReadable(stream) { + var state = stream._readableState; + state.needReadable = false; + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream); + } +} + +function emitReadable_(stream) { + debug('emit readable'); + stream.emit('readable'); + flow(stream); +} + +// at this point, the user has presumably seen the 'readable' event, +// and called read() to consume some data. that may have triggered +// in turn another _read(n) call, in which case reading = true if +// it's in progress. +// However, if we're not ended, or reading, and the length < hwm, +// then go ahead and try to read some more preemptively. +function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + pna.nextTick(maybeReadMore_, stream, state); + } +} + +function maybeReadMore_(stream, state) { + var len = state.length; + while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) + // didn't get any data, stop spinning. + break;else len = state.length; + } + state.readingMore = false; +} + +// abstract method. to be overridden in specific implementation classes. +// call cb(er, data) where data is <= n in length. +// for virtual (non-string, non-buffer) streams, "length" is somewhat +// arbitrary, and perhaps not very meaningful. +Readable.prototype._read = function (n) { + this.emit('error', new Error('_read() is not implemented')); +}; + +Readable.prototype.pipe = function (dest, pipeOpts) { + var src = this; + var state = this._readableState; + + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + case 1: + state.pipes = [state.pipes, dest]; + break; + default: + state.pipes.push(dest); + break; + } + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + + var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + + var endFn = doEnd ? onend : unpipe; + if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn); + + dest.on('unpipe', onunpipe); + function onunpipe(readable, unpipeInfo) { + debug('onunpipe'); + if (readable === src) { + if (unpipeInfo && unpipeInfo.hasUnpiped === false) { + unpipeInfo.hasUnpiped = true; + cleanup(); + } + } + } + + function onend() { + debug('onend'); + dest.end(); + } + + // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + + var cleanedUp = false; + function cleanup() { + debug('cleanup'); + // cleanup event handlers once the pipe is broken + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', unpipe); + src.removeListener('data', ondata); + + cleanedUp = true; + + // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + } + + // If the user pushes more data while we're writing to dest then we'll end up + // in ondata again. However, we only want to increase awaitDrain once because + // dest will only emit one 'drain' event for the multiple writes. + // => Introduce a guard on increasing awaitDrain. + var increasedAwaitDrain = false; + src.on('data', ondata); + function ondata(chunk) { + debug('ondata'); + increasedAwaitDrain = false; + var ret = dest.write(chunk); + if (false === ret && !increasedAwaitDrain) { + // If the user unpiped during `dest.write()`, it is possible + // to get stuck in a permanently paused state if that write + // also returned false. + // => Check whether `dest` is still a piping destination. + if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { + debug('false write response, pause', src._readableState.awaitDrain); + src._readableState.awaitDrain++; + increasedAwaitDrain = true; + } + src.pause(); + } + } + + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); + } + + // Make sure our error handler is attached before userland ones. + prependListener(dest, 'error', onerror); + + // Both close and finish should trigger unpipe, but only once. + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + dest.once('close', onclose); + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + dest.once('finish', onfinish); + + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } + + // tell the dest that it's being piped to + dest.emit('pipe', src); + + // start the flow if it hasn't been started already. + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + + return dest; +}; + +function pipeOnDrain(src) { + return function () { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) state.awaitDrain--; + if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; +} + +Readable.prototype.unpipe = function (dest) { + var state = this._readableState; + var unpipeInfo = { hasUnpiped: false }; + + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) return this; + + // just one destination. most common case. + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) return this; + + if (!dest) dest = state.pipes; + + // got a match. + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) dest.emit('unpipe', this, unpipeInfo); + return this; + } + + // slow case. multiple pipe destinations. + + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + + for (var i = 0; i < len; i++) { + dests[i].emit('unpipe', this, unpipeInfo); + }return this; + } + + // try to find the right one. + var index = indexOf(state.pipes, dest); + if (index === -1) return this; + + state.pipes.splice(index, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) state.pipes = state.pipes[0]; + + dest.emit('unpipe', this, unpipeInfo); + + return this; +}; + +// set up data events if they are asked for +// Ensure readable listeners eventually get something +Readable.prototype.on = function (ev, fn) { + var res = Stream.prototype.on.call(this, ev, fn); + + if (ev === 'data') { + // Start flowing on next tick if stream isn't explicitly paused + if (this._readableState.flowing !== false) this.resume(); + } else if (ev === 'readable') { + var state = this._readableState; + if (!state.endEmitted && !state.readableListening) { + state.readableListening = state.needReadable = true; + state.emittedReadable = false; + if (!state.reading) { + pna.nextTick(nReadingNextTick, this); + } else if (state.length) { + emitReadable(this); + } + } + } + + return res; +}; +Readable.prototype.addListener = Readable.prototype.on; + +function nReadingNextTick(self) { + debug('readable nexttick read 0'); + self.read(0); +} + +// pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. +Readable.prototype.resume = function () { + var state = this._readableState; + if (!state.flowing) { + debug('resume'); + state.flowing = true; + resume(this, state); + } + return this; +}; + +function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + pna.nextTick(resume_, stream, state); + } +} + +function resume_(stream, state) { + if (!state.reading) { + debug('resume read 0'); + stream.read(0); + } + + state.resumeScheduled = false; + state.awaitDrain = 0; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) stream.read(0); +} + +Readable.prototype.pause = function () { + debug('call pause flowing=%j', this._readableState.flowing); + if (false !== this._readableState.flowing) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + return this; +}; + +function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + while (state.flowing && stream.read() !== null) {} +} + +// wrap an old-style stream as the async data source. +// This is *not* part of the readable stream interface. +// It is an ugly unfortunate mess of history. +Readable.prototype.wrap = function (stream) { + var _this = this; + + var state = this._readableState; + var paused = false; + + stream.on('end', function () { + debug('wrapped end'); + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) _this.push(chunk); + } + + _this.push(null); + }); + + stream.on('data', function (chunk) { + debug('wrapped data'); + if (state.decoder) chunk = state.decoder.write(chunk); + + // don't skip over falsy values in objectMode + if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + + var ret = _this.push(chunk); + if (!ret) { + paused = true; + stream.pause(); + } + }); + + // proxy all the other methods. + // important when wrapping filters and duplexes. + for (var i in stream) { + if (this[i] === undefined && typeof stream[i] === 'function') { + this[i] = function (method) { + return function () { + return stream[method].apply(stream, arguments); + }; + }(i); + } + } + + // proxy certain important events. + for (var n = 0; n < kProxyEvents.length; n++) { + stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); + } + + // when we try to consume some more bytes, simply unpause the + // underlying stream. + this._read = function (n) { + debug('wrapped _read', n); + if (paused) { + paused = false; + stream.resume(); + } + }; + + return this; +}; + +Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._readableState.highWaterMark; + } +}); + +// exposed for testing purposes only. +Readable._fromList = fromList; + +// Pluck off n bytes from an array of buffers. +// Length is the combined lengths of all the buffers in the list. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromList(n, state) { + // nothing buffered + if (state.length === 0) return null; + + var ret; + if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { + // read it all, truncate the list + if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); + state.buffer.clear(); + } else { + // read part of list + ret = fromListPartial(n, state.buffer, state.decoder); + } + + return ret; +} + +// Extracts only enough buffered data to satisfy the amount requested. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromListPartial(n, list, hasStrings) { + var ret; + if (n < list.head.data.length) { + // slice is the same for buffers and strings + ret = list.head.data.slice(0, n); + list.head.data = list.head.data.slice(n); + } else if (n === list.head.data.length) { + // first chunk is a perfect match + ret = list.shift(); + } else { + // result spans more than one buffer + ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); + } + return ret; +} + +// Copies a specified amount of characters from the list of buffered data +// chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBufferString(n, list) { + var p = list.head; + var c = 1; + var ret = p.data; + n -= ret.length; + while (p = p.next) { + var str = p.data; + var nb = n > str.length ? str.length : n; + if (nb === str.length) ret += str;else ret += str.slice(0, n); + n -= nb; + if (n === 0) { + if (nb === str.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = str.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +// Copies a specified amount of bytes from the list of buffered data chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBuffer(n, list) { + var ret = Buffer.allocUnsafe(n); + var p = list.head; + var c = 1; + p.data.copy(ret); + n -= p.data.length; + while (p = p.next) { + var buf = p.data; + var nb = n > buf.length ? buf.length : n; + buf.copy(ret, ret.length - n, 0, nb); + n -= nb; + if (n === 0) { + if (nb === buf.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = buf.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +function endReadable(stream) { + var state = stream._readableState; + + // If we get here before consuming all the bytes, then that is a + // bug in node. Should never happen. + if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); + + if (!state.endEmitted) { + state.ended = true; + pna.nextTick(endReadableNT, state, stream); + } +} + +function endReadableNT(state, stream) { + // Check that we didn't get one last unshift. + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + } +} + +function indexOf(xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) return i; + } + return -1; +} + +/***/ }), + +/***/ 60128: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a transform stream is a readable/writable stream where you do +// something with the data. Sometimes it's called a "filter", +// but that's not a great name for it, since that implies a thing where +// some bits pass through, and others are simply ignored. (That would +// be a valid example of a transform, of course.) +// +// While the output is causally related to the input, it's not a +// necessarily symmetric or synchronous transformation. For example, +// a zlib stream might take multiple plain-text writes(), and then +// emit a single compressed chunk some time in the future. +// +// Here's how this works: +// +// The Transform stream has all the aspects of the readable and writable +// stream classes. When you write(chunk), that calls _write(chunk,cb) +// internally, and returns false if there's a lot of pending writes +// buffered up. When you call read(), that calls _read(n) until +// there's enough pending readable data buffered up. +// +// In a transform stream, the written data is placed in a buffer. When +// _read(n) is called, it transforms the queued up data, calling the +// buffered _write cb's as it consumes chunks. If consuming a single +// written chunk would result in multiple output chunks, then the first +// outputted bit calls the readcb, and subsequent chunks just go into +// the read buffer, and will cause it to emit 'readable' if necessary. +// +// This way, back-pressure is actually determined by the reading side, +// since _read has to be called to start processing a new chunk. However, +// a pathological inflate type of transform can cause excessive buffering +// here. For example, imagine a stream where every byte of input is +// interpreted as an integer from 0-255, and then results in that many +// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in +// 1kb of data being output. In this case, you could write a very small +// amount of input, and end up with a very large amount of output. In +// such a pathological inflating mechanism, there'd be no way to tell +// the system to stop doing the transform. A single 4MB write could +// cause the system to run out of memory. +// +// However, even in such a pathological case, only a single written chunk +// would be consumed, and then the rest would wait (un-transformed) until +// the results of the previous transformed chunk were consumed. + + + +module.exports = Transform; + +var Duplex = __nccwpck_require__(53124); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(Transform, Duplex); + +function afterTransform(er, data) { + var ts = this._transformState; + ts.transforming = false; + + var cb = ts.writecb; + + if (!cb) { + return this.emit('error', new Error('write callback called multiple times')); + } + + ts.writechunk = null; + ts.writecb = null; + + if (data != null) // single equals check for both `null` and `undefined` + this.push(data); + + cb(er); + + var rs = this._readableState; + rs.reading = false; + if (rs.needReadable || rs.length < rs.highWaterMark) { + this._read(rs.highWaterMark); + } +} + +function Transform(options) { + if (!(this instanceof Transform)) return new Transform(options); + + Duplex.call(this, options); + + this._transformState = { + afterTransform: afterTransform.bind(this), + needTransform: false, + transforming: false, + writecb: null, + writechunk: null, + writeencoding: null + }; + + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; + + // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + this._readableState.sync = false; + + if (options) { + if (typeof options.transform === 'function') this._transform = options.transform; + + if (typeof options.flush === 'function') this._flush = options.flush; + } + + // When the writable side finishes, then flush out anything remaining. + this.on('prefinish', prefinish); +} + +function prefinish() { + var _this = this; + + if (typeof this._flush === 'function') { + this._flush(function (er, data) { + done(_this, er, data); + }); + } else { + done(this, null, null); + } +} + +Transform.prototype.push = function (chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); +}; + +// This is the part where you do stuff! +// override this function in implementation classes. +// 'chunk' is an input chunk. +// +// Call `push(newChunk)` to pass along transformed output +// to the readable side. You may call 'push' zero or more times. +// +// Call `cb(err)` when you are done with this chunk. If you pass +// an error, then that'll put the hurt on the whole operation. If you +// never call cb(), then you'll never get another chunk. +Transform.prototype._transform = function (chunk, encoding, cb) { + throw new Error('_transform() is not implemented'); +}; + +Transform.prototype._write = function (chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + } +}; + +// Doesn't matter what the args are here. +// _transform does all the work. +// That we got here means that the readable side wants more data. +Transform.prototype._read = function (n) { + var ts = this._transformState; + + if (ts.writechunk !== null && ts.writecb && !ts.transforming) { + ts.transforming = true; + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } +}; + +Transform.prototype._destroy = function (err, cb) { + var _this2 = this; + + Duplex.prototype._destroy.call(this, err, function (err2) { + cb(err2); + _this2.emit('close'); + }); +}; + +function done(stream, er, data) { + if (er) return stream.emit('error', er); + + if (data != null) // single equals check for both `null` and `undefined` + stream.push(data); + + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0'); + + if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming'); + + return stream.push(null); +} + +/***/ }), + +/***/ 50420: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// A bit simpler than readable streams. +// Implement an async ._write(chunk, encoding, cb), and it'll handle all +// the drain event emission and buffering. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Writable; + +/* */ +function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + this.next = null; +} + +// It seems a linked list but it is not +// there will be only 2 of these for each stream +function CorkedRequest(state) { + var _this = this; + + this.next = null; + this.entry = null; + this.finish = function () { + onCorkedFinish(_this, state); + }; +} +/* */ + +/**/ +var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; +/**/ + +/**/ +var Duplex; +/**/ + +Writable.WritableState = WritableState; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var internalUtil = { + deprecate: __nccwpck_require__(31674) +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(34472); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(4291).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +var destroyImpl = __nccwpck_require__(43807); + +util.inherits(Writable, Stream); + +function nop() {} + +function WritableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(53124); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag to indicate whether or not this stream + // contains buffers or objects. + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + + // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + var hwm = options.highWaterMark; + var writableHwm = options.writableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // if _final has been called + this.finalCalled = false; + + // drain event flag. + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; + + // has it been destroyed + this.destroyed = false; + + // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + this.length = 0; + + // a flag to see when we're in the middle of a write. + this.writing = false; + + // when true all writes will be buffered until .uncork() call + this.corked = 0; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + this.bufferProcessing = false; + + // the callback that's passed to _write(chunk,cb) + this.onwrite = function (er) { + onwrite(stream, er); + }; + + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; + + // the amount that is being written when _write is called. + this.writelen = 0; + + this.bufferedRequest = null; + this.lastBufferedRequest = null; + + // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; + + // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + this.prefinished = false; + + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; + + // count buffered requests + this.bufferedRequestCount = 0; + + // allocate the first CorkedRequest, there is always + // one allocated and free to use, and we maintain at most two + this.corkedRequestsFree = new CorkedRequest(this); +} + +WritableState.prototype.getBuffer = function getBuffer() { + var current = this.bufferedRequest; + var out = []; + while (current) { + out.push(current); + current = current.next; + } + return out; +}; + +(function () { + try { + Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function () { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') + }); + } catch (_) {} +})(); + +// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. +var realHasInstance; +if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { + realHasInstance = Function.prototype[Symbol.hasInstance]; + Object.defineProperty(Writable, Symbol.hasInstance, { + value: function (object) { + if (realHasInstance.call(this, object)) return true; + if (this !== Writable) return false; + + return object && object._writableState instanceof WritableState; + } + }); +} else { + realHasInstance = function (object) { + return object instanceof this; + }; +} + +function Writable(options) { + Duplex = Duplex || __nccwpck_require__(53124); + + // Writable ctor is applied to Duplexes, too. + // `realHasInstance` is necessary because using plain `instanceof` + // would return false, as no `_writableState` property is attached. + + // Trying to use the custom `instanceof` for Writable here will also break the + // Node.js LazyTransform implementation, which has a non-trivial getter for + // `_writableState` that would lead to infinite recursion. + if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { + return new Writable(options); + } + + this._writableState = new WritableState(options, this); + + // legacy. + this.writable = true; + + if (options) { + if (typeof options.write === 'function') this._write = options.write; + + if (typeof options.writev === 'function') this._writev = options.writev; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + + if (typeof options.final === 'function') this._final = options.final; + } + + Stream.call(this); +} + +// Otherwise people can pipe Writable streams, which is just wrong. +Writable.prototype.pipe = function () { + this.emit('error', new Error('Cannot pipe, not readable')); +}; + +function writeAfterEnd(stream, cb) { + var er = new Error('write after end'); + // TODO: defer error events consistently everywhere, not just the cb + stream.emit('error', er); + pna.nextTick(cb, er); +} + +// Checks that a user-supplied chunk is valid, especially for the particular +// mode the stream is in. Currently this means that `null` is never accepted +// and undefined/non-string values are only allowed in object mode. +function validChunk(stream, state, chunk, cb) { + var valid = true; + var er = false; + + if (chunk === null) { + er = new TypeError('May not write null values to stream'); + } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + if (er) { + stream.emit('error', er); + pna.nextTick(cb, er); + valid = false; + } + return valid; +} + +Writable.prototype.write = function (chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + var isBuf = !state.objectMode && _isUint8Array(chunk); + + if (isBuf && !Buffer.isBuffer(chunk)) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + + if (typeof cb !== 'function') cb = nop; + + if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); + } + + return ret; +}; + +Writable.prototype.cork = function () { + var state = this._writableState; + + state.corked++; +}; + +Writable.prototype.uncork = function () { + var state = this._writableState; + + if (state.corked) { + state.corked--; + + if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + } +}; + +Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { + // node::ParseEncoding() requires lower case. + if (typeof encoding === 'string') encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); + this._writableState.defaultEncoding = encoding; + return this; +}; + +function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + chunk = Buffer.from(chunk, encoding); + } + return chunk; +} + +Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. +function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { + if (!isBuf) { + var newChunk = decodeChunk(state, chunk, encoding); + if (chunk !== newChunk) { + isBuf = true; + encoding = 'buffer'; + chunk = newChunk; + } + } + var len = state.objectMode ? 1 : chunk.length; + + state.length += len; + + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. + if (!ret) state.needDrain = true; + + if (state.writing || state.corked) { + var last = state.lastBufferedRequest; + state.lastBufferedRequest = { + chunk: chunk, + encoding: encoding, + isBuf: isBuf, + callback: cb, + next: null + }; + if (last) { + last.next = state.lastBufferedRequest; + } else { + state.bufferedRequest = state.lastBufferedRequest; + } + state.bufferedRequestCount += 1; + } else { + doWrite(stream, state, false, len, chunk, encoding, cb); + } + + return ret; +} + +function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + state.sync = false; +} + +function onwriteError(stream, state, sync, er, cb) { + --state.pendingcb; + + if (sync) { + // defer the callback if we are being called synchronously + // to avoid piling up things on the stack + pna.nextTick(cb, er); + // this can emit finish, and it will always happen + // after error + pna.nextTick(finishMaybe, stream, state); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + } else { + // the caller expect this to happen before if + // it is async + cb(er); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + // this can emit finish, but finish must + // always follow error + finishMaybe(stream, state); + } +} + +function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; +} + +function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + + onwriteStateUpdate(state); + + if (er) onwriteError(stream, state, sync, er, cb);else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(state); + + if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + clearBuffer(stream, state); + } + + if (sync) { + /**/ + asyncWrite(afterWrite, stream, state, finished, cb); + /**/ + } else { + afterWrite(stream, state, finished, cb); + } + } +} + +function afterWrite(stream, state, finished, cb) { + if (!finished) onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); +} + +// Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. +function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } +} + +// if there's something in the buffer waiting, then process it +function clearBuffer(stream, state) { + state.bufferProcessing = true; + var entry = state.bufferedRequest; + + if (stream._writev && entry && entry.next) { + // Fast case, write everything using _writev() + var l = state.bufferedRequestCount; + var buffer = new Array(l); + var holder = state.corkedRequestsFree; + holder.entry = entry; + + var count = 0; + var allBuffers = true; + while (entry) { + buffer[count] = entry; + if (!entry.isBuf) allBuffers = false; + entry = entry.next; + count += 1; + } + buffer.allBuffers = allBuffers; + + doWrite(stream, state, true, state.length, buffer, '', holder.finish); + + // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite + state.pendingcb++; + state.lastBufferedRequest = null; + if (holder.next) { + state.corkedRequestsFree = holder.next; + holder.next = null; + } else { + state.corkedRequestsFree = new CorkedRequest(state); + } + state.bufferedRequestCount = 0; + } else { + // Slow case, write chunks one-by-one + while (entry) { + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + + doWrite(stream, state, false, len, chunk, encoding, cb); + entry = entry.next; + state.bufferedRequestCount--; + // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + if (state.writing) { + break; + } + } + + if (entry === null) state.lastBufferedRequest = null; + } + + state.bufferedRequest = entry; + state.bufferProcessing = false; +} + +Writable.prototype._write = function (chunk, encoding, cb) { + cb(new Error('_write() is not implemented')); +}; + +Writable.prototype._writev = null; + +Writable.prototype.end = function (chunk, encoding, cb) { + var state = this._writableState; + + if (typeof chunk === 'function') { + cb = chunk; + chunk = null; + encoding = null; + } else if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); + + // .end() fully uncorks + if (state.corked) { + state.corked = 1; + this.uncork(); + } + + // ignore unnecessary end() calls. + if (!state.ending && !state.finished) endWritable(this, state, cb); +}; + +function needFinish(state) { + return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; +} +function callFinal(stream, state) { + stream._final(function (err) { + state.pendingcb--; + if (err) { + stream.emit('error', err); + } + state.prefinished = true; + stream.emit('prefinish'); + finishMaybe(stream, state); + }); +} +function prefinish(stream, state) { + if (!state.prefinished && !state.finalCalled) { + if (typeof stream._final === 'function') { + state.pendingcb++; + state.finalCalled = true; + pna.nextTick(callFinal, stream, state); + } else { + state.prefinished = true; + stream.emit('prefinish'); + } + } +} + +function finishMaybe(stream, state) { + var need = needFinish(state); + if (need) { + prefinish(stream, state); + if (state.pendingcb === 0) { + state.finished = true; + stream.emit('finish'); + } + } + return need; +} + +function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + if (cb) { + if (state.finished) pna.nextTick(cb);else stream.once('finish', cb); + } + state.ended = true; + stream.writable = false; +} + +function onCorkedFinish(corkReq, state, err) { + var entry = corkReq.entry; + corkReq.entry = null; + while (entry) { + var cb = entry.callback; + state.pendingcb--; + cb(err); + entry = entry.next; + } + if (state.corkedRequestsFree) { + state.corkedRequestsFree.next = corkReq; + } else { + state.corkedRequestsFree = corkReq; + } +} + +Object.defineProperty(Writable.prototype, 'destroyed', { + get: function () { + if (this._writableState === undefined) { + return false; + } + return this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._writableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._writableState.destroyed = value; + } +}); + +Writable.prototype.destroy = destroyImpl.destroy; +Writable.prototype._undestroy = destroyImpl.undestroy; +Writable.prototype._destroy = function (err, cb) { + this.end(); + cb(err); +}; + +/***/ }), + +/***/ 96416: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Buffer = (__nccwpck_require__(4291).Buffer); +var util = __nccwpck_require__(73837); + +function copyBuffer(src, target, offset) { + src.copy(target, offset); +} + +module.exports = function () { + function BufferList() { + _classCallCheck(this, BufferList); + + this.head = null; + this.tail = null; + this.length = 0; + } + + BufferList.prototype.push = function push(v) { + var entry = { data: v, next: null }; + if (this.length > 0) this.tail.next = entry;else this.head = entry; + this.tail = entry; + ++this.length; + }; + + BufferList.prototype.unshift = function unshift(v) { + var entry = { data: v, next: this.head }; + if (this.length === 0) this.tail = entry; + this.head = entry; + ++this.length; + }; + + BufferList.prototype.shift = function shift() { + if (this.length === 0) return; + var ret = this.head.data; + if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; + --this.length; + return ret; + }; + + BufferList.prototype.clear = function clear() { + this.head = this.tail = null; + this.length = 0; + }; + + BufferList.prototype.join = function join(s) { + if (this.length === 0) return ''; + var p = this.head; + var ret = '' + p.data; + while (p = p.next) { + ret += s + p.data; + }return ret; + }; + + BufferList.prototype.concat = function concat(n) { + if (this.length === 0) return Buffer.alloc(0); + if (this.length === 1) return this.head.data; + var ret = Buffer.allocUnsafe(n >>> 0); + var p = this.head; + var i = 0; + while (p) { + copyBuffer(p.data, ret, i); + i += p.data.length; + p = p.next; + } + return ret; + }; + + return BufferList; +}(); + +if (util && util.inspect && util.inspect.custom) { + module.exports.prototype[util.inspect.custom] = function () { + var obj = util.inspect({ length: this.length }); + return this.constructor.name + ' ' + obj; + }; +} + +/***/ }), + +/***/ 43807: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +// undocumented cb() API, needed for core, not for public API +function destroy(err, cb) { + var _this = this; + + var readableDestroyed = this._readableState && this._readableState.destroyed; + var writableDestroyed = this._writableState && this._writableState.destroyed; + + if (readableDestroyed || writableDestroyed) { + if (cb) { + cb(err); + } else if (err && (!this._writableState || !this._writableState.errorEmitted)) { + pna.nextTick(emitErrorNT, this, err); + } + return this; + } + + // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks + + if (this._readableState) { + this._readableState.destroyed = true; + } + + // if this is a duplex stream mark the writable part as destroyed as well + if (this._writableState) { + this._writableState.destroyed = true; + } + + this._destroy(err || null, function (err) { + if (!cb && err) { + pna.nextTick(emitErrorNT, _this, err); + if (_this._writableState) { + _this._writableState.errorEmitted = true; + } + } else if (cb) { + cb(err); + } + }); + + return this; +} + +function undestroy() { + if (this._readableState) { + this._readableState.destroyed = false; + this._readableState.reading = false; + this._readableState.ended = false; + this._readableState.endEmitted = false; + } + + if (this._writableState) { + this._writableState.destroyed = false; + this._writableState.ended = false; + this._writableState.ending = false; + this._writableState.finished = false; + this._writableState.errorEmitted = false; + } +} + +function emitErrorNT(self, err) { + self.emit('error', err); +} + +module.exports = { + destroy: destroy, + undestroy: undestroy +}; + +/***/ }), + +/***/ 34472: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(12781); + + +/***/ }), + +/***/ 71264: +/***/ ((module, exports, __nccwpck_require__) => { + +var Stream = __nccwpck_require__(12781); +if (process.env.READABLE_STREAM === 'disable' && Stream) { + module.exports = Stream; + exports = module.exports = Stream.Readable; + exports.Readable = Stream.Readable; + exports.Writable = Stream.Writable; + exports.Duplex = Stream.Duplex; + exports.Transform = Stream.Transform; + exports.PassThrough = Stream.PassThrough; + exports.Stream = Stream; +} else { + exports = module.exports = __nccwpck_require__(13944); + exports.Stream = Stream || exports; + exports.Readable = exports; + exports.Writable = __nccwpck_require__(50420); + exports.Duplex = __nccwpck_require__(53124); + exports.Transform = __nccwpck_require__(60128); + exports.PassThrough = __nccwpck_require__(53138); +} + + +/***/ }), + +/***/ 4291: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 65944: +/***/ ((module) => { + +module.exports = function (xs, fn) { + var res = []; + for (var i = 0; i < xs.length; i++) { + var x = fn(xs[i], i); + if (isArray(x)) res.push.apply(res, x); + else res.push(x); + } + return res; +}; + +var isArray = Array.isArray || function (xs) { + return Object.prototype.toString.call(xs) === '[object Array]'; +}; + + +/***/ }), + +/***/ 44578: +/***/ ((__unused_webpack_module, exports) => { + +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// NOTE: These type checking functions intentionally don't use `instanceof` +// because it is fragile and can be easily faked with `Object.create()`. + +function isArray(arg) { + if (Array.isArray) { + return Array.isArray(arg); + } + return objectToString(arg) === '[object Array]'; +} +exports.isArray = isArray; + +function isBoolean(arg) { + return typeof arg === 'boolean'; +} +exports.isBoolean = isBoolean; + +function isNull(arg) { + return arg === null; +} +exports.isNull = isNull; + +function isNullOrUndefined(arg) { + return arg == null; +} +exports.isNullOrUndefined = isNullOrUndefined; + +function isNumber(arg) { + return typeof arg === 'number'; +} +exports.isNumber = isNumber; + +function isString(arg) { + return typeof arg === 'string'; +} +exports.isString = isString; + +function isSymbol(arg) { + return typeof arg === 'symbol'; +} +exports.isSymbol = isSymbol; + +function isUndefined(arg) { + return arg === void 0; +} +exports.isUndefined = isUndefined; + +function isRegExp(re) { + return objectToString(re) === '[object RegExp]'; +} +exports.isRegExp = isRegExp; + +function isObject(arg) { + return typeof arg === 'object' && arg !== null; +} +exports.isObject = isObject; + +function isDate(d) { + return objectToString(d) === '[object Date]'; +} +exports.isDate = isDate; + +function isError(e) { + return (objectToString(e) === '[object Error]' || e instanceof Error); +} +exports.isError = isError; + +function isFunction(arg) { + return typeof arg === 'function'; +} +exports.isFunction = isFunction; + +function isPrimitive(arg) { + return arg === null || + typeof arg === 'boolean' || + typeof arg === 'number' || + typeof arg === 'string' || + typeof arg === 'symbol' || // ES6 symbol + typeof arg === 'undefined'; +} +exports.isPrimitive = isPrimitive; + +exports.isBuffer = Buffer.isBuffer; + +function objectToString(o) { + return Object.prototype.toString.call(o); +} + + +/***/ }), + +/***/ 65311: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/** + * node-crc32-stream + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT + */ + + + +const {Transform} = __nccwpck_require__(85635); + +const {crc32} = __nccwpck_require__(68695); + +class CRC32Stream extends Transform { + constructor(options) { + super(options); + this.checksum = Buffer.allocUnsafe(4); + this.checksum.writeInt32BE(0, 0); + + this.rawSize = 0; + } + + _transform(chunk, encoding, callback) { + if (chunk) { + this.checksum = crc32(chunk, this.checksum); + this.rawSize += chunk.length; + } + + callback(null, chunk); + } + + digest(encoding) { + const checksum = Buffer.allocUnsafe(4); + checksum.writeUInt32BE(this.checksum >>> 0, 0); + return encoding ? checksum.toString(encoding) : checksum; + } + + hex() { + return this.digest('hex').toUpperCase(); + } + + size() { + return this.rawSize; + } +} + +module.exports = CRC32Stream; + + +/***/ }), + +/***/ 76273: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/** + * node-crc32-stream + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT + */ + + + +const {DeflateRaw} = __nccwpck_require__(59796); + +const {crc32} = __nccwpck_require__(68695); + +class DeflateCRC32Stream extends DeflateRaw { + constructor(options) { + super(options); + + this.checksum = Buffer.allocUnsafe(4); + this.checksum.writeInt32BE(0, 0); + + this.rawSize = 0; + this.compressedSize = 0; + } + + push(chunk, encoding) { + if (chunk) { + this.compressedSize += chunk.length; + } + + return super.push(chunk, encoding); + } + + write(chunk, enc, cb) { + if (chunk) { + this.checksum = crc32(chunk, this.checksum); + this.rawSize += chunk.length; + } + + return super.write(chunk, enc, cb); + } + + digest(encoding) { + const checksum = Buffer.allocUnsafe(4); + checksum.writeUInt32BE(this.checksum >>> 0, 0); + return encoding ? checksum.toString(encoding) : checksum; + } + + hex() { + return this.digest('hex').toUpperCase(); + } + + size(compressed = false) { + if (compressed) { + return this.compressedSize; + } else { + return this.rawSize; + } + } +} + +module.exports = DeflateCRC32Stream; + + +/***/ }), + +/***/ 87593: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +/** + * node-crc32-stream + * + * Copyright (c) 2014 Chris Talkington, contributors. + * Licensed under the MIT license. + * https://github.com/archiverjs/node-crc32-stream/blob/master/LICENSE-MIT + */ + + + +module.exports = { + CRC32Stream: __nccwpck_require__(65311), + DeflateCRC32Stream: __nccwpck_require__(76273) +} + + +/***/ }), + +/***/ 99353: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(98646)["default"]; + + +/***/ }), + +/***/ 9265: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(46925)["default"]; + + +/***/ }), + +/***/ 771: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(95556)["default"]; + + +/***/ }), + +/***/ 70081: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(74939)["default"]; + + +/***/ }), + +/***/ 64241: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(50436)["default"]; + + +/***/ }), + +/***/ 4602: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(36429)["default"]; + + +/***/ }), + +/***/ 23675: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(45461)["default"]; + + +/***/ }), + +/***/ 85645: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(36779)["default"]; + + +/***/ }), + +/***/ 52587: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(90003)["default"]; + + +/***/ }), + +/***/ 83845: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(17384)["default"]; + + +/***/ }), + +/***/ 31301: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = __nccwpck_require__(62601)["default"]; + + +/***/ }), + +/***/ 98646: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var crc1 = (0, _define_crc2.default)('crc1', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = ~~previous; + var accum = 0; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + accum += byte; + } + + crc += accum % 256; + return crc % 256; +}); + +exports["default"] = crc1; + + +/***/ }), + +/***/ 46925: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=crc-16 --generate=c` +// prettier-ignore +var TABLE = [0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, 0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440, 0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00, 0xcfc1, 0xce81, 0x0e40, 0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0, 0x0880, 0xc841, 0xd801, 0x18c0, 0x1980, 0xd941, 0x1b00, 0xdbc1, 0xda81, 0x1a40, 0x1e00, 0xdec1, 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, 0x1400, 0xd4c1, 0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641, 0xd201, 0x12c0, 0x1380, 0xd341, 0x1100, 0xd1c1, 0xd081, 0x1040, 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1, 0xf281, 0x3240, 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501, 0x35c0, 0x3480, 0xf441, 0x3c00, 0xfcc1, 0xfd81, 0x3d40, 0xff01, 0x3fc0, 0x3e80, 0xfe41, 0xfa01, 0x3ac0, 0x3b80, 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, 0x2800, 0xe8c1, 0xe981, 0x2940, 0xeb01, 0x2bc0, 0x2a80, 0xea41, 0xee01, 0x2ec0, 0x2f80, 0xef41, 0x2d00, 0xedc1, 0xec81, 0x2c40, 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681, 0x2640, 0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0, 0x2080, 0xe041, 0xa001, 0x60c0, 0x6180, 0xa141, 0x6300, 0xa3c1, 0xa281, 0x6240, 0x6600, 0xa6c1, 0xa781, 0x6740, 0xa501, 0x65c0, 0x6480, 0xa441, 0x6c00, 0xacc1, 0xad81, 0x6d40, 0xaf01, 0x6fc0, 0x6e80, 0xae41, 0xaa01, 0x6ac0, 0x6b80, 0xab41, 0x6900, 0xa9c1, 0xa881, 0x6840, 0x7800, 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41, 0xbe01, 0x7ec0, 0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81, 0x7c40, 0xb401, 0x74c0, 0x7580, 0xb541, 0x7700, 0xb7c1, 0xb681, 0x7640, 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101, 0x71c0, 0x7080, 0xb041, 0x5000, 0x90c1, 0x9181, 0x5140, 0x9301, 0x53c0, 0x5280, 0x9241, 0x9601, 0x56c0, 0x5780, 0x9741, 0x5500, 0x95c1, 0x9481, 0x5440, 0x9c01, 0x5cc0, 0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, 0x5a00, 0x9ac1, 0x9b81, 0x5b40, 0x9901, 0x59c0, 0x5880, 0x9841, 0x8801, 0x48c0, 0x4980, 0x8941, 0x4b00, 0x8bc1, 0x8a81, 0x4a40, 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0, 0x4c80, 0x8c41, 0x4400, 0x84c1, 0x8581, 0x4540, 0x8701, 0x47c0, 0x4680, 0x8641, 0x8201, 0x42c0, 0x4380, 0x8341, 0x4100, 0x81c1, 0x8081, 0x4040]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc16 = (0, _define_crc2.default)('crc-16', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = ~~previous; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = (TABLE[(crc ^ byte) & 0xff] ^ crc >> 8) & 0xffff; + } + + return crc; +}); + +exports["default"] = crc16; + + +/***/ }), + +/***/ 95556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=ccitt --generate=c` +// prettier-ignore +var TABLE = [0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe3de, 0x2462, 0x3443, 0x0420, 0x1401, 0x64e6, 0x74c7, 0x44a4, 0x5485, 0xa56a, 0xb54b, 0x8528, 0x9509, 0xe5ee, 0xf5cf, 0xc5ac, 0xd58d, 0x3653, 0x2672, 0x1611, 0x0630, 0x76d7, 0x66f6, 0x5695, 0x46b4, 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, 0x34e2, 0x24c3, 0x14a0, 0x0481, 0x7466, 0x6447, 0x5424, 0x4405, 0xa7db, 0xb7fa, 0x8799, 0x97b8, 0xe75f, 0xf77e, 0xc71d, 0xd73c, 0x26d3, 0x36f2, 0x0691, 0x16b0, 0x6657, 0x7676, 0x4615, 0x5634, 0xd94c, 0xc96d, 0xf90e, 0xe92f, 0x99c8, 0x89e9, 0xb98a, 0xa9ab, 0x5844, 0x4865, 0x7806, 0x6827, 0x18c0, 0x08e1, 0x3882, 0x28a3, 0xcb7d, 0xdb5c, 0xeb3f, 0xfb1e, 0x8bf9, 0x9bd8, 0xabbb, 0xbb9a, 0x4a75, 0x5a54, 0x6a37, 0x7a16, 0x0af1, 0x1ad0, 0x2ab3, 0x3a92, 0xfd2e, 0xed0f, 0xdd6c, 0xcd4d, 0xbdaa, 0xad8b, 0x9de8, 0x8dc9, 0x7c26, 0x6c07, 0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc16ccitt = (0, _define_crc2.default)('ccitt', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = typeof previous !== 'undefined' ? ~~previous : 0xffff; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = (TABLE[(crc >> 8 ^ byte) & 0xff] ^ crc << 8) & 0xffff; + } + + return crc; +}); + +exports["default"] = crc16ccitt; + + +/***/ }), + +/***/ 74939: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=kermit --generate=c` +// prettier-ignore +var TABLE = [0x0000, 0x1189, 0x2312, 0x329b, 0x4624, 0x57ad, 0x6536, 0x74bf, 0x8c48, 0x9dc1, 0xaf5a, 0xbed3, 0xca6c, 0xdbe5, 0xe97e, 0xf8f7, 0x1081, 0x0108, 0x3393, 0x221a, 0x56a5, 0x472c, 0x75b7, 0x643e, 0x9cc9, 0x8d40, 0xbfdb, 0xae52, 0xdaed, 0xcb64, 0xf9ff, 0xe876, 0x2102, 0x308b, 0x0210, 0x1399, 0x6726, 0x76af, 0x4434, 0x55bd, 0xad4a, 0xbcc3, 0x8e58, 0x9fd1, 0xeb6e, 0xfae7, 0xc87c, 0xd9f5, 0x3183, 0x200a, 0x1291, 0x0318, 0x77a7, 0x662e, 0x54b5, 0x453c, 0xbdcb, 0xac42, 0x9ed9, 0x8f50, 0xfbef, 0xea66, 0xd8fd, 0xc974, 0x4204, 0x538d, 0x6116, 0x709f, 0x0420, 0x15a9, 0x2732, 0x36bb, 0xce4c, 0xdfc5, 0xed5e, 0xfcd7, 0x8868, 0x99e1, 0xab7a, 0xbaf3, 0x5285, 0x430c, 0x7197, 0x601e, 0x14a1, 0x0528, 0x37b3, 0x263a, 0xdecd, 0xcf44, 0xfddf, 0xec56, 0x98e9, 0x8960, 0xbbfb, 0xaa72, 0x6306, 0x728f, 0x4014, 0x519d, 0x2522, 0x34ab, 0x0630, 0x17b9, 0xef4e, 0xfec7, 0xcc5c, 0xddd5, 0xa96a, 0xb8e3, 0x8a78, 0x9bf1, 0x7387, 0x620e, 0x5095, 0x411c, 0x35a3, 0x242a, 0x16b1, 0x0738, 0xffcf, 0xee46, 0xdcdd, 0xcd54, 0xb9eb, 0xa862, 0x9af9, 0x8b70, 0x8408, 0x9581, 0xa71a, 0xb693, 0xc22c, 0xd3a5, 0xe13e, 0xf0b7, 0x0840, 0x19c9, 0x2b52, 0x3adb, 0x4e64, 0x5fed, 0x6d76, 0x7cff, 0x9489, 0x8500, 0xb79b, 0xa612, 0xd2ad, 0xc324, 0xf1bf, 0xe036, 0x18c1, 0x0948, 0x3bd3, 0x2a5a, 0x5ee5, 0x4f6c, 0x7df7, 0x6c7e, 0xa50a, 0xb483, 0x8618, 0x9791, 0xe32e, 0xf2a7, 0xc03c, 0xd1b5, 0x2942, 0x38cb, 0x0a50, 0x1bd9, 0x6f66, 0x7eef, 0x4c74, 0x5dfd, 0xb58b, 0xa402, 0x9699, 0x8710, 0xf3af, 0xe226, 0xd0bd, 0xc134, 0x39c3, 0x284a, 0x1ad1, 0x0b58, 0x7fe7, 0x6e6e, 0x5cf5, 0x4d7c, 0xc60c, 0xd785, 0xe51e, 0xf497, 0x8028, 0x91a1, 0xa33a, 0xb2b3, 0x4a44, 0x5bcd, 0x6956, 0x78df, 0x0c60, 0x1de9, 0x2f72, 0x3efb, 0xd68d, 0xc704, 0xf59f, 0xe416, 0x90a9, 0x8120, 0xb3bb, 0xa232, 0x5ac5, 0x4b4c, 0x79d7, 0x685e, 0x1ce1, 0x0d68, 0x3ff3, 0x2e7a, 0xe70e, 0xf687, 0xc41c, 0xd595, 0xa12a, 0xb0a3, 0x8238, 0x93b1, 0x6b46, 0x7acf, 0x4854, 0x59dd, 0x2d62, 0x3ceb, 0x0e70, 0x1ff9, 0xf78f, 0xe606, 0xd49d, 0xc514, 0xb1ab, 0xa022, 0x92b9, 0x8330, 0x7bc7, 0x6a4e, 0x58d5, 0x495c, 0x3de3, 0x2c6a, 0x1ef1, 0x0f78]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc16kermit = (0, _define_crc2.default)('kermit', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = typeof previous !== 'undefined' ? ~~previous : 0x0000; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = (TABLE[(crc ^ byte) & 0xff] ^ crc >> 8) & 0xffff; + } + + return crc; +}); + +exports["default"] = crc16kermit; + + +/***/ }), + +/***/ 50436: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=crc-16-modbus --generate=c` +// prettier-ignore +var TABLE = [0x0000, 0xc0c1, 0xc181, 0x0140, 0xc301, 0x03c0, 0x0280, 0xc241, 0xc601, 0x06c0, 0x0780, 0xc741, 0x0500, 0xc5c1, 0xc481, 0x0440, 0xcc01, 0x0cc0, 0x0d80, 0xcd41, 0x0f00, 0xcfc1, 0xce81, 0x0e40, 0x0a00, 0xcac1, 0xcb81, 0x0b40, 0xc901, 0x09c0, 0x0880, 0xc841, 0xd801, 0x18c0, 0x1980, 0xd941, 0x1b00, 0xdbc1, 0xda81, 0x1a40, 0x1e00, 0xdec1, 0xdf81, 0x1f40, 0xdd01, 0x1dc0, 0x1c80, 0xdc41, 0x1400, 0xd4c1, 0xd581, 0x1540, 0xd701, 0x17c0, 0x1680, 0xd641, 0xd201, 0x12c0, 0x1380, 0xd341, 0x1100, 0xd1c1, 0xd081, 0x1040, 0xf001, 0x30c0, 0x3180, 0xf141, 0x3300, 0xf3c1, 0xf281, 0x3240, 0x3600, 0xf6c1, 0xf781, 0x3740, 0xf501, 0x35c0, 0x3480, 0xf441, 0x3c00, 0xfcc1, 0xfd81, 0x3d40, 0xff01, 0x3fc0, 0x3e80, 0xfe41, 0xfa01, 0x3ac0, 0x3b80, 0xfb41, 0x3900, 0xf9c1, 0xf881, 0x3840, 0x2800, 0xe8c1, 0xe981, 0x2940, 0xeb01, 0x2bc0, 0x2a80, 0xea41, 0xee01, 0x2ec0, 0x2f80, 0xef41, 0x2d00, 0xedc1, 0xec81, 0x2c40, 0xe401, 0x24c0, 0x2580, 0xe541, 0x2700, 0xe7c1, 0xe681, 0x2640, 0x2200, 0xe2c1, 0xe381, 0x2340, 0xe101, 0x21c0, 0x2080, 0xe041, 0xa001, 0x60c0, 0x6180, 0xa141, 0x6300, 0xa3c1, 0xa281, 0x6240, 0x6600, 0xa6c1, 0xa781, 0x6740, 0xa501, 0x65c0, 0x6480, 0xa441, 0x6c00, 0xacc1, 0xad81, 0x6d40, 0xaf01, 0x6fc0, 0x6e80, 0xae41, 0xaa01, 0x6ac0, 0x6b80, 0xab41, 0x6900, 0xa9c1, 0xa881, 0x6840, 0x7800, 0xb8c1, 0xb981, 0x7940, 0xbb01, 0x7bc0, 0x7a80, 0xba41, 0xbe01, 0x7ec0, 0x7f80, 0xbf41, 0x7d00, 0xbdc1, 0xbc81, 0x7c40, 0xb401, 0x74c0, 0x7580, 0xb541, 0x7700, 0xb7c1, 0xb681, 0x7640, 0x7200, 0xb2c1, 0xb381, 0x7340, 0xb101, 0x71c0, 0x7080, 0xb041, 0x5000, 0x90c1, 0x9181, 0x5140, 0x9301, 0x53c0, 0x5280, 0x9241, 0x9601, 0x56c0, 0x5780, 0x9741, 0x5500, 0x95c1, 0x9481, 0x5440, 0x9c01, 0x5cc0, 0x5d80, 0x9d41, 0x5f00, 0x9fc1, 0x9e81, 0x5e40, 0x5a00, 0x9ac1, 0x9b81, 0x5b40, 0x9901, 0x59c0, 0x5880, 0x9841, 0x8801, 0x48c0, 0x4980, 0x8941, 0x4b00, 0x8bc1, 0x8a81, 0x4a40, 0x4e00, 0x8ec1, 0x8f81, 0x4f40, 0x8d01, 0x4dc0, 0x4c80, 0x8c41, 0x4400, 0x84c1, 0x8581, 0x4540, 0x8701, 0x47c0, 0x4680, 0x8641, 0x8201, 0x42c0, 0x4380, 0x8341, 0x4100, 0x81c1, 0x8081, 0x4040]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc16modbus = (0, _define_crc2.default)('crc-16-modbus', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = typeof previous !== 'undefined' ? ~~previous : 0xffff; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = (TABLE[(crc ^ byte) & 0xff] ^ crc >> 8) & 0xffff; + } + + return crc; +}); + +exports["default"] = crc16modbus; + + +/***/ }), + +/***/ 36429: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +var crc16xmodem = (0, _define_crc2.default)('xmodem', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = typeof previous !== 'undefined' ? ~~previous : 0x0; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + var code = crc >>> 8 & 0xff; + + code ^= byte & 0xff; + code ^= code >>> 4; + crc = crc << 8 & 0xffff; + crc ^= code; + code = code << 5 & 0xffff; + crc ^= code; + code = code << 7 & 0xffff; + crc ^= code; + } + + return crc; +}); + +exports["default"] = crc16xmodem; + + +/***/ }), + +/***/ 45461: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-drive --model=crc-24 --generate=c` +// prettier-ignore +var TABLE = [0x000000, 0x864cfb, 0x8ad50d, 0x0c99f6, 0x93e6e1, 0x15aa1a, 0x1933ec, 0x9f7f17, 0xa18139, 0x27cdc2, 0x2b5434, 0xad18cf, 0x3267d8, 0xb42b23, 0xb8b2d5, 0x3efe2e, 0xc54e89, 0x430272, 0x4f9b84, 0xc9d77f, 0x56a868, 0xd0e493, 0xdc7d65, 0x5a319e, 0x64cfb0, 0xe2834b, 0xee1abd, 0x685646, 0xf72951, 0x7165aa, 0x7dfc5c, 0xfbb0a7, 0x0cd1e9, 0x8a9d12, 0x8604e4, 0x00481f, 0x9f3708, 0x197bf3, 0x15e205, 0x93aefe, 0xad50d0, 0x2b1c2b, 0x2785dd, 0xa1c926, 0x3eb631, 0xb8faca, 0xb4633c, 0x322fc7, 0xc99f60, 0x4fd39b, 0x434a6d, 0xc50696, 0x5a7981, 0xdc357a, 0xd0ac8c, 0x56e077, 0x681e59, 0xee52a2, 0xe2cb54, 0x6487af, 0xfbf8b8, 0x7db443, 0x712db5, 0xf7614e, 0x19a3d2, 0x9fef29, 0x9376df, 0x153a24, 0x8a4533, 0x0c09c8, 0x00903e, 0x86dcc5, 0xb822eb, 0x3e6e10, 0x32f7e6, 0xb4bb1d, 0x2bc40a, 0xad88f1, 0xa11107, 0x275dfc, 0xdced5b, 0x5aa1a0, 0x563856, 0xd074ad, 0x4f0bba, 0xc94741, 0xc5deb7, 0x43924c, 0x7d6c62, 0xfb2099, 0xf7b96f, 0x71f594, 0xee8a83, 0x68c678, 0x645f8e, 0xe21375, 0x15723b, 0x933ec0, 0x9fa736, 0x19ebcd, 0x8694da, 0x00d821, 0x0c41d7, 0x8a0d2c, 0xb4f302, 0x32bff9, 0x3e260f, 0xb86af4, 0x2715e3, 0xa15918, 0xadc0ee, 0x2b8c15, 0xd03cb2, 0x567049, 0x5ae9bf, 0xdca544, 0x43da53, 0xc596a8, 0xc90f5e, 0x4f43a5, 0x71bd8b, 0xf7f170, 0xfb6886, 0x7d247d, 0xe25b6a, 0x641791, 0x688e67, 0xeec29c, 0x3347a4, 0xb50b5f, 0xb992a9, 0x3fde52, 0xa0a145, 0x26edbe, 0x2a7448, 0xac38b3, 0x92c69d, 0x148a66, 0x181390, 0x9e5f6b, 0x01207c, 0x876c87, 0x8bf571, 0x0db98a, 0xf6092d, 0x7045d6, 0x7cdc20, 0xfa90db, 0x65efcc, 0xe3a337, 0xef3ac1, 0x69763a, 0x578814, 0xd1c4ef, 0xdd5d19, 0x5b11e2, 0xc46ef5, 0x42220e, 0x4ebbf8, 0xc8f703, 0x3f964d, 0xb9dab6, 0xb54340, 0x330fbb, 0xac70ac, 0x2a3c57, 0x26a5a1, 0xa0e95a, 0x9e1774, 0x185b8f, 0x14c279, 0x928e82, 0x0df195, 0x8bbd6e, 0x872498, 0x016863, 0xfad8c4, 0x7c943f, 0x700dc9, 0xf64132, 0x693e25, 0xef72de, 0xe3eb28, 0x65a7d3, 0x5b59fd, 0xdd1506, 0xd18cf0, 0x57c00b, 0xc8bf1c, 0x4ef3e7, 0x426a11, 0xc426ea, 0x2ae476, 0xaca88d, 0xa0317b, 0x267d80, 0xb90297, 0x3f4e6c, 0x33d79a, 0xb59b61, 0x8b654f, 0x0d29b4, 0x01b042, 0x87fcb9, 0x1883ae, 0x9ecf55, 0x9256a3, 0x141a58, 0xefaaff, 0x69e604, 0x657ff2, 0xe33309, 0x7c4c1e, 0xfa00e5, 0xf69913, 0x70d5e8, 0x4e2bc6, 0xc8673d, 0xc4fecb, 0x42b230, 0xddcd27, 0x5b81dc, 0x57182a, 0xd154d1, 0x26359f, 0xa07964, 0xace092, 0x2aac69, 0xb5d37e, 0x339f85, 0x3f0673, 0xb94a88, 0x87b4a6, 0x01f85d, 0x0d61ab, 0x8b2d50, 0x145247, 0x921ebc, 0x9e874a, 0x18cbb1, 0xe37b16, 0x6537ed, 0x69ae1b, 0xefe2e0, 0x709df7, 0xf6d10c, 0xfa48fa, 0x7c0401, 0x42fa2f, 0xc4b6d4, 0xc82f22, 0x4e63d9, 0xd11cce, 0x575035, 0x5bc9c3, 0xdd8538]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc24 = (0, _define_crc2.default)('crc-24', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = typeof previous !== 'undefined' ? ~~previous : 0xb704ce; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = (TABLE[(crc >> 16 ^ byte) & 0xff] ^ crc << 8) & 0xffffff; + } + + return crc; +}); + +exports["default"] = crc24; + + +/***/ }), + +/***/ 36779: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=crc-32 --generate=c` +// prettier-ignore +var TABLE = [0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc32 = (0, _define_crc2.default)('crc-32', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = previous === 0 ? 0 : ~~previous ^ -1; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = TABLE[(crc ^ byte) & 0xff] ^ crc >>> 8; + } + + return crc ^ -1; +}); + +exports["default"] = crc32; + + +/***/ }), + +/***/ 90003: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=crc-8 --generate=c` +// prettier-ignore +var TABLE = [0x00, 0x07, 0x0e, 0x09, 0x1c, 0x1b, 0x12, 0x15, 0x38, 0x3f, 0x36, 0x31, 0x24, 0x23, 0x2a, 0x2d, 0x70, 0x77, 0x7e, 0x79, 0x6c, 0x6b, 0x62, 0x65, 0x48, 0x4f, 0x46, 0x41, 0x54, 0x53, 0x5a, 0x5d, 0xe0, 0xe7, 0xee, 0xe9, 0xfc, 0xfb, 0xf2, 0xf5, 0xd8, 0xdf, 0xd6, 0xd1, 0xc4, 0xc3, 0xca, 0xcd, 0x90, 0x97, 0x9e, 0x99, 0x8c, 0x8b, 0x82, 0x85, 0xa8, 0xaf, 0xa6, 0xa1, 0xb4, 0xb3, 0xba, 0xbd, 0xc7, 0xc0, 0xc9, 0xce, 0xdb, 0xdc, 0xd5, 0xd2, 0xff, 0xf8, 0xf1, 0xf6, 0xe3, 0xe4, 0xed, 0xea, 0xb7, 0xb0, 0xb9, 0xbe, 0xab, 0xac, 0xa5, 0xa2, 0x8f, 0x88, 0x81, 0x86, 0x93, 0x94, 0x9d, 0x9a, 0x27, 0x20, 0x29, 0x2e, 0x3b, 0x3c, 0x35, 0x32, 0x1f, 0x18, 0x11, 0x16, 0x03, 0x04, 0x0d, 0x0a, 0x57, 0x50, 0x59, 0x5e, 0x4b, 0x4c, 0x45, 0x42, 0x6f, 0x68, 0x61, 0x66, 0x73, 0x74, 0x7d, 0x7a, 0x89, 0x8e, 0x87, 0x80, 0x95, 0x92, 0x9b, 0x9c, 0xb1, 0xb6, 0xbf, 0xb8, 0xad, 0xaa, 0xa3, 0xa4, 0xf9, 0xfe, 0xf7, 0xf0, 0xe5, 0xe2, 0xeb, 0xec, 0xc1, 0xc6, 0xcf, 0xc8, 0xdd, 0xda, 0xd3, 0xd4, 0x69, 0x6e, 0x67, 0x60, 0x75, 0x72, 0x7b, 0x7c, 0x51, 0x56, 0x5f, 0x58, 0x4d, 0x4a, 0x43, 0x44, 0x19, 0x1e, 0x17, 0x10, 0x05, 0x02, 0x0b, 0x0c, 0x21, 0x26, 0x2f, 0x28, 0x3d, 0x3a, 0x33, 0x34, 0x4e, 0x49, 0x40, 0x47, 0x52, 0x55, 0x5c, 0x5b, 0x76, 0x71, 0x78, 0x7f, 0x6a, 0x6d, 0x64, 0x63, 0x3e, 0x39, 0x30, 0x37, 0x22, 0x25, 0x2c, 0x2b, 0x06, 0x01, 0x08, 0x0f, 0x1a, 0x1d, 0x14, 0x13, 0xae, 0xa9, 0xa0, 0xa7, 0xb2, 0xb5, 0xbc, 0xbb, 0x96, 0x91, 0x98, 0x9f, 0x8a, 0x8d, 0x84, 0x83, 0xde, 0xd9, 0xd0, 0xd7, 0xc2, 0xc5, 0xcc, 0xcb, 0xe6, 0xe1, 0xe8, 0xef, 0xfa, 0xfd, 0xf4, 0xf3]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc8 = (0, _define_crc2.default)('crc-8', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = ~~previous; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = TABLE[(crc ^ byte) & 0xff] & 0xff; + } + + return crc; +}); + +exports["default"] = crc8; + + +/***/ }), + +/***/ 17384: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=dallas-1-wire --generate=c` +// prettier-ignore +var TABLE = [0x00, 0x5e, 0xbc, 0xe2, 0x61, 0x3f, 0xdd, 0x83, 0xc2, 0x9c, 0x7e, 0x20, 0xa3, 0xfd, 0x1f, 0x41, 0x9d, 0xc3, 0x21, 0x7f, 0xfc, 0xa2, 0x40, 0x1e, 0x5f, 0x01, 0xe3, 0xbd, 0x3e, 0x60, 0x82, 0xdc, 0x23, 0x7d, 0x9f, 0xc1, 0x42, 0x1c, 0xfe, 0xa0, 0xe1, 0xbf, 0x5d, 0x03, 0x80, 0xde, 0x3c, 0x62, 0xbe, 0xe0, 0x02, 0x5c, 0xdf, 0x81, 0x63, 0x3d, 0x7c, 0x22, 0xc0, 0x9e, 0x1d, 0x43, 0xa1, 0xff, 0x46, 0x18, 0xfa, 0xa4, 0x27, 0x79, 0x9b, 0xc5, 0x84, 0xda, 0x38, 0x66, 0xe5, 0xbb, 0x59, 0x07, 0xdb, 0x85, 0x67, 0x39, 0xba, 0xe4, 0x06, 0x58, 0x19, 0x47, 0xa5, 0xfb, 0x78, 0x26, 0xc4, 0x9a, 0x65, 0x3b, 0xd9, 0x87, 0x04, 0x5a, 0xb8, 0xe6, 0xa7, 0xf9, 0x1b, 0x45, 0xc6, 0x98, 0x7a, 0x24, 0xf8, 0xa6, 0x44, 0x1a, 0x99, 0xc7, 0x25, 0x7b, 0x3a, 0x64, 0x86, 0xd8, 0x5b, 0x05, 0xe7, 0xb9, 0x8c, 0xd2, 0x30, 0x6e, 0xed, 0xb3, 0x51, 0x0f, 0x4e, 0x10, 0xf2, 0xac, 0x2f, 0x71, 0x93, 0xcd, 0x11, 0x4f, 0xad, 0xf3, 0x70, 0x2e, 0xcc, 0x92, 0xd3, 0x8d, 0x6f, 0x31, 0xb2, 0xec, 0x0e, 0x50, 0xaf, 0xf1, 0x13, 0x4d, 0xce, 0x90, 0x72, 0x2c, 0x6d, 0x33, 0xd1, 0x8f, 0x0c, 0x52, 0xb0, 0xee, 0x32, 0x6c, 0x8e, 0xd0, 0x53, 0x0d, 0xef, 0xb1, 0xf0, 0xae, 0x4c, 0x12, 0x91, 0xcf, 0x2d, 0x73, 0xca, 0x94, 0x76, 0x28, 0xab, 0xf5, 0x17, 0x49, 0x08, 0x56, 0xb4, 0xea, 0x69, 0x37, 0xd5, 0x8b, 0x57, 0x09, 0xeb, 0xb5, 0x36, 0x68, 0x8a, 0xd4, 0x95, 0xcb, 0x29, 0x77, 0xf4, 0xaa, 0x48, 0x16, 0xe9, 0xb7, 0x55, 0x0b, 0x88, 0xd6, 0x34, 0x6a, 0x2b, 0x75, 0x97, 0xc9, 0x4a, 0x14, 0xf6, 0xa8, 0x74, 0x2a, 0xc8, 0x96, 0x15, 0x4b, 0xa9, 0xf7, 0xb6, 0xe8, 0x0a, 0x54, 0xd7, 0x89, 0x6b, 0x35]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crc81wire = (0, _define_crc2.default)('dallas-1-wire', function (buf, previous) { + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = ~~previous; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = TABLE[(crc ^ byte) & 0xff] & 0xff; + } + + return crc; +}); + +exports["default"] = crc81wire; + + +/***/ }), + +/***/ 62601: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +var __webpack_unused_export__; + + +__webpack_unused_export__ = ({ + value: true +}); + +var _buffer = __nccwpck_require__(14300); + +var _create_buffer = __nccwpck_require__(70483); + +var _create_buffer2 = _interopRequireDefault(_create_buffer); + +var _define_crc = __nccwpck_require__(91669); + +var _define_crc2 = _interopRequireDefault(_define_crc); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// Generated by `./pycrc.py --algorithm=table-driven --model=jam --generate=c` +// prettier-ignore +var TABLE = [0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988, 0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2, 0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7, 0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9, 0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172, 0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c, 0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59, 0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423, 0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924, 0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106, 0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433, 0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d, 0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e, 0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950, 0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65, 0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7, 0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0, 0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa, 0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f, 0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81, 0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a, 0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84, 0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1, 0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb, 0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc, 0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e, 0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b, 0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55, 0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236, 0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28, 0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d, 0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f, 0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38, 0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242, 0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777, 0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69, 0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2, 0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc, 0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9, 0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693, 0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94, 0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d]; + +if (typeof Int32Array !== 'undefined') TABLE = new Int32Array(TABLE); + +var crcjam = (0, _define_crc2.default)('jam', function (buf) { + var previous = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : -1; + + if (!_buffer.Buffer.isBuffer(buf)) buf = (0, _create_buffer2.default)(buf); + + var crc = previous === 0 ? 0 : ~~previous; + + for (var index = 0; index < buf.length; index++) { + var byte = buf[index]; + crc = TABLE[(crc ^ byte) & 0xff] ^ crc >>> 8; + } + + return crc; +}); + +exports["default"] = crcjam; + + +/***/ }), + +/***/ 70483: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); + +var _buffer = __nccwpck_require__(14300); + +var createBuffer = _buffer.Buffer.from && _buffer.Buffer.alloc && _buffer.Buffer.allocUnsafe && _buffer.Buffer.allocUnsafeSlow ? _buffer.Buffer.from : // support for Node < 5.10 +function (val) { + return new _buffer.Buffer(val); +}; + +exports["default"] = createBuffer; + + +/***/ }), + +/***/ 91669: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); + +exports["default"] = function (model, calc) { + var fn = function fn(buf, previous) { + return calc(buf, previous) >>> 0; + }; + fn.signed = calc; + fn.unsigned = fn; + fn.model = model; + + return fn; +}; + + +/***/ }), + +/***/ 68695: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +module.exports = { + crc1: __nccwpck_require__(99353), + crc8: __nccwpck_require__(52587), + crc81wire: __nccwpck_require__(83845), + crc16: __nccwpck_require__(9265), + crc16ccitt: __nccwpck_require__(771), + crc16modbus: __nccwpck_require__(64241), + crc16xmodem: __nccwpck_require__(4602), + crc16kermit: __nccwpck_require__(70081), + crc24: __nccwpck_require__(23675), + crc32: __nccwpck_require__(85645), + crcjam: __nccwpck_require__(31301) +}; + + +/***/ }), + +/***/ 75847: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Buffer = (__nccwpck_require__(92307).Buffer); + +var getParamBytesForAlg = __nccwpck_require__(22726); + +var MAX_OCTET = 0x80, + CLASS_UNIVERSAL = 0, + PRIMITIVE_BIT = 0x20, + TAG_SEQ = 0x10, + TAG_INT = 0x02, + ENCODED_TAG_SEQ = (TAG_SEQ | PRIMITIVE_BIT) | (CLASS_UNIVERSAL << 6), + ENCODED_TAG_INT = TAG_INT | (CLASS_UNIVERSAL << 6); + +function base64Url(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function signatureAsBuffer(signature) { + if (Buffer.isBuffer(signature)) { + return signature; + } else if ('string' === typeof signature) { + return Buffer.from(signature, 'base64'); + } + + throw new TypeError('ECDSA signature must be a Base64 string or a Buffer'); +} + +function derToJose(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + // the DER encoded param should at most be the param size, plus a padding + // zero, since due to being a signed integer + var maxEncodedParamLength = paramBytes + 1; + + var inputLength = signature.length; + + var offset = 0; + if (signature[offset++] !== ENCODED_TAG_SEQ) { + throw new Error('Could not find expected "seq"'); + } + + var seqLength = signature[offset++]; + if (seqLength === (MAX_OCTET | 1)) { + seqLength = signature[offset++]; + } + + if (inputLength - offset < seqLength) { + throw new Error('"seq" specified length of "' + seqLength + '", only "' + (inputLength - offset) + '" remaining'); + } + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "r"'); + } + + var rLength = signature[offset++]; + + if (inputLength - offset - 2 < rLength) { + throw new Error('"r" specified length of "' + rLength + '", only "' + (inputLength - offset - 2) + '" available'); + } + + if (maxEncodedParamLength < rLength) { + throw new Error('"r" specified length of "' + rLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var rOffset = offset; + offset += rLength; + + if (signature[offset++] !== ENCODED_TAG_INT) { + throw new Error('Could not find expected "int" for "s"'); + } + + var sLength = signature[offset++]; + + if (inputLength - offset !== sLength) { + throw new Error('"s" specified length of "' + sLength + '", expected "' + (inputLength - offset) + '"'); + } + + if (maxEncodedParamLength < sLength) { + throw new Error('"s" specified length of "' + sLength + '", max of "' + maxEncodedParamLength + '" is acceptable'); + } + + var sOffset = offset; + offset += sLength; + + if (offset !== inputLength) { + throw new Error('Expected to consume entire buffer, but "' + (inputLength - offset) + '" bytes remain'); + } + + var rPadding = paramBytes - rLength, + sPadding = paramBytes - sLength; + + var dst = Buffer.allocUnsafe(rPadding + rLength + sPadding + sLength); + + for (offset = 0; offset < rPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, rOffset + Math.max(-rPadding, 0), rOffset + rLength); + + offset = paramBytes; + + for (var o = offset; offset < o + sPadding; ++offset) { + dst[offset] = 0; + } + signature.copy(dst, offset, sOffset + Math.max(-sPadding, 0), sOffset + sLength); + + dst = dst.toString('base64'); + dst = base64Url(dst); + + return dst; +} + +function countPadding(buf, start, stop) { + var padding = 0; + while (start + padding < stop && buf[start + padding] === 0) { + ++padding; + } + + var needsSign = buf[start + padding] >= MAX_OCTET; + if (needsSign) { + --padding; + } + + return padding; +} + +function joseToDer(signature, alg) { + signature = signatureAsBuffer(signature); + var paramBytes = getParamBytesForAlg(alg); + + var signatureBytes = signature.length; + if (signatureBytes !== paramBytes * 2) { + throw new TypeError('"' + alg + '" signatures must be "' + paramBytes * 2 + '" bytes, saw "' + signatureBytes + '"'); + } + + var rPadding = countPadding(signature, 0, paramBytes); + var sPadding = countPadding(signature, paramBytes, signature.length); + var rLength = paramBytes - rPadding; + var sLength = paramBytes - sPadding; + + var rsBytes = 1 + 1 + rLength + 1 + 1 + sLength; + + var shortLength = rsBytes < MAX_OCTET; + + var dst = Buffer.allocUnsafe((shortLength ? 2 : 3) + rsBytes); + + var offset = 0; + dst[offset++] = ENCODED_TAG_SEQ; + if (shortLength) { + // Bit 8 has value "0" + // bits 7-1 give the length. + dst[offset++] = rsBytes; + } else { + // Bit 8 of first octet has value "1" + // bits 7-1 give the number of additional length octets. + dst[offset++] = MAX_OCTET | 1; + // length, base 256 + dst[offset++] = rsBytes & 0xff; + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = rLength; + if (rPadding < 0) { + dst[offset++] = 0; + offset += signature.copy(dst, offset, 0, paramBytes); + } else { + offset += signature.copy(dst, offset, rPadding, paramBytes); + } + dst[offset++] = ENCODED_TAG_INT; + dst[offset++] = sLength; + if (sPadding < 0) { + dst[offset++] = 0; + signature.copy(dst, offset, paramBytes); + } else { + signature.copy(dst, offset, paramBytes + sPadding); + } + + return dst; +} + +module.exports = { + derToJose: derToJose, + joseToDer: joseToDer +}; + + +/***/ }), + +/***/ 22726: +/***/ ((module) => { + +"use strict"; + + +function getParamSize(keySize) { + var result = ((keySize / 8) | 0) + (keySize % 8 === 0 ? 0 : 1); + return result; +} + +var paramBytesForAlg = { + ES256: getParamSize(256), + ES384: getParamSize(384), + ES512: getParamSize(521) +}; + +function getParamBytesForAlg(alg) { + var paramBytes = paramBytesForAlg[alg]; + if (paramBytes) { + return paramBytes; + } + + throw new Error('Unknown algorithm "' + alg + '"'); +} + +module.exports = getParamBytesForAlg; + + +/***/ }), + +/***/ 29361: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var once = __nccwpck_require__(15287); + +var noop = function() {}; + +var isRequest = function(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +}; + +var isChildProcess = function(stream) { + return stream.stdio && Array.isArray(stream.stdio) && stream.stdio.length === 3 +}; + +var eos = function(stream, opts, callback) { + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; + + callback = once(callback || noop); + + var ws = stream._writableState; + var rs = stream._readableState; + var readable = opts.readable || (opts.readable !== false && stream.readable); + var writable = opts.writable || (opts.writable !== false && stream.writable); + var cancelled = false; + + var onlegacyfinish = function() { + if (!stream.writable) onfinish(); + }; + + var onfinish = function() { + writable = false; + if (!readable) callback.call(stream); + }; + + var onend = function() { + readable = false; + if (!writable) callback.call(stream); + }; + + var onexit = function(exitCode) { + callback.call(stream, exitCode ? new Error('exited with error code: ' + exitCode) : null); + }; + + var onerror = function(err) { + callback.call(stream, err); + }; + + var onclose = function() { + process.nextTick(onclosenexttick); + }; + + var onclosenexttick = function() { + if (cancelled) return; + if (readable && !(rs && (rs.ended && !rs.destroyed))) return callback.call(stream, new Error('premature close')); + if (writable && !(ws && (ws.ended && !ws.destroyed))) return callback.call(stream, new Error('premature close')); + }; + + var onrequest = function() { + stream.req.on('finish', onfinish); + }; + + if (isRequest(stream)) { + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest(); + else stream.on('request', onrequest); + } else if (writable && !ws) { // legacy streams + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); + } + + if (isChildProcess(stream)) stream.on('exit', onexit); + + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); + + return function() { + cancelled = true; + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('exit', onexit); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; +}; + +module.exports = eos; + + +/***/ }), + +/***/ 84590: +/***/ ((module) => { + +"use strict"; + + +var hasOwn = Object.prototype.hasOwnProperty; +var toStr = Object.prototype.toString; +var defineProperty = Object.defineProperty; +var gOPD = Object.getOwnPropertyDescriptor; + +var isArray = function isArray(arr) { + if (typeof Array.isArray === 'function') { + return Array.isArray(arr); + } + + return toStr.call(arr) === '[object Array]'; +}; + +var isPlainObject = function isPlainObject(obj) { + if (!obj || toStr.call(obj) !== '[object Object]') { + return false; + } + + var hasOwnConstructor = hasOwn.call(obj, 'constructor'); + var hasIsPrototypeOf = obj.constructor && obj.constructor.prototype && hasOwn.call(obj.constructor.prototype, 'isPrototypeOf'); + // Not own constructor property must be Object + if (obj.constructor && !hasOwnConstructor && !hasIsPrototypeOf) { + return false; + } + + // Own properties are enumerated firstly, so to speed up, + // if last one is own, then all properties are own. + var key; + for (key in obj) { /**/ } + + return typeof key === 'undefined' || hasOwn.call(obj, key); +}; + +// If name is '__proto__', and Object.defineProperty is available, define __proto__ as an own property on target +var setProperty = function setProperty(target, options) { + if (defineProperty && options.name === '__proto__') { + defineProperty(target, options.name, { + enumerable: true, + configurable: true, + value: options.newValue, + writable: true + }); + } else { + target[options.name] = options.newValue; + } +}; + +// Return undefined instead of __proto__ if '__proto__' is not an own property +var getProperty = function getProperty(obj, name) { + if (name === '__proto__') { + if (!hasOwn.call(obj, name)) { + return void 0; + } else if (gOPD) { + // In early versions of node, obj['__proto__'] is buggy when obj has + // __proto__ as an own property. Object.getOwnPropertyDescriptor() works. + return gOPD(obj, name).value; + } + } + + return obj[name]; +}; + +module.exports = function extend() { + var options, name, src, copy, copyIsArray, clone; + var target = arguments[0]; + var i = 1; + var length = arguments.length; + var deep = false; + + // Handle a deep copy situation + if (typeof target === 'boolean') { + deep = target; + target = arguments[1] || {}; + // skip the boolean and the target + i = 2; + } + if (target == null || (typeof target !== 'object' && typeof target !== 'function')) { + target = {}; + } + + for (; i < length; ++i) { + options = arguments[i]; + // Only deal with non-null/undefined values + if (options != null) { + // Extend the base object + for (name in options) { + src = getProperty(target, name); + copy = getProperty(options, name); + + // Prevent never-ending loop + if (target !== copy) { + // Recurse if we're merging plain objects or arrays + if (deep && copy && (isPlainObject(copy) || (copyIsArray = isArray(copy)))) { + if (copyIsArray) { + copyIsArray = false; + clone = src && isArray(src) ? src : []; + } else { + clone = src && isPlainObject(src) ? src : {}; + } + + // Never move original objects, clone them + setProperty(target, { name: name, newValue: extend(deep, clone, copy) }); + + // Don't bring in undefined values + } else if (typeof copy !== 'undefined') { + setProperty(target, { name: name, newValue: copy }); + } + } + } + } + } + + // Return the modified object + return target; +}; + + +/***/ }), + +/***/ 49716: +/***/ (function() { + +(function(l){function m(){}function k(c,a){c=void 0===c?"utf-8":c;a=void 0===a?{fatal:!1}:a;if(-1===n.indexOf(c.toLowerCase()))throw new RangeError("Failed to construct 'TextDecoder': The encoding label provided ('"+c+"') is invalid.");if(a.fatal)throw Error("Failed to construct 'TextDecoder': the 'fatal' option is unsupported.");}if(l.TextEncoder&&l.TextDecoder)return!1;var n=["utf-8","utf8","unicode-1-1-utf-8"];Object.defineProperty(m.prototype,"encoding",{value:"utf-8"});m.prototype.encode=function(c, +a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to encode: the 'stream' option is unsupported.");a=0;for(var g=c.length,f=0,b=Math.max(32,g+(g>>1)+7),e=new Uint8Array(b>>3<<3);a=d){if(a=d)continue}f+4>e.length&&(b+=8,b*=1+a/c.length*2,b=b>>3<<3,h=new Uint8Array(b),h.set(e),e=h);if(0===(d&4294967168))e[f++]=d;else{if(0===(d&4294965248))e[f++]= +d>>6&31|192;else if(0===(d&4294901760))e[f++]=d>>12&15|224,e[f++]=d>>6&63|128;else if(0===(d&4292870144))e[f++]=d>>18&7|240,e[f++]=d>>12&63|128,e[f++]=d>>6&63|128;else continue;e[f++]=d&63|128}}return e.slice?e.slice(0,f):e.subarray(0,f)};Object.defineProperty(k.prototype,"encoding",{value:"utf-8"});Object.defineProperty(k.prototype,"fatal",{value:!1});Object.defineProperty(k.prototype,"ignoreBOM",{value:!1});k.prototype.decode=function(c,a){a=void 0===a?{stream:!1}:a;if(a.stream)throw Error("Failed to decode: the 'stream' option is unsupported."); +a=c;!(a instanceof Uint8Array)&&a.buffer instanceof ArrayBuffer&&(a=new Uint8Array(c.buffer));c=0;for(var g=[],f=[];;){var b=c>>10&1023|55296),b=56320|b&1023);g.push(b)}}};l.TextEncoder=m;l.TextDecoder=k})("undefined"!==typeof window?window:"undefined"!==typeof global?global:this); + + +/***/ }), + +/***/ 10009: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = (__nccwpck_require__(57147).constants) || __nccwpck_require__(22057) + + +/***/ }), + +/***/ 84453: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = realpath +realpath.realpath = realpath +realpath.sync = realpathSync +realpath.realpathSync = realpathSync +realpath.monkeypatch = monkeypatch +realpath.unmonkeypatch = unmonkeypatch + +var fs = __nccwpck_require__(57147) +var origRealpath = fs.realpath +var origRealpathSync = fs.realpathSync + +var version = process.version +var ok = /^v[0-5]\./.test(version) +var old = __nccwpck_require__(73261) + +function newError (er) { + return er && er.syscall === 'realpath' && ( + er.code === 'ELOOP' || + er.code === 'ENOMEM' || + er.code === 'ENAMETOOLONG' + ) +} + +function realpath (p, cache, cb) { + if (ok) { + return origRealpath(p, cache, cb) + } + + if (typeof cache === 'function') { + cb = cache + cache = null + } + origRealpath(p, cache, function (er, result) { + if (newError(er)) { + old.realpath(p, cache, cb) + } else { + cb(er, result) + } + }) +} + +function realpathSync (p, cache) { + if (ok) { + return origRealpathSync(p, cache) + } + + try { + return origRealpathSync(p, cache) + } catch (er) { + if (newError(er)) { + return old.realpathSync(p, cache) + } else { + throw er + } + } +} + +function monkeypatch () { + fs.realpath = realpath + fs.realpathSync = realpathSync +} + +function unmonkeypatch () { + fs.realpath = origRealpath + fs.realpathSync = origRealpathSync +} + + +/***/ }), + +/***/ 73261: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +var pathModule = __nccwpck_require__(71017); +var isWindows = process.platform === 'win32'; +var fs = __nccwpck_require__(57147); + +// JavaScript implementation of realpath, ported from node pre-v6 + +var DEBUG = process.env.NODE_DEBUG && /fs/.test(process.env.NODE_DEBUG); + +function rethrow() { + // Only enable in debug mode. A backtrace uses ~1000 bytes of heap space and + // is fairly slow to generate. + var callback; + if (DEBUG) { + var backtrace = new Error; + callback = debugCallback; + } else + callback = missingCallback; + + return callback; + + function debugCallback(err) { + if (err) { + backtrace.message = err.message; + err = backtrace; + missingCallback(err); + } + } + + function missingCallback(err) { + if (err) { + if (process.throwDeprecation) + throw err; // Forgot a callback but don't know where? Use NODE_DEBUG=fs + else if (!process.noDeprecation) { + var msg = 'fs: missing callback ' + (err.stack || err.message); + if (process.traceDeprecation) + console.trace(msg); + else + console.error(msg); + } + } + } +} + +function maybeCallback(cb) { + return typeof cb === 'function' ? cb : rethrow(); +} + +var normalize = pathModule.normalize; + +// Regexp that finds the next partion of a (partial) path +// result is [base_with_slash, base], e.g. ['somedir/', 'somedir'] +if (isWindows) { + var nextPartRe = /(.*?)(?:[\/\\]+|$)/g; +} else { + var nextPartRe = /(.*?)(?:[\/]+|$)/g; +} + +// Regex to find the device root, including trailing slash. E.g. 'c:\\'. +if (isWindows) { + var splitRootRe = /^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/; +} else { + var splitRootRe = /^[\/]*/; +} + +exports.realpathSync = function realpathSync(p, cache) { + // make p is absolute + p = pathModule.resolve(p); + + if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { + return cache[p]; + } + + var original = p, + seenLinks = {}, + knownHard = {}; + + // current character position in p + var pos; + // the partial path so far, including a trailing slash if any + var current; + // the partial path without a trailing slash (except when pointing at a root) + var base; + // the partial path scanned in the previous round, with slash + var previous; + + start(); + + function start() { + // Skip over roots + var m = splitRootRe.exec(p); + pos = m[0].length; + current = m[0]; + base = m[0]; + previous = ''; + + // On windows, check that the root exists. On unix there is no need. + if (isWindows && !knownHard[base]) { + fs.lstatSync(base); + knownHard[base] = true; + } + } + + // walk down the path, swapping out linked pathparts for their real + // values + // NB: p.length changes. + while (pos < p.length) { + // find the next part + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + + // continue if not a symlink + if (knownHard[base] || (cache && cache[base] === base)) { + continue; + } + + var resolvedLink; + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + // some known symbolic link. no need to stat again. + resolvedLink = cache[base]; + } else { + var stat = fs.lstatSync(base); + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) cache[base] = base; + continue; + } + + // read the link if it wasn't read before + // dev/ino always return 0 on windows, so skip the check. + var linkTarget = null; + if (!isWindows) { + var id = stat.dev.toString(32) + ':' + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id)) { + linkTarget = seenLinks[id]; + } + } + if (linkTarget === null) { + fs.statSync(base); + linkTarget = fs.readlinkSync(base); + } + resolvedLink = pathModule.resolve(previous, linkTarget); + // track this, if given a cache. + if (cache) cache[base] = resolvedLink; + if (!isWindows) seenLinks[id] = linkTarget; + } + + // resolve the link, then start over + p = pathModule.resolve(resolvedLink, p.slice(pos)); + start(); + } + + if (cache) cache[original] = p; + + return p; +}; + + +exports.realpath = function realpath(p, cache, cb) { + if (typeof cb !== 'function') { + cb = maybeCallback(cache); + cache = null; + } + + // make p is absolute + p = pathModule.resolve(p); + + if (cache && Object.prototype.hasOwnProperty.call(cache, p)) { + return process.nextTick(cb.bind(null, null, cache[p])); + } + + var original = p, + seenLinks = {}, + knownHard = {}; + + // current character position in p + var pos; + // the partial path so far, including a trailing slash if any + var current; + // the partial path without a trailing slash (except when pointing at a root) + var base; + // the partial path scanned in the previous round, with slash + var previous; + + start(); + + function start() { + // Skip over roots + var m = splitRootRe.exec(p); + pos = m[0].length; + current = m[0]; + base = m[0]; + previous = ''; + + // On windows, check that the root exists. On unix there is no need. + if (isWindows && !knownHard[base]) { + fs.lstat(base, function(err) { + if (err) return cb(err); + knownHard[base] = true; + LOOP(); + }); + } else { + process.nextTick(LOOP); + } + } + + // walk down the path, swapping out linked pathparts for their real + // values + function LOOP() { + // stop if scanned past end of path + if (pos >= p.length) { + if (cache) cache[original] = p; + return cb(null, p); + } + + // find the next part + nextPartRe.lastIndex = pos; + var result = nextPartRe.exec(p); + previous = current; + current += result[0]; + base = previous + result[1]; + pos = nextPartRe.lastIndex; + + // continue if not a symlink + if (knownHard[base] || (cache && cache[base] === base)) { + return process.nextTick(LOOP); + } + + if (cache && Object.prototype.hasOwnProperty.call(cache, base)) { + // known symbolic link. no need to stat again. + return gotResolvedLink(cache[base]); + } + + return fs.lstat(base, gotStat); + } + + function gotStat(err, stat) { + if (err) return cb(err); + + // if not a symlink, skip to the next path part + if (!stat.isSymbolicLink()) { + knownHard[base] = true; + if (cache) cache[base] = base; + return process.nextTick(LOOP); + } + + // stat & read the link if not read before + // call gotTarget as soon as the link target is known + // dev/ino always return 0 on windows, so skip the check. + if (!isWindows) { + var id = stat.dev.toString(32) + ':' + stat.ino.toString(32); + if (seenLinks.hasOwnProperty(id)) { + return gotTarget(null, seenLinks[id], base); + } + } + fs.stat(base, function(err) { + if (err) return cb(err); + + fs.readlink(base, function(err, target) { + if (!isWindows) seenLinks[id] = target; + gotTarget(err, target); + }); + }); + } + + function gotTarget(err, target, base) { + if (err) return cb(err); + + var resolvedLink = pathModule.resolve(previous, target); + if (cache) cache[base] = resolvedLink; + gotResolvedLink(resolvedLink); + } + + function gotResolvedLink(resolvedLink) { + // resolve the link, then start over + p = pathModule.resolve(resolvedLink, p.slice(pos)); + start(); + } +}; + + +/***/ }), + +/***/ 45933: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +/* eslint-disable @typescript-eslint/no-explicit-any */ +class GaxiosError extends Error { + constructor(message, options, response) { + super(message); + this.response = response; + this.config = options; + this.code = response.status.toString(); + } +} +exports.GaxiosError = GaxiosError; +//# sourceMappingURL=common.js.map + +/***/ }), + +/***/ 71785: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +const extend_1 = __importDefault(__nccwpck_require__(84590)); +const node_fetch_1 = __importDefault(__nccwpck_require__(75879)); +const querystring_1 = __importDefault(__nccwpck_require__(63477)); +const is_stream_1 = __importDefault(__nccwpck_require__(59106)); +const url_1 = __importDefault(__nccwpck_require__(57310)); +const common_1 = __nccwpck_require__(45933); +const retry_1 = __nccwpck_require__(24986); +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable node/no-unsupported-features/node-builtins */ +const URL = hasURL() ? window.URL : url_1.default.URL; +const fetch = hasFetch() ? window.fetch : node_fetch_1.default; +function hasWindow() { + return typeof window !== 'undefined' && !!window; +} +function hasURL() { + return hasWindow() && !!window.URL; +} +function hasFetch() { + return hasWindow() && !!window.fetch; +} +let HttpsProxyAgent; +// Figure out if we should be using a proxy. Only if it's required, load +// the https-proxy-agent module as it adds startup cost. +function loadProxy() { + const proxy = process.env.HTTPS_PROXY || + process.env.https_proxy || + process.env.HTTP_PROXY || + process.env.http_proxy; + if (proxy) { + HttpsProxyAgent = __nccwpck_require__(64915); + } + return proxy; +} +loadProxy(); +class Gaxios { + /** + * The Gaxios class is responsible for making HTTP requests. + * @param defaults The default set of options to be used for this instance. + */ + constructor(defaults) { + this.agentCache = new Map(); + this.defaults = defaults || {}; + } + /** + * Perform an HTTP request with the given options. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async request(opts = {}) { + opts = this.validateOpts(opts); + return this._request(opts); + } + /** + * Internal, retryable version of the `request` method. + * @param opts Set of HTTP options that will be used for this HTTP request. + */ + async _request(opts = {}) { + try { + let translatedResponse; + if (opts.adapter) { + translatedResponse = await opts.adapter(opts); + } + else { + const res = await fetch(opts.url, opts); + const data = await this.getResponseData(opts, res); + translatedResponse = this.translateResponse(opts, res, data); + } + if (!opts.validateStatus(translatedResponse.status)) { + throw new common_1.GaxiosError(`Request failed with status code ${translatedResponse.status}`, opts, translatedResponse); + } + return translatedResponse; + } + catch (e) { + const err = e; + err.config = opts; + const { shouldRetry, config } = await retry_1.getRetryConfig(e); + if (shouldRetry && config) { + err.config.retryConfig.currentRetryAttempt = config.retryConfig.currentRetryAttempt; + return this._request(err.config); + } + throw err; + } + } + async getResponseData(opts, res) { + switch (opts.responseType) { + case 'stream': + return res.body; + case 'json': { + let data = await res.text(); + try { + data = JSON.parse(data); + } + catch (_a) { + // continue + } + return data; + } + case 'arraybuffer': + return res.arrayBuffer(); + case 'blob': + return res.blob(); + default: + return res.text(); + } + } + /** + * Validates the options, and merges them with defaults. + * @param opts The original options passed from the client. + */ + validateOpts(options) { + const opts = extend_1.default(true, {}, this.defaults, options); + if (!opts.url) { + throw new Error('URL is required.'); + } + // baseUrl has been deprecated, remove in 2.0 + const baseUrl = opts.baseUrl || opts.baseURL; + if (baseUrl) { + opts.url = baseUrl + opts.url; + } + const parsedUrl = new URL(opts.url); + opts.url = `${parsedUrl.origin}${parsedUrl.pathname}`; + opts.params = extend_1.default(querystring_1.default.parse(parsedUrl.search.substr(1)), // removes leading ? + opts.params); + opts.paramsSerializer = opts.paramsSerializer || this.paramsSerializer; + if (opts.params) { + parsedUrl.search = opts.paramsSerializer(opts.params); + } + opts.url = parsedUrl.href; + if (typeof options.maxContentLength === 'number') { + opts.size = options.maxContentLength; + } + if (typeof options.maxRedirects === 'number') { + opts.follow = options.maxRedirects; + } + opts.headers = opts.headers || {}; + if (opts.data) { + if (is_stream_1.default.readable(opts.data)) { + opts.body = opts.data; + } + else if (typeof opts.data === 'object') { + opts.body = JSON.stringify(opts.data); + // Allow the user to specifiy their own content type, + // such as application/json-patch+json; for historical reasons this + // content type must currently be a json type, as we are relying on + // application/x-www-form-urlencoded (which is incompatible with + // upstream GCP APIs) being rewritten to application/json. + // + // TODO: refactor upstream dependencies to stop relying on this + // side-effect. + if (!opts.headers['Content-Type'] || + !opts.headers['Content-Type'].includes('json')) { + opts.headers['Content-Type'] = 'application/json'; + } + } + else { + opts.body = opts.data; + } + } + opts.validateStatus = opts.validateStatus || this.validateStatus; + opts.responseType = opts.responseType || 'json'; + if (!opts.headers['Accept'] && opts.responseType === 'json') { + opts.headers['Accept'] = 'application/json'; + } + opts.method = opts.method || 'GET'; + const proxy = loadProxy(); + if (proxy) { + if (this.agentCache.has(proxy)) { + opts.agent = this.agentCache.get(proxy); + } + else { + opts.agent = new HttpsProxyAgent(proxy); + this.agentCache.set(proxy, opts.agent); + } + } + return opts; + } + /** + * By default, throw for any non-2xx status code + * @param status status code from the HTTP response + */ + validateStatus(status) { + return status >= 200 && status < 300; + } + /** + * Encode a set of key/value pars into a querystring format (?foo=bar&baz=boo) + * @param params key value pars to encode + */ + paramsSerializer(params) { + return querystring_1.default.stringify(params); + } + translateResponse(opts, res, data) { + // headers need to be converted from a map to an obj + const headers = {}; + res.headers.forEach((value, key) => { + headers[key] = value; + }); + return { + config: opts, + data: data, + headers, + status: res.status, + statusText: res.statusText, + // XMLHttpRequestLike + request: { + responseURL: res.url, + }, + }; + } +} +exports.Gaxios = Gaxios; +//# sourceMappingURL=gaxios.js.map + +/***/ }), + +/***/ 8113: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const gaxios_1 = __nccwpck_require__(71785); +exports.Gaxios = gaxios_1.Gaxios; +var common_1 = __nccwpck_require__(45933); +exports.GaxiosError = common_1.GaxiosError; +/** + * The default instance used when the `request` method is directly + * invoked. + */ +exports.instance = new gaxios_1.Gaxios(); +/** + * Make an HTTP request using the given options. + * @param opts Options for the request + */ +async function request(opts) { + return exports.instance.request(opts); +} +exports.request = request; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 24986: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2018 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +async function getRetryConfig(err) { + let config = getConfig(err); + if (!err || !err.config || (!config && !err.config.retry)) { + return { shouldRetry: false }; + } + config = config || {}; + config.currentRetryAttempt = config.currentRetryAttempt || 0; + config.retry = + config.retry === undefined || config.retry === null ? 3 : config.retry; + config.httpMethodsToRetry = config.httpMethodsToRetry || [ + 'GET', + 'HEAD', + 'PUT', + 'OPTIONS', + 'DELETE', + ]; + config.noResponseRetries = + config.noResponseRetries === undefined || config.noResponseRetries === null + ? 2 + : config.noResponseRetries; + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + const retryRanges = [ + // https://en.wikipedia.org/wiki/List_of_HTTP_status_codes + // 1xx - Retry (Informational, request still processing) + // 2xx - Do not retry (Success) + // 3xx - Do not retry (Redirect) + // 4xx - Do not retry (Client errors) + // 429 - Retry ("Too Many Requests") + // 5xx - Retry (Server errors) + [100, 199], + [429, 429], + [500, 599], + ]; + config.statusCodesToRetry = config.statusCodesToRetry || retryRanges; + // Put the config back into the err + err.config.retryConfig = config; + // Determine if we should retry the request + const shouldRetryFn = config.shouldRetry || shouldRetryRequest; + if (!(await shouldRetryFn(err))) { + return { shouldRetry: false, config: err.config }; + } + // Calculate time to wait with exponential backoff. + // Formula: (2^c - 1 / 2) * 1000 + const delay = ((Math.pow(2, config.currentRetryAttempt) - 1) / 2) * 1000; + // We're going to retry! Incremenent the counter. + err.config.retryConfig.currentRetryAttempt += 1; + // Create a promise that invokes the retry after the backOffDelay + const backoff = new Promise(resolve => { + setTimeout(resolve, delay); + }); + // Notify the user if they added an `onRetryAttempt` handler + if (config.onRetryAttempt) { + config.onRetryAttempt(err); + } + // Return the promise in which recalls Gaxios to retry the request + await backoff; + return { shouldRetry: true, config: err.config }; +} +exports.getRetryConfig = getRetryConfig; +/** + * Determine based on config if we should retry the request. + * @param err The GaxiosError passed to the interceptor. + */ +function shouldRetryRequest(err) { + const config = getConfig(err); + // node-fetch raises an AbortError if signaled: + // https://github.com/bitinn/node-fetch#request-cancellation-with-abortsignal + if (err.name === 'AbortError') { + return false; + } + // If there's no config, or retries are disabled, return. + if (!config || config.retry === 0) { + return false; + } + // Check if this error has no response (ETIMEDOUT, ENOTFOUND, etc) + if (!err.response && + (config.currentRetryAttempt || 0) >= config.noResponseRetries) { + return false; + } + // Only retry with configured HttpMethods. + if (!err.config.method || + config.httpMethodsToRetry.indexOf(err.config.method.toUpperCase()) < 0) { + return false; + } + // If this wasn't in the list of status codes where we want + // to automatically retry, return. + if (err.response && err.response.status) { + let isInRange = false; + for (const [min, max] of config.statusCodesToRetry) { + const status = err.response.status; + if (status >= min && status <= max) { + isInRange = true; + break; + } + } + if (!isInRange) { + return false; + } + } + // If we are out of retry attempts, return + config.currentRetryAttempt = config.currentRetryAttempt || 0; + if (config.currentRetryAttempt >= config.retry) { + return false; + } + return true; +} +/** + * Acquire the raxConfig object from an GaxiosError if available. + * @param err The Gaxios error with a config object. + */ +function getConfig(err) { + if (err && err.config && err.config.retryConfig) { + return err.config.retryConfig; + } + return; +} +//# sourceMappingURL=retry.js.map + +/***/ }), + +/***/ 12462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +const gaxios_1 = __nccwpck_require__(8113); +const jsonBigint = __nccwpck_require__(53357); // eslint-disable-line +exports.BASE_PATH = '/computeMetadata/v1'; +exports.HOST_ADDRESS = 'http://169.254.169.254'; +exports.SECONDARY_HOST_ADDRESS = 'http://metadata.google.internal.'; +exports.HEADER_NAME = 'Metadata-Flavor'; +exports.HEADER_VALUE = 'Google'; +exports.HEADERS = Object.freeze({ [exports.HEADER_NAME]: exports.HEADER_VALUE }); +/** + * Returns the base URL while taking into account the GCE_METADATA_IP + * environment variable if it exists. + * + * @returns The base URL, e.g., http://169.254.169.254/computeMetadata/v1. + */ +function getBaseUrl(baseUrl) { + if (!baseUrl) { + baseUrl = process.env.GCE_METADATA_IP + ? process.env.GCE_METADATA_IP + : exports.HOST_ADDRESS; + } + // If no scheme is provided default to HTTP: + if (!/^https?:\/\//.test(baseUrl)) { + baseUrl = `http://${baseUrl}`; + } + return new URL(exports.BASE_PATH, baseUrl).href; +} +// Accepts an options object passed from the user to the API. In previous +// versions of the API, it referred to a `Request` or an `Axios` request +// options object. Now it refers to an object with very limited property +// names. This is here to help ensure users don't pass invalid options when +// they upgrade from 0.4 to 0.5 to 0.8. +function validate(options) { + Object.keys(options).forEach(key => { + switch (key) { + case 'params': + case 'property': + case 'headers': + break; + case 'qs': + throw new Error("'qs' is not a valid configuration option. Please use 'params' instead."); + default: + throw new Error(`'${key}' is not a valid configuration option.`); + } + }); +} +async function metadataAccessor(type, options, noResponseRetries = 3, fastFail = false) { + options = options || {}; + if (typeof options === 'string') { + options = { property: options }; + } + let property = ''; + if (typeof options === 'object' && options.property) { + property = '/' + options.property; + } + validate(options); + try { + const requestMethod = fastFail ? fastFailMetadataRequest : gaxios_1.request; + const res = await requestMethod({ + url: `${getBaseUrl()}/${type}${property}`, + headers: Object.assign({}, exports.HEADERS, options.headers), + retryConfig: { noResponseRetries }, + params: options.params, + responseType: 'text', + timeout: requestTimeout(), + }); + // NOTE: node.js converts all incoming headers to lower case. + if (res.headers[exports.HEADER_NAME.toLowerCase()] !== exports.HEADER_VALUE) { + throw new Error(`Invalid response from metadata service: incorrect ${exports.HEADER_NAME} header.`); + } + else if (!res.data) { + throw new Error('Invalid response from the metadata service'); + } + if (typeof res.data === 'string') { + try { + return jsonBigint.parse(res.data); + } + catch (_a) { + /* ignore */ + } + } + return res.data; + } + catch (e) { + if (e.response && e.response.status !== 200) { + e.message = `Unsuccessful response status code. ${e.message}`; + } + throw e; + } +} +async function fastFailMetadataRequest(options) { + const secondaryOptions = { + ...options, + url: options.url.replace(getBaseUrl(), getBaseUrl(exports.SECONDARY_HOST_ADDRESS)), + }; + // We race a connection between DNS/IP to metadata server. There are a couple + // reasons for this: + // + // 1. the DNS is slow in some GCP environments; by checking both, we might + // detect the runtime environment signficantly faster. + // 2. we can't just check the IP, which is tarpitted and slow to respond + // on a user's local machine. + // + // Additional logic has been added to make sure that we don't create an + // unhandled rejection in scenarios where a failure happens sometime + // after a success. + // + // Note, however, if a failure happens prior to a success, a rejection should + // occur, this is for folks running locally. + // + let responded = false; + const r1 = gaxios_1.request(options) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r2; + } + else { + responded = true; + throw err; + } + }); + const r2 = gaxios_1.request(secondaryOptions) + .then(res => { + responded = true; + return res; + }) + .catch(err => { + if (responded) { + return r1; + } + else { + responded = true; + throw err; + } + }); + return Promise.race([r1, r2]); +} +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function instance(options) { + return metadataAccessor('instance', options); +} +exports.instance = instance; +// eslint-disable-next-line @typescript-eslint/no-explicit-any +function project(options) { + return metadataAccessor('project', options); +} +exports.project = project; +/* + * How many times should we retry detecting GCP environment. + */ +function detectGCPAvailableRetries() { + return process.env.DETECT_GCP_RETRIES + ? Number(process.env.DETECT_GCP_RETRIES) + : 0; +} +/** + * Determine if the metadata server is currently available. + */ +let cachedIsAvailableResponse; +async function isAvailable() { + try { + // If a user is instantiating several GCP libraries at the same time, + // this may result in multiple calls to isAvailable(), to detect the + // runtime environment. We use the same promise for each of these calls + // to reduce the network load. + if (cachedIsAvailableResponse === undefined) { + cachedIsAvailableResponse = metadataAccessor('instance', undefined, detectGCPAvailableRetries(), + // If the default HOST_ADDRESS has been overridden, we should not + // make an effort to try SECONDARY_HOST_ADDRESS (as we are likely in + // a non-GCP environment): + process.env.GCE_METADATA_IP ? false : true); + } + await cachedIsAvailableResponse; + return true; + } + catch (err) { + if (process.env.DEBUG_AUTH) { + console.info(err); + } + if (err.type === 'request-timeout') { + // If running in a GCP environment, metadata endpoint should return + // within ms. + return false; + } + if (err.response && err.response.status === 404) { + return false; + } + else { + if (!(err.response && err.response.status === 404) && + // A warning is emitted if we see an unexpected err.code, or err.code + // is not populated: + (!err.code || + ![ + 'EHOSTDOWN', + 'EHOSTUNREACH', + 'ENETUNREACH', + 'ENOENT', + 'ENOTFOUND', + 'ECONNREFUSED', + ].includes(err.code))) { + let code = 'UNKNOWN'; + if (err.code) + code = err.code; + process.emitWarning(`received unexpected error = ${err.message} code = ${code}`, 'MetadataLookupWarning'); + } + // Failure to resolve the metadata service means that it is not available. + return false; + } + } +} +exports.isAvailable = isAvailable; +/** + * reset the memoized isAvailable() lookup. + */ +function resetIsAvailableCache() { + cachedIsAvailableResponse = undefined; +} +exports.resetIsAvailableCache = resetIsAvailableCache; +function requestTimeout() { + // In testing, we were able to reproduce behavior similar to + // https://github.com/googleapis/google-auth-library-nodejs/issues/798 + // by making many concurrent network requests. Requests do not actually fail, + // rather they take significantly longer to complete (and we hit our + // default 3000ms timeout). + // + // This logic detects a GCF environment, using the documented environment + // variables K_SERVICE and FUNCTION_NAME: + // https://cloud.google.com/functions/docs/env-var and, in a GCF environment + // eliminates timeouts (by setting the value to 0 to disable). + return process.env.K_SERVICE || process.env.FUNCTION_NAME ? 0 : 3000; +} +exports.requestTimeout = requestTimeout; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 12520: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +exports.alphasort = alphasort +exports.alphasorti = alphasorti +exports.setopts = setopts +exports.ownProp = ownProp +exports.makeAbs = makeAbs +exports.finish = finish +exports.mark = mark +exports.isIgnored = isIgnored +exports.childrenIgnored = childrenIgnored + +function ownProp (obj, field) { + return Object.prototype.hasOwnProperty.call(obj, field) +} + +var path = __nccwpck_require__(71017) +var minimatch = __nccwpck_require__(78068) +var isAbsolute = __nccwpck_require__(20234) +var Minimatch = minimatch.Minimatch + +function alphasorti (a, b) { + return a.toLowerCase().localeCompare(b.toLowerCase()) +} + +function alphasort (a, b) { + return a.localeCompare(b) +} + +function setupIgnores (self, options) { + self.ignore = options.ignore || [] + + if (!Array.isArray(self.ignore)) + self.ignore = [self.ignore] + + if (self.ignore.length) { + self.ignore = self.ignore.map(ignoreMap) + } +} + +// ignore patterns are always in dot:true mode. +function ignoreMap (pattern) { + var gmatcher = null + if (pattern.slice(-3) === '/**') { + var gpattern = pattern.replace(/(\/\*\*)+$/, '') + gmatcher = new Minimatch(gpattern, { dot: true }) + } + + return { + matcher: new Minimatch(pattern, { dot: true }), + gmatcher: gmatcher + } +} + +function setopts (self, pattern, options) { + if (!options) + options = {} + + // base-matching: just use globstar for that. + if (options.matchBase && -1 === pattern.indexOf("/")) { + if (options.noglobstar) { + throw new Error("base matching requires globstar") + } + pattern = "**/" + pattern + } + + self.silent = !!options.silent + self.pattern = pattern + self.strict = options.strict !== false + self.realpath = !!options.realpath + self.realpathCache = options.realpathCache || Object.create(null) + self.follow = !!options.follow + self.dot = !!options.dot + self.mark = !!options.mark + self.nodir = !!options.nodir + if (self.nodir) + self.mark = true + self.sync = !!options.sync + self.nounique = !!options.nounique + self.nonull = !!options.nonull + self.nosort = !!options.nosort + self.nocase = !!options.nocase + self.stat = !!options.stat + self.noprocess = !!options.noprocess + self.absolute = !!options.absolute + + self.maxLength = options.maxLength || Infinity + self.cache = options.cache || Object.create(null) + self.statCache = options.statCache || Object.create(null) + self.symlinks = options.symlinks || Object.create(null) + + setupIgnores(self, options) + + self.changedCwd = false + var cwd = process.cwd() + if (!ownProp(options, "cwd")) + self.cwd = cwd + else { + self.cwd = path.resolve(options.cwd) + self.changedCwd = self.cwd !== cwd + } + + self.root = options.root || path.resolve(self.cwd, "/") + self.root = path.resolve(self.root) + if (process.platform === "win32") + self.root = self.root.replace(/\\/g, "/") + + // TODO: is an absolute `cwd` supposed to be resolved against `root`? + // e.g. { cwd: '/test', root: __dirname } === path.join(__dirname, '/test') + self.cwdAbs = isAbsolute(self.cwd) ? self.cwd : makeAbs(self, self.cwd) + if (process.platform === "win32") + self.cwdAbs = self.cwdAbs.replace(/\\/g, "/") + self.nomount = !!options.nomount + + // disable comments and negation in Minimatch. + // Note that they are not supported in Glob itself anyway. + options.nonegate = true + options.nocomment = true + + self.minimatch = new Minimatch(pattern, options) + self.options = self.minimatch.options +} + +function finish (self) { + var nou = self.nounique + var all = nou ? [] : Object.create(null) + + for (var i = 0, l = self.matches.length; i < l; i ++) { + var matches = self.matches[i] + if (!matches || Object.keys(matches).length === 0) { + if (self.nonull) { + // do like the shell, and spit out the literal glob + var literal = self.minimatch.globSet[i] + if (nou) + all.push(literal) + else + all[literal] = true + } + } else { + // had matches + var m = Object.keys(matches) + if (nou) + all.push.apply(all, m) + else + m.forEach(function (m) { + all[m] = true + }) + } + } + + if (!nou) + all = Object.keys(all) + + if (!self.nosort) + all = all.sort(self.nocase ? alphasorti : alphasort) + + // at *some* point we statted all of these + if (self.mark) { + for (var i = 0; i < all.length; i++) { + all[i] = self._mark(all[i]) + } + if (self.nodir) { + all = all.filter(function (e) { + var notDir = !(/\/$/.test(e)) + var c = self.cache[e] || self.cache[makeAbs(self, e)] + if (notDir && c) + notDir = c !== 'DIR' && !Array.isArray(c) + return notDir + }) + } + } + + if (self.ignore.length) + all = all.filter(function(m) { + return !isIgnored(self, m) + }) + + self.found = all +} + +function mark (self, p) { + var abs = makeAbs(self, p) + var c = self.cache[abs] + var m = p + if (c) { + var isDir = c === 'DIR' || Array.isArray(c) + var slash = p.slice(-1) === '/' + + if (isDir && !slash) + m += '/' + else if (!isDir && slash) + m = m.slice(0, -1) + + if (m !== p) { + var mabs = makeAbs(self, m) + self.statCache[mabs] = self.statCache[abs] + self.cache[mabs] = self.cache[abs] + } + } + + return m +} + +// lotta situps... +function makeAbs (self, f) { + var abs = f + if (f.charAt(0) === '/') { + abs = path.join(self.root, f) + } else if (isAbsolute(f) || f === '') { + abs = f + } else if (self.changedCwd) { + abs = path.resolve(self.cwd, f) + } else { + abs = path.resolve(f) + } + + if (process.platform === 'win32') + abs = abs.replace(/\\/g, '/') + + return abs +} + + +// Return true, if pattern ends with globstar '**', for the accompanying parent directory. +// Ex:- If node_modules/** is the pattern, add 'node_modules' to ignore list along with it's contents +function isIgnored (self, path) { + if (!self.ignore.length) + return false + + return self.ignore.some(function(item) { + return item.matcher.match(path) || !!(item.gmatcher && item.gmatcher.match(path)) + }) +} + +function childrenIgnored (self, path) { + if (!self.ignore.length) + return false + + return self.ignore.some(function(item) { + return !!(item.gmatcher && item.gmatcher.match(path)) + }) +} + + +/***/ }), + +/***/ 43822: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +// Approach: +// +// 1. Get the minimatch set +// 2. For each pattern in the set, PROCESS(pattern, false) +// 3. Store matches per-set, then uniq them +// +// PROCESS(pattern, inGlobStar) +// Get the first [n] items from pattern that are all strings +// Join these together. This is PREFIX. +// If there is no more remaining, then stat(PREFIX) and +// add to matches if it succeeds. END. +// +// If inGlobStar and PREFIX is symlink and points to dir +// set ENTRIES = [] +// else readdir(PREFIX) as ENTRIES +// If fail, END +// +// with ENTRIES +// If pattern[n] is GLOBSTAR +// // handle the case where the globstar match is empty +// // by pruning it out, and testing the resulting pattern +// PROCESS(pattern[0..n] + pattern[n+1 .. $], false) +// // handle other cases. +// for ENTRY in ENTRIES (not dotfiles) +// // attach globstar + tail onto the entry +// // Mark that this entry is a globstar match +// PROCESS(pattern[0..n] + ENTRY + pattern[n .. $], true) +// +// else // not globstar +// for ENTRY in ENTRIES (not dotfiles, unless pattern[n] is dot) +// Test ENTRY against pattern[n] +// If fails, continue +// If passes, PROCESS(pattern[0..n] + item + pattern[n+1 .. $]) +// +// Caveat: +// Cache all stats and readdirs results to minimize syscall. Since all +// we ever care about is existence and directory-ness, we can just keep +// `true` for files, and [children,...] for directories, or `false` for +// things that don't exist. + +module.exports = glob + +var fs = __nccwpck_require__(57147) +var rp = __nccwpck_require__(84453) +var minimatch = __nccwpck_require__(78068) +var Minimatch = minimatch.Minimatch +var inherits = __nccwpck_require__(25333) +var EE = (__nccwpck_require__(82361).EventEmitter) +var path = __nccwpck_require__(71017) +var assert = __nccwpck_require__(39491) +var isAbsolute = __nccwpck_require__(20234) +var globSync = __nccwpck_require__(11852) +var common = __nccwpck_require__(12520) +var alphasort = common.alphasort +var alphasorti = common.alphasorti +var setopts = common.setopts +var ownProp = common.ownProp +var inflight = __nccwpck_require__(84962) +var util = __nccwpck_require__(73837) +var childrenIgnored = common.childrenIgnored +var isIgnored = common.isIgnored + +var once = __nccwpck_require__(15287) + +function glob (pattern, options, cb) { + if (typeof options === 'function') cb = options, options = {} + if (!options) options = {} + + if (options.sync) { + if (cb) + throw new TypeError('callback provided to sync glob') + return globSync(pattern, options) + } + + return new Glob(pattern, options, cb) +} + +glob.sync = globSync +var GlobSync = glob.GlobSync = globSync.GlobSync + +// old api surface +glob.glob = glob + +function extend (origin, add) { + if (add === null || typeof add !== 'object') { + return origin + } + + var keys = Object.keys(add) + var i = keys.length + while (i--) { + origin[keys[i]] = add[keys[i]] + } + return origin +} + +glob.hasMagic = function (pattern, options_) { + var options = extend({}, options_) + options.noprocess = true + + var g = new Glob(pattern, options) + var set = g.minimatch.set + + if (!pattern) + return false + + if (set.length > 1) + return true + + for (var j = 0; j < set[0].length; j++) { + if (typeof set[0][j] !== 'string') + return true + } + + return false +} + +glob.Glob = Glob +inherits(Glob, EE) +function Glob (pattern, options, cb) { + if (typeof options === 'function') { + cb = options + options = null + } + + if (options && options.sync) { + if (cb) + throw new TypeError('callback provided to sync glob') + return new GlobSync(pattern, options) + } + + if (!(this instanceof Glob)) + return new Glob(pattern, options, cb) + + setopts(this, pattern, options) + this._didRealPath = false + + // process each pattern in the minimatch set + var n = this.minimatch.set.length + + // The matches are stored as {: true,...} so that + // duplicates are automagically pruned. + // Later, we do an Object.keys() on these. + // Keep them as a list so we can fill in when nonull is set. + this.matches = new Array(n) + + if (typeof cb === 'function') { + cb = once(cb) + this.on('error', cb) + this.on('end', function (matches) { + cb(null, matches) + }) + } + + var self = this + this._processing = 0 + + this._emitQueue = [] + this._processQueue = [] + this.paused = false + + if (this.noprocess) + return this + + if (n === 0) + return done() + + var sync = true + for (var i = 0; i < n; i ++) { + this._process(this.minimatch.set[i], i, false, done) + } + sync = false + + function done () { + --self._processing + if (self._processing <= 0) { + if (sync) { + process.nextTick(function () { + self._finish() + }) + } else { + self._finish() + } + } + } +} + +Glob.prototype._finish = function () { + assert(this instanceof Glob) + if (this.aborted) + return + + if (this.realpath && !this._didRealpath) + return this._realpath() + + common.finish(this) + this.emit('end', this.found) +} + +Glob.prototype._realpath = function () { + if (this._didRealpath) + return + + this._didRealpath = true + + var n = this.matches.length + if (n === 0) + return this._finish() + + var self = this + for (var i = 0; i < this.matches.length; i++) + this._realpathSet(i, next) + + function next () { + if (--n === 0) + self._finish() + } +} + +Glob.prototype._realpathSet = function (index, cb) { + var matchset = this.matches[index] + if (!matchset) + return cb() + + var found = Object.keys(matchset) + var self = this + var n = found.length + + if (n === 0) + return cb() + + var set = this.matches[index] = Object.create(null) + found.forEach(function (p, i) { + // If there's a problem with the stat, then it means that + // one or more of the links in the realpath couldn't be + // resolved. just return the abs value in that case. + p = self._makeAbs(p) + rp.realpath(p, self.realpathCache, function (er, real) { + if (!er) + set[real] = true + else if (er.syscall === 'stat') + set[p] = true + else + self.emit('error', er) // srsly wtf right here + + if (--n === 0) { + self.matches[index] = set + cb() + } + }) + }) +} + +Glob.prototype._mark = function (p) { + return common.mark(this, p) +} + +Glob.prototype._makeAbs = function (f) { + return common.makeAbs(this, f) +} + +Glob.prototype.abort = function () { + this.aborted = true + this.emit('abort') +} + +Glob.prototype.pause = function () { + if (!this.paused) { + this.paused = true + this.emit('pause') + } +} + +Glob.prototype.resume = function () { + if (this.paused) { + this.emit('resume') + this.paused = false + if (this._emitQueue.length) { + var eq = this._emitQueue.slice(0) + this._emitQueue.length = 0 + for (var i = 0; i < eq.length; i ++) { + var e = eq[i] + this._emitMatch(e[0], e[1]) + } + } + if (this._processQueue.length) { + var pq = this._processQueue.slice(0) + this._processQueue.length = 0 + for (var i = 0; i < pq.length; i ++) { + var p = pq[i] + this._processing-- + this._process(p[0], p[1], p[2], p[3]) + } + } + } +} + +Glob.prototype._process = function (pattern, index, inGlobStar, cb) { + assert(this instanceof Glob) + assert(typeof cb === 'function') + + if (this.aborted) + return + + this._processing++ + if (this.paused) { + this._processQueue.push([pattern, index, inGlobStar, cb]) + return + } + + //console.error('PROCESS %d', this._processing, pattern) + + // Get the first [n] parts of pattern that are all strings. + var n = 0 + while (typeof pattern[n] === 'string') { + n ++ + } + // now n is the index of the first one that is *not* a string. + + // see if there's anything else + var prefix + switch (n) { + // if not, then this is rather simple + case pattern.length: + this._processSimple(pattern.join('/'), index, cb) + return + + case 0: + // pattern *starts* with some non-trivial item. + // going to readdir(cwd), but not include the prefix in matches. + prefix = null + break + + default: + // pattern has some string bits in the front. + // whatever it starts with, whether that's 'absolute' like /foo/bar, + // or 'relative' like '../baz' + prefix = pattern.slice(0, n).join('/') + break + } + + var remain = pattern.slice(n) + + // get the list of entries. + var read + if (prefix === null) + read = '.' + else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { + if (!prefix || !isAbsolute(prefix)) + prefix = '/' + prefix + read = prefix + } else + read = prefix + + var abs = this._makeAbs(read) + + //if ignored, skip _processing + if (childrenIgnored(this, read)) + return cb() + + var isGlobStar = remain[0] === minimatch.GLOBSTAR + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar, cb) + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar, cb) +} + +Glob.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar, cb) { + var self = this + this._readdir(abs, inGlobStar, function (er, entries) { + return self._processReaddir2(prefix, read, abs, remain, index, inGlobStar, entries, cb) + }) +} + +Glob.prototype._processReaddir2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { + + // if the abs isn't a dir, then nothing can match! + if (!entries) + return cb() + + // It will only match dot entries if it starts with a dot, or if + // dot is set. Stuff like @(.foo|.bar) isn't allowed. + var pn = remain[0] + var negate = !!this.minimatch.negate + var rawGlob = pn._glob + var dotOk = this.dot || rawGlob.charAt(0) === '.' + + var matchedEntries = [] + for (var i = 0; i < entries.length; i++) { + var e = entries[i] + if (e.charAt(0) !== '.' || dotOk) { + var m + if (negate && !prefix) { + m = !e.match(pn) + } else { + m = e.match(pn) + } + if (m) + matchedEntries.push(e) + } + } + + //console.error('prd2', prefix, entries, remain[0]._glob, matchedEntries) + + var len = matchedEntries.length + // If there are no matched entries, then nothing matches. + if (len === 0) + return cb() + + // if this is the last remaining pattern bit, then no need for + // an additional stat *unless* the user has specified mark or + // stat explicitly. We know they exist, since readdir returned + // them. + + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null) + + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + if (prefix) { + if (prefix !== '/') + e = prefix + '/' + e + else + e = prefix + e + } + + if (e.charAt(0) === '/' && !this.nomount) { + e = path.join(this.root, e) + } + this._emitMatch(index, e) + } + // This was the last one, and no stats were needed + return cb() + } + + // now test all matched entries as stand-ins for that part + // of the pattern. + remain.shift() + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + var newPattern + if (prefix) { + if (prefix !== '/') + e = prefix + '/' + e + else + e = prefix + e + } + this._process([e].concat(remain), index, inGlobStar, cb) + } + cb() +} + +Glob.prototype._emitMatch = function (index, e) { + if (this.aborted) + return + + if (isIgnored(this, e)) + return + + if (this.paused) { + this._emitQueue.push([index, e]) + return + } + + var abs = isAbsolute(e) ? e : this._makeAbs(e) + + if (this.mark) + e = this._mark(e) + + if (this.absolute) + e = abs + + if (this.matches[index][e]) + return + + if (this.nodir) { + var c = this.cache[abs] + if (c === 'DIR' || Array.isArray(c)) + return + } + + this.matches[index][e] = true + + var st = this.statCache[abs] + if (st) + this.emit('stat', e, st) + + this.emit('match', e) +} + +Glob.prototype._readdirInGlobStar = function (abs, cb) { + if (this.aborted) + return + + // follow all symlinked directories forever + // just proceed as if this is a non-globstar situation + if (this.follow) + return this._readdir(abs, false, cb) + + var lstatkey = 'lstat\0' + abs + var self = this + var lstatcb = inflight(lstatkey, lstatcb_) + + if (lstatcb) + fs.lstat(abs, lstatcb) + + function lstatcb_ (er, lstat) { + if (er && er.code === 'ENOENT') + return cb() + + var isSym = lstat && lstat.isSymbolicLink() + self.symlinks[abs] = isSym + + // If it's not a symlink or a dir, then it's definitely a regular file. + // don't bother doing a readdir in that case. + if (!isSym && lstat && !lstat.isDirectory()) { + self.cache[abs] = 'FILE' + cb() + } else + self._readdir(abs, false, cb) + } +} + +Glob.prototype._readdir = function (abs, inGlobStar, cb) { + if (this.aborted) + return + + cb = inflight('readdir\0'+abs+'\0'+inGlobStar, cb) + if (!cb) + return + + //console.error('RD %j %j', +inGlobStar, abs) + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs, cb) + + if (ownProp(this.cache, abs)) { + var c = this.cache[abs] + if (!c || c === 'FILE') + return cb() + + if (Array.isArray(c)) + return cb(null, c) + } + + var self = this + fs.readdir(abs, readdirCb(this, abs, cb)) +} + +function readdirCb (self, abs, cb) { + return function (er, entries) { + if (er) + self._readdirError(abs, er, cb) + else + self._readdirEntries(abs, entries, cb) + } +} + +Glob.prototype._readdirEntries = function (abs, entries, cb) { + if (this.aborted) + return + + // if we haven't asked to stat everything, then just + // assume that everything in there exists, so we can avoid + // having to stat it a second time. + if (!this.mark && !this.stat) { + for (var i = 0; i < entries.length; i ++) { + var e = entries[i] + if (abs === '/') + e = abs + e + else + e = abs + '/' + e + this.cache[e] = true + } + } + + this.cache[abs] = entries + return cb(null, entries) +} + +Glob.prototype._readdirError = function (f, er, cb) { + if (this.aborted) + return + + // handle errors, and cache the information + switch (er.code) { + case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 + case 'ENOTDIR': // totally normal. means it *does* exist. + var abs = this._makeAbs(f) + this.cache[abs] = 'FILE' + if (abs === this.cwdAbs) { + var error = new Error(er.code + ' invalid cwd ' + this.cwd) + error.path = this.cwd + error.code = er.code + this.emit('error', error) + this.abort() + } + break + + case 'ENOENT': // not terribly unusual + case 'ELOOP': + case 'ENAMETOOLONG': + case 'UNKNOWN': + this.cache[this._makeAbs(f)] = false + break + + default: // some unusual error. Treat as failure. + this.cache[this._makeAbs(f)] = false + if (this.strict) { + this.emit('error', er) + // If the error is handled, then we abort + // if not, we threw out of here + this.abort() + } + if (!this.silent) + console.error('glob error', er) + break + } + + return cb() +} + +Glob.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar, cb) { + var self = this + this._readdir(abs, inGlobStar, function (er, entries) { + self._processGlobStar2(prefix, read, abs, remain, index, inGlobStar, entries, cb) + }) +} + + +Glob.prototype._processGlobStar2 = function (prefix, read, abs, remain, index, inGlobStar, entries, cb) { + //console.error('pgs2', prefix, remain[0], entries) + + // no entries means not a dir, so it can never have matches + // foo.txt/** doesn't match foo.txt + if (!entries) + return cb() + + // test without the globstar, and with every child both below + // and replacing the globstar. + var remainWithoutGlobStar = remain.slice(1) + var gspref = prefix ? [ prefix ] : [] + var noGlobStar = gspref.concat(remainWithoutGlobStar) + + // the noGlobStar pattern exits the inGlobStar state + this._process(noGlobStar, index, false, cb) + + var isSym = this.symlinks[abs] + var len = entries.length + + // If it's a symlink, and we're in a globstar, then stop + if (isSym && inGlobStar) + return cb() + + for (var i = 0; i < len; i++) { + var e = entries[i] + if (e.charAt(0) === '.' && !this.dot) + continue + + // these two cases enter the inGlobStar state + var instead = gspref.concat(entries[i], remainWithoutGlobStar) + this._process(instead, index, true, cb) + + var below = gspref.concat(entries[i], remain) + this._process(below, index, true, cb) + } + + cb() +} + +Glob.prototype._processSimple = function (prefix, index, cb) { + // XXX review this. Shouldn't it be doing the mounting etc + // before doing stat? kinda weird? + var self = this + this._stat(prefix, function (er, exists) { + self._processSimple2(prefix, index, er, exists, cb) + }) +} +Glob.prototype._processSimple2 = function (prefix, index, er, exists, cb) { + + //console.error('ps2', prefix, exists) + + if (!this.matches[index]) + this.matches[index] = Object.create(null) + + // If it doesn't exist, then just mark the lack of results + if (!exists) + return cb() + + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix) + if (prefix.charAt(0) === '/') { + prefix = path.join(this.root, prefix) + } else { + prefix = path.resolve(this.root, prefix) + if (trail) + prefix += '/' + } + } + + if (process.platform === 'win32') + prefix = prefix.replace(/\\/g, '/') + + // Mark this as a match + this._emitMatch(index, prefix) + cb() +} + +// Returns either 'DIR', 'FILE', or false +Glob.prototype._stat = function (f, cb) { + var abs = this._makeAbs(f) + var needDir = f.slice(-1) === '/' + + if (f.length > this.maxLength) + return cb() + + if (!this.stat && ownProp(this.cache, abs)) { + var c = this.cache[abs] + + if (Array.isArray(c)) + c = 'DIR' + + // It exists, but maybe not how we need it + if (!needDir || c === 'DIR') + return cb(null, c) + + if (needDir && c === 'FILE') + return cb() + + // otherwise we have to stat, because maybe c=true + // if we know it exists, but not what it is. + } + + var exists + var stat = this.statCache[abs] + if (stat !== undefined) { + if (stat === false) + return cb(null, stat) + else { + var type = stat.isDirectory() ? 'DIR' : 'FILE' + if (needDir && type === 'FILE') + return cb() + else + return cb(null, type, stat) + } + } + + var self = this + var statcb = inflight('stat\0' + abs, lstatcb_) + if (statcb) + fs.lstat(abs, statcb) + + function lstatcb_ (er, lstat) { + if (lstat && lstat.isSymbolicLink()) { + // If it's a symlink, then treat it as the target, unless + // the target does not exist, then treat it as a file. + return fs.stat(abs, function (er, stat) { + if (er) + self._stat2(f, abs, null, lstat, cb) + else + self._stat2(f, abs, er, stat, cb) + }) + } else { + self._stat2(f, abs, er, lstat, cb) + } + } +} + +Glob.prototype._stat2 = function (f, abs, er, stat, cb) { + if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { + this.statCache[abs] = false + return cb() + } + + var needDir = f.slice(-1) === '/' + this.statCache[abs] = stat + + if (abs.slice(-1) === '/' && stat && !stat.isDirectory()) + return cb(null, false, stat) + + var c = true + if (stat) + c = stat.isDirectory() ? 'DIR' : 'FILE' + this.cache[abs] = this.cache[abs] || c + + if (needDir && c === 'FILE') + return cb() + + return cb(null, c, stat) +} + + +/***/ }), + +/***/ 11852: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = globSync +globSync.GlobSync = GlobSync + +var fs = __nccwpck_require__(57147) +var rp = __nccwpck_require__(84453) +var minimatch = __nccwpck_require__(78068) +var Minimatch = minimatch.Minimatch +var Glob = (__nccwpck_require__(43822).Glob) +var util = __nccwpck_require__(73837) +var path = __nccwpck_require__(71017) +var assert = __nccwpck_require__(39491) +var isAbsolute = __nccwpck_require__(20234) +var common = __nccwpck_require__(12520) +var alphasort = common.alphasort +var alphasorti = common.alphasorti +var setopts = common.setopts +var ownProp = common.ownProp +var childrenIgnored = common.childrenIgnored +var isIgnored = common.isIgnored + +function globSync (pattern, options) { + if (typeof options === 'function' || arguments.length === 3) + throw new TypeError('callback provided to sync glob\n'+ + 'See: https://github.com/isaacs/node-glob/issues/167') + + return new GlobSync(pattern, options).found +} + +function GlobSync (pattern, options) { + if (!pattern) + throw new Error('must provide pattern') + + if (typeof options === 'function' || arguments.length === 3) + throw new TypeError('callback provided to sync glob\n'+ + 'See: https://github.com/isaacs/node-glob/issues/167') + + if (!(this instanceof GlobSync)) + return new GlobSync(pattern, options) + + setopts(this, pattern, options) + + if (this.noprocess) + return this + + var n = this.minimatch.set.length + this.matches = new Array(n) + for (var i = 0; i < n; i ++) { + this._process(this.minimatch.set[i], i, false) + } + this._finish() +} + +GlobSync.prototype._finish = function () { + assert(this instanceof GlobSync) + if (this.realpath) { + var self = this + this.matches.forEach(function (matchset, index) { + var set = self.matches[index] = Object.create(null) + for (var p in matchset) { + try { + p = self._makeAbs(p) + var real = rp.realpathSync(p, self.realpathCache) + set[real] = true + } catch (er) { + if (er.syscall === 'stat') + set[self._makeAbs(p)] = true + else + throw er + } + } + }) + } + common.finish(this) +} + + +GlobSync.prototype._process = function (pattern, index, inGlobStar) { + assert(this instanceof GlobSync) + + // Get the first [n] parts of pattern that are all strings. + var n = 0 + while (typeof pattern[n] === 'string') { + n ++ + } + // now n is the index of the first one that is *not* a string. + + // See if there's anything else + var prefix + switch (n) { + // if not, then this is rather simple + case pattern.length: + this._processSimple(pattern.join('/'), index) + return + + case 0: + // pattern *starts* with some non-trivial item. + // going to readdir(cwd), but not include the prefix in matches. + prefix = null + break + + default: + // pattern has some string bits in the front. + // whatever it starts with, whether that's 'absolute' like /foo/bar, + // or 'relative' like '../baz' + prefix = pattern.slice(0, n).join('/') + break + } + + var remain = pattern.slice(n) + + // get the list of entries. + var read + if (prefix === null) + read = '.' + else if (isAbsolute(prefix) || isAbsolute(pattern.join('/'))) { + if (!prefix || !isAbsolute(prefix)) + prefix = '/' + prefix + read = prefix + } else + read = prefix + + var abs = this._makeAbs(read) + + //if ignored, skip processing + if (childrenIgnored(this, read)) + return + + var isGlobStar = remain[0] === minimatch.GLOBSTAR + if (isGlobStar) + this._processGlobStar(prefix, read, abs, remain, index, inGlobStar) + else + this._processReaddir(prefix, read, abs, remain, index, inGlobStar) +} + + +GlobSync.prototype._processReaddir = function (prefix, read, abs, remain, index, inGlobStar) { + var entries = this._readdir(abs, inGlobStar) + + // if the abs isn't a dir, then nothing can match! + if (!entries) + return + + // It will only match dot entries if it starts with a dot, or if + // dot is set. Stuff like @(.foo|.bar) isn't allowed. + var pn = remain[0] + var negate = !!this.minimatch.negate + var rawGlob = pn._glob + var dotOk = this.dot || rawGlob.charAt(0) === '.' + + var matchedEntries = [] + for (var i = 0; i < entries.length; i++) { + var e = entries[i] + if (e.charAt(0) !== '.' || dotOk) { + var m + if (negate && !prefix) { + m = !e.match(pn) + } else { + m = e.match(pn) + } + if (m) + matchedEntries.push(e) + } + } + + var len = matchedEntries.length + // If there are no matched entries, then nothing matches. + if (len === 0) + return + + // if this is the last remaining pattern bit, then no need for + // an additional stat *unless* the user has specified mark or + // stat explicitly. We know they exist, since readdir returned + // them. + + if (remain.length === 1 && !this.mark && !this.stat) { + if (!this.matches[index]) + this.matches[index] = Object.create(null) + + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + if (prefix) { + if (prefix.slice(-1) !== '/') + e = prefix + '/' + e + else + e = prefix + e + } + + if (e.charAt(0) === '/' && !this.nomount) { + e = path.join(this.root, e) + } + this._emitMatch(index, e) + } + // This was the last one, and no stats were needed + return + } + + // now test all matched entries as stand-ins for that part + // of the pattern. + remain.shift() + for (var i = 0; i < len; i ++) { + var e = matchedEntries[i] + var newPattern + if (prefix) + newPattern = [prefix, e] + else + newPattern = [e] + this._process(newPattern.concat(remain), index, inGlobStar) + } +} + + +GlobSync.prototype._emitMatch = function (index, e) { + if (isIgnored(this, e)) + return + + var abs = this._makeAbs(e) + + if (this.mark) + e = this._mark(e) + + if (this.absolute) { + e = abs + } + + if (this.matches[index][e]) + return + + if (this.nodir) { + var c = this.cache[abs] + if (c === 'DIR' || Array.isArray(c)) + return + } + + this.matches[index][e] = true + + if (this.stat) + this._stat(e) +} + + +GlobSync.prototype._readdirInGlobStar = function (abs) { + // follow all symlinked directories forever + // just proceed as if this is a non-globstar situation + if (this.follow) + return this._readdir(abs, false) + + var entries + var lstat + var stat + try { + lstat = fs.lstatSync(abs) + } catch (er) { + if (er.code === 'ENOENT') { + // lstat failed, doesn't exist + return null + } + } + + var isSym = lstat && lstat.isSymbolicLink() + this.symlinks[abs] = isSym + + // If it's not a symlink or a dir, then it's definitely a regular file. + // don't bother doing a readdir in that case. + if (!isSym && lstat && !lstat.isDirectory()) + this.cache[abs] = 'FILE' + else + entries = this._readdir(abs, false) + + return entries +} + +GlobSync.prototype._readdir = function (abs, inGlobStar) { + var entries + + if (inGlobStar && !ownProp(this.symlinks, abs)) + return this._readdirInGlobStar(abs) + + if (ownProp(this.cache, abs)) { + var c = this.cache[abs] + if (!c || c === 'FILE') + return null + + if (Array.isArray(c)) + return c + } + + try { + return this._readdirEntries(abs, fs.readdirSync(abs)) + } catch (er) { + this._readdirError(abs, er) + return null + } +} + +GlobSync.prototype._readdirEntries = function (abs, entries) { + // if we haven't asked to stat everything, then just + // assume that everything in there exists, so we can avoid + // having to stat it a second time. + if (!this.mark && !this.stat) { + for (var i = 0; i < entries.length; i ++) { + var e = entries[i] + if (abs === '/') + e = abs + e + else + e = abs + '/' + e + this.cache[e] = true + } + } + + this.cache[abs] = entries + + // mark and cache dir-ness + return entries +} + +GlobSync.prototype._readdirError = function (f, er) { + // handle errors, and cache the information + switch (er.code) { + case 'ENOTSUP': // https://github.com/isaacs/node-glob/issues/205 + case 'ENOTDIR': // totally normal. means it *does* exist. + var abs = this._makeAbs(f) + this.cache[abs] = 'FILE' + if (abs === this.cwdAbs) { + var error = new Error(er.code + ' invalid cwd ' + this.cwd) + error.path = this.cwd + error.code = er.code + throw error + } + break + + case 'ENOENT': // not terribly unusual + case 'ELOOP': + case 'ENAMETOOLONG': + case 'UNKNOWN': + this.cache[this._makeAbs(f)] = false + break + + default: // some unusual error. Treat as failure. + this.cache[this._makeAbs(f)] = false + if (this.strict) + throw er + if (!this.silent) + console.error('glob error', er) + break + } +} + +GlobSync.prototype._processGlobStar = function (prefix, read, abs, remain, index, inGlobStar) { + + var entries = this._readdir(abs, inGlobStar) + + // no entries means not a dir, so it can never have matches + // foo.txt/** doesn't match foo.txt + if (!entries) + return + + // test without the globstar, and with every child both below + // and replacing the globstar. + var remainWithoutGlobStar = remain.slice(1) + var gspref = prefix ? [ prefix ] : [] + var noGlobStar = gspref.concat(remainWithoutGlobStar) + + // the noGlobStar pattern exits the inGlobStar state + this._process(noGlobStar, index, false) + + var len = entries.length + var isSym = this.symlinks[abs] + + // If it's a symlink, and we're in a globstar, then stop + if (isSym && inGlobStar) + return + + for (var i = 0; i < len; i++) { + var e = entries[i] + if (e.charAt(0) === '.' && !this.dot) + continue + + // these two cases enter the inGlobStar state + var instead = gspref.concat(entries[i], remainWithoutGlobStar) + this._process(instead, index, true) + + var below = gspref.concat(entries[i], remain) + this._process(below, index, true) + } +} + +GlobSync.prototype._processSimple = function (prefix, index) { + // XXX review this. Shouldn't it be doing the mounting etc + // before doing stat? kinda weird? + var exists = this._stat(prefix) + + if (!this.matches[index]) + this.matches[index] = Object.create(null) + + // If it doesn't exist, then just mark the lack of results + if (!exists) + return + + if (prefix && isAbsolute(prefix) && !this.nomount) { + var trail = /[\/\\]$/.test(prefix) + if (prefix.charAt(0) === '/') { + prefix = path.join(this.root, prefix) + } else { + prefix = path.resolve(this.root, prefix) + if (trail) + prefix += '/' + } + } + + if (process.platform === 'win32') + prefix = prefix.replace(/\\/g, '/') + + // Mark this as a match + this._emitMatch(index, prefix) +} + +// Returns either 'DIR', 'FILE', or false +GlobSync.prototype._stat = function (f) { + var abs = this._makeAbs(f) + var needDir = f.slice(-1) === '/' + + if (f.length > this.maxLength) + return false + + if (!this.stat && ownProp(this.cache, abs)) { + var c = this.cache[abs] + + if (Array.isArray(c)) + c = 'DIR' + + // It exists, but maybe not how we need it + if (!needDir || c === 'DIR') + return c + + if (needDir && c === 'FILE') + return false + + // otherwise we have to stat, because maybe c=true + // if we know it exists, but not what it is. + } + + var exists + var stat = this.statCache[abs] + if (!stat) { + var lstat + try { + lstat = fs.lstatSync(abs) + } catch (er) { + if (er && (er.code === 'ENOENT' || er.code === 'ENOTDIR')) { + this.statCache[abs] = false + return false + } + } + + if (lstat && lstat.isSymbolicLink()) { + try { + stat = fs.statSync(abs) + } catch (er) { + stat = lstat + } + } else { + stat = lstat + } + } + + this.statCache[abs] = stat + + var c = true + if (stat) + c = stat.isDirectory() ? 'DIR' : 'FILE' + + this.cache[abs] = this.cache[abs] || c + + if (needDir && c === 'FILE') + return false + + return c +} + +GlobSync.prototype._mark = function (p) { + return common.mark(this, p) +} + +GlobSync.prototype._makeAbs = function (f) { + return common.makeAbs(this, f) +} + + +/***/ }), + +/***/ 19128: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2012 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const events_1 = __nccwpck_require__(82361); +const transporters_1 = __nccwpck_require__(3186); +class AuthClient extends events_1.EventEmitter { + constructor() { + super(...arguments); + this.transporter = new transporters_1.DefaultTransporter(); + this.credentials = {}; + } + /** + * Sets the auth credentials. + */ + setCredentials(credentials) { + this.credentials = credentials; + } + /** + * Append additional headers, e.g., x-goog-user-project, shared across the + * classes inheriting AuthClient. This method should be used by any method + * that overrides getRequestMetadataAsync(), which is a shared helper for + * setting request information in both gRPC and HTTP API calls. + * + * @param headers objedcdt to append additional headers to. + */ + addSharedMetadataHeaders(headers) { + // quota_project_id, stored in application_default_credentials.json, is set in + // the x-goog-user-project header, to indicate an alternate account for + // billing and quota: + if (!headers['x-goog-user-project'] && // don't override a value the user sets. + this.quotaProjectId) { + headers['x-goog-user-project'] = this.quotaProjectId; + } + return headers; + } +} +exports.AuthClient = AuthClient; +//# sourceMappingURL=authclient.js.map + +/***/ }), + +/***/ 25876: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const arrify = __nccwpck_require__(69298); +const gcpMetadata = __nccwpck_require__(12462); +const oauth2client_1 = __nccwpck_require__(22316); +class Compute extends oauth2client_1.OAuth2Client { + /** + * Google Compute Engine service account credentials. + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options = {}) { + super(options); + // Start with an expired refresh token, which will automatically be + // refreshed before the first API call is made. + this.credentials = { expiry_date: 1, refresh_token: 'compute-placeholder' }; + this.serviceAccountEmail = options.serviceAccountEmail || 'default'; + this.scopes = arrify(options.scopes); + } + /** + * Refreshes the access token. + * @param refreshToken Unused parameter + */ + async refreshTokenNoCache(refreshToken) { + const tokenPath = `service-accounts/${this.serviceAccountEmail}/token`; + let data; + try { + const instanceOptions = { + property: tokenPath, + }; + if (this.scopes.length > 0) { + instanceOptions.params = { + scopes: this.scopes.join(','), + }; + } + data = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + e.message = `Could not refresh access token: ${e.message}`; + this.wrapError(e); + throw e; + } + const tokens = data; + if (data && data.expires_in) { + tokens.expiry_date = new Date().getTime() + data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res: null }; + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + const idTokenPath = `service-accounts/${this.serviceAccountEmail}/identity` + + `?format=full&audience=${targetAudience}`; + let idToken; + try { + const instanceOptions = { + property: idTokenPath, + }; + idToken = await gcpMetadata.instance(instanceOptions); + } + catch (e) { + e.message = `Could not fetch ID token: ${e.message}`; + throw e; + } + return idToken; + } + wrapError(e) { + const res = e.response; + if (res && res.status) { + e.code = res.status.toString(); + if (res.status === 403) { + e.message = + 'A Forbidden error was returned while attempting to retrieve an access ' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have the correct permission scopes specified: ' + + e.message; + } + else if (res.status === 404) { + e.message = + 'A Not Found error was returned while attempting to retrieve an access' + + 'token for the Compute Engine built-in service account. This may be because the Compute ' + + 'Engine instance does not have any permission scopes specified: ' + + e.message; + } + } + } +} +exports.Compute = Compute; +//# sourceMappingURL=computeclient.js.map + +/***/ }), + +/***/ 65048: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2018 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const gcpMetadata = __nccwpck_require__(12462); +var GCPEnv; +(function (GCPEnv) { + GCPEnv["APP_ENGINE"] = "APP_ENGINE"; + GCPEnv["KUBERNETES_ENGINE"] = "KUBERNETES_ENGINE"; + GCPEnv["CLOUD_FUNCTIONS"] = "CLOUD_FUNCTIONS"; + GCPEnv["COMPUTE_ENGINE"] = "COMPUTE_ENGINE"; + GCPEnv["NONE"] = "NONE"; +})(GCPEnv = exports.GCPEnv || (exports.GCPEnv = {})); +let envPromise; +function clear() { + envPromise = undefined; +} +exports.clear = clear; +async function getEnv() { + if (envPromise) { + return envPromise; + } + envPromise = getEnvMemoized(); + return envPromise; +} +exports.getEnv = getEnv; +async function getEnvMemoized() { + let env = GCPEnv.NONE; + if (isAppEngine()) { + env = GCPEnv.APP_ENGINE; + } + else if (isCloudFunction()) { + env = GCPEnv.CLOUD_FUNCTIONS; + } + else if (await isComputeEngine()) { + if (await isKubernetesEngine()) { + env = GCPEnv.KUBERNETES_ENGINE; + } + else { + env = GCPEnv.COMPUTE_ENGINE; + } + } + else { + env = GCPEnv.NONE; + } + return env; +} +function isAppEngine() { + return !!(process.env.GAE_SERVICE || process.env.GAE_MODULE_NAME); +} +function isCloudFunction() { + return !!(process.env.FUNCTION_NAME || process.env.FUNCTION_TARGET); +} +async function isKubernetesEngine() { + try { + await gcpMetadata.instance('attributes/cluster-name'); + return true; + } + catch (e) { + return false; + } +} +async function isComputeEngine() { + return gcpMetadata.isAvailable(); +} +//# sourceMappingURL=envDetect.js.map + +/***/ }), + +/***/ 41694: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const child_process_1 = __nccwpck_require__(32081); +const fs = __nccwpck_require__(57147); +const gcpMetadata = __nccwpck_require__(12462); +const os = __nccwpck_require__(22037); +const path = __nccwpck_require__(71017); +const crypto_1 = __nccwpck_require__(61414); +const transporters_1 = __nccwpck_require__(3186); +const computeclient_1 = __nccwpck_require__(25876); +const idtokenclient_1 = __nccwpck_require__(58215); +const envDetect_1 = __nccwpck_require__(65048); +const jwtclient_1 = __nccwpck_require__(59610); +const refreshclient_1 = __nccwpck_require__(33631); +exports.CLOUD_SDK_CLIENT_ID = '764086051850-6qr4p6gpi6hn506pt8ejuq83di341hur.apps.googleusercontent.com'; +class GoogleAuth { + constructor(opts) { + /** + * Caches a value indicating whether the auth layer is running on Google + * Compute Engine. + * @private + */ + this.checkIsGCE = undefined; + // To save the contents of the JSON credential file + this.jsonContent = null; + this.cachedCredential = null; + opts = opts || {}; + this._cachedProjectId = opts.projectId || null; + this.keyFilename = opts.keyFilename || opts.keyFile; + this.scopes = opts.scopes; + this.jsonContent = opts.credentials || null; + this.clientOptions = opts.clientOptions; + } + // Note: this properly is only public to satisify unit tests. + // https://github.com/Microsoft/TypeScript/issues/5228 + get isGCE() { + return this.checkIsGCE; + } + getProjectId(callback) { + if (callback) { + this.getProjectIdAsync().then(r => callback(null, r), callback); + } + else { + return this.getProjectIdAsync(); + } + } + getProjectIdAsync() { + if (this._cachedProjectId) { + return Promise.resolve(this._cachedProjectId); + } + // In implicit case, supports three environments. In order of precedence, + // the implicit environments are: + // - GCLOUD_PROJECT or GOOGLE_CLOUD_PROJECT environment variable + // - GOOGLE_APPLICATION_CREDENTIALS JSON file + // - Cloud SDK: `gcloud config config-helper --format json` + // - GCE project ID from metadata server) + if (!this._getDefaultProjectIdPromise) { + // TODO: refactor the below code so that it doesn't mix and match + // promises and async/await. + this._getDefaultProjectIdPromise = new Promise( + // eslint-disable-next-line no-async-promise-executor + async (resolve, reject) => { + try { + const projectId = this.getProductionProjectId() || + (await this.getFileProjectId()) || + (await this.getDefaultServiceProjectId()) || + (await this.getGCEProjectId()); + this._cachedProjectId = projectId; + if (!projectId) { + throw new Error('Unable to detect a Project Id in the current environment. \n' + + 'To learn more about authentication and Google APIs, visit: \n' + + 'https://cloud.google.com/docs/authentication/getting-started'); + } + resolve(projectId); + } + catch (e) { + reject(e); + } + }); + } + return this._getDefaultProjectIdPromise; + } + getApplicationDefault(optionsOrCallback = {}, callback) { + let options; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.getApplicationDefaultAsync(options).then(r => callback(null, r.credential, r.projectId), callback); + } + else { + return this.getApplicationDefaultAsync(options); + } + } + async getApplicationDefaultAsync(options = {}) { + // If we've already got a cached credential, just return it. + if (this.cachedCredential) { + return { + credential: this.cachedCredential, + projectId: await this.getProjectIdAsync(), + }; + } + let credential; + let projectId; + // Check for the existence of a local environment variable pointing to the + // location of the credential file. This is typically used in local + // developer scenarios. + credential = await this._tryGetApplicationCredentialsFromEnvironmentVariable(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + this.cachedCredential = credential; + projectId = await this.getProjectId(); + return { credential, projectId }; + } + // Look in the well-known credential file location. + credential = await this._tryGetApplicationCredentialsFromWellKnownFile(options); + if (credential) { + if (credential instanceof jwtclient_1.JWT) { + credential.scopes = this.scopes; + } + this.cachedCredential = credential; + projectId = await this.getProjectId(); + return { credential, projectId }; + } + // Determine if we're running on GCE. + let isGCE; + try { + isGCE = await this._checkIsGCE(); + } + catch (e) { + e.message = `Unexpected error determining execution environment: ${e.message}`; + throw e; + } + if (!isGCE) { + // We failed to find the default credentials. Bail out with an error. + throw new Error('Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information.'); + } + // For GCE, just return a default ComputeClient. It will take care of + // the rest. + options.scopes = this.scopes; + this.cachedCredential = new computeclient_1.Compute(options); + projectId = await this.getProjectId(); + return { projectId, credential: this.cachedCredential }; + } + /** + * Determines whether the auth layer is running on Google Compute Engine. + * @returns A promise that resolves with the boolean. + * @api private + */ + async _checkIsGCE() { + if (this.checkIsGCE === undefined) { + this.checkIsGCE = await gcpMetadata.isAvailable(); + } + return this.checkIsGCE; + } + /** + * Attempts to load default credentials from the environment variable path.. + * @returns Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromEnvironmentVariable(options) { + const credentialsPath = process.env['GOOGLE_APPLICATION_CREDENTIALS'] || + process.env['google_application_credentials']; + if (!credentialsPath || credentialsPath.length === 0) { + return null; + } + try { + return this._getApplicationCredentialsFromFilePath(credentialsPath, options); + } + catch (e) { + e.message = `Unable to read the credential file specified by the GOOGLE_APPLICATION_CREDENTIALS environment variable: ${e.message}`; + throw e; + } + } + /** + * Attempts to load default credentials from a well-known file location + * @return Promise that resolves with the OAuth2Client or null. + * @api private + */ + async _tryGetApplicationCredentialsFromWellKnownFile(options) { + // First, figure out the location of the file, depending upon the OS type. + let location = null; + if (this._isWindows()) { + // Windows + location = process.env['APPDATA']; + } + else { + // Linux or Mac + const home = process.env['HOME']; + if (home) { + location = path.join(home, '.config'); + } + } + // If we found the root path, expand it. + if (location) { + location = path.join(location, 'gcloud', 'application_default_credentials.json'); + if (!fs.existsSync(location)) { + location = null; + } + } + // The file does not exist. + if (!location) { + return null; + } + // The file seems to exist. Try to use it. + const client = await this._getApplicationCredentialsFromFilePath(location, options); + return client; + } + /** + * Attempts to load default credentials from a file at the given path.. + * @param filePath The path to the file to read. + * @returns Promise that resolves with the OAuth2Client + * @api private + */ + async _getApplicationCredentialsFromFilePath(filePath, options = {}) { + // Make sure the path looks like a string. + if (!filePath || filePath.length === 0) { + throw new Error('The file path is invalid.'); + } + // Make sure there is a file at the path. lstatSync will throw if there is + // nothing there. + try { + // Resolve path to actual file in case of symlink. Expect a thrown error + // if not resolvable. + filePath = fs.realpathSync(filePath); + if (!fs.lstatSync(filePath).isFile()) { + throw new Error(); + } + } + catch (err) { + err.message = `The file at ${filePath} does not exist, or it is not a file. ${err.message}`; + throw err; + } + // Now open a read stream on the file, and parse it. + const readStream = fs.createReadStream(filePath); + return this.fromStream(readStream, options); + } + /** + * Create a credentials instance using the given input options. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + fromJSON(json, options) { + let client; + if (!json) { + throw new Error('Must pass in a JSON object containing the Google auth settings.'); + } + options = options || {}; + if (json.type === 'authorized_user') { + client = new refreshclient_1.UserRefreshClient(options); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + } + client.fromJSON(json); + return client; + } + /** + * Return a JWT or UserRefreshClient from JavaScript object, caching both the + * object used to instantiate and the client. + * @param json The input object. + * @param options The JWT or UserRefresh options for the client + * @returns JWT or UserRefresh Client with data + */ + _cacheClientFromJSON(json, options) { + let client; + // create either a UserRefreshClient or JWT client. + options = options || {}; + if (json.type === 'authorized_user') { + client = new refreshclient_1.UserRefreshClient(options); + } + else { + options.scopes = this.scopes; + client = new jwtclient_1.JWT(options); + } + client.fromJSON(json); + // cache both raw data used to instantiate client and client itself. + this.jsonContent = json; + this.cachedCredential = client; + return this.cachedCredential; + } + fromStream(inputStream, optionsOrCallback = {}, callback) { + let options = {}; + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + } + else { + options = optionsOrCallback; + } + if (callback) { + this.fromStreamAsync(inputStream, options).then(r => callback(null, r), callback); + } + else { + return this.fromStreamAsync(inputStream, options); + } + } + fromStreamAsync(inputStream, options) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the Google auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + const r = this._cacheClientFromJSON(data, options); + return resolve(r); + } + catch (err) { + return reject(err); + } + }); + }); + } + /** + * Create a credentials instance using the given API key string. + * @param apiKey The API key string + * @param options An optional options object. + * @returns A JWT loaded from the key + */ + fromAPIKey(apiKey, options) { + options = options || {}; + const client = new jwtclient_1.JWT(options); + client.fromAPIKey(apiKey); + return client; + } + /** + * Determines whether the current operating system is Windows. + * @api private + */ + _isWindows() { + const sys = os.platform(); + if (sys && sys.length >= 3) { + if (sys.substring(0, 3).toLowerCase() === 'win') { + return true; + } + } + return false; + } + /** + * Run the Google Cloud SDK command that prints the default project ID + */ + async getDefaultServiceProjectId() { + return new Promise(resolve => { + child_process_1.exec('gcloud config config-helper --format json', (err, stdout, stderr) => { + if (!err && stdout) { + try { + const projectId = JSON.parse(stdout).configuration.properties.core + .project; + resolve(projectId); + return; + } + catch (e) { + // ignore errors + } + } + resolve(null); + }); + }); + } + /** + * Loads the project id from environment variables. + * @api private + */ + getProductionProjectId() { + return (process.env['GCLOUD_PROJECT'] || + process.env['GOOGLE_CLOUD_PROJECT'] || + process.env['gcloud_project'] || + process.env['google_cloud_project']); + } + /** + * Loads the project id from the GOOGLE_APPLICATION_CREDENTIALS json file. + * @api private + */ + async getFileProjectId() { + if (this.cachedCredential) { + // Try to read the project ID from the cached credentials file + return this.cachedCredential.projectId; + } + // Ensure the projectId is loaded from the keyFile if available. + if (this.keyFilename) { + const creds = await this.getClient(); + if (creds && creds.projectId) { + return creds.projectId; + } + } + // Try to load a credentials file and read its project ID + const r = await this._tryGetApplicationCredentialsFromEnvironmentVariable(); + if (r) { + return r.projectId; + } + else { + return null; + } + } + /** + * Gets the Compute Engine project ID if it can be inferred. + */ + async getGCEProjectId() { + try { + const r = await gcpMetadata.project('project-id'); + return r; + } + catch (e) { + // Ignore any errors + return null; + } + } + getCredentials(callback) { + if (callback) { + this.getCredentialsAsync().then(r => callback(null, r), callback); + } + else { + return this.getCredentialsAsync(); + } + } + async getCredentialsAsync() { + await this.getClient(); + if (this.jsonContent) { + const credential = { + client_email: this.jsonContent.client_email, + private_key: this.jsonContent.private_key, + }; + return credential; + } + const isGCE = await this._checkIsGCE(); + if (!isGCE) { + throw new Error('Unknown error.'); + } + // For GCE, return the service account details from the metadata server + // NOTE: The trailing '/' at the end of service-accounts/ is very important! + // The GCF metadata server doesn't respect querystring params if this / is + // not included. + const data = await gcpMetadata.instance({ + property: 'service-accounts/', + params: { recursive: 'true' }, + }); + if (!data || !data.default || !data.default.email) { + throw new Error('Failure from metadata server.'); + } + return { client_email: data.default.email }; + } + /** + * Automatically obtain a client based on the provided configuration. If no + * options were passed, use Application Default Credentials. + */ + async getClient(options) { + if (options) { + throw new Error('Passing options to getClient is forbidden in v5.0.0. Use new GoogleAuth(opts) instead.'); + } + if (!this.cachedCredential) { + if (this.jsonContent) { + this._cacheClientFromJSON(this.jsonContent, this.clientOptions); + } + else if (this.keyFilename) { + const filePath = path.resolve(this.keyFilename); + const stream = fs.createReadStream(filePath); + await this.fromStreamAsync(stream, this.clientOptions); + } + else { + await this.getApplicationDefaultAsync(this.clientOptions); + } + } + return this.cachedCredential; + } + /** + * Creates a client which will fetch an ID token for authorization. + * @param targetAudience the audience for the fetched ID token. + * @returns IdTokenClient for making HTTP calls authenticated with ID tokens. + */ + async getIdTokenClient(targetAudience) { + const client = await this.getClient(); + if (!('fetchIdToken' in client)) { + throw new Error('Cannot fetch ID token in this environment, use GCE or set the GOOGLE_APPLICATION_CREDENTIALS environment variable to a service account credentials JSON file.'); + } + return new idtokenclient_1.IdTokenClient({ targetAudience, idTokenProvider: client }); + } + /** + * Automatically obtain application default credentials, and return + * an access token for making requests. + */ + async getAccessToken() { + const client = await this.getClient(); + return (await client.getAccessToken()).token; + } + /** + * Obtain the HTTP headers that will provide authorization for a given + * request. + */ + async getRequestHeaders(url) { + const client = await this.getClient(); + return client.getRequestHeaders(url); + } + /** + * Obtain credentials for a request, then attach the appropriate headers to + * the request options. + * @param opts Axios or Request options on which to attach the headers + */ + async authorizeRequest(opts) { + opts = opts || {}; + const url = opts.url || opts.uri; + const client = await this.getClient(); + const headers = await client.getRequestHeaders(url); + opts.headers = Object.assign(opts.headers || {}, headers); + return opts; + } + /** + * Automatically obtain application default credentials, and make an + * HTTP request using the given options. + * @param opts Axios request options for the HTTP request. + */ + // tslint:disable-next-line no-any + async request(opts) { + const client = await this.getClient(); + return client.request(opts); + } + /** + * Determine the compute environment in which the code is running. + */ + getEnv() { + return envDetect_1.getEnv(); + } + /** + * Sign the given data with the current private key, or go out + * to the IAM API to sign it. + * @param data The data to be signed. + */ + async sign(data) { + const client = await this.getClient(); + const crypto = crypto_1.createCrypto(); + if (client instanceof jwtclient_1.JWT && client.key) { + const sign = await crypto.sign(client.key, data); + return sign; + } + const projectId = await this.getProjectId(); + if (!projectId) { + throw new Error('Cannot sign data without a project ID.'); + } + const creds = await this.getCredentials(); + if (!creds.client_email) { + throw new Error('Cannot sign data without `client_email`.'); + } + const url = `https://iamcredentials.googleapis.com/v1/projects/-/serviceAccounts/${creds.client_email}:signBlob`; + const res = await this.request({ + method: 'POST', + url, + data: { + payload: crypto.encodeBase64StringUtf8(data), + }, + }); + return res.data.signedBlob; + } +} +exports.GoogleAuth = GoogleAuth; +/** + * Export DefaultTransporter as a static property of the class. + */ +GoogleAuth.DefaultTransporter = transporters_1.DefaultTransporter; +//# sourceMappingURL=googleauth.js.map + +/***/ }), + +/***/ 34294: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +class IAMAuth { + /** + * IAM credentials. + * + * @param selector the iam authority selector + * @param token the token + * @constructor + */ + constructor(selector, token) { + this.selector = selector; + this.token = token; + this.selector = selector; + this.token = token; + } + /** + * Acquire the HTTP headers required to make an authenticated request. + */ + getRequestHeaders() { + return { + 'x-goog-iam-authority-selector': this.selector, + 'x-goog-iam-authorization-token': this.token, + }; + } +} +exports.IAMAuth = IAMAuth; +//# sourceMappingURL=iam.js.map + +/***/ }), + +/***/ 58215: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const oauth2client_1 = __nccwpck_require__(22316); +class IdTokenClient extends oauth2client_1.OAuth2Client { + /** + * Google ID Token client + * + * Retrieve access token from the metadata server. + * See: https://developers.google.com/compute/docs/authentication + */ + constructor(options) { + super(); + this.targetAudience = options.targetAudience; + this.idTokenProvider = options.idTokenProvider; + } + async getRequestMetadataAsync(url) { + if (!this.credentials.id_token || + (this.credentials.expiry_date || 0) < Date.now()) { + const idToken = await this.idTokenProvider.fetchIdToken(this.targetAudience); + this.credentials = { + id_token: idToken, + expiry_date: this.getIdTokenExpiryDate(idToken), + }; + } + const headers = { + Authorization: 'Bearer ' + this.credentials.id_token, + }; + return { headers }; + } + getIdTokenExpiryDate(idToken) { + const payloadB64 = idToken.split('.')[1]; + if (payloadB64) { + const payload = JSON.parse(Buffer.from(payloadB64, 'base64').toString('ascii')); + return payload.exp * 1000; + } + } +} +exports.IdTokenClient = IdTokenClient; +//# sourceMappingURL=idtokenclient.js.map + +/***/ }), + +/***/ 55604: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const jws = __nccwpck_require__(73297); +const LRU = __nccwpck_require__(10863); +const DEFAULT_HEADER = { + alg: 'RS256', + typ: 'JWT', +}; +class JWTAccess { + /** + * JWTAccess service account credentials. + * + * Create a new access token by using the credential to create a new JWT token + * that's recognized as the access token. + * + * @param email the service account email address. + * @param key the private key that will be used to sign the token. + * @param keyId the ID of the private key used to sign the token. + */ + constructor(email, key, keyId) { + this.cache = new LRU({ max: 500, maxAge: 60 * 60 * 1000 }); + this.email = email; + this.key = key; + this.keyId = keyId; + } + /** + * Get a non-expired access token, after refreshing if necessary. + * + * @param url The URI being authorized. + * @param additionalClaims An object with a set of additional claims to + * include in the payload. + * @returns An object that includes the authorization header. + */ + getRequestHeaders(url, additionalClaims) { + const cachedToken = this.cache.get(url); + if (cachedToken) { + return cachedToken; + } + const iat = Math.floor(new Date().getTime() / 1000); + const exp = iat + 3600; // 3600 seconds = 1 hour + // The payload used for signed JWT headers has: + // iss == sub == + // aud == + const defaultClaims = { + iss: this.email, + sub: this.email, + aud: url, + exp, + iat, + }; + // if additionalClaims are provided, ensure they do not collide with + // other required claims. + if (additionalClaims) { + for (const claim in defaultClaims) { + if (additionalClaims[claim]) { + throw new Error(`The '${claim}' property is not allowed when passing additionalClaims. This claim is included in the JWT by default.`); + } + } + } + const header = this.keyId + ? { ...DEFAULT_HEADER, kid: this.keyId } + : DEFAULT_HEADER; + const payload = Object.assign(defaultClaims, additionalClaims); + // Sign the jwt and add it to the cache + const signedJWT = jws.sign({ header, payload, secret: this.key }); + const headers = { Authorization: `Bearer ${signedJWT}` }; + this.cache.set(url, headers); + return headers; + } + /** + * Create a JWTAccess credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(r => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + reject(new Error('Must pass in a stream containing the service account auth settings.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('data', chunk => (s += chunk)) + .on('error', reject) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (err) { + reject(err); + } + }); + }); + } +} +exports.JWTAccess = JWTAccess; +//# sourceMappingURL=jwtaccess.js.map + +/***/ }), + +/***/ 59610: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2013 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const gtoken_1 = __nccwpck_require__(93245); +const jwtaccess_1 = __nccwpck_require__(55604); +const oauth2client_1 = __nccwpck_require__(22316); +class JWT extends oauth2client_1.OAuth2Client { + constructor(optionsOrEmail, keyFile, key, scopes, subject, keyId) { + const opts = optionsOrEmail && typeof optionsOrEmail === 'object' + ? optionsOrEmail + : { email: optionsOrEmail, keyFile, key, keyId, scopes, subject }; + super({ + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this.email = opts.email; + this.keyFile = opts.keyFile; + this.key = opts.key; + this.keyId = opts.keyId; + this.scopes = opts.scopes; + this.subject = opts.subject; + this.additionalClaims = opts.additionalClaims; + this.credentials = { refresh_token: 'jwt-placeholder', expiry_date: 1 }; + } + /** + * Creates a copy of the credential with the specified scopes. + * @param scopes List of requested scopes or a single scope. + * @return The cloned instance. + */ + createScoped(scopes) { + return new JWT({ + email: this.email, + keyFile: this.keyFile, + key: this.key, + keyId: this.keyId, + scopes, + subject: this.subject, + additionalClaims: this.additionalClaims, + }); + } + /** + * Obtains the metadata to be sent with the request. + * + * @param url the URI being authorized. + */ + async getRequestMetadataAsync(url) { + if (!this.apiKey && !this.hasScopes() && url) { + if (this.additionalClaims && + this.additionalClaims.target_audience) { + const { tokens } = await this.refreshToken(); + return { + headers: this.addSharedMetadataHeaders({ + Authorization: `Bearer ${tokens.id_token}`, + }), + }; + } + else { + // no scopes have been set, but a uri has been provided. Use JWTAccess + // credentials. + if (!this.access) { + this.access = new jwtaccess_1.JWTAccess(this.email, this.key, this.keyId); + } + const headers = await this.access.getRequestHeaders(url, this.additionalClaims); + return { headers: this.addSharedMetadataHeaders(headers) }; + } + } + else { + return super.getRequestMetadataAsync(url); + } + } + /** + * Fetches an ID token. + * @param targetAudience the audience for the fetched ID token. + */ + async fetchIdToken(targetAudience) { + // Create a new gToken for fetching an ID token + const gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: { target_audience: targetAudience }, + }); + await gtoken.getToken({ + forceRefresh: true, + }); + if (!gtoken.idToken) { + throw new Error('Unknown error: Failed to fetch ID token'); + } + return gtoken.idToken; + } + /** + * Determine if there are currently scopes available. + */ + hasScopes() { + if (!this.scopes) { + return false; + } + // For arrays, check the array length. + if (this.scopes instanceof Array) { + return this.scopes.length > 0; + } + // For others, convert to a string and check the length. + return String(this.scopes).length > 0; + } + authorize(callback) { + if (callback) { + this.authorizeAsync().then(r => callback(null, r), callback); + } + else { + return this.authorizeAsync(); + } + } + async authorizeAsync() { + const result = await this.refreshToken(); + if (!result) { + throw new Error('No result returned'); + } + this.credentials = result.tokens; + this.credentials.refresh_token = 'jwt-placeholder'; + this.key = this.gtoken.key; + this.email = this.gtoken.iss; + return result.tokens; + } + /** + * Refreshes the access token. + * @param refreshToken ignored + * @private + */ + async refreshTokenNoCache(refreshToken) { + const gtoken = this.createGToken(); + const token = await gtoken.getToken({ + forceRefresh: this.isTokenExpiring(), + }); + const tokens = { + access_token: token.access_token, + token_type: 'Bearer', + expiry_date: gtoken.expiresAt, + id_token: gtoken.idToken, + }; + this.emit('tokens', tokens); + return { res: null, tokens }; + } + /** + * Create a gToken if it doesn't already exist. + */ + createGToken() { + if (!this.gtoken) { + this.gtoken = new gtoken_1.GoogleToken({ + iss: this.email, + sub: this.subject, + scope: this.scopes, + keyFile: this.keyFile, + key: this.key, + additionalClaims: this.additionalClaims, + }); + } + return this.gtoken; + } + /** + * Create a JWT credentials instance using the given input options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the service account auth settings.'); + } + if (!json.client_email) { + throw new Error('The incoming JSON object does not contain a client_email field'); + } + if (!json.private_key) { + throw new Error('The incoming JSON object does not contain a private_key field'); + } + // Extract the relevant information from the json key file. + this.email = json.client_email; + this.key = json.private_key; + this.keyId = json.private_key_id; + this.projectId = json.project_id; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(r => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + throw new Error('Must pass in a stream containing the service account auth settings.'); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + resolve(); + } + catch (e) { + reject(e); + } + }); + }); + } + /** + * Creates a JWT credentials instance using an API Key for authentication. + * @param apiKey The API Key in string form. + */ + fromAPIKey(apiKey) { + if (typeof apiKey !== 'string') { + throw new Error('Must provide an API Key string.'); + } + this.apiKey = apiKey; + } + /** + * Using the key or keyFile on the JWT client, obtain an object that contains + * the key and the client email. + */ + async getCredentials() { + if (this.key) { + return { private_key: this.key, client_email: this.email }; + } + else if (this.keyFile) { + const gtoken = this.createGToken(); + const creds = await gtoken.getCredentials(this.keyFile); + return { private_key: creds.privateKey, client_email: creds.clientEmail }; + } + throw new Error('A key or a keyFile must be provided to getCredentials.'); + } +} +exports.JWT = JWT; +//# sourceMappingURL=jwtclient.js.map + +/***/ }), + +/***/ 5280: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2014 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +class LoginTicket { + /** + * Create a simple class to extract user ID from an ID Token + * + * @param {string} env Envelope of the jwt + * @param {TokenPayload} pay Payload of the jwt + * @constructor + */ + constructor(env, pay) { + this.envelope = env; + this.payload = pay; + } + getEnvelope() { + return this.envelope; + } + getPayload() { + return this.payload; + } + /** + * Create a simple class to extract user ID from an ID Token + * + * @return The user ID + */ + getUserId() { + const payload = this.getPayload(); + if (payload && payload.sub) { + return payload.sub; + } + return null; + } + /** + * Returns attributes from the login ticket. This can contain + * various information about the user session. + * + * @return The envelope and payload + */ + getAttributes() { + return { envelope: this.getEnvelope(), payload: this.getPayload() }; + } +} +exports.LoginTicket = LoginTicket; +//# sourceMappingURL=loginticket.js.map + +/***/ }), + +/***/ 22316: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const querystring = __nccwpck_require__(63477); +const stream = __nccwpck_require__(12781); +const formatEcdsa = __nccwpck_require__(75847); +const crypto_1 = __nccwpck_require__(61414); +const authclient_1 = __nccwpck_require__(19128); +const loginticket_1 = __nccwpck_require__(5280); +var CodeChallengeMethod; +(function (CodeChallengeMethod) { + CodeChallengeMethod["Plain"] = "plain"; + CodeChallengeMethod["S256"] = "S256"; +})(CodeChallengeMethod = exports.CodeChallengeMethod || (exports.CodeChallengeMethod = {})); +var CertificateFormat; +(function (CertificateFormat) { + CertificateFormat["PEM"] = "PEM"; + CertificateFormat["JWK"] = "JWK"; +})(CertificateFormat = exports.CertificateFormat || (exports.CertificateFormat = {})); +class OAuth2Client extends authclient_1.AuthClient { + constructor(optionsOrClientId, clientSecret, redirectUri) { + super(); + this.certificateCache = {}; + this.certificateExpiry = null; + this.certificateCacheFormat = CertificateFormat.PEM; + this.refreshTokenPromises = new Map(); + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { clientId: optionsOrClientId, clientSecret, redirectUri }; + this._clientId = opts.clientId; + this._clientSecret = opts.clientSecret; + this.redirectUri = opts.redirectUri; + this.eagerRefreshThresholdMillis = + opts.eagerRefreshThresholdMillis || 5 * 60 * 1000; + this.forceRefreshOnFailure = !!opts.forceRefreshOnFailure; + } + /** + * Generates URL for consent page landing. + * @param opts Options. + * @return URL to consent page. + */ + generateAuthUrl(opts = {}) { + if (opts.code_challenge_method && !opts.code_challenge) { + throw new Error('If a code_challenge_method is provided, code_challenge must be included.'); + } + opts.response_type = opts.response_type || 'code'; + opts.client_id = opts.client_id || this._clientId; + opts.redirect_uri = opts.redirect_uri || this.redirectUri; + // Allow scopes to be passed either as array or a string + if (opts.scope instanceof Array) { + opts.scope = opts.scope.join(' '); + } + const rootUrl = OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_; + return rootUrl + '?' + querystring.stringify(opts); + } + generateCodeVerifier() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('generateCodeVerifier is removed, please use generateCodeVerifierAsync instead.'); + } + /** + * Convenience method to automatically generate a code_verifier, and it's + * resulting SHA256. If used, this must be paired with a S256 + * code_challenge_method. + * + * For a full example see: + * https://github.com/googleapis/google-auth-library-nodejs/blob/master/samples/oauth2-codeVerifier.js + */ + async generateCodeVerifierAsync() { + // base64 encoding uses 6 bits per character, and we want to generate128 + // characters. 6*128/8 = 96. + const crypto = crypto_1.createCrypto(); + const randomString = crypto.randomBytesBase64(96); + // The valid characters in the code_verifier are [A-Z]/[a-z]/[0-9]/ + // "-"/"."/"_"/"~". Base64 encoded strings are pretty close, so we're just + // swapping out a few chars. + const codeVerifier = randomString + .replace(/\+/g, '~') + .replace(/=/g, '_') + .replace(/\//g, '-'); + // Generate the base64 encoded SHA256 + const unencodedCodeChallenge = await crypto.sha256DigestBase64(codeVerifier); + // We need to use base64UrlEncoding instead of standard base64 + const codeChallenge = unencodedCodeChallenge + .split('=')[0] + .replace(/\+/g, '-') + .replace(/\//g, '_'); + return { codeVerifier, codeChallenge }; + } + getToken(codeOrOptions, callback) { + const options = typeof codeOrOptions === 'string' ? { code: codeOrOptions } : codeOrOptions; + if (callback) { + this.getTokenAsync(options).then(r => callback(null, r.tokens, r.res), e => callback(e, null, e.response)); + } + else { + return this.getTokenAsync(options); + } + } + async getTokenAsync(options) { + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const values = { + code: options.code, + client_id: options.client_id || this._clientId, + client_secret: this._clientSecret, + redirect_uri: options.redirect_uri || this.redirectUri, + grant_type: 'authorization_code', + code_verifier: options.codeVerifier, + }; + const res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(values), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + const tokens = res.data; + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + /** + * Refreshes the access token. + * @param refresh_token Existing refresh token. + * @private + */ + async refreshToken(refreshToken) { + if (!refreshToken) { + return this.refreshTokenNoCache(refreshToken); + } + // If a request to refresh using the same token has started, + // return the same promise. + if (this.refreshTokenPromises.has(refreshToken)) { + return this.refreshTokenPromises.get(refreshToken); + } + const p = this.refreshTokenNoCache(refreshToken).then(r => { + this.refreshTokenPromises.delete(refreshToken); + return r; + }, e => { + this.refreshTokenPromises.delete(refreshToken); + throw e; + }); + this.refreshTokenPromises.set(refreshToken, p); + return p; + } + async refreshTokenNoCache(refreshToken) { + if (!refreshToken) { + throw new Error('No refresh token is set.'); + } + const url = OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_; + const data = { + refresh_token: refreshToken, + client_id: this._clientId, + client_secret: this._clientSecret, + grant_type: 'refresh_token', + }; + // request for new token + const res = await this.transporter.request({ + method: 'POST', + url, + data: querystring.stringify(data), + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + }); + const tokens = res.data; + // TODO: de-duplicate this code from a few spots + if (res.data && res.data.expires_in) { + tokens.expiry_date = new Date().getTime() + res.data.expires_in * 1000; + delete tokens.expires_in; + } + this.emit('tokens', tokens); + return { tokens, res }; + } + refreshAccessToken(callback) { + if (callback) { + this.refreshAccessTokenAsync().then(r => callback(null, r.credentials, r.res), callback); + } + else { + return this.refreshAccessTokenAsync(); + } + } + async refreshAccessTokenAsync() { + const r = await this.refreshToken(this.credentials.refresh_token); + const tokens = r.tokens; + tokens.refresh_token = this.credentials.refresh_token; + this.credentials = tokens; + return { credentials: this.credentials, res: r.res }; + } + getAccessToken(callback) { + if (callback) { + this.getAccessTokenAsync().then(r => callback(null, r.token, r.res), callback); + } + else { + return this.getAccessTokenAsync(); + } + } + async getAccessTokenAsync() { + const shouldRefresh = !this.credentials.access_token || this.isTokenExpiring(); + if (shouldRefresh) { + if (!this.credentials.refresh_token) { + throw new Error('No refresh token is set.'); + } + const r = await this.refreshAccessTokenAsync(); + if (!r.credentials || (r.credentials && !r.credentials.access_token)) { + throw new Error('Could not refresh access token.'); + } + return { token: r.credentials.access_token, res: r.res }; + } + else { + return { token: this.credentials.access_token }; + } + } + /** + * The main authentication interface. It takes an optional url which when + * present is the endpoint being accessed, and returns a Promise which + * resolves with authorization header fields. + * + * In OAuth2Client, the result has the form: + * { Authorization: 'Bearer ' } + * @param url The optional url being authorized + */ + async getRequestHeaders(url) { + const headers = (await this.getRequestMetadataAsync(url)).headers; + return headers; + } + async getRequestMetadataAsync(url) { + const thisCreds = this.credentials; + if (!thisCreds.access_token && !thisCreds.refresh_token && !this.apiKey) { + throw new Error('No access, refresh token or API key is set.'); + } + if (thisCreds.access_token && !this.isTokenExpiring()) { + thisCreds.token_type = thisCreds.token_type || 'Bearer'; + const headers = { + Authorization: thisCreds.token_type + ' ' + thisCreds.access_token, + }; + return { headers }; + } + if (this.apiKey) { + return { headers: { 'X-Goog-Api-Key': this.apiKey } }; + } + let r = null; + let tokens = null; + try { + r = await this.refreshToken(thisCreds.refresh_token); + tokens = r.tokens; + } + catch (err) { + const e = err; + if (e.response && + (e.response.status === 403 || e.response.status === 404)) { + e.message = `Could not refresh access token: ${e.message}`; + } + throw e; + } + const credentials = this.credentials; + credentials.token_type = credentials.token_type || 'Bearer'; + tokens.refresh_token = credentials.refresh_token; + this.credentials = tokens; + const headers = { + Authorization: credentials.token_type + ' ' + tokens.access_token, + }; + return { headers: this.addSharedMetadataHeaders(headers), res: r.res }; + } + /** + * Generates an URL to revoke the given token. + * @param token The existing token to be revoked. + */ + static getRevokeTokenUrl(token) { + const parameters = querystring.stringify({ token }); + return `${OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_}?${parameters}`; + } + revokeToken(token, callback) { + const opts = { + url: OAuth2Client.getRevokeTokenUrl(token), + method: 'POST', + }; + if (callback) { + this.transporter + .request(opts) + .then(r => callback(null, r), callback); + } + else { + return this.transporter.request(opts); + } + } + revokeCredentials(callback) { + if (callback) { + this.revokeCredentialsAsync().then(res => callback(null, res), callback); + } + else { + return this.revokeCredentialsAsync(); + } + } + async revokeCredentialsAsync() { + const token = this.credentials.access_token; + this.credentials = {}; + if (token) { + return this.revokeToken(token); + } + else { + throw new Error('No access token to revoke.'); + } + } + request(opts, callback) { + if (callback) { + this.requestAsync(opts).then(r => callback(null, r), e => { + return callback(e, e.response); + }); + } + else { + return this.requestAsync(opts); + } + } + async requestAsync(opts, retry = false) { + let r2; + try { + const r = await this.getRequestMetadataAsync(opts.url); + opts.headers = opts.headers || {}; + if (r.headers && r.headers['x-goog-user-project']) { + opts.headers['x-goog-user-project'] = r.headers['x-goog-user-project']; + } + if (r.headers && r.headers.Authorization) { + opts.headers.Authorization = r.headers.Authorization; + } + if (this.apiKey) { + opts.headers['X-Goog-Api-Key'] = this.apiKey; + } + r2 = await this.transporter.request(opts); + } + catch (e) { + const res = e.response; + if (res) { + const statusCode = res.status; + // Retry the request for metadata if the following criteria are true: + // - We haven't already retried. It only makes sense to retry once. + // - The response was a 401 or a 403 + // - The request didn't send a readableStream + // - An access_token and refresh_token were available, but either no + // expiry_date was available or the forceRefreshOnFailure flag is set. + // The absent expiry_date case can happen when developers stash the + // access_token and refresh_token for later use, but the access_token + // fails on the first try because it's expired. Some developers may + // choose to enable forceRefreshOnFailure to mitigate time-related + // errors. + const mayRequireRefresh = this.credentials && + this.credentials.access_token && + this.credentials.refresh_token && + (!this.credentials.expiry_date || this.forceRefreshOnFailure); + const isReadableStream = res.config.data instanceof stream.Readable; + const isAuthErr = statusCode === 401 || statusCode === 403; + if (!retry && isAuthErr && !isReadableStream && mayRequireRefresh) { + await this.refreshAccessTokenAsync(); + return this.requestAsync(opts, true); + } + } + throw e; + } + return r2; + } + verifyIdToken(options, callback) { + // This function used to accept two arguments instead of an options object. + // Check the types to help users upgrade with less pain. + // This check can be removed after a 2.0 release. + if (callback && typeof callback !== 'function') { + throw new Error('This method accepts an options object as the first parameter, which includes the idToken, audience, and maxExpiry.'); + } + if (callback) { + this.verifyIdTokenAsync(options).then(r => callback(null, r), callback); + } + else { + return this.verifyIdTokenAsync(options); + } + } + async verifyIdTokenAsync(options) { + if (!options.idToken) { + throw new Error('The verifyIdToken method requires an ID Token'); + } + const response = await this.getFederatedSignonCertsAsync(); + const login = await this.verifySignedJwtWithCertsAsync(options.idToken, response.certs, options.audience, OAuth2Client.ISSUERS_, options.maxExpiry); + return login; + } + /** + * Obtains information about the provisioned access token. Especially useful + * if you want to check the scopes that were provisioned to a given token. + * + * @param accessToken Required. The Access Token for which you want to get + * user info. + */ + async getTokenInfo(accessToken) { + const { data } = await this.transporter.request({ + method: 'GET', + url: OAuth2Client.GOOGLE_TOKEN_INFO_URL, + params: { access_token: accessToken }, + }); + const info = Object.assign({ + expiry_date: new Date().getTime() + data.expires_in * 1000, + scopes: data.scope.split(' '), + }, data); + delete info.expires_in; + delete info.scope; + return info; + } + getFederatedSignonCerts(callback) { + if (callback) { + this.getFederatedSignonCertsAsync().then(r => callback(null, r.certs, r.res), callback); + } + else { + return this.getFederatedSignonCertsAsync(); + } + } + async getFederatedSignonCertsAsync() { + const nowTime = new Date().getTime(); + const format = crypto_1.hasBrowserCrypto() + ? CertificateFormat.JWK + : CertificateFormat.PEM; + if (this.certificateExpiry && + nowTime < this.certificateExpiry.getTime() && + this.certificateCacheFormat === format) { + return { certs: this.certificateCache, format }; + } + let res; + let url; + switch (format) { + case CertificateFormat.PEM: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_; + break; + case CertificateFormat.JWK: + url = OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_; + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + try { + res = await this.transporter.request({ url }); + } + catch (e) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + throw e; + } + const cacheControl = res ? res.headers['cache-control'] : undefined; + let cacheAge = -1; + if (cacheControl) { + const pattern = new RegExp('max-age=([0-9]*)'); + const regexResult = pattern.exec(cacheControl); + if (regexResult && regexResult.length === 2) { + // Cache results with max-age (in seconds) + cacheAge = Number(regexResult[1]) * 1000; // milliseconds + } + } + let certificates = {}; + switch (format) { + case CertificateFormat.PEM: + certificates = res.data; + break; + case CertificateFormat.JWK: + for (const key of res.data.keys) { + certificates[key.kid] = key; + } + break; + default: + throw new Error(`Unsupported certificate format ${format}`); + } + const now = new Date(); + this.certificateExpiry = + cacheAge === -1 ? null : new Date(now.getTime() + cacheAge); + this.certificateCache = certificates; + this.certificateCacheFormat = format; + return { certs: certificates, format, res }; + } + getIapPublicKeys(callback) { + if (callback) { + this.getIapPublicKeysAsync().then(r => callback(null, r.pubkeys, r.res), callback); + } + else { + return this.getIapPublicKeysAsync(); + } + } + async getIapPublicKeysAsync() { + const nowTime = new Date().getTime(); + let res; + const url = OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_; + try { + res = await this.transporter.request({ url }); + } + catch (e) { + e.message = `Failed to retrieve verification certificates: ${e.message}`; + throw e; + } + return { pubkeys: res.data, res }; + } + verifySignedJwtWithCerts() { + // To make the code compatible with browser SubtleCrypto we need to make + // this method async. + throw new Error('verifySignedJwtWithCerts is removed, please use verifySignedJwtWithCertsAsync instead.'); + } + /** + * Verify the id token is signed with the correct certificate + * and is from the correct audience. + * @param jwt The jwt to verify (The ID Token in this case). + * @param certs The array of certs to test the jwt against. + * @param requiredAudience The audience to test the jwt against. + * @param issuers The allowed issuers of the jwt (Optional). + * @param maxExpiry The max expiry the certificate can be (Optional). + * @return Returns a promise resolving to LoginTicket on verification. + */ + async verifySignedJwtWithCertsAsync(jwt, certs, requiredAudience, issuers, maxExpiry) { + const crypto = crypto_1.createCrypto(); + if (!maxExpiry) { + maxExpiry = OAuth2Client.MAX_TOKEN_LIFETIME_SECS_; + } + const segments = jwt.split('.'); + if (segments.length !== 3) { + throw new Error('Wrong number of segments in token: ' + jwt); + } + const signed = segments[0] + '.' + segments[1]; + let signature = segments[2]; + let envelope; + let payload; + try { + envelope = JSON.parse(crypto.decodeBase64StringUtf8(segments[0])); + } + catch (err) { + err.message = `Can't parse token envelope: ${segments[0]}': ${err.message}`; + throw err; + } + if (!envelope) { + throw new Error("Can't parse token envelope: " + segments[0]); + } + try { + payload = JSON.parse(crypto.decodeBase64StringUtf8(segments[1])); + } + catch (err) { + err.message = `Can't parse token payload '${segments[0]}`; + throw err; + } + if (!payload) { + throw new Error("Can't parse token payload: " + segments[1]); + } + if (!Object.prototype.hasOwnProperty.call(certs, envelope.kid)) { + // If this is not present, then there's no reason to attempt verification + throw new Error('No pem found for envelope: ' + JSON.stringify(envelope)); + } + const cert = certs[envelope.kid]; + if (envelope.alg === 'ES256') { + signature = formatEcdsa.joseToDer(signature, 'ES256').toString('base64'); + } + const verified = await crypto.verify(cert, signed, signature); + if (!verified) { + throw new Error('Invalid token signature: ' + jwt); + } + if (!payload.iat) { + throw new Error('No issue time in token: ' + JSON.stringify(payload)); + } + if (!payload.exp) { + throw new Error('No expiration time in token: ' + JSON.stringify(payload)); + } + const iat = Number(payload.iat); + if (isNaN(iat)) + throw new Error('iat field using invalid format'); + const exp = Number(payload.exp); + if (isNaN(exp)) + throw new Error('exp field using invalid format'); + const now = new Date().getTime() / 1000; + if (exp >= now + maxExpiry) { + throw new Error('Expiration time too far in future: ' + JSON.stringify(payload)); + } + const earliest = iat - OAuth2Client.CLOCK_SKEW_SECS_; + const latest = exp + OAuth2Client.CLOCK_SKEW_SECS_; + if (now < earliest) { + throw new Error('Token used too early, ' + + now + + ' < ' + + earliest + + ': ' + + JSON.stringify(payload)); + } + if (now > latest) { + throw new Error('Token used too late, ' + + now + + ' > ' + + latest + + ': ' + + JSON.stringify(payload)); + } + if (issuers && issuers.indexOf(payload.iss) < 0) { + throw new Error('Invalid issuer, expected one of [' + + issuers + + '], but got ' + + payload.iss); + } + // Check the audience matches if we have one + if (typeof requiredAudience !== 'undefined' && requiredAudience !== null) { + const aud = payload.aud; + let audVerified = false; + // If the requiredAudience is an array, check if it contains token + // audience + if (requiredAudience.constructor === Array) { + audVerified = requiredAudience.indexOf(aud) > -1; + } + else { + audVerified = aud === requiredAudience; + } + if (!audVerified) { + throw new Error('Wrong recipient, payload audience != requiredAudience'); + } + } + return new loginticket_1.LoginTicket(envelope, payload); + } + /** + * Returns true if a token is expired or will expire within + * eagerRefreshThresholdMillismilliseconds. + * If there is no expiry time, assumes the token is not expired or expiring. + */ + isTokenExpiring() { + const expiryDate = this.credentials.expiry_date; + return expiryDate + ? expiryDate <= new Date().getTime() + this.eagerRefreshThresholdMillis + : false; + } +} +exports.OAuth2Client = OAuth2Client; +OAuth2Client.GOOGLE_TOKEN_INFO_URL = 'https://oauth2.googleapis.com/tokeninfo'; +/** + * The base URL for auth endpoints. + */ +OAuth2Client.GOOGLE_OAUTH2_AUTH_BASE_URL_ = 'https://accounts.google.com/o/oauth2/v2/auth'; +/** + * The base endpoint for token retrieval. + */ +OAuth2Client.GOOGLE_OAUTH2_TOKEN_URL_ = 'https://oauth2.googleapis.com/token'; +/** + * The base endpoint to revoke tokens. + */ +OAuth2Client.GOOGLE_OAUTH2_REVOKE_URL_ = 'https://oauth2.googleapis.com/revoke'; +/** + * Google Sign on certificates in PEM format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_PEM_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v1/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_FEDERATED_SIGNON_JWK_CERTS_URL_ = 'https://www.googleapis.com/oauth2/v3/certs'; +/** + * Google Sign on certificates in JWK format. + */ +OAuth2Client.GOOGLE_OAUTH2_IAP_PUBLIC_KEY_URL_ = 'https://www.gstatic.com/iap/verify/public_key'; +/** + * Clock skew - five minutes in seconds + */ +OAuth2Client.CLOCK_SKEW_SECS_ = 300; +/** + * Max Token Lifetime is one day in seconds + */ +OAuth2Client.MAX_TOKEN_LIFETIME_SECS_ = 86400; +/** + * The allowed oauth token issuers. + */ +OAuth2Client.ISSUERS_ = [ + 'accounts.google.com', + 'https://accounts.google.com', +]; +//# sourceMappingURL=oauth2client.js.map + +/***/ }), + +/***/ 33631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2015 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const oauth2client_1 = __nccwpck_require__(22316); +class UserRefreshClient extends oauth2client_1.OAuth2Client { + constructor(optionsOrClientId, clientSecret, refreshToken, eagerRefreshThresholdMillis, forceRefreshOnFailure) { + const opts = optionsOrClientId && typeof optionsOrClientId === 'object' + ? optionsOrClientId + : { + clientId: optionsOrClientId, + clientSecret, + refreshToken, + eagerRefreshThresholdMillis, + forceRefreshOnFailure, + }; + super({ + clientId: opts.clientId, + clientSecret: opts.clientSecret, + eagerRefreshThresholdMillis: opts.eagerRefreshThresholdMillis, + forceRefreshOnFailure: opts.forceRefreshOnFailure, + }); + this._refreshToken = opts.refreshToken; + this.credentials.refresh_token = opts.refreshToken; + } + /** + * Refreshes the access token. + * @param refreshToken An ignored refreshToken.. + * @param callback Optional callback. + */ + async refreshTokenNoCache(refreshToken) { + return super.refreshTokenNoCache(this._refreshToken); + } + /** + * Create a UserRefreshClient credentials instance using the given input + * options. + * @param json The input object. + */ + fromJSON(json) { + if (!json) { + throw new Error('Must pass in a JSON object containing the user refresh token'); + } + if (json.type !== 'authorized_user') { + throw new Error('The incoming JSON object does not have the "authorized_user" type'); + } + if (!json.client_id) { + throw new Error('The incoming JSON object does not contain a client_id field'); + } + if (!json.client_secret) { + throw new Error('The incoming JSON object does not contain a client_secret field'); + } + if (!json.refresh_token) { + throw new Error('The incoming JSON object does not contain a refresh_token field'); + } + this._clientId = json.client_id; + this._clientSecret = json.client_secret; + this._refreshToken = json.refresh_token; + this.credentials.refresh_token = json.refresh_token; + this.quotaProjectId = json.quota_project_id; + } + fromStream(inputStream, callback) { + if (callback) { + this.fromStreamAsync(inputStream).then(r => callback(), callback); + } + else { + return this.fromStreamAsync(inputStream); + } + } + async fromStreamAsync(inputStream) { + return new Promise((resolve, reject) => { + if (!inputStream) { + return reject(new Error('Must pass in a stream containing the user refresh token.')); + } + let s = ''; + inputStream + .setEncoding('utf8') + .on('error', reject) + .on('data', chunk => (s += chunk)) + .on('end', () => { + try { + const data = JSON.parse(s); + this.fromJSON(data); + return resolve(); + } + catch (err) { + return reject(err); + } + }); + }); + } +} +exports.UserRefreshClient = UserRefreshClient; +//# sourceMappingURL=refreshclient.js.map + +/***/ }), + +/***/ 68645: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +// This file implements crypto functions we need using in-browser +// SubtleCrypto interface `window.crypto.subtle`. +const base64js = __nccwpck_require__(7575); +// Not all browsers support `TextEncoder`. The following `require` will +// provide a fast UTF8-only replacement for those browsers that don't support +// text encoding natively. +// eslint-disable-next-line node/no-unsupported-features/node-builtins +if (typeof process === 'undefined' && typeof TextEncoder === 'undefined') { + __nccwpck_require__(49716); +} +class BrowserCrypto { + constructor() { + if (typeof window === 'undefined' || + window.crypto === undefined || + window.crypto.subtle === undefined) { + throw new Error("SubtleCrypto not found. Make sure it's an https:// website."); + } + } + async sha256DigestBase64(str) { + // SubtleCrypto digest() method is async, so we must make + // this method async as well. + // To calculate SHA256 digest using SubtleCrypto, we first + // need to convert an input string to an ArrayBuffer: + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const inputBuffer = new TextEncoder().encode(str); + // Result is ArrayBuffer as well. + const outputBuffer = await window.crypto.subtle.digest('SHA-256', inputBuffer); + return base64js.fromByteArray(new Uint8Array(outputBuffer)); + } + randomBytesBase64(count) { + const array = new Uint8Array(count); + window.crypto.getRandomValues(array); + return base64js.fromByteArray(array); + } + static padBase64(base64) { + // base64js requires padding, so let's add some '=' + while (base64.length % 4 !== 0) { + base64 += '='; + } + return base64; + } + async verify(pubkey, data, signature) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const signatureArray = base64js.toByteArray(BrowserCrypto.padBase64(signature)); + const cryptoKey = await window.crypto.subtle.importKey('jwk', pubkey, algo, true, ['verify']); + // SubtleCrypto's verify method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.verify(algo, cryptoKey, signatureArray, dataArray); + return result; + } + async sign(privateKey, data) { + const algo = { + name: 'RSASSA-PKCS1-v1_5', + hash: { name: 'SHA-256' }, + }; + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const dataArray = new TextEncoder().encode(data); + const cryptoKey = await window.crypto.subtle.importKey('jwk', privateKey, algo, true, ['sign']); + // SubtleCrypto's sign method is async so we must make + // this method async as well. + const result = await window.crypto.subtle.sign(algo, cryptoKey, dataArray); + return base64js.fromByteArray(new Uint8Array(result)); + } + decodeBase64StringUtf8(base64) { + const uint8array = base64js.toByteArray(BrowserCrypto.padBase64(base64)); + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const result = new TextDecoder().decode(uint8array); + return result; + } + encodeBase64StringUtf8(text) { + // eslint-disable-next-line node/no-unsupported-features/node-builtins + const uint8array = new TextEncoder().encode(text); + const result = base64js.fromByteArray(uint8array); + return result; + } +} +exports.BrowserCrypto = BrowserCrypto; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 61414: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/* global window */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +const crypto_1 = __nccwpck_require__(68645); +const crypto_2 = __nccwpck_require__(22692); +function createCrypto() { + if (hasBrowserCrypto()) { + return new crypto_1.BrowserCrypto(); + } + return new crypto_2.NodeCrypto(); +} +exports.createCrypto = createCrypto; +function hasBrowserCrypto() { + return (typeof window !== 'undefined' && + typeof window.crypto !== 'undefined' && + typeof window.crypto.subtle !== 'undefined'); +} +exports.hasBrowserCrypto = hasBrowserCrypto; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 22692: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const crypto = __nccwpck_require__(6113); +class NodeCrypto { + async sha256DigestBase64(str) { + return crypto.createHash('sha256').update(str).digest('base64'); + } + randomBytesBase64(count) { + return crypto.randomBytes(count).toString('base64'); + } + async verify(pubkey, data, signature) { + const verifier = crypto.createVerify('sha256'); + verifier.update(data); + verifier.end(); + return verifier.verify(pubkey, signature, 'base64'); + } + async sign(privateKey, data) { + const signer = crypto.createSign('RSA-SHA256'); + signer.update(data); + signer.end(); + return signer.sign(privateKey, 'base64'); + } + decodeBase64StringUtf8(base64) { + return Buffer.from(base64, 'base64').toString('utf-8'); + } + encodeBase64StringUtf8(text) { + return Buffer.from(text, 'utf-8').toString('base64'); + } +} +exports.NodeCrypto = NodeCrypto; +//# sourceMappingURL=crypto.js.map + +/***/ }), + +/***/ 56002: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +Object.defineProperty(exports, "__esModule", ({ value: true })); +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +const googleauth_1 = __nccwpck_require__(41694); +exports.GoogleAuth = googleauth_1.GoogleAuth; +var computeclient_1 = __nccwpck_require__(25876); +exports.Compute = computeclient_1.Compute; +var envDetect_1 = __nccwpck_require__(65048); +exports.GCPEnv = envDetect_1.GCPEnv; +var iam_1 = __nccwpck_require__(34294); +exports.IAMAuth = iam_1.IAMAuth; +var idtokenclient_1 = __nccwpck_require__(58215); +exports.IdTokenClient = idtokenclient_1.IdTokenClient; +var jwtaccess_1 = __nccwpck_require__(55604); +exports.JWTAccess = jwtaccess_1.JWTAccess; +var jwtclient_1 = __nccwpck_require__(59610); +exports.JWT = jwtclient_1.JWT; +var oauth2client_1 = __nccwpck_require__(22316); +exports.CodeChallengeMethod = oauth2client_1.CodeChallengeMethod; +exports.OAuth2Client = oauth2client_1.OAuth2Client; +var loginticket_1 = __nccwpck_require__(5280); +exports.LoginTicket = loginticket_1.LoginTicket; +var refreshclient_1 = __nccwpck_require__(33631); +exports.UserRefreshClient = refreshclient_1.UserRefreshClient; +var transporters_1 = __nccwpck_require__(3186); +exports.DefaultTransporter = transporters_1.DefaultTransporter; +const auth = new googleauth_1.GoogleAuth(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59981: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2017 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +// Accepts an options object passed from the user to the API. In the +// previous version of the API, it referred to a `Request` options object. +// Now it refers to an Axiox Request Config object. This is here to help +// ensure users don't pass invalid options when they upgrade from 0.x to 1.x. +// tslint:disable-next-line no-any +function validate(options) { + const vpairs = [ + { invalid: 'uri', expected: 'url' }, + { invalid: 'json', expected: 'data' }, + { invalid: 'qs', expected: 'params' }, + ]; + for (const pair of vpairs) { + if (options[pair.invalid]) { + const e = `'${pair.invalid}' is not a valid configuration option. Please use '${pair.expected}' instead. This library is using Axios for requests. Please see https://github.com/axios/axios to learn more about the valid request options.`; + throw new Error(e); + } + } +} +exports.validate = validate; +//# sourceMappingURL=options.js.map + +/***/ }), + +/***/ 3186: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2019 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +const gaxios_1 = __nccwpck_require__(8113); +const options_1 = __nccwpck_require__(59981); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(97254); +const PRODUCT_NAME = 'google-api-nodejs-client'; +class DefaultTransporter { + /** + * Configures request options before making a request. + * @param opts GaxiosOptions options. + * @return Configured options. + */ + configure(opts = {}) { + opts.headers = opts.headers || {}; + if (typeof window === 'undefined') { + // set transporter user agent if not in browser + const uaValue = opts.headers['User-Agent']; + if (!uaValue) { + opts.headers['User-Agent'] = DefaultTransporter.USER_AGENT; + } + else if (!uaValue.includes(`${PRODUCT_NAME}/`)) { + opts.headers['User-Agent'] = `${uaValue} ${DefaultTransporter.USER_AGENT}`; + } + // track google-auth-library-nodejs version: + const authVersion = `auth/${pkg.version}`; + if (opts.headers['x-goog-api-client'] && + !opts.headers['x-goog-api-client'].includes(authVersion)) { + opts.headers['x-goog-api-client'] = `${opts.headers['x-goog-api-client']} ${authVersion}`; + } + else if (!opts.headers['x-goog-api-client']) { + const nodeVersion = process.version.replace(/^v/, ''); + opts.headers['x-goog-api-client'] = `gl-node/${nodeVersion} ${authVersion}`; + } + } + return opts; + } + request(opts, callback) { + // ensure the user isn't passing in request-style options + opts = this.configure(opts); + try { + options_1.validate(opts); + } + catch (e) { + if (callback) { + return callback(e); + } + else { + throw e; + } + } + if (callback) { + gaxios_1.request(opts).then(r => { + callback(null, r); + }, e => { + callback(this.processError(e)); + }); + } + else { + return gaxios_1.request(opts).catch(e => { + throw this.processError(e); + }); + } + } + /** + * Changes the error to include details from the body. + */ + processError(e) { + const res = e.response; + const err = e; + const body = res ? res.data : null; + if (res && body && body.error && res.status !== 200) { + if (typeof body.error === 'string') { + err.message = body.error; + err.code = res.status.toString(); + } + else if (Array.isArray(body.error.errors)) { + err.message = body.error.errors + .map((err2) => err2.message) + .join('\n'); + err.code = body.error.code; + err.errors = body.error.errors; + } + else { + err.message = body.error.message; + err.code = body.error.code || res.status; + } + } + else if (res && res.status >= 400) { + // Consider all 4xx and 5xx responses errors. + err.message = body; + err.code = res.status.toString(); + } + return err; + } +} +exports.DefaultTransporter = DefaultTransporter; +/** + * Default user agent. + */ +DefaultTransporter.USER_AGENT = `${PRODUCT_NAME}/${pkg.version}`; +//# sourceMappingURL=transporters.js.map + +/***/ }), + +/***/ 10435: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +const fs = __nccwpck_require__(57147); +const forge = __nccwpck_require__(60289); +const util_1 = __nccwpck_require__(73837); +const readFile = util_1.promisify(fs.readFile); +function getPem(filename, callback) { + if (callback) { + getPemAsync(filename) + .then(pem => callback(null, pem)) + .catch(err => callback(err, null)); + } + else { + return getPemAsync(filename); + } +} +exports.getPem = getPem; +function getPemAsync(filename) { + return readFile(filename, { encoding: 'base64' }).then(keyp12 => { + return convertToPem(keyp12); + }); +} +/** + * Converts a P12 in base64 encoding to a pem. + * @param p12base64 String containing base64 encoded p12. + * @returns a string containing the pem. + */ +function convertToPem(p12base64) { + const p12Der = forge.util.decode64(p12base64); + const p12Asn1 = forge.asn1.fromDer(p12Der); + const p12 = forge.pkcs12.pkcs12FromAsn1(p12Asn1, 'notasecret'); + const bags = p12.getBags({ friendlyName: 'privatekey' }); + if (bags.friendlyName) { + const privateKey = bags.friendlyName[0].key; + const pem = forge.pki.privateKeyToPem(privateKey); + return pem.replace(/\r\n/g, '\n'); + } + else { + throw new Error('Unable to get friendly name.'); + } +} +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 58525: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.getAPI = void 0; +function getAPI(api, options, +// eslint-disable-next-line @typescript-eslint/no-explicit-any +versions, context) { + let version; + if (typeof options === 'string') { + version = options; + options = {}; + } + else if (typeof options === 'object') { + version = options.version; + delete options.version; + } + else { + throw new Error('Argument error: Accepts only string or object'); + } + try { + const ctr = versions[version]; + const ep = new ctr(options, context); + return Object.freeze(ep); + } + catch (e) { + throw new Error(`Unable to load endpoint ${api}("${version}"): ${e.message}`); + } +} +exports.getAPI = getAPI; +//# sourceMappingURL=apiIndex.js.map + +/***/ }), + +/***/ 14828: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.createAPIRequest = void 0; +const google_auth_library_1 = __nccwpck_require__(56002); +const qs = __nccwpck_require__(40002); +const stream = __nccwpck_require__(12781); +const urlTemplate = __nccwpck_require__(4661); +const uuid = __nccwpck_require__(87631); +const extend = __nccwpck_require__(84590); +const isbrowser_1 = __nccwpck_require__(75220); +const resolve = __nccwpck_require__(57310); +// eslint-disable-next-line @typescript-eslint/no-var-requires +const pkg = __nccwpck_require__(75251); +function isReadableStream(obj) { + return obj instanceof stream.Readable && typeof obj._read === 'function'; +} +function getMissingParams(params, required) { + const missing = new Array(); + required.forEach(param => { + // Is the required param in the params object? + if (params[param] === undefined) { + missing.push(param); + } + }); + // If there are any required params missing, return their names in array, + // otherwise return null + return missing.length > 0 ? missing : null; +} +function createAPIRequest(parameters, callback) { + if (callback) { + createAPIRequestAsync(parameters).then(r => callback(null, r), callback); + } + else { + return createAPIRequestAsync(parameters); + } +} +exports.createAPIRequest = createAPIRequest; +async function createAPIRequestAsync(parameters) { + const options = Object.assign({}, parameters.options); + // Create a new params object so it can no longer be modified from outside + // code Also support global and per-client params, but allow them to be + // overriden per-request + const globalParams = parameters.context.google && + parameters.context.google._options && + parameters.context.google._options.params + ? parameters.context.google._options.params + : {}; + const clientParams = parameters.context && + parameters.context._options && + parameters.context._options.params + ? parameters.context._options.params + : {}; + const params = Object.assign({}, // New base object + globalParams, // Global params + clientParams, // Per-client params + parameters.params // API call params + ); + // Check for user specified user agents at all levels of config + const userAgentGlobal = parameters.context.google && + parameters.context.google._options && + parameters.context.google._options.userAgentDirectives + ? parameters.context.google._options.userAgentDirectives + : []; + const userAgentClient = parameters.context && + parameters.context._options && + parameters.context._options.userAgentDirectives + ? parameters.context._options.userAgentDirectives + : []; + const userAgentDirectives = Object.assign([], userAgentGlobal, userAgentClient, parameters.options.userAgentDirectives) || []; + const media = params.media || {}; + /** + * In a previous version of this API, the request body was stuffed in a field + * named `resource`. This caused lots of problems, because it's not uncommon + * to have an actual named parameter required which is also named `resource`. + * This meant that users would have to use `resource_` in those cases, which + * pretty much nobody figures out on their own. The request body is now + * documented as being in the `requestBody` property, but we also need to keep + * using `resource` for reasons of back-compat. Cases that need to be covered + * here: + * - user provides just a `resource` with a request body + * - user provides both a `resource` and a `resource_` + * - user provides just a `requestBody` + * - user provides both a `requestBody` and a `resource` + */ + let resource = params.requestBody; + if (!params.requestBody && + params.resource && + (!parameters.requiredParams.includes('resource') || + typeof params.resource !== 'string')) { + resource = params.resource; + delete params.resource; + } + delete params.requestBody; + let authClient = params.auth || + parameters.context._options.auth || + (parameters.context.google + ? parameters.context.google._options.auth + : null); + const defaultMime = typeof media.body === 'string' ? 'text/plain' : 'application/octet-stream'; + delete params.media; + delete params.auth; + // Grab headers from user provided options + const headers = params.headers || {}; + populateAPIHeader(headers); + delete params.headers; + // Un-alias parameters that were modified due to conflicts with reserved names + Object.keys(params).forEach(key => { + if (key.slice(-1) === '_') { + const newKey = key.slice(0, -1); + params[newKey] = params[key]; + delete params[key]; + } + }); + // Check for missing required parameters in the API request + const missingParams = getMissingParams(params, parameters.requiredParams); + if (missingParams) { + // Some params are missing - stop further operations and inform the + // developer which required params are not included in the request + throw new Error('Missing required parameters: ' + missingParams.join(', ')); + } + // Parse urls + if (options.url) { + options.url = urlTemplate.parse(options.url).expand(params); + } + if (parameters.mediaUrl) { + parameters.mediaUrl = urlTemplate.parse(parameters.mediaUrl).expand(params); + } + // Rewrite url if rootUrl is globally set + if (parameters.context._options.rootUrl !== undefined && + options.url !== undefined) { + const path = options.url.slice(parameters.context._options.rootUrl.length); + options.url = resolve.resolve(parameters.context._options.rootUrl, path); + } + // When forming the querystring, override the serializer so that array + // values are serialized like this: + // myParams: ['one', 'two'] ---> 'myParams=one&myParams=two' + // This serializer also encodes spaces in the querystring as `%20`, + // whereas the default serializer in gaxios encodes to a `+`. + options.paramsSerializer = params => { + return qs.stringify(params, { arrayFormat: 'repeat' }); + }; + // delete path parameters from the params object so they do not end up in + // query + parameters.pathParams.forEach(param => { + delete params[param]; + if (parameters.context && + parameters.context._options && + parameters.context._options.params) { + delete parameters.context._options.params[param]; + } + }); + // if authClient is actually a string, use it as an API KEY + if (typeof authClient === 'string') { + params.key = params.key || authClient; + authClient = undefined; + } + function multipartUpload(multipart) { + const boundary = uuid.v4(); + const finale = `--${boundary}--`; + const rStream = new stream.PassThrough({ + flush(callback) { + this.push('\r\n'); + this.push(finale); + callback(); + }, + }); + const pStream = new ProgressStream(); + const isStream = isReadableStream(multipart[1].body); + headers['Content-Type'] = `multipart/related; boundary=${boundary}`; + for (const part of multipart) { + const preamble = `--${boundary}\r\nContent-Type: ${part['Content-Type']}\r\n\r\n`; + rStream.push(preamble); + if (typeof part.body === 'string') { + rStream.push(part.body); + rStream.push('\r\n'); + } + else { + // Gaxios does not natively support onUploadProgress in node.js. + // Pipe through the pStream first to read the number of bytes read + // for the purpose of tracking progress. + pStream.on('progress', bytesRead => { + if (options.onUploadProgress) { + options.onUploadProgress({ bytesRead }); + } + }); + part.body.pipe(pStream).pipe(rStream); + } + } + if (!isStream) { + rStream.push(finale); + rStream.push(null); + } + options.data = rStream; + } + function browserMultipartUpload(multipart) { + const boundary = uuid.v4(); + const finale = `--${boundary}--`; + headers['Content-Type'] = `multipart/related; boundary=${boundary}`; + let content = ''; + for (const part of multipart) { + const preamble = `--${boundary}\r\nContent-Type: ${part['Content-Type']}\r\n\r\n`; + content += preamble; + if (typeof part.body === 'string') { + content += part.body; + content += '\r\n'; + } + } + content += finale; + options.data = content; + } + if (parameters.mediaUrl && media.body) { + options.url = parameters.mediaUrl; + if (resource) { + params.uploadType = 'multipart'; + const multipart = [ + { 'Content-Type': 'application/json', body: JSON.stringify(resource) }, + { + 'Content-Type': media.mimeType || (resource && resource.mimeType) || defaultMime, + body: media.body, + }, + ]; + if (!isbrowser_1.isBrowser()) { + // gaxios doesn't support multipart/related uploads, so it has to + // be implemented here. + multipartUpload(multipart); + } + else { + browserMultipartUpload(multipart); + } + } + else { + params.uploadType = 'media'; + Object.assign(headers, { 'Content-Type': media.mimeType || defaultMime }); + options.data = media.body; + } + } + else { + options.data = resource || undefined; + } + options.headers = extend(true, options.headers || {}, headers); + options.params = params; + if (!isbrowser_1.isBrowser()) { + options.headers['Accept-Encoding'] = 'gzip'; + userAgentDirectives.push({ + product: 'google-api-nodejs-client', + version: pkg.version, + comment: 'gzip', + }); + const userAgent = userAgentDirectives + .map(d => { + let line = `${d.product}/${d.version}`; + if (d.comment) { + line += ` (${d.comment})`; + } + return line; + }) + .join(' '); + options.headers['User-Agent'] = userAgent; + } + // By default gaxios treats any 2xx as valid, and all non 2xx status + // codes as errors. This is a problem for HTTP 304s when used along + // with an eTag. + if (!options.validateStatus) { + options.validateStatus = status => { + return (status >= 200 && status < 300) || status === 304; + }; + } + // Retry by default + options.retry = options.retry === undefined ? true : options.retry; + // Combine the GaxiosOptions options passed with this specific + // API call witht the global options configured at the API Context + // level, or at the global level. + const mergedOptions = extend(true, {}, parameters.context.google ? parameters.context.google._options : {}, parameters.context._options, options); + delete mergedOptions.auth; // is overridden by our auth code + // Perform the HTTP request. NOTE: this function used to return a + // mikeal/request object. Since the transition to Axios, the method is + // now void. This may be a source of confusion for users upgrading from + // version 24.0 -> 25.0 or up. + if (authClient && typeof authClient === 'object') { + return authClient.request(mergedOptions); + } + else { + return new google_auth_library_1.DefaultTransporter().request(mergedOptions); + } +} +/** + * Basic Passthrough Stream that records the number of bytes read + * every time the cursor is moved. + */ +class ProgressStream extends stream.Transform { + constructor() { + super(...arguments); + this.bytesRead = 0; + } + // eslint-disable-next-line @typescript-eslint/no-explicit-any + _transform(chunk, encoding, callback) { + this.bytesRead += chunk.length; + this.emit('progress', this.bytesRead); + this.push(chunk); + callback(); + } +} +function populateAPIHeader(headers) { + // TODO: we should eventually think about adding browser support for this + // populating the gl-web header (web support should also be added to + // google-auth-library-nodejs). + if (!isbrowser_1.isBrowser()) { + headers['x-goog-api-client'] = `gdcl/${pkg.version} gl-node/${process.versions.node}`; + } +} +//# sourceMappingURL=apirequest.js.map + +/***/ }), + +/***/ 69949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.AuthPlus = void 0; +const google_auth_library_1 = __nccwpck_require__(56002); +class AuthPlus extends google_auth_library_1.GoogleAuth { + constructor() { + super(...arguments); + // tslint:disable-next-line: variable-name + this.JWT = google_auth_library_1.JWT; + // tslint:disable-next-line: variable-name + this.Compute = google_auth_library_1.Compute; + // tslint:disable-next-line: variable-name + this.OAuth2 = google_auth_library_1.OAuth2Client; + // tslint:disable-next-line: variable-name + this.GoogleAuth = google_auth_library_1.GoogleAuth; + } + /** + * Override getClient(), memoizing an instance of auth for + * subsequent calls to getProjectId(). + */ + async getClient(options) { + this._cachedAuth = new google_auth_library_1.GoogleAuth(options); + return this._cachedAuth.getClient(); + } + getProjectId(callback) { + if (callback) { + return this._cachedAuth + ? this._cachedAuth.getProjectId(callback) + : super.getProjectId(callback); + } + else { + return this._cachedAuth + ? this._cachedAuth.getProjectId() + : super.getProjectId(); + } + } +} +exports.AuthPlus = AuthPlus; +//# sourceMappingURL=authplus.js.map + +/***/ }), + +/***/ 8739: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Discovery = void 0; +const fs = __nccwpck_require__(57147); +const google_auth_library_1 = __nccwpck_require__(56002); +const resolve = __nccwpck_require__(57310); +const util = __nccwpck_require__(73837); +const apirequest_1 = __nccwpck_require__(14828); +const endpoint_1 = __nccwpck_require__(73109); +const readFile = util.promisify(fs.readFile); +class Discovery { + /** + * Discovery for discovering API endpoints + * + * @param options Options for discovery + */ + constructor(options) { + this.transporter = new google_auth_library_1.DefaultTransporter(); + this.options = options || {}; + } + /** + * Generate and Endpoint from an endpoint schema object. + * + * @param schema The schema from which to generate the Endpoint. + * @return A function that creates an endpoint. + */ + makeEndpoint(schema) { + return (options) => { + const ep = new endpoint_1.Endpoint(options); + ep.applySchema(ep, schema, schema, ep); + return ep; + }; + } + /** + * Log output of generator. Works just like console.log + */ + log(...args) { + if (this.options && this.options.debug) { + console.log(...args); + } + } + /** + * Generate all APIs and return as in-memory object. + * @param discoveryUrl + */ + async discoverAllAPIs(discoveryUrl) { + const headers = this.options.includePrivate + ? {} + : { 'X-User-Ip': '0.0.0.0' }; + const res = await this.transporter.request({ + url: discoveryUrl, + headers, + }); + const items = res.data.items; + const apis = await Promise.all(items.map(async (api) => { + const endpointCreator = await this.discoverAPI(api.discoveryRestUrl); + return { api, endpointCreator }; + })); + const versionIndex = {}; + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const apisIndex = {}; + for (const set of apis) { + if (!apisIndex[set.api.name]) { + versionIndex[set.api.name] = {}; + apisIndex[set.api.name] = (options) => { + const type = typeof options; + let version; + if (type === 'string') { + version = options; + options = {}; + } + else if (type === 'object') { + version = options.version; + delete options.version; + } + else { + throw new Error('Argument error: Accepts only string or object'); + } + try { + const ep = set.endpointCreator(options, this); + return Object.freeze(ep); // create new & freeze + } + catch (e) { + throw new Error(util.format('Unable to load endpoint %s("%s"): %s', set.api.name, version, e.message)); + } + }; + } + versionIndex[set.api.name][set.api.version] = set.endpointCreator; + } + return apisIndex; + } + /** + * Generate API file given discovery URL + * + * @param apiDiscoveryUrl URL or filename of discovery doc for API + * @returns A promise that resolves with a function that creates the endpoint + */ + async discoverAPI(apiDiscoveryUrl) { + if (typeof apiDiscoveryUrl === 'string') { + const parts = resolve.parse(apiDiscoveryUrl); + if (apiDiscoveryUrl && !parts.protocol) { + this.log('Reading from file ' + apiDiscoveryUrl); + const file = await readFile(apiDiscoveryUrl, { encoding: 'utf8' }); + return this.makeEndpoint(JSON.parse(file)); + } + else { + this.log('Requesting ' + apiDiscoveryUrl); + const res = await this.transporter.request({ + url: apiDiscoveryUrl, + }); + return this.makeEndpoint(res.data); + } + } + else { + const options = apiDiscoveryUrl; + this.log('Requesting ' + options.url); + const url = options.url; + delete options.url; + const parameters = { + options: { url, method: 'GET' }, + requiredParams: [], + pathParams: [], + params: options, + context: { google: { _options: {} }, _options: {} }, + }; + const res = await apirequest_1.createAPIRequest(parameters); + return this.makeEndpoint(res.data); + } + } +} +exports.Discovery = Discovery; +//# sourceMappingURL=discovery.js.map + +/***/ }), + +/***/ 73109: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.Endpoint = void 0; +const apirequest_1 = __nccwpck_require__(14828); +class Endpoint { + constructor(options) { + this._options = options || {}; + } + /** + * Given a schema, add methods and resources to a target. + * + * @param {object} target The target to which to apply the schema. + * @param {object} rootSchema The top-level schema, so we don't lose track of it + * during recursion. + * @param {object} schema The current schema from which to extract methods and + * resources. + * @param {object} context The context to add to each method. + */ + applySchema(target, rootSchema, schema, context) { + this.applyMethodsFromSchema(target, rootSchema, schema, context); + if (schema.resources) { + for (const resourceName in schema.resources) { + if (Object.prototype.hasOwnProperty.call(schema.resources, resourceName)) { + const resource = schema.resources[resourceName]; + if (!target[resourceName]) { + target[resourceName] = {}; + } + this.applySchema(target[resourceName], rootSchema, resource, context); + } + } + } + } + /** + * Given a schema, add methods to a target. + * + * @param {object} target The target to which to apply the methods. + * @param {object} rootSchema The top-level schema, so we don't lose track of it + * during recursion. + * @param {object} schema The current schema from which to extract methods. + * @param {object} context The context to add to each method. + */ + applyMethodsFromSchema(target, rootSchema, schema, context) { + if (schema.methods) { + for (const name in schema.methods) { + if (Object.prototype.hasOwnProperty.call(schema.methods, name)) { + const method = schema.methods[name]; + target[name] = this.makeMethod(rootSchema, method, context); + } + } + } + } + /** + * Given a method schema, add a method to a target. + * + * @param target The target to which to add the method. + * @param schema The top-level schema that contains the rootUrl, etc. + * @param method The method schema from which to generate the method. + * @param context The context to add to the method. + */ + makeMethod(schema, method, context) { + return (paramsOrCallback, callback) => { + const params = typeof paramsOrCallback === 'function' ? {} : paramsOrCallback; + callback = + typeof paramsOrCallback === 'function' + ? paramsOrCallback + : callback; + const schemaUrl = buildurl(schema.rootUrl + schema.servicePath + method.path); + const parameters = { + options: { + url: schemaUrl.substring(1, schemaUrl.length - 1), + method: method.httpMethod, + }, + params, + requiredParams: method.parameterOrder || [], + pathParams: this.getPathParams(method.parameters), + context, + }; + if (method.mediaUpload && + method.mediaUpload.protocols && + method.mediaUpload.protocols.simple && + method.mediaUpload.protocols.simple.path) { + const mediaUrl = buildurl(schema.rootUrl + method.mediaUpload.protocols.simple.path); + parameters.mediaUrl = mediaUrl.substring(1, mediaUrl.length - 1); + } + if (!callback) { + return apirequest_1.createAPIRequest(parameters); + } + apirequest_1.createAPIRequest(parameters, callback); + return; + }; + } + getPathParams(params) { + const pathParams = new Array(); + if (typeof params !== 'object') { + params = {}; + } + Object.keys(params).forEach(key => { + if (params[key].location === 'path') { + pathParams.push(key); + } + }); + return pathParams; + } +} +exports.Endpoint = Endpoint; +/** + * Build a string used to create a URL from the discovery doc provided URL. + * replace double slashes with single slash (except in https://) + * @private + * @param input URL to build from + * @return Resulting built URL + */ +function buildurl(input) { + return input ? `'${input}'`.replace(/([^:]\/)\/+/g, '$1') : ''; +} +//# sourceMappingURL=endpoint.js.map + +/***/ }), + +/***/ 62525: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +var google_auth_library_1 = __nccwpck_require__(56002); +Object.defineProperty(exports, "OAuth2Client", ({ enumerable: true, get: function () { return google_auth_library_1.OAuth2Client; } })); +Object.defineProperty(exports, "JWT", ({ enumerable: true, get: function () { return google_auth_library_1.JWT; } })); +Object.defineProperty(exports, "Compute", ({ enumerable: true, get: function () { return google_auth_library_1.Compute; } })); +Object.defineProperty(exports, "UserRefreshClient", ({ enumerable: true, get: function () { return google_auth_library_1.UserRefreshClient; } })); +Object.defineProperty(exports, "DefaultTransporter", ({ enumerable: true, get: function () { return google_auth_library_1.DefaultTransporter; } })); +var apiIndex_1 = __nccwpck_require__(58525); +Object.defineProperty(exports, "getAPI", ({ enumerable: true, get: function () { return apiIndex_1.getAPI; } })); +var apirequest_1 = __nccwpck_require__(14828); +Object.defineProperty(exports, "createAPIRequest", ({ enumerable: true, get: function () { return apirequest_1.createAPIRequest; } })); +var authplus_1 = __nccwpck_require__(69949); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return authplus_1.AuthPlus; } })); +var discovery_1 = __nccwpck_require__(8739); +Object.defineProperty(exports, "Discovery", ({ enumerable: true, get: function () { return discovery_1.Discovery; } })); +var endpoint_1 = __nccwpck_require__(73109); +Object.defineProperty(exports, "Endpoint", ({ enumerable: true, get: function () { return endpoint_1.Endpoint; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75220: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.isBrowser = void 0; +function isBrowser() { + return typeof window !== 'undefined'; +} +exports.isBrowser = isBrowser; +//# sourceMappingURL=isbrowser.js.map + +/***/ }), + +/***/ 38475: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.abusiveexperiencereport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(55030); +exports.VERSIONS = { + v1: v1_1.abusiveexperiencereport_v1.Abusiveexperiencereport, +}; +function abusiveexperiencereport(versionOrOptions) { + return googleapis_common_1.getAPI('abusiveexperiencereport', versionOrOptions, exports.VERSIONS, this); +} +exports.abusiveexperiencereport = abusiveexperiencereport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 55030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.abusiveexperiencereport_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var abusiveexperiencereport_v1; +(function (abusiveexperiencereport_v1) { + /** + * Abusive Experience Report API + * + * Views Abusive Experience Report data, and gets a list of sites that have a significant number of abusive experiences. + * + * @example + * const {google} = require('googleapis'); + * const abusiveexperiencereport = google.abusiveexperiencereport('v1'); + * + * @namespace abusiveexperiencereport + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Abusiveexperiencereport + */ + class Abusiveexperiencereport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.sites = new Resource$Sites(this.context); + this.violatingSites = new Resource$Violatingsites(this.context); + } + } + abusiveexperiencereport_v1.Abusiveexperiencereport = Abusiveexperiencereport; + class Resource$Sites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + abusiveexperiencereport_v1.Resource$Sites = Resource$Sites; + class Resource$Violatingsites { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://abusiveexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + abusiveexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; +})(abusiveexperiencereport_v1 = exports.abusiveexperiencereport_v1 || (exports.abusiveexperiencereport_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 93956: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.acceleratedmobilepageurl = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(73334); +exports.VERSIONS = { + v1: v1_1.acceleratedmobilepageurl_v1.Acceleratedmobilepageurl, +}; +function acceleratedmobilepageurl(versionOrOptions) { + return googleapis_common_1.getAPI('acceleratedmobilepageurl', versionOrOptions, exports.VERSIONS, this); +} +exports.acceleratedmobilepageurl = acceleratedmobilepageurl; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 73334: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.acceleratedmobilepageurl_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var acceleratedmobilepageurl_v1; +(function (acceleratedmobilepageurl_v1) { + /** + * Accelerated Mobile Pages (AMP) URL API + * + * Retrieves the list of AMP URLs (and equivalent AMP Cache URLs) for a given list of public URL(s). + * + * @example + * const {google} = require('googleapis'); + * const acceleratedmobilepageurl = google.acceleratedmobilepageurl('v1'); + * + * @namespace acceleratedmobilepageurl + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Acceleratedmobilepageurl + */ + class Acceleratedmobilepageurl { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.ampUrls = new Resource$Ampurls(this.context); + } + } + acceleratedmobilepageurl_v1.Acceleratedmobilepageurl = Acceleratedmobilepageurl; + class Resource$Ampurls { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://acceleratedmobilepageurl.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ampUrls:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + acceleratedmobilepageurl_v1.Resource$Ampurls = Resource$Ampurls; +})(acceleratedmobilepageurl_v1 = exports.acceleratedmobilepageurl_v1 || (exports.acceleratedmobilepageurl_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 81023: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.accessapproval = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(59643); +const v1beta1_1 = __nccwpck_require__(47797); +exports.VERSIONS = { + v1: v1_1.accessapproval_v1.Accessapproval, + v1beta1: v1beta1_1.accessapproval_v1beta1.Accessapproval, +}; +function accessapproval(versionOrOptions) { + return googleapis_common_1.getAPI('accessapproval', versionOrOptions, exports.VERSIONS, this); +} +exports.accessapproval = accessapproval; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59643: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.accessapproval_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var accessapproval_v1; +(function (accessapproval_v1) { + /** + * Access Approval API + * + * An API for controlling access to data by Google personnel. + * + * @example + * const {google} = require('googleapis'); + * const accessapproval = google.accessapproval('v1'); + * + * @namespace accessapproval + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Accessapproval + */ + class Accessapproval { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + accessapproval_v1.Accessapproval = Accessapproval; + class Resource$Folders { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Folders = Resource$Folders; + class Resource$Folders$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; + class Resource$Projects { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1 = exports.accessapproval_v1 || (exports.accessapproval_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 47797: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.accessapproval_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var accessapproval_v1beta1; +(function (accessapproval_v1beta1) { + /** + * Access Approval API + * + * An API for controlling access to data by Google personnel. + * + * @example + * const {google} = require('googleapis'); + * const accessapproval = google.accessapproval('v1beta1'); + * + * @namespace accessapproval + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Accessapproval + */ + class Accessapproval { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + accessapproval_v1beta1.Accessapproval = Accessapproval; + class Resource$Folders { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Folders$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Folders$Approvalrequests = Resource$Folders$Approvalrequests; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Organizations$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Organizations$Approvalrequests = Resource$Organizations$Approvalrequests; + class Resource$Projects { + constructor(context) { + this.context = context; + this.approvalRequests = new Resource$Projects$Approvalrequests(this.context); + } + deleteAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessApprovalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Approvalrequests { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accessapproval.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/approvalRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accessapproval_v1beta1.Resource$Projects$Approvalrequests = Resource$Projects$Approvalrequests; +})(accessapproval_v1beta1 = exports.accessapproval_v1beta1 || (exports.accessapproval_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 18824: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.accesscontextmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(81671); +const v1beta_1 = __nccwpck_require__(73306); +exports.VERSIONS = { + v1: v1_1.accesscontextmanager_v1.Accesscontextmanager, + v1beta: v1beta_1.accesscontextmanager_v1beta.Accesscontextmanager, +}; +function accesscontextmanager(versionOrOptions) { + return googleapis_common_1.getAPI('accesscontextmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.accesscontextmanager = accesscontextmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 81671: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.accesscontextmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var accesscontextmanager_v1; +(function (accesscontextmanager_v1) { + /** + * Access Context Manager API + * + * An API for setting attribute based access control to requests to GCP services. + * + * @example + * const {google} = require('googleapis'); + * const accesscontextmanager = google.accesscontextmanager('v1'); + * + * @namespace accesscontextmanager + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Accesscontextmanager + */ + class Accesscontextmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accessPolicies = new Resource$Accesspolicies(this.context); + this.operations = new Resource$Operations(this.context); + } + } + accesscontextmanager_v1.Accesscontextmanager = Accesscontextmanager; + class Resource$Accesspolicies { + constructor(context) { + this.context = context; + this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); + this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1.Resource$Accesspolicies = Resource$Accesspolicies; + class Resource$Accesspolicies$Accesslevels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/accessLevels:replaceAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; + class Resource$Accesspolicies$Serviceperimeters { + constructor(context) { + this.context = context; + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/servicePerimeters:replaceAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1.Resource$Operations = Resource$Operations; +})(accesscontextmanager_v1 = exports.accesscontextmanager_v1 || (exports.accesscontextmanager_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 73306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.accesscontextmanager_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var accesscontextmanager_v1beta; +(function (accesscontextmanager_v1beta) { + /** + * Access Context Manager API + * + * An API for setting attribute based access control to requests to GCP services. + * + * @example + * const {google} = require('googleapis'); + * const accesscontextmanager = google.accesscontextmanager('v1beta'); + * + * @namespace accesscontextmanager + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Accesscontextmanager + */ + class Accesscontextmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accessPolicies = new Resource$Accesspolicies(this.context); + this.operations = new Resource$Operations(this.context); + } + } + accesscontextmanager_v1beta.Accesscontextmanager = Accesscontextmanager; + class Resource$Accesspolicies { + constructor(context) { + this.context = context; + this.accessLevels = new Resource$Accesspolicies$Accesslevels(this.context); + this.servicePerimeters = new Resource$Accesspolicies$Serviceperimeters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/accessPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies = Resource$Accesspolicies; + class Resource$Accesspolicies$Accesslevels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/accessLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies$Accesslevels = Resource$Accesspolicies$Accesslevels; + class Resource$Accesspolicies$Serviceperimeters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/servicePerimeters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Accesspolicies$Serviceperimeters = Resource$Accesspolicies$Serviceperimeters; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://accesscontextmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + accesscontextmanager_v1beta.Resource$Operations = Resource$Operations; +})(accesscontextmanager_v1beta = exports.accesscontextmanager_v1beta || (exports.accesscontextmanager_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 27497: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.adexchangebuyer2 = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2beta1_1 = __nccwpck_require__(57274); +exports.VERSIONS = { + v2beta1: v2beta1_1.adexchangebuyer2_v2beta1.Adexchangebuyer2, +}; +function adexchangebuyer2(versionOrOptions) { + return googleapis_common_1.getAPI('adexchangebuyer2', versionOrOptions, exports.VERSIONS, this); +} +exports.adexchangebuyer2 = adexchangebuyer2; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 57274: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adexchangebuyer2_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adexchangebuyer2_v2beta1; +(function (adexchangebuyer2_v2beta1) { + /** + * Ad Exchange Buyer API II + * + * Accesses the latest features for managing Authorized Buyers accounts, Real-Time Bidding configurations and auction metrics, and Marketplace programmatic deals. + * + * @example + * const {google} = require('googleapis'); + * const adexchangebuyer2 = google.adexchangebuyer2('v2beta1'); + * + * @namespace adexchangebuyer2 + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Adexchangebuyer2 + */ + class Adexchangebuyer2 { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.bidders = new Resource$Bidders(this.context); + } + } + adexchangebuyer2_v2beta1.Adexchangebuyer2 = Adexchangebuyer2; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.clients = new Resource$Accounts$Clients(this.context); + this.creatives = new Resource$Accounts$Creatives(this.context); + this.finalizedProposals = new Resource$Accounts$Finalizedproposals(this.context); + this.products = new Resource$Accounts$Products(this.context); + this.proposals = new Resource$Accounts$Proposals(this.context); + this.publisherProfiles = new Resource$Accounts$Publisherprofiles(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Clients { + constructor(context) { + this.context = context; + this.invitations = new Resource$Accounts$Clients$Invitations(this.context); + this.users = new Resource$Accounts$Clients$Users(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/clients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Clients = Resource$Accounts$Clients; + class Resource$Accounts$Clients$Invitations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId', 'invitationId'], + pathParams: ['accountId', 'clientAccountId', 'invitationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Invitations = Resource$Accounts$Clients$Invitations; + class Resource$Accounts$Clients$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId', 'userId'], + pathParams: ['accountId', 'clientAccountId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId'], + pathParams: ['accountId', 'clientAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/clients/{clientAccountId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'clientAccountId', 'userId'], + pathParams: ['accountId', 'clientAccountId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Clients$Users = Resource$Accounts$Clients$Users; + class Resource$Accounts$Creatives { + constructor(context) { + this.context = context; + this.dealAssociations = new Resource$Accounts$Creatives$Dealassociations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stopWatching(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:stopWatching').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/creatives/{creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Creatives = Resource$Accounts$Creatives; + class Resource$Accounts$Creatives$Dealassociations { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + remove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/creatives/{creativeId}/dealAssociations:remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'creativeId'], + pathParams: ['accountId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Creatives$Dealassociations = Resource$Accounts$Creatives$Dealassociations; + class Resource$Accounts$Finalizedproposals { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/finalizedProposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Finalizedproposals = Resource$Accounts$Finalizedproposals; + class Resource$Accounts$Products { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'productId'], + pathParams: ['accountId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Products = Resource$Accounts$Products; + class Resource$Accounts$Proposals { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addNote(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:addNote').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancelNegotiation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:cancelNegotiation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + completeSetup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:completeSetup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/proposals/{proposalId}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'proposalId'], + pathParams: ['accountId', 'proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Proposals = Resource$Accounts$Proposals; + class Resource$Accounts$Publisherprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/accounts/{accountId}/publisherProfiles/{publisherProfileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'publisherProfileId'], + pathParams: ['accountId', 'publisherProfileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/accounts/{accountId}/publisherProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Accounts$Publisherprofiles = Resource$Accounts$Publisherprofiles; + class Resource$Bidders { + constructor(context) { + this.context = context; + this.accounts = new Resource$Bidders$Accounts(this.context); + this.filterSets = new Resource$Bidders$Filtersets(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Bidders = Resource$Bidders; + class Resource$Bidders$Accounts { + constructor(context) { + this.context = context; + this.filterSets = new Resource$Bidders$Accounts$Filtersets(this.context); + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts = Resource$Bidders$Accounts; + class Resource$Bidders$Accounts$Filtersets { + constructor(context) { + this.context = context; + this.bidMetrics = new Resource$Bidders$Accounts$Filtersets$Bidmetrics(this.context); + this.bidResponseErrors = new Resource$Bidders$Accounts$Filtersets$Bidresponseerrors(this.context); + this.bidResponsesWithoutBids = new Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids(this.context); + this.filteredBidRequests = new Resource$Bidders$Accounts$Filtersets$Filteredbidrequests(this.context); + this.filteredBids = new Resource$Bidders$Accounts$Filtersets$Filteredbids(this.context); + this.impressionMetrics = new Resource$Bidders$Accounts$Filtersets$Impressionmetrics(this.context); + this.losingBids = new Resource$Bidders$Accounts$Filtersets$Losingbids(this.context); + this.nonBillableWinningBids = new Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['ownerName'], + pathParams: ['ownerName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ownerName'], + pathParams: ['ownerName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets = Resource$Bidders$Accounts$Filtersets; + class Resource$Bidders$Accounts$Filtersets$Bidmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidmetrics = Resource$Bidders$Accounts$Filtersets$Bidmetrics; + class Resource$Bidders$Accounts$Filtersets$Bidresponseerrors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseerrors = Resource$Bidders$Accounts$Filtersets$Bidresponseerrors; + class Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Accounts$Filtersets$Bidresponseswithoutbids; + class Resource$Bidders$Accounts$Filtersets$Filteredbidrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbidrequests = Resource$Bidders$Accounts$Filtersets$Filteredbidrequests; + class Resource$Bidders$Accounts$Filtersets$Filteredbids { + constructor(context) { + this.context = context; + this.creatives = new Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives(this.context); + this.details = new Resource$Bidders$Accounts$Filtersets$Filteredbids$Details(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids = Resource$Bidders$Accounts$Filtersets$Filteredbids; + class Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives = Resource$Bidders$Accounts$Filtersets$Filteredbids$Creatives; + class Resource$Bidders$Accounts$Filtersets$Filteredbids$Details { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Filteredbids$Details = Resource$Bidders$Accounts$Filtersets$Filteredbids$Details; + class Resource$Bidders$Accounts$Filtersets$Impressionmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Impressionmetrics = Resource$Bidders$Accounts$Filtersets$Impressionmetrics; + class Resource$Bidders$Accounts$Filtersets$Losingbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Losingbids = Resource$Bidders$Accounts$Filtersets$Losingbids; + class Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids = Resource$Bidders$Accounts$Filtersets$Nonbillablewinningbids; + class Resource$Bidders$Filtersets { + constructor(context) { + this.context = context; + this.bidMetrics = new Resource$Bidders$Filtersets$Bidmetrics(this.context); + this.bidResponseErrors = new Resource$Bidders$Filtersets$Bidresponseerrors(this.context); + this.bidResponsesWithoutBids = new Resource$Bidders$Filtersets$Bidresponseswithoutbids(this.context); + this.filteredBidRequests = new Resource$Bidders$Filtersets$Filteredbidrequests(this.context); + this.filteredBids = new Resource$Bidders$Filtersets$Filteredbids(this.context); + this.impressionMetrics = new Resource$Bidders$Filtersets$Impressionmetrics(this.context); + this.losingBids = new Resource$Bidders$Filtersets$Losingbids(this.context); + this.nonBillableWinningBids = new Resource$Bidders$Filtersets$Nonbillablewinningbids(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['ownerName'], + pathParams: ['ownerName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+ownerName}/filterSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ownerName'], + pathParams: ['ownerName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets = Resource$Bidders$Filtersets; + class Resource$Bidders$Filtersets$Bidmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidmetrics = Resource$Bidders$Filtersets$Bidmetrics; + class Resource$Bidders$Filtersets$Bidresponseerrors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponseErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseerrors = Resource$Bidders$Filtersets$Bidresponseerrors; + class Resource$Bidders$Filtersets$Bidresponseswithoutbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/bidResponsesWithoutBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Bidresponseswithoutbids = Resource$Bidders$Filtersets$Bidresponseswithoutbids; + class Resource$Bidders$Filtersets$Filteredbidrequests { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBidRequests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbidrequests = Resource$Bidders$Filtersets$Filteredbidrequests; + class Resource$Bidders$Filtersets$Filteredbids { + constructor(context) { + this.context = context; + this.creatives = new Resource$Bidders$Filtersets$Filteredbids$Creatives(this.context); + this.details = new Resource$Bidders$Filtersets$Filteredbids$Details(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/filteredBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids = Resource$Bidders$Filtersets$Filteredbids; + class Resource$Bidders$Filtersets$Filteredbids$Creatives { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Creatives = Resource$Bidders$Filtersets$Filteredbids$Creatives; + class Resource$Bidders$Filtersets$Filteredbids$Details { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2beta1/{+filterSetName}/filteredBids/{creativeStatusId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName', 'creativeStatusId'], + pathParams: ['creativeStatusId', 'filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Filteredbids$Details = Resource$Bidders$Filtersets$Filteredbids$Details; + class Resource$Bidders$Filtersets$Impressionmetrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/impressionMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Impressionmetrics = Resource$Bidders$Filtersets$Impressionmetrics; + class Resource$Bidders$Filtersets$Losingbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/losingBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Losingbids = Resource$Bidders$Filtersets$Losingbids; + class Resource$Bidders$Filtersets$Nonbillablewinningbids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexchangebuyer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+filterSetName}/nonBillableWinningBids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterSetName'], + pathParams: ['filterSetName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer2_v2beta1.Resource$Bidders$Filtersets$Nonbillablewinningbids = Resource$Bidders$Filtersets$Nonbillablewinningbids; +})(adexchangebuyer2_v2beta1 = exports.adexchangebuyer2_v2beta1 || (exports.adexchangebuyer2_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 99631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.adexchangebuyer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_2_1 = __nccwpck_require__(88085); +const v1_3_1 = __nccwpck_require__(86861); +const v1_4_1 = __nccwpck_require__(78830); +exports.VERSIONS = { + 'v1.2': v1_2_1.adexchangebuyer_v1_2.Adexchangebuyer, + 'v1.3': v1_3_1.adexchangebuyer_v1_3.Adexchangebuyer, + 'v1.4': v1_4_1.adexchangebuyer_v1_4.Adexchangebuyer, +}; +function adexchangebuyer(versionOrOptions) { + return googleapis_common_1.getAPI('adexchangebuyer', versionOrOptions, exports.VERSIONS, this); +} +exports.adexchangebuyer = adexchangebuyer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 88085: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adexchangebuyer_v1_2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adexchangebuyer_v1_2; +(function (adexchangebuyer_v1_2) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.2'); + * + * @namespace adexchangebuyer + * @type {Function} + * @version v1.2 + * @variation v1.2 + * @param {object=} options Options for Adexchangebuyer + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.creatives = new Resource$Creatives(this.context); + } + } + adexchangebuyer_v1_2.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_2.Resource$Accounts = Resource$Accounts; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.2/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.2/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_2.Resource$Creatives = Resource$Creatives; +})(adexchangebuyer_v1_2 = exports.adexchangebuyer_v1_2 || (exports.adexchangebuyer_v1_2 = {})); +//# sourceMappingURL=v1.2.js.map + +/***/ }), + +/***/ 86861: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adexchangebuyer_v1_3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adexchangebuyer_v1_3; +(function (adexchangebuyer_v1_3) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.3'); + * + * @namespace adexchangebuyer + * @type {Function} + * @version v1.3 + * @variation v1.3 + * @param {object=} options Options for Adexchangebuyer + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.billingInfo = new Resource$Billinginfo(this.context); + this.budget = new Resource$Budget(this.context); + this.creatives = new Resource$Creatives(this.context); + this.directDeals = new Resource$Directdeals(this.context); + this.performanceReport = new Resource$Performancereport(this.context); + this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); + } + } + adexchangebuyer_v1_3.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Accounts = Resource$Accounts; + class Resource$Billinginfo { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/billinginfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Billinginfo = Resource$Billinginfo; + class Resource$Budget { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Budget = Resource$Budget; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Creatives = Resource$Creatives; + class Resource$Directdeals { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/directdeals/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/directdeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Directdeals = Resource$Directdeals; + class Resource$Performancereport { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/performancereport').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'endDateTime', 'startDateTime'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Performancereport = Resource$Performancereport; + class Resource$Pretargetingconfig { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.3/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_3.Resource$Pretargetingconfig = Resource$Pretargetingconfig; +})(adexchangebuyer_v1_3 = exports.adexchangebuyer_v1_3 || (exports.adexchangebuyer_v1_3 = {})); +//# sourceMappingURL=v1.3.js.map + +/***/ }), + +/***/ 78830: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adexchangebuyer_v1_4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adexchangebuyer_v1_4; +(function (adexchangebuyer_v1_4) { + /** + * Ad Exchange Buyer API + * + * Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports. + * + * @example + * const {google} = require('googleapis'); + * const adexchangebuyer = google.adexchangebuyer('v1.4'); + * + * @namespace adexchangebuyer + * @type {Function} + * @version v1.4 + * @variation v1.4 + * @param {object=} options Options for Adexchangebuyer + */ + class Adexchangebuyer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.billingInfo = new Resource$Billinginfo(this.context); + this.budget = new Resource$Budget(this.context); + this.creatives = new Resource$Creatives(this.context); + this.marketplacedeals = new Resource$Marketplacedeals(this.context); + this.marketplacenotes = new Resource$Marketplacenotes(this.context); + this.marketplaceprivateauction = new Resource$Marketplaceprivateauction(this.context); + this.performanceReport = new Resource$Performancereport(this.context); + this.pretargetingConfig = new Resource$Pretargetingconfig(this.context); + this.products = new Resource$Products(this.context); + this.proposals = new Resource$Proposals(this.context); + this.pubprofiles = new Resource$Pubprofiles(this.context); + } + } + adexchangebuyer_v1_4.Adexchangebuyer = Adexchangebuyer; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Accounts = Resource$Accounts; + class Resource$Billinginfo { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/billinginfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Billinginfo = Resource$Billinginfo; + class Resource$Budget { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/billinginfo/{accountId}/{billingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'billingId'], + pathParams: ['accountId', 'billingId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Budget = Resource$Budget; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + addDeal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listDeals(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/listDeals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId'], + pathParams: ['accountId', 'buyerCreativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeDeal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'buyerCreativeId', 'dealId'], + pathParams: ['accountId', 'buyerCreativeId', 'dealId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Creatives = Resource$Creatives; + class Resource$Marketplacedeals { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/delete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/deals/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Marketplacedeals = Resource$Marketplacedeals; + class Resource$Marketplacenotes { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Marketplacenotes = Resource$Marketplacenotes; + class Resource$Marketplaceprivateauction { + constructor(context) { + this.context = context; + } + updateproposal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/privateauction/{privateAuctionId}/updateproposal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['privateAuctionId'], + pathParams: ['privateAuctionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Marketplaceprivateauction = Resource$Marketplaceprivateauction; + class Resource$Performancereport { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/performancereport').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'endDateTime', 'startDateTime'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Performancereport = Resource$Performancereport; + class Resource$Pretargetingconfig { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/pretargetingconfigs/{accountId}/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'configId'], + pathParams: ['accountId', 'configId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Pretargetingconfig = Resource$Pretargetingconfig; + class Resource$Products { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId'], + pathParams: ['productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/products/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Products = Resource$Products; + class Resource$Proposals { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/{proposalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/proposals/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setupcomplete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/setupcomplete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['proposalId'], + pathParams: ['proposalId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adexchangebuyer/v1.4/proposals/{proposalId}/{revisionNumber}/{updateAction}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['proposalId', 'revisionNumber', 'updateAction'], + pathParams: ['proposalId', 'revisionNumber', 'updateAction'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Proposals = Resource$Proposals; + class Resource$Pubprofiles { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adexchangebuyer/v1.4/publisher/{accountId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexchangebuyer_v1_4.Resource$Pubprofiles = Resource$Pubprofiles; +})(adexchangebuyer_v1_4 = exports.adexchangebuyer_v1_4 || (exports.adexchangebuyer_v1_4 = {})); +//# sourceMappingURL=v1.4.js.map + +/***/ }), + +/***/ 72656: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.adexperiencereport = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(37165); +exports.VERSIONS = { + v1: v1_1.adexperiencereport_v1.Adexperiencereport, +}; +function adexperiencereport(versionOrOptions) { + return googleapis_common_1.getAPI('adexperiencereport', versionOrOptions, exports.VERSIONS, this); +} +exports.adexperiencereport = adexperiencereport; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 37165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adexperiencereport_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adexperiencereport_v1; +(function (adexperiencereport_v1) { + /** + * Ad Experience Report API + * + * Views Ad Experience Report data, and gets a list of sites that have a significant number of annoying ads. + * + * @example + * const {google} = require('googleapis'); + * const adexperiencereport = google.adexperiencereport('v1'); + * + * @namespace adexperiencereport + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Adexperiencereport + */ + class Adexperiencereport { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.sites = new Resource$Sites(this.context); + this.violatingSites = new Resource$Violatingsites(this.context); + } + } + adexperiencereport_v1.Adexperiencereport = Adexperiencereport; + class Resource$Sites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexperiencereport_v1.Resource$Sites = Resource$Sites; + class Resource$Violatingsites { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://adexperiencereport.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/violatingSites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adexperiencereport_v1.Resource$Violatingsites = Resource$Violatingsites; +})(adexperiencereport_v1 = exports.adexperiencereport_v1 || (exports.adexperiencereport_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 62711: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.admin_datatransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var admin_datatransfer_v1; +(function (admin_datatransfer_v1) { + /** + * Admin Data Transfer API + * + * Transfers user data from one user to another. + * + * @example + * const {google} = require('googleapis'); + * const admin = google.admin('datatransfer_v1'); + * + * @namespace admin + * @type {Function} + * @version datatransfer_v1 + * @variation datatransfer_v1 + * @param {object=} options Options for Admin + */ + class Admin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.applications = new Resource$Applications(this.context); + this.transfers = new Resource$Transfers(this.context); + } + } + admin_datatransfer_v1.Admin = Admin; + class Resource$Applications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/applications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_datatransfer_v1.Resource$Applications = Resource$Applications; + class Resource$Transfers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/transfers/{dataTransferId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['dataTransferId'], + pathParams: ['dataTransferId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/datatransfer/v1/transfers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_datatransfer_v1.Resource$Transfers = Resource$Transfers; +})(admin_datatransfer_v1 = exports.admin_datatransfer_v1 || (exports.admin_datatransfer_v1 = {})); +//# sourceMappingURL=datatransfer_v1.js.map + +/***/ }), + +/***/ 29426: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.admin_directory_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var admin_directory_v1; +(function (admin_directory_v1) { + /** + * Admin Directory API + * + * Manages enterprise resources such as users and groups, administrative notifications, security features, and more. + * + * @example + * const {google} = require('googleapis'); + * const admin = google.admin('directory_v1'); + * + * @namespace admin + * @type {Function} + * @version directory_v1 + * @variation directory_v1 + * @param {object=} options Options for Admin + */ + class Admin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.asps = new Resource$Asps(this.context); + this.channels = new Resource$Channels(this.context); + this.chromeosdevices = new Resource$Chromeosdevices(this.context); + this.customers = new Resource$Customers(this.context); + this.domainAliases = new Resource$Domainaliases(this.context); + this.domains = new Resource$Domains(this.context); + this.groups = new Resource$Groups(this.context); + this.members = new Resource$Members(this.context); + this.mobiledevices = new Resource$Mobiledevices(this.context); + this.notifications = new Resource$Notifications(this.context); + this.orgunits = new Resource$Orgunits(this.context); + this.privileges = new Resource$Privileges(this.context); + this.resources = new Resource$Resources(this.context); + this.roleAssignments = new Resource$Roleassignments(this.context); + this.roles = new Resource$Roles(this.context); + this.schemas = new Resource$Schemas(this.context); + this.tokens = new Resource$Tokens(this.context); + this.users = new Resource$Users(this.context); + this.verificationCodes = new Resource$Verificationcodes(this.context); + } + } + admin_directory_v1.Admin = Admin; + class Resource$Asps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps/{codeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'codeId'], + pathParams: ['codeId', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/asps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Asps = Resource$Asps; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/admin/directory_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Channels = Resource$Channels; + class Resource$Chromeosdevices { + constructor(context) { + this.context = context; + } + action(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveDevicesToOu(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/moveDevicesToOu').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/chromeos/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'deviceId'], + pathParams: ['customerId', 'deviceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Chromeosdevices = Resource$Chromeosdevices; + class Resource$Customers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customers/{customerKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerKey'], + pathParams: ['customerKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Customers = Resource$Customers; + class Resource$Domainaliases { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/domainaliases/{domainAliasName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'domainAliasName'], + pathParams: ['customer', 'domainAliasName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domainaliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Domainaliases = Resource$Domainaliases; + class Resource$Domains { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/domains/{domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'domainName'], + pathParams: ['customer', 'domainName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Domains = Resource$Domains; + class Resource$Groups { + constructor(context) { + this.context = context; + this.aliases = new Resource$Groups$Aliases(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Groups = Resource$Groups; + class Resource$Groups$Aliases { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey', 'alias'], + pathParams: ['alias', 'groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Groups$Aliases = Resource$Groups$Aliases; + class Resource$Members { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + hasMember(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/hasMember/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/groups/{groupKey}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupKey'], + pathParams: ['groupKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/groups/{groupKey}/members/{memberKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupKey', 'memberKey'], + pathParams: ['groupKey', 'memberKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Members = Resource$Members; + class Resource$Mobiledevices { + constructor(context) { + this.context = context; + } + action(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}/action').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/mobile/{resourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'resourceId'], + pathParams: ['customerId', 'resourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/devices/mobile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Mobiledevices = Resource$Mobiledevices; + class Resource$Notifications { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'notificationId'], + pathParams: ['customer', 'notificationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'notificationId'], + pathParams: ['customer', 'notificationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/notifications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'notificationId'], + pathParams: ['customer', 'notificationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/notifications/{notificationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'notificationId'], + pathParams: ['customer', 'notificationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Notifications = Resource$Notifications; + class Resource$Orgunits { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/orgunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/orgunits{/orgUnitPath*}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'orgUnitPath'], + pathParams: ['customerId', 'orgUnitPath'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Orgunits = Resource$Orgunits; + class Resource$Privileges { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roles/ALL/privileges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Privileges = Resource$Privileges; + class Resource$Resources { + constructor(context) { + this.context = context; + this.buildings = new Resource$Resources$Buildings(this.context); + this.calendars = new Resource$Resources$Calendars(this.context); + this.features = new Resource$Resources$Features(this.context); + } + } + admin_directory_v1.Resource$Resources = Resource$Resources; + class Resource$Resources$Buildings { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/buildings/{buildingId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'buildingId'], + pathParams: ['buildingId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Resources$Buildings = Resource$Resources$Buildings; + class Resource$Resources$Calendars { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/calendars/{calendarResourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'calendarResourceId'], + pathParams: ['calendarResourceId', 'customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Resources$Calendars = Resource$Resources$Calendars; + class Resource$Resources$Features { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{oldName}/rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer', 'oldName'], + pathParams: ['customer', 'oldName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/resources/features/{featureKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'featureKey'], + pathParams: ['customer', 'featureKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Resources$Features = Resource$Resources$Features; + class Resource$Roleassignments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roleassignments/{roleAssignmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'roleAssignmentId'], + pathParams: ['customer', 'roleAssignmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customer}/roleassignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Roleassignments = Resource$Roleassignments; + class Resource$Roles { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customer'], + pathParams: ['customer'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customer}/roles/{roleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customer', 'roleId'], + pathParams: ['customer', 'roleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Roles = Resource$Roles; + class Resource$Schemas { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/customer/{customerId}/schemas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/customer/{customerId}/schemas/{schemaKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId', 'schemaKey'], + pathParams: ['customerId', 'schemaKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Schemas = Resource$Schemas; + class Resource$Tokens { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens/{clientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'clientId'], + pathParams: ['clientId', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/tokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Tokens = Resource$Tokens; + class Resource$Users { + constructor(context) { + this.context = context; + this.aliases = new Resource$Users$Aliases(this.context); + this.photos = new Resource$Users$Photos(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + makeAdmin(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/makeAdmin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Users = Resource$Users; + class Resource$Users$Aliases { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey', 'alias'], + pathParams: ['alias', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/aliases/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Users$Aliases = Resource$Users$Aliases; + class Resource$Users$Photos { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/photos/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Users$Photos = Resource$Users$Photos; + class Resource$Verificationcodes { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/users/{userKey}/verificationCodes/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/directory/v1/users/{userKey}/verificationCodes/invalidate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/directory/v1/users/{userKey}/verificationCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey'], + pathParams: ['userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_directory_v1.Resource$Verificationcodes = Resource$Verificationcodes; +})(admin_directory_v1 = exports.admin_directory_v1 || (exports.admin_directory_v1 = {})); +//# sourceMappingURL=directory_v1.js.map + +/***/ }), + +/***/ 17379: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.admin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const datatransfer_v1_1 = __nccwpck_require__(62711); +const directory_v1_1 = __nccwpck_require__(29426); +const reports_v1_1 = __nccwpck_require__(99595); +exports.VERSIONS = { + datatransfer_v1: datatransfer_v1_1.admin_datatransfer_v1.Admin, + directory_v1: directory_v1_1.admin_directory_v1.Admin, + reports_v1: reports_v1_1.admin_reports_v1.Admin, +}; +function admin(versionOrOptions) { + return googleapis_common_1.getAPI('admin', versionOrOptions, exports.VERSIONS, this); +} +exports.admin = admin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 99595: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.admin_reports_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var admin_reports_v1; +(function (admin_reports_v1) { + /** + * Admin Reports API + * + * Fetches reports for the administrators of G Suite customers about the usage, collaboration, security, and risk for their users. + * + * @example + * const {google} = require('googleapis'); + * const admin = google.admin('reports_v1'); + * + * @namespace admin + * @type {Function} + * @version reports_v1 + * @variation reports_v1 + * @param {object=} options Options for Admin + */ + class Admin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + this.channels = new Resource$Channels(this.context); + this.customerUsageReports = new Resource$Customerusagereports(this.context); + this.entityUsageReports = new Resource$Entityusagereports(this.context); + this.userUsageReport = new Resource$Userusagereport(this.context); + } + } + admin_reports_v1.Admin = Admin; + class Resource$Activities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'applicationName'], + pathParams: ['applicationName', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/activity/users/{userKey}/applications/{applicationName}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userKey', 'applicationName'], + pathParams: ['applicationName', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_reports_v1.Resource$Activities = Resource$Activities; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports/v1/admin/reports_v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_reports_v1.Resource$Channels = Resource$Channels; + class Resource$Customerusagereports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports/v1/usage/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['date'], + pathParams: ['date'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_reports_v1.Resource$Customerusagereports = Resource$Customerusagereports; + class Resource$Entityusagereports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/admin/reports/v1/usage/{entityType}/{entityKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['entityType', 'entityKey', 'date'], + pathParams: ['date', 'entityKey', 'entityType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_reports_v1.Resource$Entityusagereports = Resource$Entityusagereports; + class Resource$Userusagereport { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/admin/reports/v1/usage/users/{userKey}/dates/{date}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userKey', 'date'], + pathParams: ['date', 'userKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admin_reports_v1.Resource$Userusagereport = Resource$Userusagereport; +})(admin_reports_v1 = exports.admin_reports_v1 || (exports.admin_reports_v1 = {})); +//# sourceMappingURL=reports_v1.js.map + +/***/ }), + +/***/ 77212: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.admob = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(34633); +exports.VERSIONS = { + v1: v1_1.admob_v1.Admob, +}; +function admob(versionOrOptions) { + return googleapis_common_1.getAPI('admob', versionOrOptions, exports.VERSIONS, this); +} +exports.admob = admob; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 34633: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.admob_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var admob_v1; +(function (admob_v1) { + /** + * AdMob API + * + * The Google AdMob API lets you programmatically get reports on earnings. + * + * @example + * const {google} = require('googleapis'); + * const admob = google.admob('v1'); + * + * @namespace admob + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Admob + */ + class Admob { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + admob_v1.Admob = Admob; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.mediationReport = new Resource$Accounts$Mediationreport(this.context); + this.networkReport = new Resource$Accounts$Networkreport(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admob_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Mediationreport { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/mediationReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admob_v1.Resource$Accounts$Mediationreport = Resource$Accounts$Mediationreport; + class Resource$Accounts$Networkreport { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admob.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/networkReport:generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + admob_v1.Resource$Accounts$Networkreport = Resource$Accounts$Networkreport; +})(admob_v1 = exports.admob_v1 || (exports.admob_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 83399: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.adsense = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_4_1 = __nccwpck_require__(99309); +exports.VERSIONS = { + 'v1.4': v1_4_1.adsense_v1_4.Adsense, +}; +function adsense(versionOrOptions) { + return googleapis_common_1.getAPI('adsense', versionOrOptions, exports.VERSIONS, this); +} +exports.adsense = adsense; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 99309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adsense_v1_4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adsense_v1_4; +(function (adsense_v1_4) { + /** + * AdSense Management API + * + * Accesses AdSense publishers' inventory and generates performance reports. + * + * @example + * const {google} = require('googleapis'); + * const adsense = google.adsense('v1.4'); + * + * @namespace adsense + * @type {Function} + * @version v1.4 + * @variation v1.4 + * @param {object=} options Options for Adsense + */ + class Adsense { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.adclients = new Resource$Adclients(this.context); + this.adunits = new Resource$Adunits(this.context); + this.alerts = new Resource$Alerts(this.context); + this.customchannels = new Resource$Customchannels(this.context); + this.metadata = new Resource$Metadata(this.context); + this.payments = new Resource$Payments(this.context); + this.reports = new Resource$Reports(this.context); + this.savedadstyles = new Resource$Savedadstyles(this.context); + this.urlchannels = new Resource$Urlchannels(this.context); + } + } + adsense_v1_4.Adsense = Adsense; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.adclients = new Resource$Accounts$Adclients(this.context); + this.adunits = new Resource$Accounts$Adunits(this.context); + this.alerts = new Resource$Accounts$Alerts(this.context); + this.customchannels = new Resource$Accounts$Customchannels(this.context); + this.payments = new Resource$Accounts$Payments(this.context); + this.reports = new Resource$Accounts$Reports(this.context); + this.savedadstyles = new Resource$Accounts$Savedadstyles(this.context); + this.urlchannels = new Resource$Accounts$Urlchannels(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { + constructor(context) { + this.context = context; + } + getAdCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + this.customchannels = new Resource$Accounts$Adunits$Customchannels(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAdCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Adunits$Customchannels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Adunits$Customchannels = Resource$Accounts$Adunits$Customchannels; + class Resource$Accounts$Alerts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'alertId'], + pathParams: ['accountId', 'alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Alerts = Resource$Accounts$Alerts; + class Resource$Accounts$Customchannels { + constructor(context) { + this.context = context; + this.adunits = new Resource$Accounts$Customchannels$Adunits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'customChannelId'], + pathParams: ['accountId', 'adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Customchannels = Resource$Accounts$Customchannels; + class Resource$Accounts$Customchannels$Adunits { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'customChannelId'], + pathParams: ['accountId', 'adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Customchannels$Adunits = Resource$Accounts$Customchannels$Adunits; + class Resource$Accounts$Payments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/payments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Payments = Resource$Accounts$Payments; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + this.saved = new Resource$Accounts$Reports$Saved(this.context); + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'startDate', 'endDate'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Accounts$Reports$Saved { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'savedReportId'], + pathParams: ['accountId', 'savedReportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/reports/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Reports$Saved = Resource$Accounts$Reports$Saved; + class Resource$Accounts$Savedadstyles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'savedAdStyleId'], + pathParams: ['accountId', 'savedAdStyleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Savedadstyles = Resource$Accounts$Savedadstyles; + class Resource$Accounts$Urlchannels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Accounts$Urlchannels = Resource$Accounts$Urlchannels; + class Resource$Adclients { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Adclients = Resource$Adclients; + class Resource$Adunits { + constructor(context) { + this.context = context; + this.customchannels = new Resource$Adunits$Customchannels(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAdCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Adunits = Resource$Adunits; + class Resource$Adunits$Customchannels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/adunits/{adUnitId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'adUnitId'], + pathParams: ['adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Adunits$Customchannels = Resource$Adunits$Customchannels; + class Resource$Alerts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Alerts = Resource$Alerts; + class Resource$Customchannels { + constructor(context) { + this.context = context; + this.adunits = new Resource$Customchannels$Adunits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Customchannels = Resource$Customchannels; + class Resource$Customchannels$Adunits { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/customchannels/{customChannelId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Customchannels$Adunits = Resource$Customchannels$Adunits; + class Resource$Metadata { + constructor(context) { + this.context = context; + this.dimensions = new Resource$Metadata$Dimensions(this.context); + this.metrics = new Resource$Metadata$Metrics(this.context); + } + } + adsense_v1_4.Resource$Metadata = Resource$Metadata; + class Resource$Metadata$Dimensions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/metadata/dimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Metadata$Dimensions = Resource$Metadata$Dimensions; + class Resource$Metadata$Metrics { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/metadata/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Metadata$Metrics = Resource$Metadata$Metrics; + class Resource$Payments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/payments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Payments = Resource$Payments; + class Resource$Reports { + constructor(context) { + this.context = context; + this.saved = new Resource$Reports$Saved(this.context); + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['startDate', 'endDate'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Reports = Resource$Reports; + class Resource$Reports$Saved { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/reports/{savedReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['savedReportId'], + pathParams: ['savedReportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/reports/saved').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Reports$Saved = Resource$Reports$Saved; + class Resource$Savedadstyles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/savedadstyles/{savedAdStyleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['savedAdStyleId'], + pathParams: ['savedAdStyleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/savedadstyles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Savedadstyles = Resource$Savedadstyles; + class Resource$Urlchannels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsense_v1_4.Resource$Urlchannels = Resource$Urlchannels; +})(adsense_v1_4 = exports.adsense_v1_4 || (exports.adsense_v1_4 = {})); +//# sourceMappingURL=v1.4.js.map + +/***/ }), + +/***/ 63182: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.adsensehost = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v4_1_1 = __nccwpck_require__(18272); +exports.VERSIONS = { + 'v4.1': v4_1_1.adsensehost_v4_1.Adsensehost, +}; +function adsensehost(versionOrOptions) { + return googleapis_common_1.getAPI('adsensehost', versionOrOptions, exports.VERSIONS, this); +} +exports.adsensehost = adsensehost; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 18272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.adsensehost_v4_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var adsensehost_v4_1; +(function (adsensehost_v4_1) { + /** + * AdSense Host API + * + * Generates performance reports, generates ad codes, and provides publisher management capabilities for AdSense Hosts. + * + * @example + * const {google} = require('googleapis'); + * const adsensehost = google.adsensehost('v4.1'); + * + * @namespace adsensehost + * @type {Function} + * @version v4.1 + * @variation v4.1 + * @param {object=} options Options for Adsensehost + */ + class Adsensehost { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.adclients = new Resource$Adclients(this.context); + this.associationsessions = new Resource$Associationsessions(this.context); + this.customchannels = new Resource$Customchannels(this.context); + this.reports = new Resource$Reports(this.context); + this.urlchannels = new Resource$Urlchannels(this.context); + } + } + adsensehost_v4_1.Adsensehost = Adsensehost; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.adclients = new Resource$Accounts$Adclients(this.context); + this.adunits = new Resource$Accounts$Adunits(this.context); + this.reports = new Resource$Accounts$Reports(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['filterAdClientId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Adclients { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Accounts$Adclients = Resource$Accounts$Adclients; + class Resource$Accounts$Adunits { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAdCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits/{adUnitId}/adcode').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId', 'adUnitId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'adClientId', 'adUnitId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/accounts/{accountId}/adclients/{adClientId}/adunits').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'adClientId'], + pathParams: ['accountId', 'adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Accounts$Adunits = Resource$Accounts$Adunits; + class Resource$Accounts$Reports { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/accounts/{accountId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'startDate', 'endDate'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Accounts$Reports = Resource$Accounts$Reports; + class Resource$Adclients { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/adclients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Adclients = Resource$Adclients; + class Resource$Associationsessions { + constructor(context) { + this.context = context; + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/associationsessions/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productCode', 'websiteUrl'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/associationsessions/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['token'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Associationsessions = Resource$Associationsessions; + class Resource$Customchannels { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels/{customChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId', 'customChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['adClientId', 'customChannelId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/customchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Customchannels = Resource$Customchannels; + class Resource$Reports { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['startDate', 'endDate'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Reports = Resource$Reports; + class Resource$Urlchannels { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels/{urlChannelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['adClientId', 'urlChannelId'], + pathParams: ['adClientId', 'urlChannelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/adsensehost/v4.1/adclients/{adClientId}/urlchannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['adClientId'], + pathParams: ['adClientId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + adsensehost_v4_1.Resource$Urlchannels = Resource$Urlchannels; +})(adsensehost_v4_1 = exports.adsensehost_v4_1 || (exports.adsensehost_v4_1 = {})); +//# sourceMappingURL=v4.1.js.map + +/***/ }), + +/***/ 86448: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.alertcenter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(92344); +exports.VERSIONS = { + v1beta1: v1beta1_1.alertcenter_v1beta1.Alertcenter, +}; +function alertcenter(versionOrOptions) { + return googleapis_common_1.getAPI('alertcenter', versionOrOptions, exports.VERSIONS, this); +} +exports.alertcenter = alertcenter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 92344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.alertcenter_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var alertcenter_v1beta1; +(function (alertcenter_v1beta1) { + /** + * G Suite Alert Center API + * + * Manages alerts on issues affecting your domain. + * + * @example + * const {google} = require('googleapis'); + * const alertcenter = google.alertcenter('v1beta1'); + * + * @namespace alertcenter + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Alertcenter + */ + class Alertcenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.alerts = new Resource$Alerts(this.context); + this.v1beta1 = new Resource$V1beta1(this.context); + } + } + alertcenter_v1beta1.Alertcenter = Alertcenter; + class Resource$Alerts { + constructor(context) { + this.context = context; + this.feedback = new Resource$Alerts$Feedback(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUndelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts:batchUndelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + alertcenter_v1beta1.Resource$Alerts = Resource$Alerts; + class Resource$Alerts$Feedback { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/alerts/{alertId}/feedback').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['alertId'], + pathParams: ['alertId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + alertcenter_v1beta1.Resource$Alerts$Feedback = Resource$Alerts$Feedback; + class Resource$V1beta1 { + constructor(context) { + this.context = context; + } + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://alertcenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + alertcenter_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(alertcenter_v1beta1 = exports.alertcenter_v1beta1 || (exports.alertcenter_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 31306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.analytics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(69545); +exports.VERSIONS = { + v3: v3_1.analytics_v3.Analytics, +}; +function analytics(versionOrOptions) { + return googleapis_common_1.getAPI('analytics', versionOrOptions, exports.VERSIONS, this); +} +exports.analytics = analytics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 69545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.analytics_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var analytics_v3; +(function (analytics_v3) { + /** + * Google Analytics API + * + * Views and manages your Google Analytics data. + * + * @example + * const {google} = require('googleapis'); + * const analytics = google.analytics('v3'); + * + * @namespace analytics + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Analytics + */ + class Analytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.data = new Resource$Data(this.context); + this.management = new Resource$Management(this.context); + this.metadata = new Resource$Metadata(this.context); + this.provisioning = new Resource$Provisioning(this.context); + this.userDeletion = new Resource$Userdeletion(this.context); + } + } + analytics_v3.Analytics = Analytics; + class Resource$Data { + constructor(context) { + this.context = context; + this.ga = new Resource$Data$Ga(this.context); + this.mcf = new Resource$Data$Mcf(this.context); + this.realtime = new Resource$Data$Realtime(this.context); + } + } + analytics_v3.Resource$Data = Resource$Data; + class Resource$Data$Ga { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/data/ga').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Data$Ga = Resource$Data$Ga; + class Resource$Data$Mcf { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/data/mcf').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'start-date', 'end-date', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Data$Mcf = Resource$Data$Mcf; + class Resource$Data$Realtime { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/data/realtime').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ids', 'metrics'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Data$Realtime = Resource$Data$Realtime; + class Resource$Management { + constructor(context) { + this.context = context; + this.accounts = new Resource$Management$Accounts(this.context); + this.accountSummaries = new Resource$Management$Accountsummaries(this.context); + this.accountUserLinks = new Resource$Management$Accountuserlinks(this.context); + this.clientId = new Resource$Management$Clientid(this.context); + this.customDataSources = new Resource$Management$Customdatasources(this.context); + this.customDimensions = new Resource$Management$Customdimensions(this.context); + this.customMetrics = new Resource$Management$Custommetrics(this.context); + this.experiments = new Resource$Management$Experiments(this.context); + this.filters = new Resource$Management$Filters(this.context); + this.goals = new Resource$Management$Goals(this.context); + this.profileFilterLinks = new Resource$Management$Profilefilterlinks(this.context); + this.profiles = new Resource$Management$Profiles(this.context); + this.profileUserLinks = new Resource$Management$Profileuserlinks(this.context); + this.remarketingAudience = new Resource$Management$Remarketingaudience(this.context); + this.segments = new Resource$Management$Segments(this.context); + this.unsampledReports = new Resource$Management$Unsampledreports(this.context); + this.uploads = new Resource$Management$Uploads(this.context); + this.webproperties = new Resource$Management$Webproperties(this.context); + this.webPropertyAdWordsLinks = new Resource$Management$Webpropertyadwordslinks(this.context); + this.webpropertyUserLinks = new Resource$Management$Webpropertyuserlinks(this.context); + } + } + analytics_v3.Resource$Management = Resource$Management; + class Resource$Management$Accounts { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Accounts = Resource$Management$Accounts; + class Resource$Management$Accountsummaries { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accountSummaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Accountsummaries = Resource$Management$Accountsummaries; + class Resource$Management$Accountuserlinks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'linkId'], + pathParams: ['accountId', 'linkId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'linkId'], + pathParams: ['accountId', 'linkId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Accountuserlinks = Resource$Management$Accountuserlinks; + class Resource$Management$Clientid { + constructor(context) { + this.context = context; + } + hashClientId(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Clientid = Resource$Management$Clientid; + class Resource$Management$Customdatasources { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Customdatasources = Resource$Management$Customdatasources; + class Resource$Management$Customdimensions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDimensions/{customDimensionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDimensionId'], + pathParams: ['accountId', 'customDimensionId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Customdimensions = Resource$Management$Customdimensions; + class Resource$Management$Custommetrics { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customMetrics/{customMetricId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customMetricId'], + pathParams: ['accountId', 'customMetricId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Custommetrics = Resource$Management$Custommetrics; + class Resource$Management$Experiments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/experiments/{experimentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'experimentId', + ], + pathParams: ['accountId', 'experimentId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Experiments = Resource$Management$Experiments; + class Resource$Management$Filters { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/filters/{filterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'filterId'], + pathParams: ['accountId', 'filterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Filters = Resource$Management$Filters; + class Resource$Management$Goals { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/goals/{goalId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'goalId'], + pathParams: ['accountId', 'goalId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Goals = Resource$Management$Goals; + class Resource$Management$Profilefilterlinks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/profileFilterLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Profilefilterlinks = Resource$Management$Profilefilterlinks; + class Resource$Management$Profiles { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Profiles = Resource$Management$Profiles; + class Resource$Management$Profileuserlinks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId', 'linkId'], + pathParams: ['accountId', 'linkId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Profileuserlinks = Resource$Management$Profileuserlinks; + class Resource$Management$Remarketingaudience { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/remarketingAudiences/{remarketingAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'remarketingAudienceId'], + pathParams: ['accountId', 'remarketingAudienceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Remarketingaudience = Resource$Management$Remarketingaudience; + class Resource$Management$Segments { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/segments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Segments = Resource$Management$Segments; + class Resource$Management$Unsampledreports { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'unsampledReportId', + ], + pathParams: [ + 'accountId', + 'profileId', + 'unsampledReportId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports/{unsampledReportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'profileId', + 'unsampledReportId', + ], + pathParams: [ + 'accountId', + 'profileId', + 'unsampledReportId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/profiles/{profileId}/unsampledReports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'profileId'], + pathParams: ['accountId', 'profileId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Unsampledreports = Resource$Management$Unsampledreports; + class Resource$Management$Uploads { + constructor(context) { + this.context = context; + } + deleteUploadData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/deleteUploadData').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads/{uploadId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'customDataSourceId', + 'uploadId', + ], + pathParams: [ + 'accountId', + 'customDataSourceId', + 'uploadId', + 'webPropertyId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + uploadData(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/analytics/v3/management/accounts/{accountId}/webproperties/{webPropertyId}/customDataSources/{customDataSourceId}/uploads').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['accountId', 'webPropertyId', 'customDataSourceId'], + pathParams: ['accountId', 'customDataSourceId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Uploads = Resource$Management$Uploads; + class Resource$Management$Webproperties { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Webproperties = Resource$Management$Webproperties; + class Resource$Management$Webpropertyadwordslinks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityAdWordsLinks/{webPropertyAdWordsLinkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'accountId', + 'webPropertyId', + 'webPropertyAdWordsLinkId', + ], + pathParams: ['accountId', 'webPropertyAdWordsLinkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Webpropertyadwordslinks = Resource$Management$Webpropertyadwordslinks; + class Resource$Management$Webpropertyuserlinks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'linkId'], + pathParams: ['accountId', 'linkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId'], + pathParams: ['accountId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/accounts/{accountId}/webproperties/{webPropertyId}/entityUserLinks/{linkId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'webPropertyId', 'linkId'], + pathParams: ['accountId', 'linkId', 'webPropertyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Management$Webpropertyuserlinks = Resource$Management$Webpropertyuserlinks; + class Resource$Metadata { + constructor(context) { + this.context = context; + this.columns = new Resource$Metadata$Columns(this.context); + } + } + analytics_v3.Resource$Metadata = Resource$Metadata; + class Resource$Metadata$Columns { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/metadata/{reportType}/columns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportType'], + pathParams: ['reportType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Metadata$Columns = Resource$Metadata$Columns; + class Resource$Provisioning { + constructor(context) { + this.context = context; + } + createAccountTicket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/provisioning/createAccountTicket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createAccountTree(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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/provisioning/createAccountTree').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Provisioning = Resource$Provisioning; + class Resource$Userdeletion { + constructor(context) { + this.context = context; + this.userDeletionRequest = new Resource$Userdeletion$Userdeletionrequest(this.context); + } + } + analytics_v3.Resource$Userdeletion = Resource$Userdeletion; + class Resource$Userdeletion$Userdeletionrequest { + constructor(context) { + this.context = context; + } + upsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + 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.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analytics_v3.Resource$Userdeletion$Userdeletionrequest = Resource$Userdeletion$Userdeletionrequest; +})(analytics_v3 = exports.analytics_v3 || (exports.analytics_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 91490: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.analyticsreporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v4_1 = __nccwpck_require__(19975); +exports.VERSIONS = { + v4: v4_1.analyticsreporting_v4.Analyticsreporting, +}; +function analyticsreporting(versionOrOptions) { + return googleapis_common_1.getAPI('analyticsreporting', versionOrOptions, exports.VERSIONS, this); +} +exports.analyticsreporting = analyticsreporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 19975: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.analyticsreporting_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var analyticsreporting_v4; +(function (analyticsreporting_v4) { + /** + * Analytics Reporting API + * + * Accesses Analytics report data. + * + * @example + * const {google} = require('googleapis'); + * const analyticsreporting = google.analyticsreporting('v4'); + * + * @namespace analyticsreporting + * @type {Function} + * @version v4 + * @variation v4 + * @param {object=} options Options for Analyticsreporting + */ + class Analyticsreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.reports = new Resource$Reports(this.context); + this.userActivity = new Resource$Useractivity(this.context); + } + } + analyticsreporting_v4.Analyticsreporting = Analyticsreporting; + class Resource$Reports { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/reports:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analyticsreporting_v4.Resource$Reports = Resource$Reports; + class Resource$Useractivity { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://analyticsreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/userActivity:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + analyticsreporting_v4.Resource$Useractivity = Resource$Useractivity; +})(analyticsreporting_v4 = exports.analyticsreporting_v4 || (exports.analyticsreporting_v4 = {})); +//# sourceMappingURL=v4.js.map + +/***/ }), + +/***/ 80424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.androiddeviceprovisioning = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(5806); +exports.VERSIONS = { + v1: v1_1.androiddeviceprovisioning_v1.Androiddeviceprovisioning, +}; +function androiddeviceprovisioning(versionOrOptions) { + return googleapis_common_1.getAPI('androiddeviceprovisioning', versionOrOptions, exports.VERSIONS, this); +} +exports.androiddeviceprovisioning = androiddeviceprovisioning; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 5806: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androiddeviceprovisioning_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androiddeviceprovisioning_v1; +(function (androiddeviceprovisioning_v1) { + /** + * Android Device Provisioning Partner API + * + * Automates Android zero-touch enrollment for device resellers, customers, and EMMs. + * + * @example + * const {google} = require('googleapis'); + * const androiddeviceprovisioning = google.androiddeviceprovisioning('v1'); + * + * @namespace androiddeviceprovisioning + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Androiddeviceprovisioning + */ + class Androiddeviceprovisioning { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.operations = new Resource$Operations(this.context); + this.partners = new Resource$Partners(this.context); + } + } + androiddeviceprovisioning_v1.Androiddeviceprovisioning = Androiddeviceprovisioning; + class Resource$Customers { + constructor(context) { + this.context = context; + this.configurations = new Resource$Customers$Configurations(this.context); + this.devices = new Resource$Customers$Devices(this.context); + this.dpcs = new Resource$Customers$Dpcs(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers = Resource$Customers; + class Resource$Customers$Configurations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers$Configurations = Resource$Customers$Configurations; + class Resource$Customers$Devices { + constructor(context) { + this.context = context; + } + applyConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices:applyConfiguration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices:removeConfiguration').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Dpcs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dpcs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Customers$Dpcs = Resource$Customers$Dpcs; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Operations = Resource$Operations; + class Resource$Partners { + constructor(context) { + this.context = context; + this.customers = new Resource$Partners$Customers(this.context); + this.devices = new Resource$Partners$Devices(this.context); + this.vendors = new Resource$Partners$Vendors(this.context); + } + } + androiddeviceprovisioning_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Customers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Customers = Resource$Partners$Customers; + class Resource$Partners$Devices { + constructor(context) { + this.context = context; + } + claim(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + claimAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:claimAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + findByIdentifier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByIdentifier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + findByOwner(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:findByOwner').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + metadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/partners/{+metadataOwnerId}/devices/{+deviceId}/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['metadataOwnerId', 'deviceId'], + pathParams: ['deviceId', 'metadataOwnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unclaimAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:unclaimAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateMetadataAsync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/devices:updateMetadataAsync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Devices = Resource$Partners$Devices; + class Resource$Partners$Vendors { + constructor(context) { + this.context = context; + this.customers = new Resource$Partners$Vendors$Customers(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/vendors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Vendors = Resource$Partners$Vendors; + class Resource$Partners$Vendors$Customers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androiddeviceprovisioning.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androiddeviceprovisioning_v1.Resource$Partners$Vendors$Customers = Resource$Partners$Vendors$Customers; +})(androiddeviceprovisioning_v1 = exports.androiddeviceprovisioning_v1 || (exports.androiddeviceprovisioning_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 51378: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.androidenterprise = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(93603); +exports.VERSIONS = { + v1: v1_1.androidenterprise_v1.Androidenterprise, +}; +function androidenterprise(versionOrOptions) { + return googleapis_common_1.getAPI('androidenterprise', versionOrOptions, exports.VERSIONS, this); +} +exports.androidenterprise = androidenterprise; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 93603: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidenterprise_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androidenterprise_v1; +(function (androidenterprise_v1) { + /** + * Google Play EMM API + * + * Manages the deployment of apps to Android for Work users. + * + * @example + * const {google} = require('googleapis'); + * const androidenterprise = google.androidenterprise('v1'); + * + * @namespace androidenterprise + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Androidenterprise + */ + class Androidenterprise { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.devices = new Resource$Devices(this.context); + this.enterprises = new Resource$Enterprises(this.context); + this.entitlements = new Resource$Entitlements(this.context); + this.grouplicenses = new Resource$Grouplicenses(this.context); + this.grouplicenseusers = new Resource$Grouplicenseusers(this.context); + this.installs = new Resource$Installs(this.context); + this.managedconfigurationsfordevice = new Resource$Managedconfigurationsfordevice(this.context); + this.managedconfigurationsforuser = new Resource$Managedconfigurationsforuser(this.context); + this.managedconfigurationssettings = new Resource$Managedconfigurationssettings(this.context); + this.permissions = new Resource$Permissions(this.context); + this.products = new Resource$Products(this.context); + this.serviceaccountkeys = new Resource$Serviceaccountkeys(this.context); + this.storelayoutclusters = new Resource$Storelayoutclusters(this.context); + this.storelayoutpages = new Resource$Storelayoutpages(this.context); + this.users = new Resource$Users(this.context); + this.webapps = new Resource$Webapps(this.context); + } + } + androidenterprise_v1.Androidenterprise = Androidenterprise; + class Resource$Devices { + constructor(context) { + this.context = context; + } + forceReportUpload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/forceReportUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/state').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Devices = Resource$Devices; + class Resource$Enterprises { + constructor(context) { + this.context = context; + } + acknowledgeNotificationSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/acknowledgeNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + completeSignup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/completeSignup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createWebToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/createWebToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enroll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/enroll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['token'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateSignupUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/signupUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['domain'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pullNotificationSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/pullNotificationSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendTestPushNotification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/sendTestPushNotification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/account').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setStoreLayout(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unenroll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/unenroll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Enterprises = Resource$Enterprises; + class Resource$Entitlements { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/entitlements/{entitlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'entitlementId'], + pathParams: ['enterpriseId', 'entitlementId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Entitlements = Resource$Entitlements; + class Resource$Grouplicenses { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'groupLicenseId'], + pathParams: ['enterpriseId', 'groupLicenseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Grouplicenses = Resource$Grouplicenses; + class Resource$Grouplicenseusers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/groupLicenses/{groupLicenseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'groupLicenseId'], + pathParams: ['enterpriseId', 'groupLicenseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Grouplicenseusers = Resource$Grouplicenseusers; + class Resource$Installs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/installs/{installId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId', 'installId'], + pathParams: ['deviceId', 'enterpriseId', 'installId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Installs = Resource$Installs; + class Resource$Managedconfigurationsfordevice { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId', 'deviceId'], + pathParams: ['deviceId', 'enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/devices/{deviceId}/managedConfigurationsForDevice/{managedConfigurationForDeviceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'deviceId', + 'managedConfigurationForDeviceId', + ], + pathParams: [ + 'deviceId', + 'enterpriseId', + 'managedConfigurationForDeviceId', + 'userId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationsfordevice = Resource$Managedconfigurationsfordevice; + class Resource$Managedconfigurationsforuser { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/managedConfigurationsForUser/{managedConfigurationForUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'enterpriseId', + 'userId', + 'managedConfigurationForUserId', + ], + pathParams: ['enterpriseId', 'managedConfigurationForUserId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationsforuser = Resource$Managedconfigurationsforuser; + class Resource$Managedconfigurationssettings { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/managedConfigurationsSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Managedconfigurationssettings = Resource$Managedconfigurationssettings; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['permissionId'], + pathParams: ['permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Permissions = Resource$Permissions; + class Resource$Products { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateApprovalUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAppRestrictionsSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/appRestrictionsSchema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unapprove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/products/{productId}/unapprove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'productId'], + pathParams: ['enterpriseId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Products = Resource$Products; + class Resource$Serviceaccountkeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys/{keyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'keyId'], + pathParams: ['enterpriseId', 'keyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/serviceAccountKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Serviceaccountkeys = Resource$Serviceaccountkeys; + class Resource$Storelayoutclusters { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId', 'clusterId'], + pathParams: ['clusterId', 'enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Storelayoutclusters = Resource$Storelayoutclusters; + class Resource$Storelayoutpages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/storeLayout/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'pageId'], + pathParams: ['enterpriseId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Storelayoutpages = Resource$Storelayoutpages; + class Resource$Users { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateAuthenticationToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/authenticationToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidenterprise/v1/enterprises/{enterpriseId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'email'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revokeDeviceAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/deviceAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revokeToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAvailableProductSet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}/availableProductSet').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'userId'], + pathParams: ['enterpriseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Users = Resource$Users; + class Resource$Webapps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['enterpriseId'], + pathParams: ['enterpriseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidenterprise/v1/enterprises/{enterpriseId}/webApps/{webAppId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['enterpriseId', 'webAppId'], + pathParams: ['enterpriseId', 'webAppId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidenterprise_v1.Resource$Webapps = Resource$Webapps; +})(androidenterprise_v1 = exports.androidenterprise_v1 || (exports.androidenterprise_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 62596: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.androidmanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(23977); +exports.VERSIONS = { + v1: v1_1.androidmanagement_v1.Androidmanagement, +}; +function androidmanagement(versionOrOptions) { + return googleapis_common_1.getAPI('androidmanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.androidmanagement = androidmanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 23977: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidmanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androidmanagement_v1; +(function (androidmanagement_v1) { + /** + * Android Management API + * + * The Android Management API provides remote enterprise management of Android devices and apps. + * + * @example + * const {google} = require('googleapis'); + * const androidmanagement = google.androidmanagement('v1'); + * + * @namespace androidmanagement + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Androidmanagement + */ + class Androidmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.enterprises = new Resource$Enterprises(this.context); + this.signupUrls = new Resource$Signupurls(this.context); + } + } + androidmanagement_v1.Androidmanagement = Androidmanagement; + class Resource$Enterprises { + constructor(context) { + this.context = context; + this.applications = new Resource$Enterprises$Applications(this.context); + this.devices = new Resource$Enterprises$Devices(this.context); + this.enrollmentTokens = new Resource$Enterprises$Enrollmenttokens(this.context); + this.policies = new Resource$Enterprises$Policies(this.context); + this.webApps = new Resource$Enterprises$Webapps(this.context); + this.webTokens = new Resource$Enterprises$Webtokens(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/enterprises').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises = Resource$Enterprises; + class Resource$Enterprises$Applications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Applications = Resource$Enterprises$Applications; + class Resource$Enterprises$Devices { + constructor(context) { + this.context = context; + this.operations = new Resource$Enterprises$Devices$Operations(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + issueCommand(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:issueCommand').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Devices = Resource$Enterprises$Devices; + class Resource$Enterprises$Devices$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Devices$Operations = Resource$Enterprises$Devices$Operations; + class Resource$Enterprises$Enrollmenttokens { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/enrollmentTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Enrollmenttokens = Resource$Enterprises$Enrollmenttokens; + class Resource$Enterprises$Policies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Policies = Resource$Enterprises$Policies; + class Resource$Enterprises$Webapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Webapps = Resource$Enterprises$Webapps; + class Resource$Enterprises$Webtokens { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/webTokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Enterprises$Webtokens = Resource$Enterprises$Webtokens; + class Resource$Signupurls { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://androidmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/signupUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidmanagement_v1.Resource$Signupurls = Resource$Signupurls; +})(androidmanagement_v1 = exports.androidmanagement_v1 || (exports.androidmanagement_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 29088: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.androidpublisher = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1_1 = __nccwpck_require__(56291); +const v1_1 = __nccwpck_require__(95079); +const v2_1 = __nccwpck_require__(25758); +const v3_1 = __nccwpck_require__(44771); +exports.VERSIONS = { + 'v1.1': v1_1_1.androidpublisher_v1_1.Androidpublisher, + v1: v1_1.androidpublisher_v1.Androidpublisher, + v2: v2_1.androidpublisher_v2.Androidpublisher, + v3: v3_1.androidpublisher_v3.Androidpublisher, +}; +function androidpublisher(versionOrOptions) { + return googleapis_common_1.getAPI('androidpublisher', versionOrOptions, exports.VERSIONS, this); +} +exports.androidpublisher = androidpublisher; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 56291: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidpublisher_v1_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androidpublisher_v1_1; +(function (androidpublisher_v1_1) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v1.1'); + * + * @namespace androidpublisher + * @type {Function} + * @version v1.1 + * @variation v1.1 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.inapppurchases = new Resource$Inapppurchases(this.context); + } + } + androidpublisher_v1_1.Androidpublisher = Androidpublisher; + class Resource$Inapppurchases { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v1.1/applications/{packageName}/inapp/{productId}/purchases/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v1_1.Resource$Inapppurchases = Resource$Inapppurchases; +})(androidpublisher_v1_1 = exports.androidpublisher_v1_1 || (exports.androidpublisher_v1_1 = {})); +//# sourceMappingURL=v1.1.js.map + +/***/ }), + +/***/ 95079: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidpublisher_v1 = void 0; +var androidpublisher_v1; +(function (androidpublisher_v1) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v1'); + * + * @namespace androidpublisher + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + androidpublisher_v1.Androidpublisher = Androidpublisher; +})(androidpublisher_v1 = exports.androidpublisher_v1 || (exports.androidpublisher_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 25758: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidpublisher_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androidpublisher_v2; +(function (androidpublisher_v2) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v2'); + * + * @namespace androidpublisher + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.purchases = new Resource$Purchases(this.context); + } + } + androidpublisher_v2.Androidpublisher = Androidpublisher; + class Resource$Purchases { + constructor(context) { + this.context = context; + this.products = new Resource$Purchases$Products(this.context); + this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); + } + } + androidpublisher_v2.Resource$Purchases = Resource$Purchases; + class Resource$Purchases$Products { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v2/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v2.Resource$Purchases$Products = Resource$Purchases$Products; + class Resource$Purchases$Voidedpurchases { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v2/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v2.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; +})(androidpublisher_v2 = exports.androidpublisher_v2 || (exports.androidpublisher_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 44771: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.androidpublisher_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var androidpublisher_v3; +(function (androidpublisher_v3) { + /** + * Google Play Developer API + * + * Accesses Android application developers' Google Play accounts. + * + * @example + * const {google} = require('googleapis'); + * const androidpublisher = google.androidpublisher('v3'); + * + * @namespace androidpublisher + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Androidpublisher + */ + class Androidpublisher { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.edits = new Resource$Edits(this.context); + this.inappproducts = new Resource$Inappproducts(this.context); + this.internalappsharingartifacts = new Resource$Internalappsharingartifacts(this.context); + this.orders = new Resource$Orders(this.context); + this.purchases = new Resource$Purchases(this.context); + this.reviews = new Resource$Reviews(this.context); + this.systemapks = new Resource$Systemapks(this.context); + } + } + androidpublisher_v3.Androidpublisher = Androidpublisher; + class Resource$Edits { + constructor(context) { + this.context = context; + this.apks = new Resource$Edits$Apks(this.context); + this.bundles = new Resource$Edits$Bundles(this.context); + this.deobfuscationfiles = new Resource$Edits$Deobfuscationfiles(this.context); + this.details = new Resource$Edits$Details(this.context); + this.expansionfiles = new Resource$Edits$Expansionfiles(this.context); + this.images = new Resource$Edits$Images(this.context); + this.listings = new Resource$Edits$Listings(this.context); + this.testers = new Resource$Edits$Testers(this.context); + this.tracks = new Resource$Edits$Tracks(this.context); + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/androidpublisher/v3/applications/{packageName}/edits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits = Resource$Edits; + class Resource$Edits$Apks { + constructor(context) { + this.context = context; + } + addexternallyhosted(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/externallyHosted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Apks = Resource$Edits$Apks; + class Resource$Edits$Bundles { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/bundles').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Bundles = Resource$Edits$Bundles; + class Resource$Edits$Deobfuscationfiles { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/deobfuscationFiles/{deobfuscationFileType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'deobfuscationFileType', + ], + pathParams: [ + 'apkVersionCode', + 'deobfuscationFileType', + 'editId', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Deobfuscationfiles = Resource$Edits$Deobfuscationfiles; + class Resource$Edits$Details { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/details').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Details = Resource$Edits$Details; + class Resource$Edits$Expansionfiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/apks/{apkVersionCode}/expansionFiles/{expansionFileType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [ + 'packageName', + 'editId', + 'apkVersionCode', + 'expansionFileType', + ], + pathParams: [ + 'apkVersionCode', + 'editId', + 'expansionFileType', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Expansionfiles = Resource$Edits$Expansionfiles; + class Resource$Edits$Images { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}/{imageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'packageName', + 'editId', + 'language', + 'imageType', + 'imageId', + ], + pathParams: [ + 'editId', + 'imageId', + 'imageType', + 'language', + 'packageName', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteall(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName', 'editId', 'language', 'imageType'], + pathParams: ['editId', 'imageType', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Images = Resource$Edits$Images; + class Resource$Edits$Listings { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteall(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/listings/{language}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'language'], + pathParams: ['editId', 'language', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Listings = Resource$Edits$Listings; + class Resource$Edits$Testers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/testers/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Testers = Resource$Edits$Testers; + class Resource$Edits$Tracks { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'editId'], + pathParams: ['editId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/edits/{editId}/tracks/{track}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'editId', 'track'], + pathParams: ['editId', 'packageName', 'track'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Edits$Tracks = Resource$Edits$Tracks; + class Resource$Inappproducts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/inappproducts/{sku}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['packageName', 'sku'], + pathParams: ['packageName', 'sku'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Inappproducts = Resource$Inappproducts; + class Resource$Internalappsharingartifacts { + constructor(context) { + this.context = context; + } + uploadapk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/apk').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + uploadbundle(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/androidpublisher/v3/applications/internalappsharing/{packageName}/artifacts/bundle').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Internalappsharingartifacts = Resource$Internalappsharingartifacts; + class Resource$Orders { + constructor(context) { + this.context = context; + } + refund(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/orders/{orderId}:refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'orderId'], + pathParams: ['orderId', 'packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Orders = Resource$Orders; + class Resource$Purchases { + constructor(context) { + this.context = context; + this.products = new Resource$Purchases$Products(this.context); + this.subscriptions = new Resource$Purchases$Subscriptions(this.context); + this.voidedpurchases = new Resource$Purchases$Voidedpurchases(this.context); + } + } + androidpublisher_v3.Resource$Purchases = Resource$Purchases; + class Resource$Purchases$Products { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/products/{productId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'productId', 'token'], + pathParams: ['packageName', 'productId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Products = Resource$Purchases$Products; + class Resource$Purchases$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + defer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:defer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + refund(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revoke(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/subscriptions/{subscriptionId}/tokens/{token}:revoke').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'subscriptionId', 'token'], + pathParams: ['packageName', 'subscriptionId', 'token'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Subscriptions = Resource$Purchases$Subscriptions; + class Resource$Purchases$Voidedpurchases { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/purchases/voidedpurchases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Purchases$Voidedpurchases = Resource$Purchases$Voidedpurchases; + class Resource$Reviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'reviewId'], + pathParams: ['packageName', 'reviewId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName'], + pathParams: ['packageName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reply(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/reviews/{reviewId}:reply').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'reviewId'], + pathParams: ['packageName', 'reviewId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Reviews = Resource$Reviews; + class Resource$Systemapks { + constructor(context) { + this.context = context; + this.variants = new Resource$Systemapks$Variants(this.context); + } + } + androidpublisher_v3.Resource$Systemapks = Resource$Systemapks; + class Resource$Systemapks$Variants { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['packageName', 'versionCode'], + pathParams: ['packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}:download').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode', 'variantId'], + pathParams: ['packageName', 'variantId', 'versionCode'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants/{variantId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode', 'variantId'], + pathParams: ['packageName', 'variantId', 'versionCode'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/androidpublisher/v3/applications/{packageName}/systemApks/{versionCode}/variants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['packageName', 'versionCode'], + pathParams: ['packageName', 'versionCode'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + androidpublisher_v3.Resource$Systemapks$Variants = Resource$Systemapks$Variants; +})(androidpublisher_v3 = exports.androidpublisher_v3 || (exports.androidpublisher_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 9054: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.appengine = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(75846); +const v1alpha_1 = __nccwpck_require__(12034); +const v1beta_1 = __nccwpck_require__(67831); +exports.VERSIONS = { + v1: v1_1.appengine_v1.Appengine, + v1alpha: v1alpha_1.appengine_v1alpha.Appengine, + v1beta: v1beta_1.appengine_v1beta.Appengine, +}; +function appengine(versionOrOptions) { + return googleapis_common_1.getAPI('appengine', versionOrOptions, exports.VERSIONS, this); +} +exports.appengine = appengine; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75846: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.appengine_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var appengine_v1; +(function (appengine_v1) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1'); + * + * @namespace appengine + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Appengine + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + } + } + appengine_v1.Appengine = Appengine; + class Resource$Apps { + constructor(context) { + this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.firewall = new Resource$Apps$Firewall(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + this.services = new Resource$Apps$Services(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Firewall { + constructor(context) { + this.context = context; + this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); + } + } + appengine_v1.Resource$Apps$Firewall = Resource$Apps$Firewall; + class Resource$Apps$Firewall$Ingressrules { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; +})(appengine_v1 = exports.appengine_v1 || (exports.appengine_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 12034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.appengine_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var appengine_v1alpha; +(function (appengine_v1alpha) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1alpha'); + * + * @namespace appengine + * @type {Function} + * @version v1alpha + * @variation v1alpha + * @param {object=} options Options for Appengine + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + } + } + appengine_v1alpha.Appengine = Appengine; + class Resource$Apps { + constructor(context) { + this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + } + } + appengine_v1alpha.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1alpha/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1alpha.Resource$Apps$Operations = Resource$Apps$Operations; +})(appengine_v1alpha = exports.appengine_v1alpha || (exports.appengine_v1alpha = {})); +//# sourceMappingURL=v1alpha.js.map + +/***/ }), + +/***/ 67831: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.appengine_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var appengine_v1beta; +(function (appengine_v1beta) { + /** + * App Engine Admin API + * + * Provisions and manages developers' App Engine applications. + * + * @example + * const {google} = require('googleapis'); + * const appengine = google.appengine('v1beta'); + * + * @namespace appengine + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Appengine + */ + class Appengine { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apps = new Resource$Apps(this.context); + } + } + appengine_v1beta.Appengine = Appengine; + class Resource$Apps { + constructor(context) { + this.context = context; + this.authorizedCertificates = new Resource$Apps$Authorizedcertificates(this.context); + this.authorizedDomains = new Resource$Apps$Authorizeddomains(this.context); + this.domainMappings = new Resource$Apps$Domainmappings(this.context); + this.firewall = new Resource$Apps$Firewall(this.context); + this.locations = new Resource$Apps$Locations(this.context); + this.operations = new Resource$Apps$Operations(this.context); + this.services = new Resource$Apps$Services(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + repair(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}:repair').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps = Resource$Apps; + class Resource$Apps$Authorizedcertificates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/authorizedCertificates/{authorizedCertificatesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'authorizedCertificatesId'], + pathParams: ['appsId', 'authorizedCertificatesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Authorizedcertificates = Resource$Apps$Authorizedcertificates; + class Resource$Apps$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/authorizedDomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Authorizeddomains = Resource$Apps$Authorizeddomains; + class Resource$Apps$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/domainMappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/domainMappings/{domainMappingsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'domainMappingsId'], + pathParams: ['appsId', 'domainMappingsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Domainmappings = Resource$Apps$Domainmappings; + class Resource$Apps$Firewall { + constructor(context) { + this.context = context; + this.ingressRules = new Resource$Apps$Firewall$Ingressrules(this.context); + } + } + appengine_v1beta.Resource$Apps$Firewall = Resource$Apps$Firewall; + class Resource$Apps$Firewall$Ingressrules { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/firewall/ingressRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/firewall/ingressRules/{ingressRulesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'ingressRulesId'], + pathParams: ['appsId', 'ingressRulesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Firewall$Ingressrules = Resource$Apps$Firewall$Ingressrules; + class Resource$Apps$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/locations/{locationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'locationsId'], + pathParams: ['appsId', 'locationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Locations = Resource$Apps$Locations; + class Resource$Apps$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/operations/{operationsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'operationsId'], + pathParams: ['appsId', 'operationsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Operations = Resource$Apps$Operations; + class Resource$Apps$Services { + constructor(context) { + this.context = context; + this.versions = new Resource$Apps$Services$Versions(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId'], + pathParams: ['appsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Services = Resource$Apps$Services; + class Resource$Apps$Services$Versions { + constructor(context) { + this.context = context; + this.instances = new Resource$Apps$Services$Versions$Instances(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/apps/{appsId}/services/{servicesId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId'], + pathParams: ['appsId', 'servicesId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Services$Versions = Resource$Apps$Services$Versions; + class Resource$Apps$Services$Versions$Instances { + constructor(context) { + this.context = context; + } + debug(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}:debug').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances/{instancesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId', 'instancesId'], + pathParams: ['appsId', 'instancesId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://appengine.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta/apps/{appsId}/services/{servicesId}/versions/{versionsId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appsId', 'servicesId', 'versionsId'], + pathParams: ['appsId', 'servicesId', 'versionsId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appengine_v1beta.Resource$Apps$Services$Versions$Instances = Resource$Apps$Services$Versions$Instances; +})(appengine_v1beta = exports.appengine_v1beta || (exports.appengine_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 1516: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.appsactivity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(68794); +exports.VERSIONS = { + v1: v1_1.appsactivity_v1.Appsactivity, +}; +function appsactivity(versionOrOptions) { + return googleapis_common_1.getAPI('appsactivity', versionOrOptions, exports.VERSIONS, this); +} +exports.appsactivity = appsactivity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 68794: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.appsactivity_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var appsactivity_v1; +(function (appsactivity_v1) { + /** + * Drive Activity API + * + * Provides a historical view of activity. + * + * @example + * const {google} = require('googleapis'); + * const appsactivity = google.appsactivity('v1'); + * + * @namespace appsactivity + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Appsactivity + */ + class Appsactivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + } + } + appsactivity_v1.Appsactivity = Appsactivity; + class Resource$Activities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/appsactivity/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + appsactivity_v1.Resource$Activities = Resource$Activities; +})(appsactivity_v1 = exports.appsactivity_v1 || (exports.appsactivity_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 99767: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.bigquery = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(20701); +exports.VERSIONS = { + v2: v2_1.bigquery_v2.Bigquery, +}; +function bigquery(versionOrOptions) { + return googleapis_common_1.getAPI('bigquery', versionOrOptions, exports.VERSIONS, this); +} +exports.bigquery = bigquery; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 20701: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigquery_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigquery_v2; +(function (bigquery_v2) { + /** + * BigQuery API + * + * A data platform for customers to create, manage, share and query data. + * + * @example + * const {google} = require('googleapis'); + * const bigquery = google.bigquery('v2'); + * + * @namespace bigquery + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Bigquery + */ + class Bigquery { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.datasets = new Resource$Datasets(this.context); + this.jobs = new Resource$Jobs(this.context); + this.models = new Resource$Models(this.context); + this.projects = new Resource$Projects(this.context); + this.routines = new Resource$Routines(this.context); + this.tabledata = new Resource$Tabledata(this.context); + this.tables = new Resource$Tables(this.context); + } + } + bigquery_v2.Bigquery = Bigquery; + class Resource$Datasets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Datasets = Resource$Datasets; + class Resource$Jobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getQueryResults(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Jobs = Resource$Jobs; + class Resource$Models { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/models/{+modelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'modelId'], + pathParams: ['datasetId', 'modelId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Models = Resource$Models; + class Resource$Projects { + constructor(context) { + this.context = context; + } + getServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Projects = Resource$Projects; + class Resource$Routines { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{+projectId}/datasets/{+datasetId}/routines/{+routineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'routineId'], + pathParams: ['datasetId', 'projectId', 'routineId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Routines = Resource$Routines; + class Resource$Tabledata { + constructor(context) { + this.context = context; + } + insertAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/insertAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Tabledata = Resource$Tabledata; + class Resource$Tables { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'datasetId'], + pathParams: ['datasetId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/bigquery/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquery.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/bigquery/v2/projects/{projectId}/datasets/{datasetId}/tables/{tableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'datasetId', 'tableId'], + pathParams: ['datasetId', 'projectId', 'tableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquery_v2.Resource$Tables = Resource$Tables; +})(bigquery_v2 = exports.bigquery_v2 || (exports.bigquery_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 49581: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.bigqueryconnection = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(64454); +exports.VERSIONS = { + v1beta1: v1beta1_1.bigqueryconnection_v1beta1.Bigqueryconnection, +}; +function bigqueryconnection(versionOrOptions) { + return googleapis_common_1.getAPI('bigqueryconnection', versionOrOptions, exports.VERSIONS, this); +} +exports.bigqueryconnection = bigqueryconnection; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 64454: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigqueryconnection_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigqueryconnection_v1beta1; +(function (bigqueryconnection_v1beta1) { + /** + * BigQuery Connection API + * + * Allows users to manage BigQuery connections to external data sources. + * + * @example + * const {google} = require('googleapis'); + * const bigqueryconnection = google.bigqueryconnection('v1beta1'); + * + * @namespace bigqueryconnection + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Bigqueryconnection + */ + class Bigqueryconnection { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryconnection_v1beta1.Bigqueryconnection = Bigqueryconnection; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.connections = new Resource$Projects$Locations$Connections(this.context); + } + } + bigqueryconnection_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateCredential(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryconnection.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryconnection_v1beta1.Resource$Projects$Locations$Connections = Resource$Projects$Locations$Connections; +})(bigqueryconnection_v1beta1 = exports.bigqueryconnection_v1beta1 || (exports.bigqueryconnection_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 92115: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.bigquerydatatransfer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(5089); +exports.VERSIONS = { + v1: v1_1.bigquerydatatransfer_v1.Bigquerydatatransfer, +}; +function bigquerydatatransfer(versionOrOptions) { + return googleapis_common_1.getAPI('bigquerydatatransfer', versionOrOptions, exports.VERSIONS, this); +} +exports.bigquerydatatransfer = bigquerydatatransfer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 5089: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigquerydatatransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigquerydatatransfer_v1; +(function (bigquerydatatransfer_v1) { + /** + * BigQuery Data Transfer API + * + * Schedule queries or transfer external data from SaaS applications to Google BigQuery on a regular basis. + * + * @example + * const {google} = require('googleapis'); + * const bigquerydatatransfer = google.bigquerydatatransfer('v1'); + * + * @namespace bigquerydatatransfer + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Bigquerydatatransfer + */ + class Bigquerydatatransfer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigquerydatatransfer_v1.Bigquerydatatransfer = Bigquerydatatransfer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Datasources(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.transferConfigs = new Resource$Projects$Transferconfigs(this.context); + } + } + bigquerydatatransfer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Datasources = Resource$Projects$Datasources; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.dataSources = new Resource$Projects$Locations$Datasources(this.context); + this.transferConfigs = new Resource$Projects$Locations$Transferconfigs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasources { + constructor(context) { + this.context = context; + } + checkValidCreds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkValidCreds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Datasources = Resource$Projects$Locations$Datasources; + class Resource$Projects$Locations$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Locations$Transferconfigs$Runs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startManualRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs = Resource$Projects$Locations$Transferconfigs; + class Resource$Projects$Locations$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = new Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs = Resource$Projects$Locations$Transferconfigs$Runs; + class Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs = Resource$Projects$Locations$Transferconfigs$Runs$Transferlogs; + class Resource$Projects$Transferconfigs { + constructor(context) { + this.context = context; + this.runs = new Resource$Projects$Transferconfigs$Runs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + scheduleRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:scheduleRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startManualRuns(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:startManualRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs = Resource$Projects$Transferconfigs; + class Resource$Projects$Transferconfigs$Runs { + constructor(context) { + this.context = context; + this.transferLogs = new Resource$Projects$Transferconfigs$Runs$Transferlogs(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/runs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs = Resource$Projects$Transferconfigs$Runs; + class Resource$Projects$Transferconfigs$Runs$Transferlogs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigquerydatatransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/transferLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigquerydatatransfer_v1.Resource$Projects$Transferconfigs$Runs$Transferlogs = Resource$Projects$Transferconfigs$Runs$Transferlogs; +})(bigquerydatatransfer_v1 = exports.bigquerydatatransfer_v1 || (exports.bigquerydatatransfer_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 5379: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.bigqueryreservation = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(94531); +const v1alpha2_1 = __nccwpck_require__(17328); +const v1beta1_1 = __nccwpck_require__(98285); +exports.VERSIONS = { + v1: v1_1.bigqueryreservation_v1.Bigqueryreservation, + v1alpha2: v1alpha2_1.bigqueryreservation_v1alpha2.Bigqueryreservation, + v1beta1: v1beta1_1.bigqueryreservation_v1beta1.Bigqueryreservation, +}; +function bigqueryreservation(versionOrOptions) { + return googleapis_common_1.getAPI('bigqueryreservation', versionOrOptions, exports.VERSIONS, this); +} +exports.bigqueryreservation = bigqueryreservation; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 94531: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigqueryreservation_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigqueryreservation_v1; +(function (bigqueryreservation_v1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1'); + * + * @namespace bigqueryreservation + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Bigqueryreservation + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1.Bigqueryreservation = Bigqueryreservation; + class Resource$Operations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + merge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + split(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = new Resource$Projects$Locations$Reservations$Assignments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1 = exports.bigqueryreservation_v1 || (exports.bigqueryreservation_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 17328: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigqueryreservation_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigqueryreservation_v1alpha2; +(function (bigqueryreservation_v1alpha2) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1alpha2'); + * + * @namespace bigqueryreservation + * @type {Function} + * @version v1alpha2 + * @variation v1alpha2 + * @param {object=} options Options for Bigqueryreservation + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1alpha2.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.reservationGrants = new Resource$Projects$Locations$Reservationgrants(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + searchReservationGrants(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}:SearchReservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Reservationgrants { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservationGrants').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservationgrants = Resource$Projects$Locations$Reservationgrants; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.slotPools = new Resource$Projects$Locations$Reservations$Slotpools(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Slotpools { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/slotPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1alpha2.Resource$Projects$Locations$Reservations$Slotpools = Resource$Projects$Locations$Reservations$Slotpools; +})(bigqueryreservation_v1alpha2 = exports.bigqueryreservation_v1alpha2 || (exports.bigqueryreservation_v1alpha2 = {})); +//# sourceMappingURL=v1alpha2.js.map + +/***/ }), + +/***/ 98285: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigqueryreservation_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigqueryreservation_v1beta1; +(function (bigqueryreservation_v1beta1) { + /** + * BigQuery Reservation API + * + * A service to modify your BigQuery flat-rate reservations. + * + * @example + * const {google} = require('googleapis'); + * const bigqueryreservation = google.bigqueryreservation('v1beta1'); + * + * @namespace bigqueryreservation + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Bigqueryreservation + */ + class Bigqueryreservation { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + bigqueryreservation_v1beta1.Bigqueryreservation = Bigqueryreservation; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigqueryreservation_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.capacityCommitments = new Resource$Projects$Locations$Capacitycommitments(this.context); + this.reservations = new Resource$Projects$Locations$Reservations(this.context); + } + getBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchAssignments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:searchAssignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateBiReservation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Capacitycommitments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + merge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/capacityCommitments:merge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + split(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:split').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Capacitycommitments = Resource$Projects$Locations$Capacitycommitments; + class Resource$Projects$Locations$Reservations { + constructor(context) { + this.context = context; + this.assignments = new Resource$Projects$Locations$Reservations$Assignments(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations = Resource$Projects$Locations$Reservations; + class Resource$Projects$Locations$Reservations$Assignments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assignments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigqueryreservation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigqueryreservation_v1beta1.Resource$Projects$Locations$Reservations$Assignments = Resource$Projects$Locations$Reservations$Assignments; +})(bigqueryreservation_v1beta1 = exports.bigqueryreservation_v1beta1 || (exports.bigqueryreservation_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 13197: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.bigtableadmin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(19795); +const v2_1 = __nccwpck_require__(58440); +exports.VERSIONS = { + v1: v1_1.bigtableadmin_v1.Bigtableadmin, + v2: v2_1.bigtableadmin_v2.Bigtableadmin, +}; +function bigtableadmin(versionOrOptions) { + return googleapis_common_1.getAPI('bigtableadmin', versionOrOptions, exports.VERSIONS, this); +} +exports.bigtableadmin = bigtableadmin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 19795: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigtableadmin_v1 = void 0; +var bigtableadmin_v1; +(function (bigtableadmin_v1) { + /** + * Cloud Bigtable Admin API + * + * Administer your Cloud Bigtable tables and instances. + * + * @example + * const {google} = require('googleapis'); + * const bigtableadmin = google.bigtableadmin('v1'); + * + * @namespace bigtableadmin + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Bigtableadmin + */ + class Bigtableadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + bigtableadmin_v1.Bigtableadmin = Bigtableadmin; +})(bigtableadmin_v1 = exports.bigtableadmin_v1 || (exports.bigtableadmin_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 58440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.bigtableadmin_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var bigtableadmin_v2; +(function (bigtableadmin_v2) { + /** + * Cloud Bigtable Admin API + * + * Administer your Cloud Bigtable tables and instances. + * + * @example + * const {google} = require('googleapis'); + * const bigtableadmin = google.bigtableadmin('v2'); + * + * @namespace bigtableadmin + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Bigtableadmin + */ + class Bigtableadmin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + bigtableadmin_v2.Bigtableadmin = Bigtableadmin; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Operations = Resource$Operations; + class Resource$Operations$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Operations$Projects$Operations(this.context); + } + } + bigtableadmin_v2.Resource$Operations$Projects = Resource$Operations$Projects; + class Resource$Operations$Projects$Operations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Operations$Projects$Operations = Resource$Operations$Projects$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + bigtableadmin_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.appProfiles = new Resource$Projects$Instances$Appprofiles(this.context); + this.clusters = new Resource$Projects$Instances$Clusters(this.context); + this.tables = new Resource$Projects$Instances$Tables(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + partialUpdateInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Appprofiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/appProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Appprofiles = Resource$Projects$Instances$Appprofiles; + class Resource$Projects$Instances$Clusters { + constructor(context) { + this.context = context; + this.backups = new Resource$Projects$Instances$Clusters$Backups(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters = Resource$Projects$Instances$Clusters; + class Resource$Projects$Instances$Clusters$Backups { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Clusters$Backups = Resource$Projects$Instances$Clusters$Backups; + class Resource$Projects$Instances$Tables { + constructor(context) { + this.context = context; + } + checkConsistency(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:checkConsistency').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dropRowRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:dropRowRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateConsistencyToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:generateConsistencyToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyColumnFamilies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:modifyColumnFamilies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Instances$Tables = Resource$Projects$Instances$Tables; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://bigtableadmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + bigtableadmin_v2.Resource$Projects$Locations = Resource$Projects$Locations; +})(bigtableadmin_v2 = exports.bigtableadmin_v2 || (exports.bigtableadmin_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 7795: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.billingbudgets = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(86437); +exports.VERSIONS = { + v1beta1: v1beta1_1.billingbudgets_v1beta1.Billingbudgets, +}; +function billingbudgets(versionOrOptions) { + return googleapis_common_1.getAPI('billingbudgets', versionOrOptions, exports.VERSIONS, this); +} +exports.billingbudgets = billingbudgets; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 86437: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.billingbudgets_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var billingbudgets_v1beta1; +(function (billingbudgets_v1beta1) { + /** + * Cloud Billing Budget API + * + * The Cloud Billing Budget API stores Cloud Billing budgets, which define a budget plan and the rules to execute as spend is tracked against that plan. + * + * @example + * const {google} = require('googleapis'); + * const billingbudgets = google.billingbudgets('v1beta1'); + * + * @namespace billingbudgets + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Billingbudgets + */ + class Billingbudgets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + } + } + billingbudgets_v1beta1.Billingbudgets = Billingbudgets; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.budgets = new Resource$Billingaccounts$Budgets(this.context); + } + } + billingbudgets_v1beta1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Budgets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/budgets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://billingbudgets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + billingbudgets_v1beta1.Resource$Billingaccounts$Budgets = Resource$Billingaccounts$Budgets; +})(billingbudgets_v1beta1 = exports.billingbudgets_v1beta1 || (exports.billingbudgets_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 91853: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.binaryauthorization = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(29786); +const v1beta1_1 = __nccwpck_require__(2632); +exports.VERSIONS = { + v1: v1_1.binaryauthorization_v1.Binaryauthorization, + v1beta1: v1beta1_1.binaryauthorization_v1beta1.Binaryauthorization, +}; +function binaryauthorization(versionOrOptions) { + return googleapis_common_1.getAPI('binaryauthorization', versionOrOptions, exports.VERSIONS, this); +} +exports.binaryauthorization = binaryauthorization; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 29786: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.binaryauthorization_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var binaryauthorization_v1; +(function (binaryauthorization_v1) { + /** + * Binary Authorization API + * + * The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters. + * + * @example + * const {google} = require('googleapis'); + * const binaryauthorization = google.binaryauthorization('v1'); + * + * @namespace binaryauthorization + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Binaryauthorization + */ + class Binaryauthorization { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + binaryauthorization_v1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.policy = new Resource$Projects$Policy(this.context); + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1.Resource$Projects$Policy = Resource$Projects$Policy; +})(binaryauthorization_v1 = exports.binaryauthorization_v1 || (exports.binaryauthorization_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 2632: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.binaryauthorization_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var binaryauthorization_v1beta1; +(function (binaryauthorization_v1beta1) { + /** + * Binary Authorization API + * + * The management interface for Binary Authorization, a system providing policy control for images deployed to Kubernetes Engine clusters. + * + * @example + * const {google} = require('googleapis'); + * const binaryauthorization = google.binaryauthorization('v1beta1'); + * + * @namespace binaryauthorization + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Binaryauthorization + */ + class Binaryauthorization { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + binaryauthorization_v1beta1.Binaryauthorization = Binaryauthorization; + class Resource$Projects { + constructor(context) { + this.context = context; + this.attestors = new Resource$Projects$Attestors(this.context); + this.policy = new Resource$Projects$Policy(this.context); + } + getPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Attestors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/attestors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1beta1.Resource$Projects$Attestors = Resource$Projects$Attestors; + class Resource$Projects$Policy { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://binaryauthorization.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + binaryauthorization_v1beta1.Resource$Projects$Policy = Resource$Projects$Policy; +})(binaryauthorization_v1beta1 = exports.binaryauthorization_v1beta1 || (exports.binaryauthorization_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 226: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.blogger = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(92531); +const v3_1 = __nccwpck_require__(26675); +exports.VERSIONS = { + v2: v2_1.blogger_v2.Blogger, + v3: v3_1.blogger_v3.Blogger, +}; +function blogger(versionOrOptions) { + return googleapis_common_1.getAPI('blogger', versionOrOptions, exports.VERSIONS, this); +} +exports.blogger = blogger; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 92531: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.blogger_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var blogger_v2; +(function (blogger_v2) { + /** + * Blogger API v3 + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * const {google} = require('googleapis'); + * const blogger = google.blogger('v2'); + * + * @namespace blogger + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Blogger + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.posts = new Resource$Posts(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v2.Blogger = Blogger; + class Resource$Blogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v2.Resource$Blogs = Resource$Blogs; + class Resource$Comments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v2.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v2.Resource$Pages = Resource$Pages; + class Resource$Posts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v2.Resource$Posts = Resource$Posts; + class Resource$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v2.Resource$Users = Resource$Users; +})(blogger_v2 = exports.blogger_v2 || (exports.blogger_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 26675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.blogger_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var blogger_v3; +(function (blogger_v3) { + /** + * Blogger API v3 + * + * The Blogger API provides access to posts, comments and pages of a Blogger blog. + * + * @example + * const {google} = require('googleapis'); + * const blogger = google.blogger('v3'); + * + * @namespace blogger + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Blogger + */ + class Blogger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.blogs = new Resource$Blogs(this.context); + this.blogUserInfos = new Resource$Bloguserinfos(this.context); + this.comments = new Resource$Comments(this.context); + this.pages = new Resource$Pages(this.context); + this.pageViews = new Resource$Pageviews(this.context); + this.posts = new Resource$Posts(this.context); + this.postUserInfos = new Resource$Postuserinfos(this.context); + this.users = new Resource$Users(this.context); + } + } + blogger_v3.Blogger = Blogger; + class Resource$Blogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getByUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/byurl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listByUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Blogs = Resource$Blogs; + class Resource$Bloguserinfos { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Bloguserinfos = Resource$Bloguserinfos; + class Resource$Comments { + constructor(context) { + this.context = context; + } + approve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/approve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listByBlog(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/spam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v3/blogs/{blogId}/posts/{postId}/comments/{commentId}/removecontent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId', 'commentId'], + pathParams: ['blogId', 'commentId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Comments = Resource$Comments; + class Resource$Pages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pages/{pageId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['blogId', 'pageId'], + pathParams: ['blogId', 'pageId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Pages = Resource$Pages; + class Resource$Pageviews { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/pageviews').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Pageviews = Resource$Pageviews; + class Resource$Posts { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getByPath(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/bypath').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'path'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}/revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['blogId', 'q'], + pathParams: ['blogId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['blogId', 'postId'], + pathParams: ['blogId', 'postId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Posts = Resource$Posts; + class Resource$Postuserinfos { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts/{postId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId', 'postId'], + pathParams: ['blogId', 'postId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}/blogs/{blogId}/posts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'blogId'], + pathParams: ['blogId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Postuserinfos = Resource$Postuserinfos; + class Resource$Users { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://blogger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/users/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + blogger_v3.Resource$Users = Resource$Users; +})(blogger_v3 = exports.blogger_v3 || (exports.blogger_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 47930: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.books = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(59666); +exports.VERSIONS = { + v1: v1_1.books_v1.Books, +}; +function books(versionOrOptions) { + return googleapis_common_1.getAPI('books', versionOrOptions, exports.VERSIONS, this); +} +exports.books = books; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59666: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.books_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var books_v1; +(function (books_v1) { + /** + * Books API + * + * Searches for books and manages your Google Books library. + * + * @example + * const {google} = require('googleapis'); + * const books = google.books('v1'); + * + * @namespace books + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Books + */ + class Books { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bookshelves = new Resource$Bookshelves(this.context); + this.cloudloading = new Resource$Cloudloading(this.context); + this.dictionary = new Resource$Dictionary(this.context); + this.familysharing = new Resource$Familysharing(this.context); + this.layers = new Resource$Layers(this.context); + this.myconfig = new Resource$Myconfig(this.context); + this.mylibrary = new Resource$Mylibrary(this.context); + this.notification = new Resource$Notification(this.context); + this.onboarding = new Resource$Onboarding(this.context); + this.personalizedstream = new Resource$Personalizedstream(this.context); + this.promooffer = new Resource$Promooffer(this.context); + this.series = new Resource$Series(this.context); + this.volumes = new Resource$Volumes(this.context); + } + } + books_v1.Books = Books; + class Resource$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Bookshelves$Volumes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Bookshelves = Resource$Bookshelves; + class Resource$Bookshelves$Volumes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/users/{userId}/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'shelf'], + pathParams: ['shelf', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Bookshelves$Volumes = Resource$Bookshelves$Volumes; + class Resource$Cloudloading { + constructor(context) { + this.context = context; + } + addBook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/addBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteBook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/deleteBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateBook(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/cloudloading/updateBook').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Cloudloading = Resource$Cloudloading; + class Resource$Dictionary { + constructor(context) { + this.context = context; + } + listOfflineMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/dictionary/listOfflineMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Dictionary = Resource$Dictionary; + class Resource$Familysharing { + constructor(context) { + this.context = context; + } + getFamilyInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/getFamilyInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + share(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/share').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unshare(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/familysharing/unshare').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Familysharing = Resource$Familysharing; + class Resource$Layers { + constructor(context) { + this.context = context; + this.annotationData = new Resource$Layers$Annotationdata(this.context); + this.volumeAnnotations = new Resource$Layers$Volumeannotations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary/{summaryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'summaryId'], + pathParams: ['summaryId', 'volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layersummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Layers = Resource$Layers; + class Resource$Layers$Annotationdata { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/data/{annotationDataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'volumeId', + 'layerId', + 'annotationDataId', + 'contentVersion', + ], + pathParams: ['annotationDataId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}/data').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Layers$Annotationdata = Resource$Layers$Annotationdata; + class Resource$Layers$Volumeannotations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/volumes/{volumeId}/layers/{layerId}/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'annotationId'], + pathParams: ['annotationId', 'layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/layers/{layerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId', 'layerId', 'contentVersion'], + pathParams: ['layerId', 'volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Layers$Volumeannotations = Resource$Layers$Volumeannotations; + class Resource$Myconfig { + constructor(context) { + this.context = context; + } + getUserSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/getUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + releaseDownloadAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/releaseDownloadAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volumeIds', 'cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/requestAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['source', 'volumeId', 'nonce', 'cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + syncVolumeLicenses(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/syncVolumeLicenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['source', 'nonce', 'cpksver'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateUserSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/myconfig/updateUserSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Myconfig = Resource$Myconfig; + class Resource$Mylibrary { + constructor(context) { + this.context = context; + this.annotations = new Resource$Mylibrary$Annotations(this.context); + this.bookshelves = new Resource$Mylibrary$Bookshelves(this.context); + this.readingpositions = new Resource$Mylibrary$Readingpositions(this.context); + } + } + books_v1.Resource$Mylibrary = Resource$Mylibrary; + class Resource$Mylibrary$Annotations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + summary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/summary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['layerIds', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/annotations/{annotationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['annotationId'], + pathParams: ['annotationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Mylibrary$Annotations = Resource$Mylibrary$Annotations; + class Resource$Mylibrary$Bookshelves { + constructor(context) { + this.context = context; + this.volumes = new Resource$Mylibrary$Bookshelves$Volumes(this.context); + } + addVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/addVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + clearVolumes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/clearVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/moveVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId', 'volumePosition'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeVolume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/removeVolume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['shelf', 'volumeId'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves = Resource$Mylibrary$Bookshelves; + class Resource$Mylibrary$Bookshelves$Volumes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/bookshelves/{shelf}/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['shelf'], + pathParams: ['shelf'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Mylibrary$Bookshelves$Volumes = Resource$Mylibrary$Bookshelves$Volumes; + class Resource$Mylibrary$Readingpositions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/mylibrary/readingpositions/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setPosition(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/books/v1/mylibrary/readingpositions/{volumeId}/setPosition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['volumeId', 'timestamp', 'position'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Mylibrary$Readingpositions = Resource$Mylibrary$Readingpositions; + class Resource$Notification { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/notification/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['notification_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Notification = Resource$Notification; + class Resource$Onboarding { + constructor(context) { + this.context = context; + } + listCategories(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listCategoryVolumes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/onboarding/listCategoryVolumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Onboarding = Resource$Onboarding; + class Resource$Personalizedstream { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/personalizedstream/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Personalizedstream = Resource$Personalizedstream; + class Resource$Promooffer { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/promooffer/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Promooffer = Resource$Promooffer; + class Resource$Series { + constructor(context) { + this.context = context; + this.membership = new Resource$Series$Membership(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Series = Resource$Series; + class Resource$Series$Membership { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/series/membership/get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['series_id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Series$Membership = Resource$Series$Membership; + class Resource$Volumes { + constructor(context) { + this.context = context; + this.associated = new Resource$Volumes$Associated(this.context); + this.mybooks = new Resource$Volumes$Mybooks(this.context); + this.recommended = new Resource$Volumes$Recommended(this.context); + this.useruploaded = new Resource$Volumes$Useruploaded(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Volumes = Resource$Volumes; + class Resource$Volumes$Associated { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/{volumeId}/associated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['volumeId'], + pathParams: ['volumeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Volumes$Associated = Resource$Volumes$Associated; + class Resource$Volumes$Mybooks { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/mybooks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Volumes$Mybooks = Resource$Volumes$Mybooks; + class Resource$Volumes$Recommended { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/recommended').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/recommended/rate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['rating', 'volumeId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Volumes$Recommended = Resource$Volumes$Recommended; + class Resource$Volumes$Useruploaded { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/books/v1/volumes/useruploaded').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + books_v1.Resource$Volumes$Useruploaded = Resource$Volumes$Useruploaded; +})(books_v1 = exports.books_v1 || (exports.books_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 70013: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.calendar = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(59181); +exports.VERSIONS = { + v3: v3_1.calendar_v3.Calendar, +}; +function calendar(versionOrOptions) { + return googleapis_common_1.getAPI('calendar', versionOrOptions, exports.VERSIONS, this); +} +exports.calendar = calendar; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 59181: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.calendar_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var calendar_v3; +(function (calendar_v3) { + /** + * Calendar API + * + * Manipulates events and other calendar data. + * + * @example + * const {google} = require('googleapis'); + * const calendar = google.calendar('v3'); + * + * @namespace calendar + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Calendar + */ + class Calendar { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acl = new Resource$Acl(this.context); + this.calendarList = new Resource$Calendarlist(this.context); + this.calendars = new Resource$Calendars(this.context); + this.channels = new Resource$Channels(this.context); + this.colors = new Resource$Colors(this.context); + this.events = new Resource$Events(this.context); + this.freebusy = new Resource$Freebusy(this.context); + this.settings = new Resource$Settings(this.context); + } + } + calendar_v3.Calendar = Calendar; + class Resource$Acl { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/{ruleId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId', 'ruleId'], + pathParams: ['calendarId', 'ruleId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/acl/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Acl = Resource$Acl; + class Resource$Calendarlist { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/calendarList/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Calendarlist = Resource$Calendarlist; + class Resource$Calendars { + constructor(context) { + this.context = context; + } + clear(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Calendars = Resource$Calendars; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Channels = Resource$Channels; + class Resource$Colors { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/colors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Colors = Resource$Colors; + class Resource$Events { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/calendar/v3/calendars/{calendarId}/events/{eventId}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/calendar/v3/calendars/{calendarId}/events/{eventId}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId', 'eventId', 'destination'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + quickAdd(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/quickAdd').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId', 'text'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/{eventId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['calendarId', 'eventId'], + pathParams: ['calendarId', 'eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/calendars/{calendarId}/events/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['calendarId'], + pathParams: ['calendarId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Events = Resource$Events; + class Resource$Freebusy { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/freeBusy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Freebusy = Resource$Freebusy; + class Resource$Settings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/settings/{setting}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['setting'], + pathParams: ['setting'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/calendar/v3/users/me/settings/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + calendar_v3.Resource$Settings = Resource$Settings; +})(calendar_v3 = exports.calendar_v3 || (exports.calendar_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 17032: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.chat = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(92823); +exports.VERSIONS = { + v1: v1_1.chat_v1.Chat, +}; +function chat(versionOrOptions) { + return googleapis_common_1.getAPI('chat', versionOrOptions, exports.VERSIONS, this); +} +exports.chat = chat; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 92823: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.chat_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var chat_v1; +(function (chat_v1) { + /** + * Hangouts Chat API + * + * Enables bots to fetch information and perform actions in Hangouts Chat. + * + * @example + * const {google} = require('googleapis'); + * const chat = google.chat('v1'); + * + * @namespace chat + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Chat + */ + class Chat { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.spaces = new Resource$Spaces(this.context); + } + } + chat_v1.Chat = Chat; + class Resource$Spaces { + constructor(context) { + this.context = context; + this.members = new Resource$Spaces$Members(this.context); + this.messages = new Resource$Spaces$Messages(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/spaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + chat_v1.Resource$Spaces = Resource$Spaces; + class Resource$Spaces$Members { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + chat_v1.Resource$Spaces$Members = Resource$Spaces$Members; + class Resource$Spaces$Messages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://chat.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + chat_v1.Resource$Spaces$Messages = Resource$Spaces$Messages; +})(chat_v1 = exports.chat_v1 || (exports.chat_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 41037: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.civicinfo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(16309); +exports.VERSIONS = { + v2: v2_1.civicinfo_v2.Civicinfo, +}; +function civicinfo(versionOrOptions) { + return googleapis_common_1.getAPI('civicinfo', versionOrOptions, exports.VERSIONS, this); +} +exports.civicinfo = civicinfo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.civicinfo_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var civicinfo_v2; +(function (civicinfo_v2) { + /** + * Google Civic Information API + * + * Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses. + * + * @example + * const {google} = require('googleapis'); + * const civicinfo = google.civicinfo('v2'); + * + * @namespace civicinfo + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Civicinfo + */ + class Civicinfo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.divisions = new Resource$Divisions(this.context); + this.elections = new Resource$Elections(this.context); + this.representatives = new Resource$Representatives(this.context); + } + } + civicinfo_v2.Civicinfo = Civicinfo; + class Resource$Divisions { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/divisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + civicinfo_v2.Resource$Divisions = Resource$Divisions; + class Resource$Elections { + constructor(context) { + this.context = context; + } + electionQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/elections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + voterInfoQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/voterinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['address'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + civicinfo_v2.Resource$Elections = Resource$Elections; + class Resource$Representatives { + constructor(context) { + this.context = context; + } + representativeInfoByAddress(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/representatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + representativeInfoByDivision(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/civicinfo/v2/representatives/{ocdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ocdId'], + pathParams: ['ocdId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + civicinfo_v2.Resource$Representatives = Resource$Representatives; +})(civicinfo_v2 = exports.civicinfo_v2 || (exports.civicinfo_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 80556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.classroom = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(66572); +exports.VERSIONS = { + v1: v1_1.classroom_v1.Classroom, +}; +function classroom(versionOrOptions) { + return googleapis_common_1.getAPI('classroom', versionOrOptions, exports.VERSIONS, this); +} +exports.classroom = classroom; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 66572: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.classroom_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var classroom_v1; +(function (classroom_v1) { + /** + * Google Classroom API + * + * Manages classes, rosters, and invitations in Google Classroom. + * + * @example + * const {google} = require('googleapis'); + * const classroom = google.classroom('v1'); + * + * @namespace classroom + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Classroom + */ + class Classroom { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.courses = new Resource$Courses(this.context); + this.invitations = new Resource$Invitations(this.context); + this.registrations = new Resource$Registrations(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + } + } + classroom_v1.Classroom = Classroom; + class Resource$Courses { + constructor(context) { + this.context = context; + this.aliases = new Resource$Courses$Aliases(this.context); + this.announcements = new Resource$Courses$Announcements(this.context); + this.courseWork = new Resource$Courses$Coursework(this.context); + this.students = new Resource$Courses$Students(this.context); + this.teachers = new Resource$Courses$Teachers(this.context); + this.topics = new Resource$Courses$Topics(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses = Resource$Courses; + class Resource$Courses$Aliases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases/{alias}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'alias'], + pathParams: ['alias', 'courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/aliases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Aliases = Resource$Courses$Aliases; + class Resource$Courses$Announcements { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/announcements/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/announcements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Announcements = Resource$Courses$Announcements; + class Resource$Courses$Coursework { + constructor(context) { + this.context = context; + this.studentSubmissions = new Resource$Courses$Coursework$Studentsubmissions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAssignees(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}:modifyAssignees').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/courseWork/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework = Resource$Courses$Coursework; + class Resource$Courses$Coursework$Studentsubmissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId'], + pathParams: ['courseId', 'courseWorkId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAttachments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:modifyAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reclaim(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:reclaim').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + return(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:return').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + turnIn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/courses/{courseId}/courseWork/{courseWorkId}/studentSubmissions/{id}:turnIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId', 'courseWorkId', 'id'], + pathParams: ['courseId', 'courseWorkId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Coursework$Studentsubmissions = Resource$Courses$Coursework$Studentsubmissions; + class Resource$Courses$Students { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/students').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Students = Resource$Courses$Students; + class Resource$Courses$Teachers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'userId'], + pathParams: ['courseId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/teachers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Teachers = Resource$Courses$Teachers; + class Resource$Courses$Topics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['courseId'], + pathParams: ['courseId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/courses/{courseId}/topics/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['courseId', 'id'], + pathParams: ['courseId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Courses$Topics = Resource$Courses$Topics; + class Resource$Invitations { + constructor(context) { + this.context = context; + } + accept(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}:accept').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/invitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Invitations = Resource$Invitations; + class Resource$Registrations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/registrations/{registrationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['registrationId'], + pathParams: ['registrationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Registrations = Resource$Registrations; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + this.guardianInvitations = new Resource$Userprofiles$Guardianinvitations(this.context); + this.guardians = new Resource$Userprofiles$Guardians(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userprofiles$Guardianinvitations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardianInvitations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/userProfiles/{studentId}/guardianInvitations/{invitationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['studentId', 'invitationId'], + pathParams: ['invitationId', 'studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardianinvitations = Resource$Userprofiles$Guardianinvitations; + class Resource$Userprofiles$Guardians { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians/{guardianId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId', 'guardianId'], + pathParams: ['guardianId', 'studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://classroom.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/userProfiles/{studentId}/guardians').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['studentId'], + pathParams: ['studentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + classroom_v1.Resource$Userprofiles$Guardians = Resource$Userprofiles$Guardians; +})(classroom_v1 = exports.classroom_v1 || (exports.classroom_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 93280: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudasset = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(16938); +const v1beta1_1 = __nccwpck_require__(52545); +const v1p1beta1_1 = __nccwpck_require__(40677); +const v1p4beta1_1 = __nccwpck_require__(89936); +exports.VERSIONS = { + v1: v1_1.cloudasset_v1.Cloudasset, + v1beta1: v1beta1_1.cloudasset_v1beta1.Cloudasset, + v1p1beta1: v1p1beta1_1.cloudasset_v1p1beta1.Cloudasset, + v1p4beta1: v1p4beta1_1.cloudasset_v1p4beta1.Cloudasset, +}; +function cloudasset(versionOrOptions) { + return googleapis_common_1.getAPI('cloudasset', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudasset = cloudasset; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16938: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudasset_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudasset_v1; +(function (cloudasset_v1) { + /** + * Cloud Asset API + * + * The cloud asset API manages the history and inventory of cloud resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1'); + * + * @namespace cloudasset + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudasset + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.feeds = new Resource$Feeds(this.context); + this.operations = new Resource$Operations(this.context); + this.v1 = new Resource$V1(this.context); + } + } + cloudasset_v1.Cloudasset = Cloudasset; + class Resource$Feeds { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/feeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1.Resource$Feeds = Resource$Feeds; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1.Resource$Operations = Resource$Operations; + class Resource$V1 { + constructor(context) { + this.context = context; + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1.Resource$V1 = Resource$V1; +})(cloudasset_v1 = exports.cloudasset_v1 || (exports.cloudasset_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 52545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudasset_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudasset_v1beta1; +(function (cloudasset_v1beta1) { + /** + * Cloud Asset API + * + * The cloud asset API manages the history and inventory of cloud resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1beta1'); + * + * @namespace cloudasset + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Cloudasset + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudasset_v1beta1.Cloudasset = Cloudasset; + class Resource$Folders { + constructor(context) { + this.context = context; + this.operations = new Resource$Folders$Operations(this.context); + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders = Resource$Folders; + class Resource$Folders$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Folders$Operations = Resource$Folders$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Operations(this.context); + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + } + batchGetAssetsHistory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:batchGetAssetsHistory').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + exportAssets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:exportAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(cloudasset_v1beta1 = exports.cloudasset_v1beta1 || (exports.cloudasset_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 40677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudasset_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudasset_v1p1beta1; +(function (cloudasset_v1p1beta1) { + /** + * Cloud Asset API + * + * The cloud asset API manages the history and inventory of cloud resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p1beta1'); + * + * @namespace cloudasset + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Cloudasset + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iamPolicies = new Resource$Iampolicies(this.context); + this.resources = new Resource$Resources(this.context); + } + } + cloudasset_v1p1beta1.Cloudasset = Cloudasset; + class Resource$Iampolicies { + constructor(context) { + this.context = context; + } + searchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/iamPolicies:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Resources { + constructor(context) { + this.context = context; + } + searchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+scope}/resources:searchAll').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scope'], + pathParams: ['scope'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1p1beta1.Resource$Resources = Resource$Resources; +})(cloudasset_v1p1beta1 = exports.cloudasset_v1p1beta1 || (exports.cloudasset_v1p1beta1 = {})); +//# sourceMappingURL=v1p1beta1.js.map + +/***/ }), + +/***/ 89936: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudasset_v1p4beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudasset_v1p4beta1; +(function (cloudasset_v1p4beta1) { + /** + * Cloud Asset API + * + * The cloud asset API manages the history and inventory of cloud resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudasset = google.cloudasset('v1p4beta1'); + * + * @namespace cloudasset + * @type {Function} + * @version v1p4beta1 + * @variation v1p4beta1 + * @param {object=} options Options for Cloudasset + */ + class Cloudasset { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1p4beta1 = new Resource$V1p4beta1(this.context); + } + } + cloudasset_v1p4beta1.Cloudasset = Cloudasset; + class Resource$V1p4beta1 { + constructor(context) { + this.context = context; + } + analyzeIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p4beta1/{+parent}:analyzeIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + exportIamPolicyAnalysis(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudasset.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p4beta1/{+parent}:exportIamPolicyAnalysis').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudasset_v1p4beta1.Resource$V1p4beta1 = Resource$V1p4beta1; +})(cloudasset_v1p4beta1 = exports.cloudasset_v1p4beta1 || (exports.cloudasset_v1p4beta1 = {})); +//# sourceMappingURL=v1p4beta1.js.map + +/***/ }), + +/***/ 27326: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudbilling = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(66659); +exports.VERSIONS = { + v1: v1_1.cloudbilling_v1.Cloudbilling, +}; +function cloudbilling(versionOrOptions) { + return googleapis_common_1.getAPI('cloudbilling', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudbilling = cloudbilling; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 66659: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudbilling_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudbilling_v1; +(function (cloudbilling_v1) { + /** + * Cloud Billing API + * + * Allows developers to manage billing for their Google Cloud Platform projects programmatically. + * + * @example + * const {google} = require('googleapis'); + * const cloudbilling = google.cloudbilling('v1'); + * + * @namespace cloudbilling + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudbilling + */ + class Cloudbilling { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.projects = new Resource$Projects(this.context); + this.services = new Resource$Services(this.context); + } + } + cloudbilling_v1.Cloudbilling = Cloudbilling; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.projects = new Resource$Billingaccounts$Projects(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/billingAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Projects { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbilling_v1.Resource$Billingaccounts$Projects = Resource$Billingaccounts$Projects; + class Resource$Projects { + constructor(context) { + this.context = context; + } + getBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateBillingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/billingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbilling_v1.Resource$Projects = Resource$Projects; + class Resource$Services { + constructor(context) { + this.context = context; + this.skus = new Resource$Services$Skus(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbilling_v1.Resource$Services = Resource$Services; + class Resource$Services$Skus { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbilling.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/skus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbilling_v1.Resource$Services$Skus = Resource$Services$Skus; +})(cloudbilling_v1 = exports.cloudbilling_v1 || (exports.cloudbilling_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 95226: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudbuild = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(88950); +const v1alpha1_1 = __nccwpck_require__(55957); +const v1alpha2_1 = __nccwpck_require__(51844); +exports.VERSIONS = { + v1: v1_1.cloudbuild_v1.Cloudbuild, + v1alpha1: v1alpha1_1.cloudbuild_v1alpha1.Cloudbuild, + v1alpha2: v1alpha2_1.cloudbuild_v1alpha2.Cloudbuild, +}; +function cloudbuild(versionOrOptions) { + return googleapis_common_1.getAPI('cloudbuild', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudbuild = cloudbuild; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 88950: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudbuild_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudbuild_v1; +(function (cloudbuild_v1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1'); + * + * @namespace cloudbuild + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudbuild + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1.Cloudbuild = Cloudbuild; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbuild_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.builds = new Resource$Projects$Builds(this.context); + this.triggers = new Resource$Projects$Triggers(this.context); + } + } + cloudbuild_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Builds { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/builds/{id}:retry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'id'], + pathParams: ['id', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Builds = Resource$Projects$Builds; + class Resource$Projects$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/triggers/{triggerId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'triggerId'], + pathParams: ['projectId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbuild_v1.Resource$Projects$Triggers = Resource$Projects$Triggers; +})(cloudbuild_v1 = exports.cloudbuild_v1 || (exports.cloudbuild_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 55957: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudbuild_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudbuild_v1alpha1; +(function (cloudbuild_v1alpha1) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1alpha1'); + * + * @namespace cloudbuild + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Cloudbuild + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1alpha1.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.workerPools = new Resource$Projects$Workerpools(this.context); + } + } + cloudbuild_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbuild_v1alpha1.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha1 = exports.cloudbuild_v1alpha1 || (exports.cloudbuild_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 51844: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudbuild_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudbuild_v1alpha2; +(function (cloudbuild_v1alpha2) { + /** + * Cloud Build API + * + * Creates and manages builds on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const cloudbuild = google.cloudbuild('v1alpha2'); + * + * @namespace cloudbuild + * @type {Function} + * @version v1alpha2 + * @variation v1alpha2 + * @param {object=} options Options for Cloudbuild + */ + class Cloudbuild { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudbuild_v1alpha2.Cloudbuild = Cloudbuild; + class Resource$Projects { + constructor(context) { + this.context = context; + this.workerPools = new Resource$Projects$Workerpools(this.context); + } + } + cloudbuild_v1alpha2.Resource$Projects = Resource$Projects; + class Resource$Projects$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+parent}/workerPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudbuild.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudbuild_v1alpha2.Resource$Projects$Workerpools = Resource$Projects$Workerpools; +})(cloudbuild_v1alpha2 = exports.cloudbuild_v1alpha2 || (exports.cloudbuild_v1alpha2 = {})); +//# sourceMappingURL=v1alpha2.js.map + +/***/ }), + +/***/ 8047: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.clouddebugger = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(12755); +exports.VERSIONS = { + v2: v2_1.clouddebugger_v2.Clouddebugger, +}; +function clouddebugger(versionOrOptions) { + return googleapis_common_1.getAPI('clouddebugger', versionOrOptions, exports.VERSIONS, this); +} +exports.clouddebugger = clouddebugger; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 12755: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.clouddebugger_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var clouddebugger_v2; +(function (clouddebugger_v2) { + /** + * Cloud Debugger API + * + * Examines the call stack and variables of a running application without stopping or slowing it down. + * + * @example + * const {google} = require('googleapis'); + * const clouddebugger = google.clouddebugger('v2'); + * + * @namespace clouddebugger + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Clouddebugger + */ + class Clouddebugger { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.controller = new Resource$Controller(this.context); + this.debugger = new Resource$Debugger(this.context); + } + } + clouddebugger_v2.Clouddebugger = Clouddebugger; + class Resource$Controller { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Controller$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Controller = Resource$Controller; + class Resource$Controller$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Controller$Debuggees$Breakpoints(this.context); + } + register(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees = Resource$Controller$Debuggees; + class Resource$Controller$Debuggees$Breakpoints { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/controller/debuggees/{debuggeeId}/breakpoints/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['debuggeeId', 'id'], + pathParams: ['debuggeeId', 'id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouddebugger_v2.Resource$Controller$Debuggees$Breakpoints = Resource$Controller$Debuggees$Breakpoints; + class Resource$Debugger { + constructor(context) { + this.context = context; + this.debuggees = new Resource$Debugger$Debuggees(this.context); + } + } + clouddebugger_v2.Resource$Debugger = Resource$Debugger; + class Resource$Debugger$Debuggees { + constructor(context) { + this.context = context; + this.breakpoints = new Resource$Debugger$Debuggees$Breakpoints(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees = Resource$Debugger$Debuggees; + class Resource$Debugger$Debuggees$Breakpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId', 'breakpointId'], + pathParams: ['breakpointId', 'debuggeeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouddebugger.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/debugger/debuggees/{debuggeeId}/breakpoints/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['debuggeeId'], + pathParams: ['debuggeeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouddebugger_v2.Resource$Debugger$Debuggees$Breakpoints = Resource$Debugger$Debuggees$Breakpoints; +})(clouddebugger_v2 = exports.clouddebugger_v2 || (exports.clouddebugger_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 93964: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.clouderrorreporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(6269); +exports.VERSIONS = { + v1beta1: v1beta1_1.clouderrorreporting_v1beta1.Clouderrorreporting, +}; +function clouderrorreporting(versionOrOptions) { + return googleapis_common_1.getAPI('clouderrorreporting', versionOrOptions, exports.VERSIONS, this); +} +exports.clouderrorreporting = clouderrorreporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 6269: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.clouderrorreporting_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var clouderrorreporting_v1beta1; +(function (clouderrorreporting_v1beta1) { + /** + * Error Reporting API + * + * Groups and counts similar errors from cloud services and applications, reports new errors, and provides access to error groups and their associated errors. + * + * @example + * const {google} = require('googleapis'); + * const clouderrorreporting = google.clouderrorreporting('v1beta1'); + * + * @namespace clouderrorreporting + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Clouderrorreporting + */ + class Clouderrorreporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + clouderrorreporting_v1beta1.Clouderrorreporting = Clouderrorreporting; + class Resource$Projects { + constructor(context) { + this.context = context; + this.events = new Resource$Projects$Events(this.context); + this.groups = new Resource$Projects$Groups(this.context); + this.groupStats = new Resource$Projects$Groupstats(this.context); + } + deleteEvents(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Events { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/events:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Events = Resource$Projects$Events; + class Resource$Projects$Groups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+groupName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupName'], + pathParams: ['groupName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Groupstats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://clouderrorreporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+projectName}/groupStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectName'], + pathParams: ['projectName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + clouderrorreporting_v1beta1.Resource$Projects$Groupstats = Resource$Projects$Groupstats; +})(clouderrorreporting_v1beta1 = exports.clouderrorreporting_v1beta1 || (exports.clouderrorreporting_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 14465: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudfunctions = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(47308); +const v1beta2_1 = __nccwpck_require__(26084); +exports.VERSIONS = { + v1: v1_1.cloudfunctions_v1.Cloudfunctions, + v1beta2: v1beta2_1.cloudfunctions_v1beta2.Cloudfunctions, +}; +function cloudfunctions(versionOrOptions) { + return googleapis_common_1.getAPI('cloudfunctions', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudfunctions = cloudfunctions; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 47308: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudfunctions_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudfunctions_v1; +(function (cloudfunctions_v1) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1'); + * + * @namespace cloudfunctions + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudfunctions + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1.Cloudfunctions = Cloudfunctions; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1 = exports.cloudfunctions_v1 || (exports.cloudfunctions_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 26084: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudfunctions_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudfunctions_v1beta2; +(function (cloudfunctions_v1beta2) { + /** + * Cloud Functions API + * + * Manages lightweight user-provided functions executed in response to events. + * + * @example + * const {google} = require('googleapis'); + * const cloudfunctions = google.cloudfunctions('v1beta2'); + * + * @namespace cloudfunctions + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Cloudfunctions + */ + class Cloudfunctions { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudfunctions_v1beta2.Cloudfunctions = Cloudfunctions; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudfunctions_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.functions = new Resource$Projects$Locations$Functions(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Functions { + constructor(context) { + this.context = context; + } + call(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:call').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateDownloadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:generateDownloadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateUploadUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/functions:generateUploadUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+location}/functions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['location'], + pathParams: ['location'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudfunctions.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudfunctions_v1beta2.Resource$Projects$Locations$Functions = Resource$Projects$Locations$Functions; +})(cloudfunctions_v1beta2 = exports.cloudfunctions_v1beta2 || (exports.cloudfunctions_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 36934: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudidentity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(25457); +const v1beta1_1 = __nccwpck_require__(6339); +exports.VERSIONS = { + v1: v1_1.cloudidentity_v1.Cloudidentity, + v1beta1: v1beta1_1.cloudidentity_v1beta1.Cloudidentity, +}; +function cloudidentity(versionOrOptions) { + return googleapis_common_1.getAPI('cloudidentity', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudidentity = cloudidentity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25457: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudidentity_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudidentity_v1; +(function (cloudidentity_v1) { + /** + * Cloud Identity API + * + * API for provisioning and managing identity resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudidentity = google.cloudidentity('v1'); + * + * @namespace cloudidentity + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudidentity + */ + class Cloudidentity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groups = new Resource$Groups(this.context); + } + } + cloudidentity_v1.Cloudidentity = Cloudidentity; + class Resource$Groups { + constructor(context) { + this.context = context; + this.memberships = new Resource$Groups$Memberships(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudidentity_v1.Resource$Groups = Resource$Groups; + class Resource$Groups$Memberships { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudidentity_v1.Resource$Groups$Memberships = Resource$Groups$Memberships; +})(cloudidentity_v1 = exports.cloudidentity_v1 || (exports.cloudidentity_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 6339: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudidentity_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudidentity_v1beta1; +(function (cloudidentity_v1beta1) { + /** + * Cloud Identity API + * + * API for provisioning and managing identity resources. + * + * @example + * const {google} = require('googleapis'); + * const cloudidentity = google.cloudidentity('v1beta1'); + * + * @namespace cloudidentity + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Cloudidentity + */ + class Cloudidentity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groups = new Resource$Groups(this.context); + } + } + cloudidentity_v1beta1.Cloudidentity = Cloudidentity; + class Resource$Groups { + constructor(context) { + this.context = context; + this.memberships = new Resource$Groups$Memberships(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/groups:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Groups = Resource$Groups; + class Resource$Groups$Memberships { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/memberships:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyMembershipRoles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudidentity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:modifyMembershipRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudidentity_v1beta1.Resource$Groups$Memberships = Resource$Groups$Memberships; +})(cloudidentity_v1beta1 = exports.cloudidentity_v1beta1 || (exports.cloudidentity_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 72589: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudiot = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(33221); +exports.VERSIONS = { + v1: v1_1.cloudiot_v1.Cloudiot, +}; +function cloudiot(versionOrOptions) { + return googleapis_common_1.getAPI('cloudiot', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudiot = cloudiot; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 33221: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudiot_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudiot_v1; +(function (cloudiot_v1) { + /** + * Cloud IoT API + * + * Registers and manages IoT (Internet of Things) devices that connect to the Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const cloudiot = google.cloudiot('v1'); + * + * @namespace cloudiot + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudiot + */ + class Cloudiot { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudiot_v1.Cloudiot = Cloudiot; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudiot_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.registries = new Resource$Projects$Locations$Registries(this.context); + } + } + cloudiot_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Registries { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Devices(this.context); + this.groups = new Resource$Projects$Locations$Registries$Groups(this.context); + } + bindDeviceToGateway(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:bindDeviceToGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/registries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unbindDeviceFromGateway(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:unbindDeviceFromGateway').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries = Resource$Projects$Locations$Registries; + class Resource$Projects$Locations$Registries$Devices { + constructor(context) { + this.context = context; + this.configVersions = new Resource$Projects$Locations$Registries$Devices$Configversions(this.context); + this.states = new Resource$Projects$Locations$Registries$Devices$States(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyCloudToDeviceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:modifyCloudToDeviceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendCommandToDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:sendCommandToDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices = Resource$Projects$Locations$Registries$Devices; + class Resource$Projects$Locations$Registries$Devices$Configversions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/configVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$Configversions = Resource$Projects$Locations$Registries$Devices$Configversions; + class Resource$Projects$Locations$Registries$Devices$States { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/states').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Devices$States = Resource$Projects$Locations$Registries$Devices$States; + class Resource$Projects$Locations$Registries$Groups { + constructor(context) { + this.context = context; + this.devices = new Resource$Projects$Locations$Registries$Groups$Devices(this.context); + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups = Resource$Projects$Locations$Registries$Groups; + class Resource$Projects$Locations$Registries$Groups$Devices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudiot.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudiot_v1.Resource$Projects$Locations$Registries$Groups$Devices = Resource$Projects$Locations$Registries$Groups$Devices; +})(cloudiot_v1 = exports.cloudiot_v1 || (exports.cloudiot_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 69699: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudkms = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(29305); +exports.VERSIONS = { + v1: v1_1.cloudkms_v1.Cloudkms, +}; +function cloudkms(versionOrOptions) { + return googleapis_common_1.getAPI('cloudkms', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudkms = cloudkms; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 29305: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudkms_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudkms_v1; +(function (cloudkms_v1) { + /** + * Cloud Key Management Service (KMS) API + * + * Manages keys and performs cryptographic operations in a central cloud service, for direct use by other cloud resources and applications. + * + * @example + * const {google} = require('googleapis'); + * const cloudkms = google.cloudkms('v1'); + * + * @namespace cloudkms + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudkms + */ + class Cloudkms { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudkms_v1.Cloudkms = Cloudkms; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudkms_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.keyRings = new Resource$Projects$Locations$Keyrings(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Keyrings { + constructor(context) { + this.context = context; + this.cryptoKeys = new Resource$Projects$Locations$Keyrings$Cryptokeys(this.context); + this.importJobs = new Resource$Projects$Locations$Keyrings$Importjobs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/keyRings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings = Resource$Projects$Locations$Keyrings; + class Resource$Projects$Locations$Keyrings$Cryptokeys { + constructor(context) { + this.context = context; + this.cryptoKeyVersions = new Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + decrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:decrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + encrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:encrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePrimaryVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:updatePrimaryVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys = Resource$Projects$Locations$Keyrings$Cryptokeys; + class Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions { + constructor(context) { + this.context = context; + } + asymmetricDecrypt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:asymmetricDecrypt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asymmetricSign(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:asymmetricSign').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + destroy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/publicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/cryptoKeyVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions = Resource$Projects$Locations$Keyrings$Cryptokeys$Cryptokeyversions; + class Resource$Projects$Locations$Keyrings$Importjobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/importJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudkms.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudkms_v1.Resource$Projects$Locations$Keyrings$Importjobs = Resource$Projects$Locations$Keyrings$Importjobs; +})(cloudkms_v1 = exports.cloudkms_v1 || (exports.cloudkms_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 18445: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudprofiler = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(9991); +exports.VERSIONS = { + v2: v2_1.cloudprofiler_v2.Cloudprofiler, +}; +function cloudprofiler(versionOrOptions) { + return googleapis_common_1.getAPI('cloudprofiler', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudprofiler = cloudprofiler; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 9991: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudprofiler_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudprofiler_v2; +(function (cloudprofiler_v2) { + /** + * Stackdriver Profiler API + * + * Manages continuous profiling information. + * + * @example + * const {google} = require('googleapis'); + * const cloudprofiler = google.cloudprofiler('v2'); + * + * @namespace cloudprofiler + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Cloudprofiler + */ + class Cloudprofiler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudprofiler_v2.Cloudprofiler = Cloudprofiler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.profiles = new Resource$Projects$Profiles(this.context); + } + } + cloudprofiler_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Profiles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createOffline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/profiles:createOffline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudprofiler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudprofiler_v2.Resource$Projects$Profiles = Resource$Projects$Profiles; +})(cloudprofiler_v2 = exports.cloudprofiler_v2 || (exports.cloudprofiler_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 31235: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudresourcemanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(71553); +const v1beta1_1 = __nccwpck_require__(37513); +const v2_1 = __nccwpck_require__(22839); +const v2beta1_1 = __nccwpck_require__(74335); +exports.VERSIONS = { + v1: v1_1.cloudresourcemanager_v1.Cloudresourcemanager, + v1beta1: v1beta1_1.cloudresourcemanager_v1beta1.Cloudresourcemanager, + v2: v2_1.cloudresourcemanager_v2.Cloudresourcemanager, + v2beta1: v2beta1_1.cloudresourcemanager_v2beta1.Cloudresourcemanager, +}; +function cloudresourcemanager(versionOrOptions) { + return googleapis_common_1.getAPI('cloudresourcemanager', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudresourcemanager = cloudresourcemanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 71553: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudresourcemanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudresourcemanager_v1; +(function (cloudresourcemanager_v1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v1'); + * + * @namespace cloudresourcemanager + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudresourcemanager + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.liens = new Resource$Liens(this.context); + this.operations = new Resource$Operations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudresourcemanager_v1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1.Resource$Folders = Resource$Folders; + class Resource$Liens { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/liens').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1.Resource$Liens = Resource$Liens; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1.Resource$Operations = Resource$Operations; + class Resource$Organizations { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/organizations:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + constructor(context) { + this.context = context; + } + clearOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:clearOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAncestry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getEffectiveOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableOrgPolicyConstraints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listAvailableOrgPolicyConstraints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listOrgPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:listOrgPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setOrgPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setOrgPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1 = exports.cloudresourcemanager_v1 || (exports.cloudresourcemanager_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 37513: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudresourcemanager_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudresourcemanager_v1beta1; +(function (cloudresourcemanager_v1beta1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v1beta1'); + * + * @namespace cloudresourcemanager + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Cloudresourcemanager + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + cloudresourcemanager_v1beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Organizations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/organizations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Projects { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAncestry(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:getAncestry').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v1beta1.Resource$Projects = Resource$Projects; +})(cloudresourcemanager_v1beta1 = exports.cloudresourcemanager_v1beta1 || (exports.cloudresourcemanager_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 22839: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudresourcemanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudresourcemanager_v2; +(function (cloudresourcemanager_v2) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v2'); + * + * @namespace cloudresourcemanager + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Cloudresourcemanager + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + } + } + cloudresourcemanager_v2.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v2.Resource$Folders = Resource$Folders; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v2.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2 = exports.cloudresourcemanager_v2 || (exports.cloudresourcemanager_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 74335: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudresourcemanager_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudresourcemanager_v2beta1; +(function (cloudresourcemanager_v2beta1) { + /** + * Cloud Resource Manager API + * + * Creates, reads, and updates metadata for Google Cloud Platform resource containers. + * + * @example + * const {google} = require('googleapis'); + * const cloudresourcemanager = google.cloudresourcemanager('v2beta1'); + * + * @namespace cloudresourcemanager + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Cloudresourcemanager + */ + class Cloudresourcemanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.folders = new Resource$Folders(this.context); + this.operations = new Resource$Operations(this.context); + } + } + cloudresourcemanager_v2beta1.Cloudresourcemanager = Cloudresourcemanager; + class Resource$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/folders:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v2beta1.Resource$Folders = Resource$Folders; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudresourcemanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudresourcemanager_v2beta1.Resource$Operations = Resource$Operations; +})(cloudresourcemanager_v2beta1 = exports.cloudresourcemanager_v2beta1 || (exports.cloudresourcemanager_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 64769: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudscheduler = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(55624); +const v1beta1_1 = __nccwpck_require__(55715); +exports.VERSIONS = { + v1: v1_1.cloudscheduler_v1.Cloudscheduler, + v1beta1: v1beta1_1.cloudscheduler_v1beta1.Cloudscheduler, +}; +function cloudscheduler(versionOrOptions) { + return googleapis_common_1.getAPI('cloudscheduler', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudscheduler = cloudscheduler; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 55624: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudscheduler_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudscheduler_v1; +(function (cloudscheduler_v1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1'); + * + * @namespace cloudscheduler + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudscheduler + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudscheduler_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudscheduler_v1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1 = exports.cloudscheduler_v1 || (exports.cloudscheduler_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 55715: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudscheduler_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudscheduler_v1beta1; +(function (cloudscheduler_v1beta1) { + /** + * Cloud Scheduler API + * + * Creates and manages jobs run on a regular recurring schedule. + * + * @example + * const {google} = require('googleapis'); + * const cloudscheduler = google.cloudscheduler('v1beta1'); + * + * @namespace cloudscheduler + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Cloudscheduler + */ + class Cloudscheduler { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudscheduler_v1beta1.Cloudscheduler = Cloudscheduler; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudscheduler_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudscheduler_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudscheduler.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudscheduler_v1beta1.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; +})(cloudscheduler_v1beta1 = exports.cloudscheduler_v1beta1 || (exports.cloudscheduler_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 26806: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(76006); +exports.VERSIONS = { + v1: v1_1.cloudsearch_v1.Cloudsearch, +}; +function cloudsearch(versionOrOptions) { + return googleapis_common_1.getAPI('cloudsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudsearch = cloudsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 76006: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudsearch_v1; +(function (cloudsearch_v1) { + /** + * Cloud Search API + * + * Cloud Search provides cloud-based search capabilities over G Suite data. The Cloud Search API allows indexing of non-G Suite data into Cloud Search. + * + * @example + * const {google} = require('googleapis'); + * const cloudsearch = google.cloudsearch('v1'); + * + * @namespace cloudsearch + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudsearch + */ + class Cloudsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.debug = new Resource$Debug(this.context); + this.indexing = new Resource$Indexing(this.context); + this.media = new Resource$Media(this.context); + this.operations = new Resource$Operations(this.context); + this.query = new Resource$Query(this.context); + this.settings = new Resource$Settings(this.context); + this.stats = new Resource$Stats(this.context); + } + } + cloudsearch_v1.Cloudsearch = Cloudsearch; + class Resource$Debug { + constructor(context) { + this.context = context; + this.datasources = new Resource$Debug$Datasources(this.context); + this.identitysources = new Resource$Debug$Identitysources(this.context); + } + } + cloudsearch_v1.Resource$Debug = Resource$Debug; + class Resource$Debug$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Datasources$Items(this.context); + } + } + cloudsearch_v1.Resource$Debug$Datasources = Resource$Debug$Datasources; + class Resource$Debug$Datasources$Items { + constructor(context) { + this.context = context; + this.unmappedids = new Resource$Debug$Datasources$Items$Unmappedids(this.context); + } + checkAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}:checkAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchByViewUrl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+name}/items:searchByViewUrl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Datasources$Items = Resource$Debug$Datasources$Items; + class Resource$Debug$Datasources$Items$Unmappedids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Datasources$Items$Unmappedids = Resource$Debug$Datasources$Items$Unmappedids; + class Resource$Debug$Identitysources { + constructor(context) { + this.context = context; + this.items = new Resource$Debug$Identitysources$Items(this.context); + this.unmappedids = new Resource$Debug$Identitysources$Unmappedids(this.context); + } + } + cloudsearch_v1.Resource$Debug$Identitysources = Resource$Debug$Identitysources; + class Resource$Debug$Identitysources$Items { + constructor(context) { + this.context = context; + } + listForunmappedidentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/items:forunmappedidentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Items = Resource$Debug$Identitysources$Items; + class Resource$Debug$Identitysources$Unmappedids { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/debug/{+parent}/unmappedids').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Debug$Identitysources$Unmappedids = Resource$Debug$Identitysources$Unmappedids; + class Resource$Indexing { + constructor(context) { + this.context = context; + this.datasources = new Resource$Indexing$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Indexing = Resource$Indexing; + class Resource$Indexing$Datasources { + constructor(context) { + this.context = context; + this.items = new Resource$Indexing$Datasources$Items(this.context); + } + deleteSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSchema(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/schema').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources = Resource$Indexing$Datasources; + class Resource$Indexing$Datasources$Items { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteQueueItems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:deleteQueueItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + index(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:index').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + poll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:poll').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + push(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:push').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unreserve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}/items:unreserve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/indexing/{+name}:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Indexing$Datasources$Items = Resource$Indexing$Datasources$Items; + class Resource$Media { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Media = Resource$Media; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Operations = Resource$Operations; + class Resource$Query { + constructor(context) { + this.context = context; + this.sources = new Resource$Query$Sources(this.context); + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + suggest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Query = Resource$Query; + class Resource$Query$Sources { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/query/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Query$Sources = Resource$Query$Sources; + class Resource$Settings { + constructor(context) { + this.context = context; + this.datasources = new Resource$Settings$Datasources(this.context); + this.searchapplications = new Resource$Settings$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Settings = Resource$Settings; + class Resource$Settings$Datasources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/datasources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Datasources = Resource$Settings$Datasources; + class Resource$Settings$Searchapplications { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/searchapplications').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}:reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/settings/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Settings$Searchapplications = Resource$Settings$Searchapplications; + class Resource$Stats { + constructor(context) { + this.context = context; + this.index = new Resource$Stats$Index(this.context); + this.query = new Resource$Stats$Query(this.context); + this.session = new Resource$Stats$Session(this.context); + this.user = new Resource$Stats$User(this.context); + } + getIndex(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSession(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Stats = Resource$Stats; + class Resource$Stats$Index { + constructor(context) { + this.context = context; + this.datasources = new Resource$Stats$Index$Datasources(this.context); + } + } + cloudsearch_v1.Resource$Stats$Index = Resource$Stats$Index; + class Resource$Stats$Index$Datasources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/index/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Index$Datasources = Resource$Stats$Index$Datasources; + class Resource$Stats$Query { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Query$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Query = Resource$Stats$Query; + class Resource$Stats$Query$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/query/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Query$Searchapplications = Resource$Stats$Query$Searchapplications; + class Resource$Stats$Session { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$Session$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$Session = Resource$Stats$Session; + class Resource$Stats$Session$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/session/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$Session$Searchapplications = Resource$Stats$Session$Searchapplications; + class Resource$Stats$User { + constructor(context) { + this.context = context; + this.searchapplications = new Resource$Stats$User$Searchapplications(this.context); + } + } + cloudsearch_v1.Resource$Stats$User = Resource$Stats$User; + class Resource$Stats$User$Searchapplications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/stats/user/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudsearch_v1.Resource$Stats$User$Searchapplications = Resource$Stats$User$Searchapplications; +})(cloudsearch_v1 = exports.cloudsearch_v1 || (exports.cloudsearch_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 75257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudshell = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(78337); +const v1alpha1_1 = __nccwpck_require__(7694); +exports.VERSIONS = { + v1: v1_1.cloudshell_v1.Cloudshell, + v1alpha1: v1alpha1_1.cloudshell_v1alpha1.Cloudshell, +}; +function cloudshell(versionOrOptions) { + return googleapis_common_1.getAPI('cloudshell', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudshell = cloudshell; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 78337: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudshell_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudshell_v1; +(function (cloudshell_v1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1'); + * + * @namespace cloudshell + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudshell + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + cloudshell_v1.Cloudshell = Cloudshell; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudshell_v1.Resource$Operations = Resource$Operations; +})(cloudshell_v1 = exports.cloudshell_v1 || (exports.cloudshell_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 7694: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudshell_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudshell_v1alpha1; +(function (cloudshell_v1alpha1) { + /** + * Cloud Shell API + * + * Allows users to start, configure, and connect to interactive shell sessions running in the cloud. + * + * @example + * const {google} = require('googleapis'); + * const cloudshell = google.cloudshell('v1alpha1'); + * + * @namespace cloudshell + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Cloudshell + */ + class Cloudshell { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + cloudshell_v1alpha1.Cloudshell = Cloudshell; + class Resource$Users { + constructor(context) { + this.context = context; + this.environments = new Resource$Users$Environments(this.context); + } + } + cloudshell_v1alpha1.Resource$Users = Resource$Users; + class Resource$Users$Environments { + constructor(context) { + this.context = context; + this.publicKeys = new Resource$Users$Environments$Publickeys(this.context); + } + authorize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:authorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments = Resource$Users$Environments; + class Resource$Users$Environments$Publickeys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudshell.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudshell_v1alpha1.Resource$Users$Environments$Publickeys = Resource$Users$Environments$Publickeys; +})(cloudshell_v1alpha1 = exports.cloudshell_v1alpha1 || (exports.cloudshell_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 53072: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudtasks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(68349); +const v2beta2_1 = __nccwpck_require__(58434); +const v2beta3_1 = __nccwpck_require__(1249); +exports.VERSIONS = { + v2: v2_1.cloudtasks_v2.Cloudtasks, + v2beta2: v2beta2_1.cloudtasks_v2beta2.Cloudtasks, + v2beta3: v2beta3_1.cloudtasks_v2beta3.Cloudtasks, +}; +function cloudtasks(versionOrOptions) { + return googleapis_common_1.getAPI('cloudtasks', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudtasks = cloudtasks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 68349: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtasks_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtasks_v2; +(function (cloudtasks_v2) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2'); + * + * @namespace cloudtasks + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Cloudtasks + */ + class Cloudtasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtasks_v2.Cloudtasks = Cloudtasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudtasks_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2 = exports.cloudtasks_v2 || (exports.cloudtasks_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 58434: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtasks_v2beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtasks_v2beta2; +(function (cloudtasks_v2beta2) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2beta2'); + * + * @namespace cloudtasks + * @type {Function} + * @version v2beta2 + * @variation v2beta2 + * @param {object=} options Options for Cloudtasks + */ + class Cloudtasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtasks_v2beta2.Cloudtasks = Cloudtasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudtasks_v2beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta2.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancelLease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:cancelLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + renewLease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:renewLease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta2/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta2.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta2 = exports.cloudtasks_v2beta2 || (exports.cloudtasks_v2beta2 = {})); +//# sourceMappingURL=v2beta2.js.map + +/***/ }), + +/***/ 1249: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtasks_v2beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtasks_v2beta3; +(function (cloudtasks_v2beta3) { + /** + * Cloud Tasks API + * + * Manages the execution of large numbers of distributed requests. + * + * @example + * const {google} = require('googleapis'); + * const cloudtasks = google.cloudtasks('v2beta3'); + * + * @namespace cloudtasks + * @type {Function} + * @version v2beta3 + * @variation v2beta3 + * @param {object=} options Options for Cloudtasks + */ + class Cloudtasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtasks_v2beta3.Cloudtasks = Cloudtasks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + cloudtasks_v2beta3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.queues = new Resource$Projects$Locations$Queues(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Queues { + constructor(context) { + this.context = context; + this.tasks = new Resource$Projects$Locations$Queues$Tasks(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/queues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues = Resource$Projects$Locations$Queues; + class Resource$Projects$Locations$Queues$Tasks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+parent}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtasks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta3/{+name}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtasks_v2beta3.Resource$Projects$Locations$Queues$Tasks = Resource$Projects$Locations$Queues$Tasks; +})(cloudtasks_v2beta3 = exports.cloudtasks_v2beta3 || (exports.cloudtasks_v2beta3 = {})); +//# sourceMappingURL=v2beta3.js.map + +/***/ }), + +/***/ 82677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.cloudtrace = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(87705); +const v2_1 = __nccwpck_require__(76060); +const v2beta1_1 = __nccwpck_require__(30442); +exports.VERSIONS = { + v1: v1_1.cloudtrace_v1.Cloudtrace, + v2: v2_1.cloudtrace_v2.Cloudtrace, + v2beta1: v2beta1_1.cloudtrace_v2beta1.Cloudtrace, +}; +function cloudtrace(versionOrOptions) { + return googleapis_common_1.getAPI('cloudtrace', versionOrOptions, exports.VERSIONS, this); +} +exports.cloudtrace = cloudtrace; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 87705: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtrace_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtrace_v1; +(function (cloudtrace_v1) { + /** + * Cloud Trace API + * + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. + * + * @example + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v1'); + * + * @namespace cloudtrace + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Cloudtrace + */ + class Cloudtrace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtrace_v1.Cloudtrace = Cloudtrace; + class Resource$Projects { + constructor(context) { + this.context = context; + this.traces = new Resource$Projects$Traces(this.context); + } + patchTraces(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtrace_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Traces { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/traces/{traceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'traceId'], + pathParams: ['projectId', 'traceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/traces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtrace_v1.Resource$Projects$Traces = Resource$Projects$Traces; +})(cloudtrace_v1 = exports.cloudtrace_v1 || (exports.cloudtrace_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 76060: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtrace_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtrace_v2; +(function (cloudtrace_v2) { + /** + * Cloud Trace API + * + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. + * + * @example + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v2'); + * + * @namespace cloudtrace + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Cloudtrace + */ + class Cloudtrace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtrace_v2.Cloudtrace = Cloudtrace; + class Resource$Projects { + constructor(context) { + this.context = context; + this.traces = new Resource$Projects$Traces(this.context); + } + } + cloudtrace_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Traces { + constructor(context) { + this.context = context; + this.spans = new Resource$Projects$Traces$Spans(this.context); + } + batchWrite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/traces:batchWrite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtrace_v2.Resource$Projects$Traces = Resource$Projects$Traces; + class Resource$Projects$Traces$Spans { + constructor(context) { + this.context = context; + } + createSpan(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtrace_v2.Resource$Projects$Traces$Spans = Resource$Projects$Traces$Spans; +})(cloudtrace_v2 = exports.cloudtrace_v2 || (exports.cloudtrace_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 30442: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.cloudtrace_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var cloudtrace_v2beta1; +(function (cloudtrace_v2beta1) { + /** + * Cloud Trace API + * + * Sends application trace data to Cloud Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Cloud Trace API directly. If you are looking to instrument your application for Cloud Trace, we recommend using OpenCensus. + * + * @example + * const {google} = require('googleapis'); + * const cloudtrace = google.cloudtrace('v2beta1'); + * + * @namespace cloudtrace + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Cloudtrace + */ + class Cloudtrace { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + cloudtrace_v2beta1.Cloudtrace = Cloudtrace; + class Resource$Projects { + constructor(context) { + this.context = context; + this.traceSinks = new Resource$Projects$Tracesinks(this.context); + } + } + cloudtrace_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Tracesinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/traceSinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://cloudtrace.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + cloudtrace_v2beta1.Resource$Projects$Tracesinks = Resource$Projects$Tracesinks; +})(cloudtrace_v2beta1 = exports.cloudtrace_v2beta1 || (exports.cloudtrace_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 51697: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.composer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(11127); +const v1beta1_1 = __nccwpck_require__(68076); +exports.VERSIONS = { + v1: v1_1.composer_v1.Composer, + v1beta1: v1beta1_1.composer_v1beta1.Composer, +}; +function composer(versionOrOptions) { + return googleapis_common_1.getAPI('composer', versionOrOptions, exports.VERSIONS, this); +} +exports.composer = composer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 11127: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.composer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var composer_v1; +(function (composer_v1) { + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const composer = google.composer('v1'); + * + * @namespace composer + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Composer + */ + class Composer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + composer_v1.Composer = Composer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + composer_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + composer_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Imageversions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1 = exports.composer_v1 || (exports.composer_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 68076: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.composer_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var composer_v1beta1; +(function (composer_v1beta1) { + /** + * Cloud Composer API + * + * Manages Apache Airflow environments on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const composer = google.composer('v1beta1'); + * + * @namespace composer + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Composer + */ + class Composer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + composer_v1beta1.Composer = Composer; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + composer_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.environments = new Resource$Projects$Locations$Environments(this.context); + this.imageVersions = new Resource$Projects$Locations$Imageversions(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + composer_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1beta1.Resource$Projects$Locations$Environments = Resource$Projects$Locations$Environments; + class Resource$Projects$Locations$Imageversions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/imageVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1beta1.Resource$Projects$Locations$Imageversions = Resource$Projects$Locations$Imageversions; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://composer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + composer_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(composer_v1beta1 = exports.composer_v1beta1 || (exports.composer_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 60185: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.compute_alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var compute_alpha; +(function (compute_alpha) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const compute = google.compute('alpha'); + * + * @namespace compute + * @type {Function} + * @version alpha + * @variation alpha + * @param {object=} options Options for Compute + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.globalOrganizationOperations = new Resource$Globalorganizationoperations(this.context); + this.globalPublicDelegatedPrefixes = new Resource$Globalpublicdelegatedprefixes(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineImages = new Resource$Machineimages(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.organizationSecurityPolicies = new Resource$Organizationsecuritypolicies(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.publicAdvertisedPrefixes = new Resource$Publicadvertisedprefixes(this.context); + this.publicDelegatedPrefixes = new Resource$Publicdelegatedprefixes(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInPlaceSnapshots = new Resource$Regioninplacesnapshots(this.context); + this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionInstances = new Resource$Regioninstances(this.context); + this.regionNetworkEndpointGroups = new Resource$Regionnetworkendpointgroups(this.context); + this.regionNotificationEndpoints = new Resource$Regionnotificationendpoints(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.serviceAttachments = new Resource$Serviceattachments(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetGrpcProxies = new Resource$Targetgrpcproxies(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneInPlaceSnapshots = new Resource$Zoneinplacesnapshots(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_alpha.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Globalpublicdelegatedprefixes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Globalpublicdelegatedprefixes = Resource$Globalpublicdelegatedprefixes; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Images { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listReferrers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setName(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setName').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Instances = Resource$Instances; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnectLocations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listIpAddresses(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listIpOwners(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listIpOwners').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Organizationsecuritypolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + copyRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefaultServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/setDefaultServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Projects = Resource$Projects; + class Resource$Publicadvertisedprefixes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'publicAdvertisedPrefix'], + pathParams: ['project', 'publicAdvertisedPrefix'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Publicadvertisedprefixes = Resource$Publicadvertisedprefixes; + class Resource$Publicdelegatedprefixes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'publicDelegatedPrefix'], + pathParams: ['project', 'publicDelegatedPrefix', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Publicdelegatedprefixes = Resource$Publicdelegatedprefixes; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateReservations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninplacesnapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'inPlaceSnapshot'], + pathParams: ['inPlaceSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'inPlaceSnapshot'], + pathParams: ['inPlaceSnapshot', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regioninplacesnapshots = Resource$Regioninplacesnapshots; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regioninstances { + constructor(context) { + this.context = context; + } + bulkInsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/instances/bulkInsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regioninstances = Resource$Regioninstances; + class Resource$Regionnetworkendpointgroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionnetworkendpointgroups = Resource$Regionnetworkendpointgroups; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regions = Resource$Regions; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Routers = Resource$Routers; + class Resource$Routes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Serviceattachments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'serviceAttachment'], + pathParams: ['project', 'region', 'serviceAttachment'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/serviceAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Serviceattachments = Resource$Serviceattachments; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targetgrpcproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{targetGrpcProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetGrpcProxy'], + pathParams: ['project', 'targetGrpcProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetGrpcProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targetgrpcproxies = Resource$Targetgrpcproxies; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/targetTcpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneinplacesnapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'inPlaceSnapshot'], + pathParams: ['inPlaceSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'inPlaceSnapshot'], + pathParams: ['inPlaceSnapshot', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Zoneinplacesnapshots = Resource$Zoneinplacesnapshots; + class Resource$Zoneoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/alpha/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/alpha/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_alpha.Resource$Zones = Resource$Zones; +})(compute_alpha = exports.compute_alpha || (exports.compute_alpha = {})); +//# sourceMappingURL=alpha.js.map + +/***/ }), + +/***/ 14057: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.compute_beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var compute_beta; +(function (compute_beta) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const compute = google.compute('beta'); + * + * @namespace compute + * @type {Function} + * @version beta + * @variation beta + * @param {object=} options Options for Compute + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.globalOrganizationOperations = new Resource$Globalorganizationoperations(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineImages = new Resource$Machineimages(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.organizationSecurityPolicies = new Resource$Organizationsecuritypolicies(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionHealthCheckServices = new Resource$Regionhealthcheckservices(this.context); + this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionNotificationEndpoints = new Resource$Regionnotificationendpoints(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_beta.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/addresses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/forwardingRules/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Globalorganizationoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['operation'], + pathParams: ['operation'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/locations/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Globalorganizationoperations = Resource$Globalorganizationoperations; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Images { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resizeAdvanced(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resizeAdvanced').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getScreenshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/screenshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getShieldedVmIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/getShieldedVmIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listReferrers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setShieldedVmIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setShieldedVmIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateShieldedVmConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedVmConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Instances = Resource$Instances; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/interconnectAttachments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/interconnects/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Licenses = Resource$Licenses; + class Resource$Machineimages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{machineImage}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'machineImage'], + pathParams: ['machineImage', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/machineImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/machineImages/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Machineimages = Resource$Machineimages; + class Resource$Machinetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEffectiveFirewalls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/getEffectiveFirewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Organizationsecuritypolicies { + constructor(context) { + this.context = context; + } + addAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + copyRules(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/copyRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAssociations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/listAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeAssociation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeAssociation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/locations/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['securityPolicy'], + pathParams: ['securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Organizationsecuritypolicies = Resource$Organizationsecuritypolicies; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Projects = Resource$Projects; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateReservations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/commitments/{commitment}/updateReservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regionhealthcheckservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheckService'], + pathParams: ['healthCheckService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionhealthcheckservices = Resource$Regionhealthcheckservices; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchPerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/patchPerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoHealingPolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setAutoHealingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePerInstanceConfigs(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/updatePerInstanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regionnotificationendpoints { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints/{notificationEndpoint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'notificationEndpoint'], + pathParams: ['notificationEndpoint', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/notificationEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionnotificationendpoints = Resource$Regionnotificationendpoints; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regions = Resource$Regions; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Routers = Resource$Routers; + class Resource$Routes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/routes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/securityPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslCertificates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/sslPolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetHttpsProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/targetInstances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetPools/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetSslProxies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/targetVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/beta/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/beta/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_beta.Resource$Zones = Resource$Zones; +})(compute_beta = exports.compute_beta || (exports.compute_beta = {})); +//# sourceMappingURL=beta.js.map + +/***/ }), + +/***/ 2064: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.compute = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const alpha_1 = __nccwpck_require__(60185); +const beta_1 = __nccwpck_require__(14057); +const v1_1 = __nccwpck_require__(96616); +exports.VERSIONS = { + alpha: alpha_1.compute_alpha.Compute, + beta: beta_1.compute_beta.Compute, + v1: v1_1.compute_v1.Compute, +}; +function compute(versionOrOptions) { + return googleapis_common_1.getAPI('compute', versionOrOptions, exports.VERSIONS, this); +} +exports.compute = compute; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 96616: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.compute_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var compute_v1; +(function (compute_v1) { + /** + * Compute Engine API + * + * Creates and runs virtual machines on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const compute = google.compute('v1'); + * + * @namespace compute + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Compute + */ + class Compute { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.acceleratorTypes = new Resource$Acceleratortypes(this.context); + this.addresses = new Resource$Addresses(this.context); + this.autoscalers = new Resource$Autoscalers(this.context); + this.backendBuckets = new Resource$Backendbuckets(this.context); + this.backendServices = new Resource$Backendservices(this.context); + this.disks = new Resource$Disks(this.context); + this.diskTypes = new Resource$Disktypes(this.context); + this.externalVpnGateways = new Resource$Externalvpngateways(this.context); + this.firewalls = new Resource$Firewalls(this.context); + this.forwardingRules = new Resource$Forwardingrules(this.context); + this.globalAddresses = new Resource$Globaladdresses(this.context); + this.globalForwardingRules = new Resource$Globalforwardingrules(this.context); + this.globalNetworkEndpointGroups = new Resource$Globalnetworkendpointgroups(this.context); + this.globalOperations = new Resource$Globaloperations(this.context); + this.healthChecks = new Resource$Healthchecks(this.context); + this.httpHealthChecks = new Resource$Httphealthchecks(this.context); + this.httpsHealthChecks = new Resource$Httpshealthchecks(this.context); + this.images = new Resource$Images(this.context); + this.instanceGroupManagers = new Resource$Instancegroupmanagers(this.context); + this.instanceGroups = new Resource$Instancegroups(this.context); + this.instances = new Resource$Instances(this.context); + this.instanceTemplates = new Resource$Instancetemplates(this.context); + this.interconnectAttachments = new Resource$Interconnectattachments(this.context); + this.interconnectLocations = new Resource$Interconnectlocations(this.context); + this.interconnects = new Resource$Interconnects(this.context); + this.licenseCodes = new Resource$Licensecodes(this.context); + this.licenses = new Resource$Licenses(this.context); + this.machineTypes = new Resource$Machinetypes(this.context); + this.networkEndpointGroups = new Resource$Networkendpointgroups(this.context); + this.networks = new Resource$Networks(this.context); + this.nodeGroups = new Resource$Nodegroups(this.context); + this.nodeTemplates = new Resource$Nodetemplates(this.context); + this.nodeTypes = new Resource$Nodetypes(this.context); + this.packetMirrorings = new Resource$Packetmirrorings(this.context); + this.projects = new Resource$Projects(this.context); + this.regionAutoscalers = new Resource$Regionautoscalers(this.context); + this.regionBackendServices = new Resource$Regionbackendservices(this.context); + this.regionCommitments = new Resource$Regioncommitments(this.context); + this.regionDisks = new Resource$Regiondisks(this.context); + this.regionDiskTypes = new Resource$Regiondisktypes(this.context); + this.regionHealthChecks = new Resource$Regionhealthchecks(this.context); + this.regionInstanceGroupManagers = new Resource$Regioninstancegroupmanagers(this.context); + this.regionInstanceGroups = new Resource$Regioninstancegroups(this.context); + this.regionOperations = new Resource$Regionoperations(this.context); + this.regions = new Resource$Regions(this.context); + this.regionSslCertificates = new Resource$Regionsslcertificates(this.context); + this.regionTargetHttpProxies = new Resource$Regiontargethttpproxies(this.context); + this.regionTargetHttpsProxies = new Resource$Regiontargethttpsproxies(this.context); + this.regionUrlMaps = new Resource$Regionurlmaps(this.context); + this.reservations = new Resource$Reservations(this.context); + this.resourcePolicies = new Resource$Resourcepolicies(this.context); + this.routers = new Resource$Routers(this.context); + this.routes = new Resource$Routes(this.context); + this.securityPolicies = new Resource$Securitypolicies(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.sslCertificates = new Resource$Sslcertificates(this.context); + this.sslPolicies = new Resource$Sslpolicies(this.context); + this.subnetworks = new Resource$Subnetworks(this.context); + this.targetHttpProxies = new Resource$Targethttpproxies(this.context); + this.targetHttpsProxies = new Resource$Targethttpsproxies(this.context); + this.targetInstances = new Resource$Targetinstances(this.context); + this.targetPools = new Resource$Targetpools(this.context); + this.targetSslProxies = new Resource$Targetsslproxies(this.context); + this.targetTcpProxies = new Resource$Targettcpproxies(this.context); + this.targetVpnGateways = new Resource$Targetvpngateways(this.context); + this.urlMaps = new Resource$Urlmaps(this.context); + this.vpnGateways = new Resource$Vpngateways(this.context); + this.vpnTunnels = new Resource$Vpntunnels(this.context); + this.zoneOperations = new Resource$Zoneoperations(this.context); + this.zones = new Resource$Zones(this.context); + } + } + compute_v1.Compute = Compute; + class Resource$Acceleratortypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes/{acceleratorType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'acceleratorType'], + pathParams: ['acceleratorType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Acceleratortypes = Resource$Acceleratortypes; + class Resource$Addresses { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'address'], + pathParams: ['address', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Addresses = Resource$Addresses; + class Resource$Autoscalers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Autoscalers = Resource$Autoscalers; + class Resource$Backendbuckets { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendBucket', 'keyName'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/backendBuckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendBuckets/{backendBucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendBucket'], + pathParams: ['backendBucket', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Backendbuckets = Resource$Backendbuckets; + class Resource$Backendservices { + constructor(context) { + this.context = context; + } + addSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/addSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteSignedUrlKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/deleteSignedUrlKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService', 'keyName'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSecurityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}/setSecurityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'backendService'], + pathParams: ['backendService', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Backendservices = Resource$Backendservices; + class Resource$Disks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'disk'], + pathParams: ['disk', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Disks = Resource$Disks; + class Resource$Disktypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'diskType'], + pathParams: ['diskType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Disktypes = Resource$Disktypes; + class Resource$Externalvpngateways { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{externalVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'externalVpnGateway'], + pathParams: ['externalVpnGateway', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/externalVpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Externalvpngateways = Resource$Externalvpngateways; + class Resource$Firewalls { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/firewalls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/firewalls/{firewall}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'firewall'], + pathParams: ['firewall', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Firewalls = Resource$Firewalls; + class Resource$Forwardingrules { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'forwardingRule'], + pathParams: ['forwardingRule', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Forwardingrules = Resource$Forwardingrules; + class Resource$Globaladdresses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/addresses/{address}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'address'], + pathParams: ['address', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/addresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Globaladdresses = Resource$Globaladdresses; + class Resource$Globalforwardingrules { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/forwardingRules').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTarget(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/forwardingRules/{forwardingRule}/setTarget').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'forwardingRule'], + pathParams: ['forwardingRule', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Globalforwardingrules = Resource$Globalforwardingrules; + class Resource$Globalnetworkendpointgroups { + constructor(context) { + this.context = context; + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Globalnetworkendpointgroups = Resource$Globalnetworkendpointgroups; + class Resource$Globaloperations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Globaloperations = Resource$Globaloperations; + class Resource$Healthchecks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'healthCheck'], + pathParams: ['healthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Healthchecks = Resource$Healthchecks; + class Resource$Httphealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/httpHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpHealthChecks/{httpHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpHealthCheck'], + pathParams: ['httpHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Httphealthchecks = Resource$Httphealthchecks; + class Resource$Httpshealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/httpsHealthChecks/{httpsHealthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'httpsHealthCheck'], + pathParams: ['httpsHealthCheck', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Httpshealthchecks = Resource$Httpshealthchecks; + class Resource$Images { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deprecate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{image}/deprecate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/images/{image}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'image'], + pathParams: ['image', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFromFamily(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/family/{family}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'family'], + pathParams: ['family', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/images').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/images/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Images = Resource$Images; + class Resource$Instancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Instancegroupmanagers = Resource$Instancegroupmanagers; + class Resource$Instancegroups { + constructor(context) { + this.context = context; + } + addInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/addInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/removeInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Instancegroups = Resource$Instancegroups; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/attachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'accessConfig', + 'networkInterface', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/detachDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'deviceName'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getGuestAttributes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getGuestAttributes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSerialPortOutput(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/serialPort').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getShieldedInstanceIdentity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/getShieldedInstanceIdentity').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listReferrers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/referrers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDeletionProtection(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setDeletionProtection').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDiskAutoDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setDiskAutoDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'project', + 'zone', + 'instance', + 'autoDelete', + 'deviceName', + ], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMachineType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMachineType').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMinCpuPlatform(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setMinCpuPlatform').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setScheduling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setScheduling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setServiceAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setServiceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setShieldedInstanceIntegrityPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setShieldedInstanceIntegrityPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/setTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + simulateMaintenanceEvent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/simulateMaintenanceEvent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startWithEncryptionKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/startWithEncryptionKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAccessConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateAccessConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateDisplayDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateDisplayDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateNetworkInterface(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateNetworkInterface').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance', 'networkInterface'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateShieldedInstanceConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/instances/{instance}/updateShieldedInstanceConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'instance'], + pathParams: ['instance', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Instances = Resource$Instances; + class Resource$Instancetemplates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{instanceTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instanceTemplate'], + pathParams: ['instanceTemplate', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/instanceTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Instancetemplates = Resource$Instancetemplates; + class Resource$Interconnectattachments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/interconnectAttachments/{interconnectAttachment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'interconnectAttachment'], + pathParams: ['interconnectAttachment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Interconnectattachments = Resource$Interconnectattachments; + class Resource$Interconnectlocations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnectLocations/{interconnectLocation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnectLocation'], + pathParams: ['interconnectLocation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnectLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Interconnectlocations = Resource$Interconnectlocations; + class Resource$Interconnects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getDiagnostics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}/getDiagnostics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/interconnects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/interconnects/{interconnect}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'interconnect'], + pathParams: ['interconnect', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Interconnects = Resource$Interconnects; + class Resource$Licensecodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenseCodes/{licenseCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'licenseCode'], + pathParams: ['licenseCode', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenseCodes/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Licensecodes = Resource$Licensecodes; + class Resource$Licenses { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{license}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'license'], + pathParams: ['license', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/licenses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/licenses/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Licenses = Resource$Licenses; + class Resource$Machinetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/machineTypes/{machineType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'machineType'], + pathParams: ['machineType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/machineTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Machinetypes = Resource$Machinetypes; + class Resource$Networkendpointgroups { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/detachNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNetworkEndpoints(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{networkEndpointGroup}/listNetworkEndpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'networkEndpointGroup'], + pathParams: ['networkEndpointGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/networkEndpointGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Networkendpointgroups = Resource$Networkendpointgroups; + class Resource$Networks { + constructor(context) { + this.context = context; + } + addPeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/addPeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/networks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPeeringRoutes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/listPeeringRoutes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/removePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + switchToCustomMode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/switchToCustomMode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePeering(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/networks/{network}/updatePeering').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'network'], + pathParams: ['network', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Networks = Resource$Networks; + class Resource$Nodegroups { + constructor(context) { + this.context = context; + } + addNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/addNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/deleteNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'initialNodeCount'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listNodes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/listNodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNodeTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{nodeGroup}/setNodeTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeGroup'], + pathParams: ['nodeGroup', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeGroups/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Nodegroups = Resource$Nodegroups; + class Resource$Nodetemplates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{nodeTemplate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'nodeTemplate'], + pathParams: ['nodeTemplate', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Nodetemplates = Resource$Nodetemplates; + class Resource$Nodetypes { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes/{nodeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'nodeType'], + pathParams: ['nodeType', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/nodeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Nodetypes = Resource$Nodetypes; + class Resource$Packetmirrorings { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{packetMirroring}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'packetMirroring'], + pathParams: ['packetMirroring', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/packetMirrorings/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Packetmirrorings = Resource$Packetmirrorings; + class Resource$Projects { + constructor(context) { + this.context = context; + } + disableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/disableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableXpnResource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/enableXpnResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnHost(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/getXpnHost').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getXpnResources(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/getXpnResources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listXpnHosts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/listXpnHosts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveDisk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/moveDisk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + moveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/moveInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setCommonInstanceMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/setCommonInstanceMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefaultNetworkTier(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/setDefaultNetworkTier').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUsageExportBucket(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/setUsageExportBucket').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Projects = Resource$Projects; + class Resource$Regionautoscalers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'autoscaler'], + pathParams: ['autoscaler', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/autoscalers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionautoscalers = Resource$Regionautoscalers; + class Resource$Regionbackendservices { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/backendServices/{backendService}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'backendService'], + pathParams: ['backendService', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionbackendservices = Resource$Regionbackendservices; + class Resource$Regioncommitments { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments/{commitment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'commitment'], + pathParams: ['commitment', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/commitments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regioncommitments = Resource$Regioncommitments; + class Resource$Regiondisks { + constructor(context) { + this.context = context; + } + addResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/addResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSnapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/createSnapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}/disks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeResourcePolicies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/removeResourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{disk}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'disk'], + pathParams: ['disk', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/disks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regiondisks = Resource$Regiondisks; + class Resource$Regiondisktypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/diskTypes/{diskType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'diskType'], + pathParams: ['diskType', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/diskTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regiondisktypes = Resource$Regiondisktypes; + class Resource$Regionhealthchecks { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/healthChecks/{healthCheck}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'healthCheck'], + pathParams: ['healthCheck', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionhealthchecks = Resource$Regionhealthchecks; + class Resource$Regioninstancegroupmanagers { + constructor(context) { + this.context = context; + } + abandonInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyUpdatesToInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listErrors(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listErrors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listManagedInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/listManagedInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recreateInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/recreateInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager', 'size'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setInstanceTemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setInstanceTemplate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setTargetPools(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/setTargetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroupManager'], + pathParams: ['instanceGroupManager', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regioninstancegroupmanagers = Resource$Regioninstancegroupmanagers; + class Resource$Regioninstancegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/listInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNamedPorts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'instanceGroup'], + pathParams: ['instanceGroup', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regioninstancegroups = Resource$Regioninstancegroups; + class Resource$Regionoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'operation'], + pathParams: ['operation', 'project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionoperations = Resource$Regionoperations; + class Resource$Regions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/regions/{region}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regions = Resource$Regions; + class Resource$Regionsslcertificates { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'sslCertificate'], + pathParams: ['project', 'region', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionsslcertificates = Resource$Regionsslcertificates; + class Resource$Regiontargethttpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpProxy'], + pathParams: ['project', 'region', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regiontargethttpproxies = Resource$Regiontargethttpproxies; + class Resource$Regiontargethttpsproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetHttpsProxy'], + pathParams: ['project', 'region', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regiontargethttpsproxies = Resource$Regiontargethttpsproxies; + class Resource$Regionurlmaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'urlMap'], + pathParams: ['project', 'region', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Regionurlmaps = Resource$Regionurlmaps; + class Resource$Reservations { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{reservation}/resize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'reservation'], + pathParams: ['project', 'reservation', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/reservations/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'resource'], + pathParams: ['project', 'resource', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Reservations = Resource$Reservations; + class Resource$Resourcepolicies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resourcePolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resourcePolicy'], + pathParams: ['project', 'region', 'resourcePolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/resourcePolicies/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Resourcepolicies = Resource$Resourcepolicies; + class Resource$Routers { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNatMappingInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNatMappingInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRouterStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/getRouterStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}/preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/routers/{router}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'region', 'router'], + pathParams: ['project', 'region', 'router'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Routers = Resource$Routers; + class Resource$Routes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/routes/{route}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'route'], + pathParams: ['project', 'route'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Routes = Resource$Routes; + class Resource$Securitypolicies { + constructor(context) { + this.context = context; + } + addRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/addRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/getRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/securityPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listPreconfiguredExpressionSets(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/listPreconfiguredExpressionSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patchRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/patchRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeRule(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/securityPolicies/{securityPolicy}/removeRule').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'securityPolicy'], + pathParams: ['project', 'securityPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Securitypolicies = Resource$Securitypolicies; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'snapshot'], + pathParams: ['project', 'snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/snapshots/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Sslcertificates { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslCertificates/{sslCertificate}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslCertificate'], + pathParams: ['project', 'sslCertificate'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/sslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Sslcertificates = Resource$Sslcertificates; + class Resource$Sslpolicies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/sslPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listAvailableFeatures(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/listAvailableFeatures').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/sslPolicies/{sslPolicy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'sslPolicy'], + pathParams: ['project', 'sslPolicy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Sslpolicies = Resource$Sslpolicies; + class Resource$Subnetworks { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + expandIpCidrRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/expandIpCidrRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listUsable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/subnetworks/listUsable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setPrivateIpGoogleAccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{subnetwork}/setPrivateIpGoogleAccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'subnetwork'], + pathParams: ['project', 'region', 'subnetwork'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/subnetworks/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Subnetworks = Resource$Subnetworks; + class Resource$Targethttpproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies/{targetHttpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpProxies/{targetHttpProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpProxy'], + pathParams: ['project', 'targetHttpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targethttpproxies = Resource$Targethttpproxies; + class Resource$Targethttpsproxies { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setQuicOverride(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setQuicOverride').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetHttpsProxies/{targetHttpsProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setUrlMap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/targetHttpsProxies/{targetHttpsProxy}/setUrlMap').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetHttpsProxy'], + pathParams: ['project', 'targetHttpsProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targethttpsproxies = Resource$Targethttpsproxies; + class Resource$Targetinstances { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances/{targetInstance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'targetInstance'], + pathParams: ['project', 'targetInstance', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/targetInstances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targetinstances = Resource$Targetinstances; + class Resource$Targetpools { + constructor(context) { + this.context = context; + } + addHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/addInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHealth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/getHealth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeHealthCheck(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeHealthCheck').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/removeInstance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetPools/{targetPool}/setBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'targetPool'], + pathParams: ['project', 'region', 'targetPool'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targetpools = Resource$Targetpools; + class Resource$Targetsslproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetSslProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslCertificates(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslCertificates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSslPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetSslProxies/{targetSslProxy}/setSslPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetSslProxy'], + pathParams: ['project', 'targetSslProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targetsslproxies = Resource$Targetsslproxies; + class Resource$Targettcpproxies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/targetTcpProxies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setBackendService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setBackendService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProxyHeader(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/targetTcpProxies/{targetTcpProxy}/setProxyHeader').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'targetTcpProxy'], + pathParams: ['project', 'targetTcpProxy'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targettcpproxies = Resource$Targettcpproxies; + class Resource$Targetvpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/aggregated/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{targetVpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'targetVpnGateway'], + pathParams: ['project', 'region', 'targetVpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/targetVpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Targetvpngateways = Resource$Targetvpngateways; + class Resource$Urlmaps { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + invalidateCache(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/invalidateCache').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/global/urlMaps/{urlMap}/validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'urlMap'], + pathParams: ['project', 'urlMap'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Urlmaps = Resource$Urlmaps; + class Resource$Vpngateways { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnGateway'], + pathParams: ['project', 'region', 'vpnGateway'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region', 'resource'], + pathParams: ['project', 'region', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Vpngateways = Resource$Vpngateways; + class Resource$Vpntunnels { + constructor(context) { + this.context = context; + } + aggregatedList(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/aggregated/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region', 'vpnTunnel'], + pathParams: ['project', 'region', 'vpnTunnel'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/regions/{region}/vpnTunnels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'region'], + pathParams: ['project', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Vpntunnels = Resource$Vpntunnels; + class Resource$Zoneoperations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/compute/v1/projects/{project}/zones/{zone}/operations/{operation}/wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'zone', 'operation'], + pathParams: ['operation', 'project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Zoneoperations = Resource$Zoneoperations; + class Resource$Zones { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones/{zone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'zone'], + pathParams: ['project', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://compute.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/compute/v1/projects/{project}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + compute_v1.Resource$Zones = Resource$Zones; +})(compute_v1 = exports.compute_v1 || (exports.compute_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 7668: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.container = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(39298); +const v1beta1_1 = __nccwpck_require__(56001); +exports.VERSIONS = { + v1: v1_1.container_v1.Container, + v1beta1: v1beta1_1.container_v1beta1.Container, +}; +function container(versionOrOptions) { + return googleapis_common_1.getAPI('container', versionOrOptions, exports.VERSIONS, this); +} +exports.container = container; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 39298: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.container_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var container_v1; +(function (container_v1) { + /** + * Kubernetes Engine API + * + * Builds and manages container-based applications, powered by the open source Kubernetes technology. + * + * @example + * const {google} = require('googleapis'); + * const container = google.container('v1'); + * + * @namespace container + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Container + */ + class Container { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + container_v1.Container = Container; + class Resource$Projects { + constructor(context) { + this.context = context; + this.aggregated = new Resource$Projects$Aggregated(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + container_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Aggregated { + constructor(context) { + this.context = context; + this.usableSubnetworks = new Resource$Projects$Aggregated$Usablesubnetworks(this.context); + } + } + container_v1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; + class Resource$Projects$Aggregated$Usablesubnetworks { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + getServerConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); + } + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getJwks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAddons(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLocations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLogging(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMonitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateMaster(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setManagement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; + class Resource$Projects$Locations$Clusters$WellKnown { + constructor(context) { + this.context = context; + } + getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Zones$Clusters(this.context); + this.operations = new Resource$Projects$Zones$Operations(this.context); + } + getServerconfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); + } + addons(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + legacyAbac(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + locations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + logging(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + master(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + monitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; + class Resource$Projects$Zones$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + autoscaling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setManagement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; + class Resource$Projects$Zones$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; +})(container_v1 = exports.container_v1 || (exports.container_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 56001: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.container_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var container_v1beta1; +(function (container_v1beta1) { + /** + * Kubernetes Engine API + * + * Builds and manages container-based applications, powered by the open source Kubernetes technology. + * + * @example + * const {google} = require('googleapis'); + * const container = google.container('v1beta1'); + * + * @namespace container + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Container + */ + class Container { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + container_v1beta1.Container = Container; + class Resource$Projects { + constructor(context) { + this.context = context; + this.aggregated = new Resource$Projects$Aggregated(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + container_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Aggregated { + constructor(context) { + this.context = context; + this.usableSubnetworks = new Resource$Projects$Aggregated$Usablesubnetworks(this.context); + } + } + container_v1beta1.Resource$Projects$Aggregated = Resource$Projects$Aggregated; + class Resource$Projects$Aggregated$Usablesubnetworks { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/aggregated/usableSubnetworks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Aggregated$Usablesubnetworks = Resource$Projects$Aggregated$Usablesubnetworks; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Locations$Clusters(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + getServerConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/serverConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Locations$Clusters$Nodepools(this.context); + this.wellKnown = new Resource$Projects$Locations$Clusters$WellKnown(this.context); + } + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getJwks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/jwks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAddons(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setAddons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLegacyAbac(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLegacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLocations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setLogging(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setLogging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMonitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setMonitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setResourceLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setResourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateMaster(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:updateMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters = Resource$Projects$Locations$Clusters; + class Resource$Projects$Locations$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAutoscaling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setAutoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setManagement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters$Nodepools = Resource$Projects$Locations$Clusters$Nodepools; + class Resource$Projects$Locations$Clusters$WellKnown { + constructor(context) { + this.context = context; + } + getOpenidConfiguration(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/.well-known/openid-configuration').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Clusters$WellKnown = Resource$Projects$Locations$Clusters$WellKnown; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.clusters = new Resource$Projects$Zones$Clusters(this.context); + this.operations = new Resource$Projects$Zones$Operations(this.context); + } + getServerconfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/serverconfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Clusters { + constructor(context) { + this.context = context; + this.nodePools = new Resource$Projects$Zones$Clusters$Nodepools(this.context); + } + addons(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/addons').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + completeIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:completeIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + legacyAbac(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/legacyAbac').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + locations(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + logging(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/logging').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + master(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/master').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + monitoring(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/monitoring').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resourceLabels(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/resourceLabels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMaintenancePolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMaintenancePolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setMasterAuth(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setMasterAuth').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setNetworkPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:setNetworkPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startIpRotation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}:startIpRotation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Clusters = Resource$Projects$Zones$Clusters; + class Resource$Projects$Zones$Clusters$Nodepools { + constructor(context) { + this.context = context; + } + autoscaling(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/autoscaling').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId'], + pathParams: ['clusterId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setManagement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setManagement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setSize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/setSize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/clusters/{clusterId}/nodePools/{nodePoolId}/update').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'clusterId', 'nodePoolId'], + pathParams: ['clusterId', 'nodePoolId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Clusters$Nodepools = Resource$Projects$Zones$Clusters$Nodepools; + class Resource$Projects$Zones$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/projects/{projectId}/zones/{zone}/operations/{operationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone', 'operationId'], + pathParams: ['operationId', 'projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://container.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}/zones/{zone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'zone'], + pathParams: ['projectId', 'zone'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + container_v1beta1.Resource$Projects$Zones$Operations = Resource$Projects$Zones$Operations; +})(container_v1beta1 = exports.container_v1beta1 || (exports.container_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 35578: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.containeranalysis = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1alpha1_1 = __nccwpck_require__(4690); +const v1beta1_1 = __nccwpck_require__(4947); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.containeranalysis_v1alpha1.Containeranalysis, + v1beta1: v1beta1_1.containeranalysis_v1beta1.Containeranalysis, +}; +function containeranalysis(versionOrOptions) { + return googleapis_common_1.getAPI('containeranalysis', versionOrOptions, exports.VERSIONS, this); +} +exports.containeranalysis = containeranalysis; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 4690: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.containeranalysis_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var containeranalysis_v1alpha1; +(function (containeranalysis_v1alpha1) { + /** + * Container Analysis API + * + * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * + * @example + * const {google} = require('googleapis'); + * const containeranalysis = google.containeranalysis('v1alpha1'); + * + * @namespace containeranalysis + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Containeranalysis + */ + class Containeranalysis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.providers = new Resource$Providers(this.context); + } + } + containeranalysis_v1alpha1.Containeranalysis = Containeranalysis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); + this.operations = new Resource$Projects$Operations(this.context); + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + containeranalysis_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Notes = Resource$Projects$Notes; + class Resource$Projects$Notes$Occurrences { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; + class Resource$Projects$Occurrences { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNotes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Providers { + constructor(context) { + this.context = context; + this.notes = new Resource$Providers$Notes(this.context); + } + } + containeranalysis_v1alpha1.Resource$Providers = Resource$Providers; + class Resource$Providers$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Providers$Notes$Occurrences(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Providers$Notes = Resource$Providers$Notes; + class Resource$Providers$Notes$Occurrences { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1alpha1.Resource$Providers$Notes$Occurrences = Resource$Providers$Notes$Occurrences; +})(containeranalysis_v1alpha1 = exports.containeranalysis_v1alpha1 || (exports.containeranalysis_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 4947: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.containeranalysis_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var containeranalysis_v1beta1; +(function (containeranalysis_v1beta1) { + /** + * Container Analysis API + * + * An implementation of the Grafeas API, which stores, and enables querying and retrieval of critical metadata about all of your software artifacts. + * + * @example + * const {google} = require('googleapis'); + * const containeranalysis = google.containeranalysis('v1beta1'); + * + * @namespace containeranalysis + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Containeranalysis + */ + class Containeranalysis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + containeranalysis_v1beta1.Containeranalysis = Containeranalysis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.notes = new Resource$Projects$Notes(this.context); + this.occurrences = new Resource$Projects$Occurrences(this.context); + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + containeranalysis_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Notes { + constructor(context) { + this.context = context; + this.occurrences = new Resource$Projects$Notes$Occurrences(this.context); + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notes:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1beta1.Resource$Projects$Notes = Resource$Projects$Notes; + class Resource$Projects$Notes$Occurrences { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1beta1.Resource$Projects$Notes$Occurrences = Resource$Projects$Notes$Occurrences; + class Resource$Projects$Occurrences { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/occurrences:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNotes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/notes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getVulnerabilitySummary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/occurrences:vulnerabilitySummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/occurrences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1beta1.Resource$Projects$Occurrences = Resource$Projects$Occurrences; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://containeranalysis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + containeranalysis_v1beta1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; +})(containeranalysis_v1beta1 = exports.containeranalysis_v1beta1 || (exports.containeranalysis_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 94516: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.content = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1_1 = __nccwpck_require__(16758); +const v2_1 = __nccwpck_require__(74882); +exports.VERSIONS = { + 'v2.1': v2_1_1.content_v2_1.Content, + v2: v2_1.content_v2.Content, +}; +function content(versionOrOptions) { + return googleapis_common_1.getAPI('content', versionOrOptions, exports.VERSIONS, this); +} +exports.content = content; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16758: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.content_v2_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var content_v2_1; +(function (content_v2_1) { + /** + * Content API for Shopping + * + * Manages product items, inventory, and Merchant Center accounts for Google Shopping. + * + * @example + * const {google} = require('googleapis'); + * const content = google.content('v2.1'); + * + * @namespace content + * @type {Function} + * @version v2.1 + * @variation v2.1 + * @param {object=} options Options for Content + */ + class Content { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.accountstatuses = new Resource$Accountstatuses(this.context); + this.accounttax = new Resource$Accounttax(this.context); + this.datafeeds = new Resource$Datafeeds(this.context); + this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); + this.liasettings = new Resource$Liasettings(this.context); + this.localinventory = new Resource$Localinventory(this.context); + this.orderinvoices = new Resource$Orderinvoices(this.context); + this.orderreports = new Resource$Orderreports(this.context); + this.orderreturns = new Resource$Orderreturns(this.context); + this.orders = new Resource$Orders(this.context); + this.pos = new Resource$Pos(this.context); + this.products = new Resource$Products(this.context); + this.productstatuses = new Resource$Productstatuses(this.context); + this.pubsubnotificationsettings = new Resource$Pubsubnotificationsettings(this.context); + this.regionalinventory = new Resource$Regionalinventory(this.context); + this.returnaddress = new Resource$Returnaddress(this.context); + this.returnpolicy = new Resource$Returnpolicy(this.context); + this.settlementreports = new Resource$Settlementreports(this.context); + this.settlementtransactions = new Resource$Settlementtransactions(this.context); + this.shippingsettings = new Resource$Shippingsettings(this.context); + } + } + content_v2_1.Content = Content; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + authinfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + link(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listlinks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/accounts/{accountId}/listlinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Accounts = Resource$Accounts; + class Resource$Accountstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Accountstatuses = Resource$Accountstatuses; + class Resource$Accounttax { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Accounttax = Resource$Accounttax; + class Resource$Datafeeds { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + fetchnow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Datafeedstatuses = Resource$Datafeedstatuses; + class Resource$Liasettings { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'merchantId', + 'accountId', + 'contactEmail', + 'contactName', + 'country', + 'language', + ], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Liasettings = Resource$Liasettings; + class Resource$Localinventory { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/localinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/localinventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Localinventory = Resource$Localinventory; + class Resource$Orderinvoices { + constructor(context) { + this.context = context; + } + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { + constructor(context) { + this.context = context; + } + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'disbursementStartDate'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listtransactions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'merchantId', + 'disbursementId', + 'transactionStartDate', + ], + pathParams: ['disbursementId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Orderreports = Resource$Orderreports; + class Resource$Orderreturns { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + process(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orderreturns/{returnId}/process').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orders { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createtestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateshipment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Orders = Resource$Orders; + class Resource$Pos { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/pos/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Pos = Resource$Pos; + class Resource$Products { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/products/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Products = Resource$Products; + class Resource$Productstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Pubsubnotificationsettings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/pubsubnotificationsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Pubsubnotificationsettings = Resource$Pubsubnotificationsettings; + class Resource$Regionalinventory { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/regionalinventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/products/{productId}/regionalinventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Regionalinventory = Resource$Regionalinventory; + class Resource$Returnaddress { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/returnaddress/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/returnaddress/{returnAddressId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'returnAddressId'], + pathParams: ['merchantId', 'returnAddressId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/returnaddress').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Returnaddress = Resource$Returnaddress; + class Resource$Returnpolicy { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/returnpolicy/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/returnpolicy/{returnPolicyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'returnPolicyId'], + pathParams: ['merchantId', 'returnPolicyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/returnpolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Returnpolicy = Resource$Returnpolicy; + class Resource$Settlementreports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/settlementreports/{settlementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/settlementreports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Settlementreports = Resource$Settlementreports; + class Resource$Settlementtransactions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/settlementreports/{settlementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'settlementId'], + pathParams: ['merchantId', 'settlementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Settlementtransactions = Resource$Settlementtransactions; + class Resource$Shippingsettings { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedpickupservices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2.1/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2.1/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2_1.Resource$Shippingsettings = Resource$Shippingsettings; +})(content_v2_1 = exports.content_v2_1 || (exports.content_v2_1 = {})); +//# sourceMappingURL=v2.1.js.map + +/***/ }), + +/***/ 74882: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.content_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var content_v2; +(function (content_v2) { + /** + * Content API for Shopping + * + * Manages product items, inventory, and Merchant Center accounts for Google Shopping. + * + * @example + * const {google} = require('googleapis'); + * const content = google.content('v2'); + * + * @namespace content + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Content + */ + class Content { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + this.accountstatuses = new Resource$Accountstatuses(this.context); + this.accounttax = new Resource$Accounttax(this.context); + this.datafeeds = new Resource$Datafeeds(this.context); + this.datafeedstatuses = new Resource$Datafeedstatuses(this.context); + this.inventory = new Resource$Inventory(this.context); + this.liasettings = new Resource$Liasettings(this.context); + this.orderinvoices = new Resource$Orderinvoices(this.context); + this.orderreports = new Resource$Orderreports(this.context); + this.orderreturns = new Resource$Orderreturns(this.context); + this.orders = new Resource$Orders(this.context); + this.pos = new Resource$Pos(this.context); + this.products = new Resource$Products(this.context); + this.productstatuses = new Resource$Productstatuses(this.context); + this.shippingsettings = new Resource$Shippingsettings(this.context); + } + } + content_v2.Content = Content; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + authinfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/accounts/authinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + claimwebsite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/accounts/{accountId}/claimwebsite').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/accounts/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + link(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}/link').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accountstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/accountstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accountstatuses/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accountstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Accountstatuses = Resource$Accountstatuses; + class Resource$Accounttax { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/accounttax/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounttax').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/accounttax/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Accounttax = Resource$Accounttax; + class Resource$Datafeeds { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/datafeeds/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + fetchnow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/datafeeds/{datafeedId}/fetchNow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeeds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeeds/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Datafeeds = Resource$Datafeeds; + class Resource$Datafeedstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/datafeedstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses/{datafeedId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'datafeedId'], + pathParams: ['datafeedId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/datafeedstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Datafeedstatuses = Resource$Datafeedstatuses; + class Resource$Inventory { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/inventory/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/inventory/{storeCode}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'storeCode', 'productId'], + pathParams: ['merchantId', 'productId', 'storeCode'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Inventory = Resource$Inventory; + class Resource$Liasettings { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/liasettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getaccessiblegmbaccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/accessiblegmbaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/liasettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listposdataproviders(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/liasettings/posdataproviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestgmbaccess(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/requestgmbaccess').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'gmbEmail'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestinventoryverification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/requestinventoryverification/{country}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'country', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setinventoryverificationcontact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setinventoryverificationcontact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'merchantId', + 'accountId', + 'contactEmail', + 'contactName', + 'country', + 'language', + ], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setposdataprovider(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/liasettings/{accountId}/setposdataprovider').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'accountId', 'country'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/liasettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Liasettings = Resource$Liasettings; + class Resource$Orderinvoices { + constructor(context) { + this.context = context; + } + createchargeinvoice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orderinvoices/{orderId}/createChargeInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createrefundinvoice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orderinvoices/{orderId}/createRefundInvoice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Orderinvoices = Resource$Orderinvoices; + class Resource$Orderreports { + constructor(context) { + this.context = context; + } + listdisbursements(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orderreports/disbursements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'disbursementStartDate'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listtransactions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orderreports/disbursements/{disbursementId}/transactions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'merchantId', + 'disbursementId', + 'transactionStartDate', + ], + pathParams: ['disbursementId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Orderreports = Resource$Orderreports; + class Resource$Orderreturns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orderreturns/{returnId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'returnId'], + pathParams: ['merchantId', 'returnId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orderreturns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Orderreturns = Resource$Orderreturns; + class Resource$Orders { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + advancetestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/testorders/{orderId}/advance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + cancellineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/cancelLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + canceltestorderbycustomer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/testorders/{orderId}/cancelByCustomer').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createtestorder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/testorders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createtestreturn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/testreturn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/orders/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getbymerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/ordersbymerchantid/{merchantOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'merchantOrderId'], + pathParams: ['merchantId', 'merchantOrderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + gettestordertemplate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/testordertemplates/{templateName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'templateName'], + pathParams: ['merchantId', 'templateName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instorerefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/inStoreRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + refund(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/orders/{orderId}/refund').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rejectreturnlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/rejectReturnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + returnlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + returnrefundlineitem(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/returnRefundLineItem').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setlineitemmetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/setLineItemMetadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + shiplineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/shipLineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatelineitemshippingdetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateLineItemShippingDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatemerchantorderid(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateMerchantOrderId').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateshipment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/orders/{orderId}/updateShipment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'orderId'], + pathParams: ['merchantId', 'orderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Orders = Resource$Orders; + class Resource$Pos { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/pos/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/store/{storeCode}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId', 'storeCode'], + pathParams: ['merchantId', 'storeCode', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + inventory(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/content/v2/{merchantId}/pos/{targetMerchantId}/inventory').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/store').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sale(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/pos/{targetMerchantId}/sale').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId', 'targetMerchantId'], + pathParams: ['merchantId', 'targetMerchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Pos = Resource$Pos; + class Resource$Products { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/products/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/products/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Products = Resource$Products; + class Resource$Productstatuses { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/productstatuses/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/productstatuses/{productId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'productId'], + pathParams: ['merchantId', 'productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/productstatuses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Productstatuses = Resource$Productstatuses; + class Resource$Shippingsettings { + constructor(context) { + this.context = context; + } + custombatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/shippingsettings/batch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedcarriers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/supportedCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedholidays(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/supportedHolidays').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getsupportedpickupservices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/supportedPickupServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['merchantId'], + pathParams: ['merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/content/v2/{merchantId}/shippingsettings/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['merchantId', 'accountId'], + pathParams: ['accountId', 'merchantId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + content_v2.Resource$Shippingsettings = Resource$Shippingsettings; +})(content_v2 = exports.content_v2 || (exports.content_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 51813: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.customsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(35353); +exports.VERSIONS = { + v1: v1_1.customsearch_v1.Customsearch, +}; +function customsearch(versionOrOptions) { + return googleapis_common_1.getAPI('customsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.customsearch = customsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 35353: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.customsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var customsearch_v1; +(function (customsearch_v1) { + /** + * Custom Search API + * + * Searches over a website or collection of websites + * + * @example + * const {google} = require('googleapis'); + * const customsearch = google.customsearch('v1'); + * + * @namespace customsearch + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Customsearch + */ + class Customsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.cse = new Resource$Cse(this.context); + } + } + customsearch_v1.Customsearch = Customsearch; + class Resource$Cse { + constructor(context) { + this.context = context; + this.siterestrict = new Resource$Cse$Siterestrict(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/customsearch/v1').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + customsearch_v1.Resource$Cse = Resource$Cse; + class Resource$Cse$Siterestrict { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://customsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/customsearch/v1/siterestrict').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + customsearch_v1.Resource$Cse$Siterestrict = Resource$Cse$Siterestrict; +})(customsearch_v1 = exports.customsearch_v1 || (exports.customsearch_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 97799: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.datacatalog = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(21070); +exports.VERSIONS = { + v1beta1: v1beta1_1.datacatalog_v1beta1.Datacatalog, +}; +function datacatalog(versionOrOptions) { + return googleapis_common_1.getAPI('datacatalog', versionOrOptions, exports.VERSIONS, this); +} +exports.datacatalog = datacatalog; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 21070: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datacatalog_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var datacatalog_v1beta1; +(function (datacatalog_v1beta1) { + /** + * Google Cloud Data Catalog API + * + * A fully managed and highly scalable data discovery and metadata management service. + * + * @example + * const {google} = require('googleapis'); + * const datacatalog = google.datacatalog('v1beta1'); + * + * @namespace datacatalog + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Datacatalog + */ + class Datacatalog { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.catalog = new Resource$Catalog(this.context); + this.entries = new Resource$Entries(this.context); + this.projects = new Resource$Projects(this.context); + } + } + datacatalog_v1beta1.Datacatalog = Datacatalog; + class Resource$Catalog { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/catalog:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Catalog = Resource$Catalog; + class Resource$Entries { + constructor(context) { + this.context = context; + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/entries:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Entries = Resource$Entries; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datacatalog_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.entryGroups = new Resource$Projects$Locations$Entrygroups(this.context); + this.tagTemplates = new Resource$Projects$Locations$Tagtemplates(this.context); + this.taxonomies = new Resource$Projects$Locations$Taxonomies(this.context); + } + } + datacatalog_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Entrygroups { + constructor(context) { + this.context = context; + this.entries = new Resource$Projects$Locations$Entrygroups$Entries(this.context); + this.tags = new Resource$Projects$Locations$Entrygroups$Tags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entryGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups = Resource$Projects$Locations$Entrygroups; + class Resource$Projects$Locations$Entrygroups$Entries { + constructor(context) { + this.context = context; + this.tags = new Resource$Projects$Locations$Entrygroups$Entries$Tags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/entries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries = Resource$Projects$Locations$Entrygroups$Entries; + class Resource$Projects$Locations$Entrygroups$Entries$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Entries$Tags = Resource$Projects$Locations$Entrygroups$Entries$Tags; + class Resource$Projects$Locations$Entrygroups$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Entrygroups$Tags = Resource$Projects$Locations$Entrygroups$Tags; + class Resource$Projects$Locations$Tagtemplates { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Locations$Tagtemplates$Fields(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/tagTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates = Resource$Projects$Locations$Tagtemplates; + class Resource$Projects$Locations$Tagtemplates$Fields { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rename(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rename').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Tagtemplates$Fields = Resource$Projects$Locations$Tagtemplates$Fields; + class Resource$Projects$Locations$Taxonomies { + constructor(context) { + this.context = context; + this.policyTags = new Resource$Projects$Locations$Taxonomies$Policytags(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/taxonomies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies = Resource$Projects$Locations$Taxonomies; + class Resource$Projects$Locations$Taxonomies$Policytags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/policyTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datacatalog.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datacatalog_v1beta1.Resource$Projects$Locations$Taxonomies$Policytags = Resource$Projects$Locations$Taxonomies$Policytags; +})(datacatalog_v1beta1 = exports.datacatalog_v1beta1 || (exports.datacatalog_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 82914: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dataflow = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1b3_1 = __nccwpck_require__(65860); +exports.VERSIONS = { + v1b3: v1b3_1.dataflow_v1b3.Dataflow, +}; +function dataflow(versionOrOptions) { + return googleapis_common_1.getAPI('dataflow', versionOrOptions, exports.VERSIONS, this); +} +exports.dataflow = dataflow; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 65860: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dataflow_v1b3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dataflow_v1b3; +(function (dataflow_v1b3) { + /** + * Dataflow API + * + * Manages Google Cloud Dataflow projects on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const dataflow = google.dataflow('v1b3'); + * + * @namespace dataflow + * @type {Function} + * @version v1b3 + * @variation v1b3 + * @param {object=} options Options for Dataflow + */ + class Dataflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataflow_v1b3.Dataflow = Dataflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Jobs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.snapshots = new Resource$Projects$Snapshots(this.context); + this.templates = new Resource$Projects$Templates(this.context); + } + deleteSnapshots(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + workerMessages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects = Resource$Projects; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + this.debug = new Resource$Projects$Jobs$Debug(this.context); + this.messages = new Resource$Projects$Jobs$Messages(this.context); + this.workItems = new Resource$Projects$Jobs$Workitems(this.context); + } + aggregated(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs:aggregated').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getMetrics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + snapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Jobs$Debug { + constructor(context) { + this.context = context; + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendCapture(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Debug = Resource$Projects$Jobs$Debug; + class Resource$Projects$Jobs$Messages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Messages = Resource$Projects$Jobs$Messages; + class Resource$Projects$Jobs$Workitems { + constructor(context) { + this.context = context; + } + lease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'jobId'], + pathParams: ['jobId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Jobs$Workitems = Resource$Projects$Jobs$Workitems; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.flexTemplates = new Resource$Projects$Locations$Flextemplates(this.context); + this.jobs = new Resource$Projects$Locations$Jobs(this.context); + this.snapshots = new Resource$Projects$Locations$Snapshots(this.context); + this.sql = new Resource$Projects$Locations$Sql(this.context); + this.templates = new Resource$Projects$Locations$Templates(this.context); + } + workerMessages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/WorkerMessages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Flextemplates { + constructor(context) { + this.context = context; + } + launch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/flexTemplates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Flextemplates = Resource$Projects$Locations$Flextemplates; + class Resource$Projects$Locations$Jobs { + constructor(context) { + this.context = context; + this.debug = new Resource$Projects$Locations$Jobs$Debug(this.context); + this.messages = new Resource$Projects$Locations$Jobs$Messages(this.context); + this.snapshots = new Resource$Projects$Locations$Jobs$Snapshots(this.context); + this.workItems = new Resource$Projects$Locations$Jobs$Workitems(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getMetrics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/locations/{location}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + snapshot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}:snapshot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs = Resource$Projects$Locations$Jobs; + class Resource$Projects$Locations$Jobs$Debug { + constructor(context) { + this.context = context; + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendCapture(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/debug/sendCapture').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Debug = Resource$Projects$Locations$Jobs$Debug; + class Resource$Projects$Locations$Jobs$Messages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Messages = Resource$Projects$Locations$Jobs$Messages; + class Resource$Projects$Locations$Jobs$Snapshots { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Snapshots = Resource$Projects$Locations$Jobs$Snapshots; + class Resource$Projects$Locations$Jobs$Workitems { + constructor(context) { + this.context = context; + } + lease(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:lease').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/jobs/{jobId}/workItems:reportStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location', 'jobId'], + pathParams: ['jobId', 'location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Jobs$Workitems = Resource$Projects$Locations$Jobs$Workitems; + class Resource$Projects$Locations$Snapshots { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location', 'snapshotId'], + pathParams: ['location', 'projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Snapshots = Resource$Projects$Locations$Snapshots; + class Resource$Projects$Locations$Sql { + constructor(context) { + this.context = context; + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/sql:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Sql = Resource$Projects$Locations$Sql; + class Resource$Projects$Locations$Templates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + launch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1b3/projects/{projectId}/locations/{location}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'location'], + pathParams: ['location', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Locations$Templates = Resource$Projects$Locations$Templates; + class Resource$Projects$Snapshots { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'snapshotId'], + pathParams: ['projectId', 'snapshotId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Snapshots = Resource$Projects$Snapshots; + class Resource$Projects$Templates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + launch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1b3/projects/{projectId}/templates:launch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataflow_v1b3.Resource$Projects$Templates = Resource$Projects$Templates; +})(dataflow_v1b3 = exports.dataflow_v1b3 || (exports.dataflow_v1b3 = {})); +//# sourceMappingURL=v1b3.js.map + +/***/ }), + +/***/ 56597: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.datafusion = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(39777); +exports.VERSIONS = { + v1beta1: v1beta1_1.datafusion_v1beta1.Datafusion, +}; +function datafusion(versionOrOptions) { + return googleapis_common_1.getAPI('datafusion', versionOrOptions, exports.VERSIONS, this); +} +exports.datafusion = datafusion; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 39777: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datafusion_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var datafusion_v1beta1; +(function (datafusion_v1beta1) { + /** + * Cloud Data Fusion API + * + * Cloud Data Fusion is a fully-managed, cloud native, enterprise data integration service for quickly building and managing data pipelines. It provides a graphical interface to increase time efficiency and reduce complexity, and allows business users, developers, and data scientists to easily and reliably build scalable data integration solutions to cleanse, prepare, blend, transfer and transform data without having to wrestle with infrastructure. + * + * @example + * const {google} = require('googleapis'); + * const datafusion = google.datafusion('v1beta1'); + * + * @namespace datafusion + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Datafusion + */ + class Datafusion { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datafusion_v1beta1.Datafusion = Datafusion; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + datafusion_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datafusion.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datafusion_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(datafusion_v1beta1 = exports.datafusion_v1beta1 || (exports.datafusion_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 30016: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dataproc = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(18309); +const v1beta2_1 = __nccwpck_require__(69873); +exports.VERSIONS = { + v1: v1_1.dataproc_v1.Dataproc, + v1beta2: v1beta2_1.dataproc_v1beta2.Dataproc, +}; +function dataproc(versionOrOptions) { + return googleapis_common_1.getAPI('dataproc', versionOrOptions, exports.VERSIONS, this); +} +exports.dataproc = dataproc; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 18309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dataproc_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dataproc_v1; +(function (dataproc_v1) { + /** + * Cloud Dataproc API + * + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const dataproc = google.dataproc('v1'); + * + * @namespace dataproc + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Dataproc + */ + class Dataproc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataproc_v1.Dataproc = Dataproc; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.regions = new Resource$Projects$Regions(this.context); + } + } + dataproc_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.autoscalingPolicies = new Resource$Projects$Locations$Autoscalingpolicies(this.context); + this.workflowTemplates = new Resource$Projects$Locations$Workflowtemplates(this.context); + } + } + dataproc_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; + class Resource$Projects$Locations$Workflowtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; + class Resource$Projects$Regions { + constructor(context) { + this.context = context; + this.autoscalingPolicies = new Resource$Projects$Regions$Autoscalingpolicies(this.context); + this.clusters = new Resource$Projects$Regions$Clusters(this.context); + this.jobs = new Resource$Projects$Regions$Jobs(this.context); + this.operations = new Resource$Projects$Regions$Operations(this.context); + this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); + } + } + dataproc_v1.Resource$Projects$Regions = Resource$Projects$Regions; + class Resource$Projects$Regions$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; + class Resource$Projects$Regions$Clusters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + diagnose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; + class Resource$Projects$Regions$Jobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; + class Resource$Projects$Regions$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; + class Resource$Projects$Regions$Workflowtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1 = exports.dataproc_v1 || (exports.dataproc_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 69873: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dataproc_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dataproc_v1beta2; +(function (dataproc_v1beta2) { + /** + * Cloud Dataproc API + * + * Manages Hadoop-based clusters and jobs on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const dataproc = google.dataproc('v1beta2'); + * + * @namespace dataproc + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Dataproc + */ + class Dataproc { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dataproc_v1beta2.Dataproc = Dataproc; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.regions = new Resource$Projects$Regions(this.context); + } + } + dataproc_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.autoscalingPolicies = new Resource$Projects$Locations$Autoscalingpolicies(this.context); + this.workflowTemplates = new Resource$Projects$Locations$Workflowtemplates(this.context); + } + } + dataproc_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Locations$Autoscalingpolicies = Resource$Projects$Locations$Autoscalingpolicies; + class Resource$Projects$Locations$Workflowtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Locations$Workflowtemplates = Resource$Projects$Locations$Workflowtemplates; + class Resource$Projects$Regions { + constructor(context) { + this.context = context; + this.autoscalingPolicies = new Resource$Projects$Regions$Autoscalingpolicies(this.context); + this.clusters = new Resource$Projects$Regions$Clusters(this.context); + this.jobs = new Resource$Projects$Regions$Jobs(this.context); + this.operations = new Resource$Projects$Regions$Operations(this.context); + this.workflowTemplates = new Resource$Projects$Regions$Workflowtemplates(this.context); + } + } + dataproc_v1beta2.Resource$Projects$Regions = Resource$Projects$Regions; + class Resource$Projects$Regions$Autoscalingpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/autoscalingPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Regions$Autoscalingpolicies = Resource$Projects$Regions$Autoscalingpolicies; + class Resource$Projects$Regions$Clusters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + diagnose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:diagnose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/clusters/{clusterName}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'clusterName'], + pathParams: ['clusterName', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Regions$Clusters = Resource$Projects$Regions$Clusters; + class Resource$Projects$Regions$Jobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/projects/{projectId}/regions/{region}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'region', 'jobId'], + pathParams: ['jobId', 'projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submitAsOperation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta2/projects/{projectId}/regions/{region}/jobs:submitAsOperation').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'region'], + pathParams: ['projectId', 'region'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Regions$Jobs = Resource$Projects$Regions$Jobs; + class Resource$Projects$Regions$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Regions$Operations = Resource$Projects$Regions$Operations; + class Resource$Projects$Regions$Workflowtemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:instantiate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + instantiateInline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates:instantiateInline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/workflowTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dataproc.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dataproc_v1beta2.Resource$Projects$Regions$Workflowtemplates = Resource$Projects$Regions$Workflowtemplates; +})(dataproc_v1beta2 = exports.dataproc_v1beta2 || (exports.dataproc_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 17286: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.datastore = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(61919); +const v1beta1_1 = __nccwpck_require__(63794); +const v1beta3_1 = __nccwpck_require__(90808); +exports.VERSIONS = { + v1: v1_1.datastore_v1.Datastore, + v1beta1: v1beta1_1.datastore_v1beta1.Datastore, + v1beta3: v1beta3_1.datastore_v1beta3.Datastore, +}; +function datastore(versionOrOptions) { + return googleapis_common_1.getAPI('datastore', versionOrOptions, exports.VERSIONS, this); +} +exports.datastore = datastore; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 61919: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datastore_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var datastore_v1; +(function (datastore_v1) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1'); + * + * @namespace datastore + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Datastore + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastore_v1.Datastore = Datastore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.indexes = new Resource$Projects$Indexes(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + allocateIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reserveIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datastore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Indexes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes/{indexId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'indexId'], + pathParams: ['indexId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datastore_v1.Resource$Projects$Indexes = Resource$Projects$Indexes; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datastore_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(datastore_v1 = exports.datastore_v1 || (exports.datastore_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 63794: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datastore_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var datastore_v1beta1; +(function (datastore_v1beta1) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1beta1'); + * + * @namespace datastore + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Datastore + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastore_v1beta1.Datastore = Datastore; + class Resource$Projects { + constructor(context) { + this.context = context; + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects/{projectId}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datastore_v1beta1.Resource$Projects = Resource$Projects; +})(datastore_v1beta1 = exports.datastore_v1beta1 || (exports.datastore_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 90808: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.datastore_v1beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var datastore_v1beta3; +(function (datastore_v1beta3) { + /** + * Cloud Datastore API + * + * Accesses the schemaless NoSQL database to provide fully managed, robust, scalable storage for your application. + * + * @example + * const {google} = require('googleapis'); + * const datastore = google.datastore('v1beta3'); + * + * @namespace datastore + * @type {Function} + * @version v1beta3 + * @variation v1beta3 + * @param {object=} options Options for Datastore + */ + class Datastore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + datastore_v1beta3.Datastore = Datastore; + class Resource$Projects { + constructor(context) { + this.context = context; + } + allocateIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:allocateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lookup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:lookup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reserveIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:reserveIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://datastore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta3/projects/{projectId}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + datastore_v1beta3.Resource$Projects = Resource$Projects; +})(datastore_v1beta3 = exports.datastore_v1beta3 || (exports.datastore_v1beta3 = {})); +//# sourceMappingURL=v1beta3.js.map + +/***/ }), + +/***/ 42637: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deploymentmanager_alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var deploymentmanager_alpha; +(function (deploymentmanager_alpha) { + /** + * Google Cloud Deployment Manager Alpha API + * + * The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('alpha'); + * + * @namespace deploymentmanager + * @type {Function} + * @version alpha + * @variation alpha + * @param {object=} options Options for Deploymentmanager + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.compositeTypes = new Resource$Compositetypes(this.context); + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.typeProviders = new Resource$Typeproviders(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_alpha.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Manifests = Resource$Manifests; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Operations = Resource$Operations; + class Resource$Resources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Resources = Resource$Resources; + class Resource$Typeproviders { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listTypes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Typeproviders = Resource$Typeproviders; + class Resource$Types { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/alpha/projects/{project}/global/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'type'], + pathParams: ['project', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_alpha.Resource$Types = Resource$Types; +})(deploymentmanager_alpha = exports.deploymentmanager_alpha || (exports.deploymentmanager_alpha = {})); +//# sourceMappingURL=alpha.js.map + +/***/ }), + +/***/ 87063: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.deploymentmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const alpha_1 = __nccwpck_require__(42637); +const v2_1 = __nccwpck_require__(23219); +const v2beta_1 = __nccwpck_require__(42670); +exports.VERSIONS = { + alpha: alpha_1.deploymentmanager_alpha.Deploymentmanager, + v2: v2_1.deploymentmanager_v2.Deploymentmanager, + v2beta: v2beta_1.deploymentmanager_v2beta.Deploymentmanager, +}; +function deploymentmanager(versionOrOptions) { + return googleapis_common_1.getAPI('deploymentmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.deploymentmanager = deploymentmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 23219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deploymentmanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var deploymentmanager_v2; +(function (deploymentmanager_v2) { + /** + * Google Cloud Deployment Manager API + * + * Declares, configures, and deploys complex solutions on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('v2'); + * + * @namespace deploymentmanager + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Deploymentmanager + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_v2.Deploymentmanager = Deploymentmanager; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2.Resource$Manifests = Resource$Manifests; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2.Resource$Operations = Resource$Operations; + class Resource$Resources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2.Resource$Resources = Resource$Resources; + class Resource$Types { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/deploymentmanager/v2/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2.Resource$Types = Resource$Types; +})(deploymentmanager_v2 = exports.deploymentmanager_v2 || (exports.deploymentmanager_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 42670: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.deploymentmanager_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var deploymentmanager_v2beta; +(function (deploymentmanager_v2beta) { + /** + * Google Cloud Deployment Manager API V2Beta Methods + * + * The Deployment Manager API allows users to declaratively configure, deploy and run complex solutions on the Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const deploymentmanager = google.deploymentmanager('v2beta'); + * + * @namespace deploymentmanager + * @type {Function} + * @version v2beta + * @variation v2beta + * @param {object=} options Options for Deploymentmanager + */ + class Deploymentmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.compositeTypes = new Resource$Compositetypes(this.context); + this.deployments = new Resource$Deployments(this.context); + this.manifests = new Resource$Manifests(this.context); + this.operations = new Resource$Operations(this.context); + this.resources = new Resource$Resources(this.context); + this.typeProviders = new Resource$Typeproviders(this.context); + this.types = new Resource$Types(this.context); + } + } + deploymentmanager_v2beta.Deploymentmanager = Deploymentmanager; + class Resource$Compositetypes { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'compositeType'], + pathParams: ['compositeType', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Compositetypes = Resource$Compositetypes; + class Resource$Deployments { + constructor(context) { + this.context = context; + } + cancelPreview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'resource'], + pathParams: ['project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Deployments = Resource$Deployments; + class Resource$Manifests { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'manifest'], + pathParams: ['deployment', 'manifest', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Manifests = Resource$Manifests; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Operations = Resource$Operations; + class Resource$Resources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment', 'resource'], + pathParams: ['deployment', 'project', 'resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'deployment'], + pathParams: ['deployment', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Resources = Resource$Resources; + class Resource$Typeproviders { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getType(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider', 'type'], + pathParams: ['project', 'type', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listTypes(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'typeProvider'], + pathParams: ['project', 'typeProvider'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Typeproviders = Resource$Typeproviders; + class Resource$Types { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/deploymentmanager/v2beta/projects/{project}/global/types').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + deploymentmanager_v2beta.Resource$Types = Resource$Types; +})(deploymentmanager_v2beta = exports.deploymentmanager_v2beta || (exports.deploymentmanager_v2beta = {})); +//# sourceMappingURL=v2beta.js.map + +/***/ }), + +/***/ 35399: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dfareporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_3_1 = __nccwpck_require__(12722); +const v3_4_1 = __nccwpck_require__(78539); +exports.VERSIONS = { + 'v3.3': v3_3_1.dfareporting_v3_3.Dfareporting, + 'v3.4': v3_4_1.dfareporting_v3_4.Dfareporting, +}; +function dfareporting(versionOrOptions) { + return googleapis_common_1.getAPI('dfareporting', versionOrOptions, exports.VERSIONS, this); +} +exports.dfareporting = dfareporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 12722: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dfareporting_v3_3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dfareporting_v3_3; +(function (dfareporting_v3_3) { + /** + * DCM/DFA Reporting And Trafficking API + * + * Manages your DoubleClick Campaign Manager ad campaigns and reports. + * + * @example + * const {google} = require('googleapis'); + * const dfareporting = google.dfareporting('v3.3'); + * + * @namespace dfareporting + * @type {Function} + * @version v3.3 + * @variation v3.3 + * @param {object=} options Options for Dfareporting + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(this.context); + this.projects = new Resource$Projects(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); + } + } + dfareporting_v3_3.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Advertisers = Resource$Advertisers; + class Resource$Browsers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchupdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Conversions = Resource$Conversions; + class Resource$Countries { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/dfareporting/v3.3/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Creatives = Resource$Creatives; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generatetag(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Languages = Resource$Languages; + class Resource$Metros { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Postalcodes = Resource$Postalcodes; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Projects = Resource$Projects; + class Resource$Regions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { + constructor(context) { + this.context = context; + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Sites = Resource$Sites; + class Resource$Sizes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.3/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.3/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_3.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_3 = exports.dfareporting_v3_3 || (exports.dfareporting_v3_3 = {})); +//# sourceMappingURL=v3.3.js.map + +/***/ }), + +/***/ 78539: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dfareporting_v3_4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dfareporting_v3_4; +(function (dfareporting_v3_4) { + /** + * DCM/DFA Reporting And Trafficking API + * + * Manages your DoubleClick Campaign Manager ad campaigns and reports. + * + * @example + * const {google} = require('googleapis'); + * const dfareporting = google.dfareporting('v3.4'); + * + * @namespace dfareporting + * @type {Function} + * @version v3.4 + * @variation v3.4 + * @param {object=} options Options for Dfareporting + */ + class Dfareporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accountActiveAdSummaries = new Resource$Accountactiveadsummaries(this.context); + this.accountPermissionGroups = new Resource$Accountpermissiongroups(this.context); + this.accountPermissions = new Resource$Accountpermissions(this.context); + this.accounts = new Resource$Accounts(this.context); + this.accountUserProfiles = new Resource$Accountuserprofiles(this.context); + this.ads = new Resource$Ads(this.context); + this.advertiserGroups = new Resource$Advertisergroups(this.context); + this.advertiserLandingPages = new Resource$Advertiserlandingpages(this.context); + this.advertisers = new Resource$Advertisers(this.context); + this.browsers = new Resource$Browsers(this.context); + this.campaignCreativeAssociations = new Resource$Campaigncreativeassociations(this.context); + this.campaigns = new Resource$Campaigns(this.context); + this.changeLogs = new Resource$Changelogs(this.context); + this.cities = new Resource$Cities(this.context); + this.connectionTypes = new Resource$Connectiontypes(this.context); + this.contentCategories = new Resource$Contentcategories(this.context); + this.conversions = new Resource$Conversions(this.context); + this.countries = new Resource$Countries(this.context); + this.creativeAssets = new Resource$Creativeassets(this.context); + this.creativeFields = new Resource$Creativefields(this.context); + this.creativeFieldValues = new Resource$Creativefieldvalues(this.context); + this.creativeGroups = new Resource$Creativegroups(this.context); + this.creatives = new Resource$Creatives(this.context); + this.customEvents = new Resource$Customevents(this.context); + this.dimensionValues = new Resource$Dimensionvalues(this.context); + this.directorySites = new Resource$Directorysites(this.context); + this.dynamicTargetingKeys = new Resource$Dynamictargetingkeys(this.context); + this.eventTags = new Resource$Eventtags(this.context); + this.files = new Resource$Files(this.context); + this.floodlightActivities = new Resource$Floodlightactivities(this.context); + this.floodlightActivityGroups = new Resource$Floodlightactivitygroups(this.context); + this.floodlightConfigurations = new Resource$Floodlightconfigurations(this.context); + this.inventoryItems = new Resource$Inventoryitems(this.context); + this.languages = new Resource$Languages(this.context); + this.metros = new Resource$Metros(this.context); + this.mobileApps = new Resource$Mobileapps(this.context); + this.mobileCarriers = new Resource$Mobilecarriers(this.context); + this.operatingSystems = new Resource$Operatingsystems(this.context); + this.operatingSystemVersions = new Resource$Operatingsystemversions(this.context); + this.orderDocuments = new Resource$Orderdocuments(this.context); + this.orders = new Resource$Orders(this.context); + this.placementGroups = new Resource$Placementgroups(this.context); + this.placements = new Resource$Placements(this.context); + this.placementStrategies = new Resource$Placementstrategies(this.context); + this.platformTypes = new Resource$Platformtypes(this.context); + this.postalCodes = new Resource$Postalcodes(this.context); + this.projects = new Resource$Projects(this.context); + this.regions = new Resource$Regions(this.context); + this.remarketingLists = new Resource$Remarketinglists(this.context); + this.remarketingListShares = new Resource$Remarketinglistshares(this.context); + this.reports = new Resource$Reports(this.context); + this.sites = new Resource$Sites(this.context); + this.sizes = new Resource$Sizes(this.context); + this.subaccounts = new Resource$Subaccounts(this.context); + this.targetableRemarketingLists = new Resource$Targetableremarketinglists(this.context); + this.targetingTemplates = new Resource$Targetingtemplates(this.context); + this.userProfiles = new Resource$Userprofiles(this.context); + this.userRolePermissionGroups = new Resource$Userrolepermissiongroups(this.context); + this.userRolePermissions = new Resource$Userrolepermissions(this.context); + this.userRoles = new Resource$Userroles(this.context); + this.videoFormats = new Resource$Videoformats(this.context); + } + } + dfareporting_v3_4.Dfareporting = Dfareporting; + class Resource$Accountactiveadsummaries { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountActiveAdSummaries/{summaryAccountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'summaryAccountId'], + pathParams: ['profileId', 'summaryAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountactiveadsummaries = Resource$Accountactiveadsummaries; + class Resource$Accountpermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountpermissiongroups = Resource$Accountpermissiongroups; + class Resource$Accountpermissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountpermissions = Resource$Accountpermissions; + class Resource$Accounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Accounts = Resource$Accounts; + class Resource$Accountuserprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/accountUserProfiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Accountuserprofiles = Resource$Accountuserprofiles; + class Resource$Ads { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/ads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Ads = Resource$Ads; + class Resource$Advertisergroups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertisergroups = Resource$Advertisergroups; + class Resource$Advertiserlandingpages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertiserLandingPages').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertiserlandingpages = Resource$Advertiserlandingpages; + class Resource$Advertisers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Advertisers = Resource$Advertisers; + class Resource$Browsers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/browsers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Browsers = Resource$Browsers; + class Resource$Campaigncreativeassociations { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{campaignId}/campaignCreativeAssociations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'campaignId'], + pathParams: ['campaignId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Campaigncreativeassociations = Resource$Campaigncreativeassociations; + class Resource$Campaigns { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Campaigns = Resource$Campaigns; + class Resource$Changelogs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/changeLogs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Changelogs = Resource$Changelogs; + class Resource$Cities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/cities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Cities = Resource$Cities; + class Resource$Connectiontypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/connectionTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Connectiontypes = Resource$Connectiontypes; + class Resource$Contentcategories { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/contentCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Contentcategories = Resource$Contentcategories; + class Resource$Conversions { + constructor(context) { + this.context = context; + } + batchinsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchupdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/conversions/batchupdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Conversions = Resource$Conversions; + class Resource$Countries { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/countries/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/countries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Countries = Resource$Countries; + class Resource$Creativeassets { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/dfareporting/v3.4/userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['advertiserId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativeassets = Resource$Creativeassets; + class Resource$Creativefields { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativefields = Resource$Creativefields; + class Resource$Creativefieldvalues { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId', 'id'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeFields/{creativeFieldId}/creativeFieldValues').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'creativeFieldId'], + pathParams: ['creativeFieldId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativefieldvalues = Resource$Creativefieldvalues; + class Resource$Creativegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creativeGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Creativegroups = Resource$Creativegroups; + class Resource$Creatives { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/creatives/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Creatives = Resource$Creatives; + class Resource$Customevents { + constructor(context) { + this.context = context; + } + batchinsert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/customEvents/batchinsert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Customevents = Resource$Customevents; + class Resource$Dimensionvalues { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dimensionvalues/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Dimensionvalues = Resource$Dimensionvalues; + class Resource$Directorysites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/directorySites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Directorysites = Resource$Directorysites; + class Resource$Dynamictargetingkeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys/{objectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'objectId', 'name', 'objectType'], + pathParams: ['objectId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/dynamicTargetingKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Dynamictargetingkeys = Resource$Dynamictargetingkeys; + class Resource$Eventtags { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/eventTags').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Eventtags = Resource$Eventtags; + class Resource$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'fileId'], + pathParams: ['fileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Files = Resource$Files; + class Resource$Floodlightactivities { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generatetag(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/generatetag').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivities').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightactivities = Resource$Floodlightactivities; + class Resource$Floodlightactivitygroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightActivityGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightactivitygroups = Resource$Floodlightactivitygroups; + class Resource$Floodlightconfigurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/floodlightConfigurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Floodlightconfigurations = Resource$Floodlightconfigurations; + class Resource$Inventoryitems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/inventoryItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Inventoryitems = Resource$Inventoryitems; + class Resource$Languages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Languages = Resource$Languages; + class Resource$Metros { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/metros').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Metros = Resource$Metros; + class Resource$Mobileapps { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/mobileApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Mobileapps = Resource$Mobileapps; + class Resource$Mobilecarriers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/mobileCarriers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Mobilecarriers = Resource$Mobilecarriers; + class Resource$Operatingsystems { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems/{dartId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'dartId'], + pathParams: ['dartId', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Operatingsystems = Resource$Operatingsystems; + class Resource$Operatingsystemversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/operatingSystemVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Operatingsystemversions = Resource$Operatingsystemversions; + class Resource$Orderdocuments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orderDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Orderdocuments = Resource$Orderdocuments; + class Resource$Orders { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId', 'id'], + pathParams: ['id', 'profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{projectId}/orders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'projectId'], + pathParams: ['profileId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Orders = Resource$Orders; + class Resource$Placementgroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Placementgroups = Resource$Placementgroups; + class Resource$Placements { + constructor(context) { + this.context = context; + } + generatetags(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/generatetags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placements/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/placements').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Placements = Resource$Placements; + class Resource$Placementstrategies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/placementStrategies').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Placementstrategies = Resource$Placementstrategies; + class Resource$Platformtypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/platformTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Platformtypes = Resource$Platformtypes; + class Resource$Postalcodes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes/{code}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'code'], + pathParams: ['code', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/postalCodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Postalcodes = Resource$Postalcodes; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/projects/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Projects = Resource$Projects; + class Resource$Regions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/regions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Regions = Resource$Regions; + class Resource$Remarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Remarketinglists = Resource$Remarketinglists; + class Resource$Remarketinglistshares { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares/{remarketingListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId', 'remarketingListId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'remarketingListId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/remarketingListShares').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Remarketinglistshares = Resource$Remarketinglistshares; + class Resource$Reports { + constructor(context) { + this.context = context; + this.compatibleFields = new Resource$Reports$Compatiblefields(this.context); + this.files = new Resource$Reports$Files(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports = Resource$Reports; + class Resource$Reports$Compatiblefields { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/compatiblefields/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports$Compatiblefields = Resource$Reports$Compatiblefields; + class Resource$Reports$Files { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId', 'fileId'], + pathParams: ['fileId', 'profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/reports/{reportId}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'reportId'], + pathParams: ['profileId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Reports$Files = Resource$Reports$Files; + class Resource$Sites { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Sites = Resource$Sites; + class Resource$Sizes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/sizes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Sizes = Resource$Sizes; + class Resource$Subaccounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/subaccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Subaccounts = Resource$Subaccounts; + class Resource$Targetableremarketinglists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetableRemarketingLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'advertiserId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Targetableremarketinglists = Resource$Targetableremarketinglists; + class Resource$Targetingtemplates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/targetingTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Targetingtemplates = Resource$Targetingtemplates; + class Resource$Userprofiles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Userprofiles = Resource$Userprofiles; + class Resource$Userrolepermissiongroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissionGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Userrolepermissiongroups = Resource$Userrolepermissiongroups; + class Resource$Userrolepermissions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRolePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Userrolepermissions = Resource$Userrolepermissions; + class Resource$Userroles { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dfareporting/v3.4/userprofiles/{profileId}/userRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Userroles = Resource$Userroles; + class Resource$Videoformats { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId', 'id'], + pathParams: ['id', 'profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dfareporting/v3.4/userprofiles/{profileId}/videoFormats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['profileId'], + pathParams: ['profileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dfareporting_v3_4.Resource$Videoformats = Resource$Videoformats; +})(dfareporting_v3_4 = exports.dfareporting_v3_4 || (exports.dfareporting_v3_4 = {})); +//# sourceMappingURL=v3.4.js.map + +/***/ }), + +/***/ 12984: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dialogflow = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(86200); +const v2beta1_1 = __nccwpck_require__(24769); +exports.VERSIONS = { + v2: v2_1.dialogflow_v2.Dialogflow, + v2beta1: v2beta1_1.dialogflow_v2beta1.Dialogflow, +}; +function dialogflow(versionOrOptions) { + return googleapis_common_1.getAPI('dialogflow', versionOrOptions, exports.VERSIONS, this); +} +exports.dialogflow = dialogflow; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 86200: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dialogflow_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dialogflow_v2; +(function (dialogflow_v2) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v2'); + * + * @namespace dialogflow + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Dialogflow + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v2.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Agent(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Agent$Environments(this.context); + this.intents = new Resource$Projects$Agent$Intents(this.context); + this.sessions = new Resource$Projects$Agent$Sessions(this.context); + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + train(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent = Resource$Projects$Agent; + class Resource$Projects$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; + class Resource$Projects$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; + class Resource$Projects$Agent$Environments { + constructor(context) { + this.context = context; + this.users = new Resource$Projects$Agent$Environments$Users(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; + class Resource$Projects$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; + class Resource$Projects$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; + class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; + class Resource$Projects$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; + class Resource$Projects$Agent$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; + class Resource$Projects$Agent$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + dialogflow_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2 = exports.dialogflow_v2 || (exports.dialogflow_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 24769: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dialogflow_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dialogflow_v2beta1; +(function (dialogflow_v2beta1) { + /** + * Dialogflow API + * + * Builds conversational interfaces (for example, chatbots, and voice-powered apps and devices). + * + * @example + * const {google} = require('googleapis'); + * const dialogflow = google.dialogflow('v2beta1'); + * + * @namespace dialogflow + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Dialogflow + */ + class Dialogflow { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + dialogflow_v2beta1.Dialogflow = Dialogflow; + class Resource$Projects { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Agent(this.context); + this.knowledgeBases = new Resource$Projects$Knowledgebases(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Agent$Environments(this.context); + this.intents = new Resource$Projects$Agent$Intents(this.context); + this.knowledgeBases = new Resource$Projects$Agent$Knowledgebases(this.context); + this.sessions = new Resource$Projects$Agent$Sessions(this.context); + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getValidationResult(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent/validationResult').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + train(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateFulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent = Resource$Projects$Agent; + class Resource$Projects$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = new Resource$Projects$Agent$Entitytypes$Entities(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes = Resource$Projects$Agent$Entitytypes; + class Resource$Projects$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Entitytypes$Entities = Resource$Projects$Agent$Entitytypes$Entities; + class Resource$Projects$Agent$Environments { + constructor(context) { + this.context = context; + this.users = new Resource$Projects$Agent$Environments$Users(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments = Resource$Projects$Agent$Environments; + class Resource$Projects$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = new Resource$Projects$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users = Resource$Projects$Agent$Environments$Users; + class Resource$Projects$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions = Resource$Projects$Agent$Environments$Users$Sessions; + class Resource$Projects$Agent$Environments$Users$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Intents = Resource$Projects$Agent$Intents; + class Resource$Projects$Agent$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Agent$Knowledgebases$Documents(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases = Resource$Projects$Agent$Knowledgebases; + class Resource$Projects$Agent$Knowledgebases$Documents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Knowledgebases$Documents = Resource$Projects$Agent$Knowledgebases$Documents; + class Resource$Projects$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Agent$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions = Resource$Projects$Agent$Sessions; + class Resource$Projects$Agent$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Contexts = Resource$Projects$Agent$Sessions$Contexts; + class Resource$Projects$Agent$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Agent$Sessions$Entitytypes = Resource$Projects$Agent$Sessions$Entitytypes; + class Resource$Projects$Knowledgebases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Knowledgebases$Documents(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/knowledgeBases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Knowledgebases = Resource$Projects$Knowledgebases; + class Resource$Projects$Knowledgebases$Documents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:reload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Knowledgebases$Documents = Resource$Projects$Knowledgebases$Documents; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.agent = new Resource$Projects$Locations$Agent(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + deleteAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAgent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Agent { + constructor(context) { + this.context = context; + this.entityTypes = new Resource$Projects$Locations$Agent$Entitytypes(this.context); + this.environments = new Resource$Projects$Locations$Agent$Environments(this.context); + this.intents = new Resource$Projects$Locations$Agent$Intents(this.context); + this.sessions = new Resource$Projects$Locations$Agent$Sessions(this.context); + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + fulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFulfillment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + train(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/agent:train').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent = Resource$Projects$Locations$Agent; + class Resource$Projects$Locations$Agent$Entitytypes { + constructor(context) { + this.context = context; + this.entities = new Resource$Projects$Locations$Agent$Entitytypes$Entities(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes = Resource$Projects$Locations$Agent$Entitytypes; + class Resource$Projects$Locations$Agent$Entitytypes$Entities { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entities:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Entitytypes$Entities = Resource$Projects$Locations$Agent$Entitytypes$Entities; + class Resource$Projects$Locations$Agent$Environments { + constructor(context) { + this.context = context; + this.users = new Resource$Projects$Locations$Agent$Environments$Users(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments = Resource$Projects$Locations$Agent$Environments; + class Resource$Projects$Locations$Agent$Environments$Users { + constructor(context) { + this.context = context; + this.sessions = new Resource$Projects$Locations$Agent$Environments$Users$Sessions(this.context); + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users = Resource$Projects$Locations$Agent$Environments$Users; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions = Resource$Projects$Locations$Agent$Environments$Users$Sessions; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Environments$Users$Sessions$Entitytypes; + class Resource$Projects$Locations$Agent$Intents { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/intents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Intents = Resource$Projects$Locations$Agent$Intents; + class Resource$Projects$Locations$Agent$Sessions { + constructor(context) { + this.context = context; + this.contexts = new Resource$Projects$Locations$Agent$Sessions$Contexts(this.context); + this.entityTypes = new Resource$Projects$Locations$Agent$Sessions$Entitytypes(this.context); + } + deleteContexts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectIntent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+session}:detectIntent').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions = Resource$Projects$Locations$Agent$Sessions; + class Resource$Projects$Locations$Agent$Sessions$Contexts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/contexts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Contexts = Resource$Projects$Locations$Agent$Sessions$Contexts; + class Resource$Projects$Locations$Agent$Sessions$Entitytypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+parent}/entityTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Agent$Sessions$Entitytypes = Resource$Projects$Locations$Agent$Sessions$Entitytypes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dialogflow.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dialogflow_v2beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(dialogflow_v2beta1 = exports.dialogflow_v2beta1 || (exports.dialogflow_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 72809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.digitalassetlinks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(596); +exports.VERSIONS = { + v1: v1_1.digitalassetlinks_v1.Digitalassetlinks, +}; +function digitalassetlinks(versionOrOptions) { + return googleapis_common_1.getAPI('digitalassetlinks', versionOrOptions, exports.VERSIONS, this); +} +exports.digitalassetlinks = digitalassetlinks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 596: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.digitalassetlinks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var digitalassetlinks_v1; +(function (digitalassetlinks_v1) { + /** + * Digital Asset Links API + * + * Discovers relationships between online assets such as websites or mobile apps. + * + * @example + * const {google} = require('googleapis'); + * const digitalassetlinks = google.digitalassetlinks('v1'); + * + * @namespace digitalassetlinks + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Digitalassetlinks + */ + class Digitalassetlinks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assetlinks = new Resource$Assetlinks(this.context); + this.statements = new Resource$Statements(this.context); + } + } + digitalassetlinks_v1.Digitalassetlinks = Digitalassetlinks; + class Resource$Assetlinks { + constructor(context) { + this.context = context; + } + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/assetlinks:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + digitalassetlinks_v1.Resource$Assetlinks = Resource$Assetlinks; + class Resource$Statements { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://digitalassetlinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/statements:list').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + digitalassetlinks_v1.Resource$Statements = Resource$Statements; +})(digitalassetlinks_v1 = exports.digitalassetlinks_v1 || (exports.digitalassetlinks_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 19583: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.discovery = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(9762); +exports.VERSIONS = { + v1: v1_1.discovery_v1.Discovery, +}; +function discovery(versionOrOptions) { + return googleapis_common_1.getAPI('discovery', versionOrOptions, exports.VERSIONS, this); +} +exports.discovery = discovery; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 9762: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.discovery_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var discovery_v1; +(function (discovery_v1) { + /** + * API Discovery Service + * + * Provides information about other Google APIs, such as what APIs are available, the resource, and method details for each API. + * + * @example + * const {google} = require('googleapis'); + * const discovery = google.discovery('v1'); + * + * @namespace discovery + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Discovery + */ + class Discovery { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.apis = new Resource$Apis(this.context); + } + } + discovery_v1.Discovery = Discovery; + class Resource$Apis { + constructor(context) { + this.context = context; + } + getRest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/discovery/v1/apis/{api}/{version}/rest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['api', 'version'], + pathParams: ['api', 'version'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/discovery/v1/apis').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + discovery_v1.Resource$Apis = Resource$Apis; +})(discovery_v1 = exports.discovery_v1 || (exports.discovery_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 92885: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.displayvideo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(39618); +exports.VERSIONS = { + v1: v1_1.displayvideo_v1.Displayvideo, +}; +function displayvideo(versionOrOptions) { + return googleapis_common_1.getAPI('displayvideo', versionOrOptions, exports.VERSIONS, this); +} +exports.displayvideo = displayvideo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 39618: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.displayvideo_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var displayvideo_v1; +(function (displayvideo_v1) { + /** + * Display & Video 360 API + * + * Display & Video 360 API allows users to manage and create campaigns and reports. + * + * @example + * const {google} = require('googleapis'); + * const displayvideo = google.displayvideo('v1'); + * + * @namespace displayvideo + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Displayvideo + */ + class Displayvideo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.advertisers = new Resource$Advertisers(this.context); + this.combinedAudiences = new Resource$Combinedaudiences(this.context); + this.customLists = new Resource$Customlists(this.context); + this.firstAndThirdPartyAudiences = new Resource$Firstandthirdpartyaudiences(this.context); + this.floodlightGroups = new Resource$Floodlightgroups(this.context); + this.googleAudiences = new Resource$Googleaudiences(this.context); + this.inventorySourceGroups = new Resource$Inventorysourcegroups(this.context); + this.inventorySources = new Resource$Inventorysources(this.context); + this.media = new Resource$Media(this.context); + this.partners = new Resource$Partners(this.context); + this.sdfdownloadtasks = new Resource$Sdfdownloadtasks(this.context); + this.targetingTypes = new Resource$Targetingtypes(this.context); + } + } + displayvideo_v1.Displayvideo = Displayvideo; + class Resource$Advertisers { + constructor(context) { + this.context = context; + this.assets = new Resource$Advertisers$Assets(this.context); + this.campaigns = new Resource$Advertisers$Campaigns(this.context); + this.channels = new Resource$Advertisers$Channels(this.context); + this.creatives = new Resource$Advertisers$Creatives(this.context); + this.insertionOrders = new Resource$Advertisers$Insertionorders(this.context); + this.lineItems = new Resource$Advertisers$Lineitems(this.context); + this.locationLists = new Resource$Advertisers$Locationlists(this.context); + this.negativeKeywordLists = new Resource$Advertisers$Negativekeywordlists(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers = Resource$Advertisers; + class Resource$Advertisers$Assets { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/advertisers/{+advertiserId}/assets').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Assets = Resource$Advertisers$Assets; + class Resource$Advertisers$Campaigns { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/campaigns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/campaigns/{+campaignId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'campaignId'], + pathParams: ['advertiserId', 'campaignId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Campaigns = Resource$Advertisers$Campaigns; + class Resource$Advertisers$Channels { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'channelId'], + pathParams: ['advertiserId', 'channelId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Channels = Resource$Advertisers$Channels; + class Resource$Advertisers$Creatives { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/creatives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/creatives/{+creativeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'creativeId'], + pathParams: ['advertiserId', 'creativeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Creatives = Resource$Advertisers$Creatives; + class Resource$Advertisers$Insertionorders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/insertionOrders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/insertionOrders/{+insertionOrderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'insertionOrderId'], + pathParams: ['advertiserId', 'insertionOrderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Insertionorders = Resource$Advertisers$Insertionorders; + class Resource$Advertisers$Lineitems { + constructor(context) { + this.context = context; + this.targetingTypes = new Resource$Advertisers$Lineitems$Targetingtypes(this.context); + } + bulkEditLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkEditLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + bulkListLineItemAssignedTargetingOptions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}:bulkListLineItemAssignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/lineItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId'], + pathParams: ['advertiserId', 'lineItemId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Lineitems = Resource$Advertisers$Lineitems; + class Resource$Advertisers$Lineitems$Targetingtypes { + constructor(context) { + this.context = context; + this.assignedTargetingOptions = new Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions(this.context); + } + } + displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes = Resource$Advertisers$Lineitems$Targetingtypes; + class Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions/{+assignedTargetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'advertiserId', + 'lineItemId', + 'targetingType', + 'assignedTargetingOptionId', + ], + pathParams: [ + 'advertiserId', + 'assignedTargetingOptionId', + 'lineItemId', + 'targetingType', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/lineItems/{+lineItemId}/targetingTypes/{+targetingType}/assignedTargetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'lineItemId', 'targetingType'], + pathParams: ['advertiserId', 'lineItemId', 'targetingType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions = Resource$Advertisers$Lineitems$Targetingtypes$Assignedtargetingoptions; + class Resource$Advertisers$Locationlists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/locationLists/{+locationListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'locationListId'], + pathParams: ['advertiserId', 'locationListId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/locationLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Locationlists = Resource$Advertisers$Locationlists; + class Resource$Advertisers$Negativekeywordlists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/advertisers/{+advertiserId}/negativeKeywordLists/{+negativeKeywordListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId', 'negativeKeywordListId'], + pathParams: ['advertiserId', 'negativeKeywordListId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/advertisers/{+advertiserId}/negativeKeywordLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['advertiserId'], + pathParams: ['advertiserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Advertisers$Negativekeywordlists = Resource$Advertisers$Negativekeywordlists; + class Resource$Combinedaudiences { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/combinedAudiences/{+combinedAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['combinedAudienceId'], + pathParams: ['combinedAudienceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/combinedAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Combinedaudiences = Resource$Combinedaudiences; + class Resource$Customlists { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/customLists/{+customListId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customListId'], + pathParams: ['customListId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/customLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Customlists = Resource$Customlists; + class Resource$Firstandthirdpartyaudiences { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/firstAndThirdPartyAudiences/{+firstAndThirdPartyAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['firstAndThirdPartyAudienceId'], + pathParams: ['firstAndThirdPartyAudienceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/firstAndThirdPartyAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Firstandthirdpartyaudiences = Resource$Firstandthirdpartyaudiences; + class Resource$Floodlightgroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/floodlightGroups/{+floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/floodlightGroups/{floodlightGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['floodlightGroupId'], + pathParams: ['floodlightGroupId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Floodlightgroups = Resource$Floodlightgroups; + class Resource$Googleaudiences { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleAudiences/{+googleAudienceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['googleAudienceId'], + pathParams: ['googleAudienceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleAudiences').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Googleaudiences = Resource$Googleaudiences; + class Resource$Inventorysourcegroups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups/{+inventorySourceGroupId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceGroupId'], + pathParams: ['inventorySourceGroupId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySourceGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Inventorysourcegroups = Resource$Inventorysourcegroups; + class Resource$Inventorysources { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources/{+inventorySourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['inventorySourceId'], + pathParams: ['inventorySourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/inventorySources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Inventorysources = Resource$Inventorysources; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/download/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Media = Resource$Media; + class Resource$Partners { + constructor(context) { + this.context = context; + this.channels = new Resource$Partners$Channels(this.context); + } + } + displayvideo_v1.Resource$Partners = Resource$Partners; + class Resource$Partners$Channels { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels/{+channelId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId', 'channelId'], + pathParams: ['channelId', 'partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/partners/{+partnerId}/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['partnerId'], + pathParams: ['partnerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Partners$Channels = Resource$Partners$Channels; + class Resource$Sdfdownloadtasks { + constructor(context) { + this.context = context; + this.operations = new Resource$Sdfdownloadtasks$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/sdfdownloadtasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Sdfdownloadtasks = Resource$Sdfdownloadtasks; + class Resource$Sdfdownloadtasks$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Sdfdownloadtasks$Operations = Resource$Sdfdownloadtasks$Operations; + class Resource$Targetingtypes { + constructor(context) { + this.context = context; + this.targetingOptions = new Resource$Targetingtypes$Targetingoptions(this.context); + } + } + displayvideo_v1.Resource$Targetingtypes = Resource$Targetingtypes; + class Resource$Targetingtypes$Targetingoptions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/targetingTypes/{+targetingType}/targetingOptions/{+targetingOptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType', 'targetingOptionId'], + pathParams: ['targetingOptionId', 'targetingType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://displayvideo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/targetingTypes/{+targetingType}/targetingOptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['targetingType'], + pathParams: ['targetingType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + displayvideo_v1.Resource$Targetingtypes$Targetingoptions = Resource$Targetingtypes$Targetingoptions; +})(displayvideo_v1 = exports.displayvideo_v1 || (exports.displayvideo_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 58694: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dlp = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(78831); +exports.VERSIONS = { + v2: v2_1.dlp_v2.Dlp, +}; +function dlp(versionOrOptions) { + return googleapis_common_1.getAPI('dlp', versionOrOptions, exports.VERSIONS, this); +} +exports.dlp = dlp; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 78831: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dlp_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dlp_v2; +(function (dlp_v2) { + /** + * Cloud Data Loss Prevention (DLP) API + * + * Provides methods for detection, risk analysis, and de-identification of privacy-sensitive fragments in text, images, and Google Cloud Platform storage repositories. + * + * @example + * const {google} = require('googleapis'); + * const dlp = google.dlp('v2'); + * + * @namespace dlp + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Dlp + */ + class Dlp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.infoTypes = new Resource$Infotypes(this.context); + this.locations = new Resource$Locations(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + dlp_v2.Dlp = Dlp; + class Resource$Infotypes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Infotypes = Resource$Infotypes; + class Resource$Locations { + constructor(context) { + this.context = context; + this.infoTypes = new Resource$Locations$Infotypes(this.context); + } + } + dlp_v2.Resource$Locations = Resource$Locations; + class Resource$Locations$Infotypes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/locations/{locationId}/infoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['locationId'], + pathParams: ['locationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Locations$Infotypes = Resource$Locations$Infotypes; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.deidentifyTemplates = new Resource$Organizations$Deidentifytemplates(this.context); + this.inspectTemplates = new Resource$Organizations$Inspecttemplates(this.context); + this.locations = new Resource$Organizations$Locations(this.context); + this.storedInfoTypes = new Resource$Organizations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Deidentifytemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Deidentifytemplates = Resource$Organizations$Deidentifytemplates; + class Resource$Organizations$Inspecttemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Inspecttemplates = Resource$Organizations$Inspecttemplates; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.deidentifyTemplates = new Resource$Organizations$Locations$Deidentifytemplates(this.context); + this.inspectTemplates = new Resource$Organizations$Locations$Inspecttemplates(this.context); + this.storedInfoTypes = new Resource$Organizations$Locations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Deidentifytemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Deidentifytemplates = Resource$Organizations$Locations$Deidentifytemplates; + class Resource$Organizations$Locations$Inspecttemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Inspecttemplates = Resource$Organizations$Locations$Inspecttemplates; + class Resource$Organizations$Locations$Storedinfotypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Locations$Storedinfotypes = Resource$Organizations$Locations$Storedinfotypes; + class Resource$Organizations$Storedinfotypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Organizations$Storedinfotypes = Resource$Organizations$Storedinfotypes; + class Resource$Projects { + constructor(context) { + this.context = context; + this.content = new Resource$Projects$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Deidentifytemplates(this.context); + this.dlpJobs = new Resource$Projects$Dlpjobs(this.context); + this.image = new Resource$Projects$Image(this.context); + this.inspectTemplates = new Resource$Projects$Inspecttemplates(this.context); + this.jobTriggers = new Resource$Projects$Jobtriggers(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.storedInfoTypes = new Resource$Projects$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Content { + constructor(context) { + this.context = context; + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + inspect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Content = Resource$Projects$Content; + class Resource$Projects$Deidentifytemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Deidentifytemplates = Resource$Projects$Deidentifytemplates; + class Resource$Projects$Dlpjobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Dlpjobs = Resource$Projects$Dlpjobs; + class Resource$Projects$Image { + constructor(context) { + this.context = context; + } + redact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Image = Resource$Projects$Image; + class Resource$Projects$Inspecttemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Inspecttemplates = Resource$Projects$Inspecttemplates; + class Resource$Projects$Jobtriggers { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Jobtriggers = Resource$Projects$Jobtriggers; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.content = new Resource$Projects$Locations$Content(this.context); + this.deidentifyTemplates = new Resource$Projects$Locations$Deidentifytemplates(this.context); + this.dlpJobs = new Resource$Projects$Locations$Dlpjobs(this.context); + this.image = new Resource$Projects$Locations$Image(this.context); + this.inspectTemplates = new Resource$Projects$Locations$Inspecttemplates(this.context); + this.jobTriggers = new Resource$Projects$Locations$Jobtriggers(this.context); + this.storedInfoTypes = new Resource$Projects$Locations$Storedinfotypes(this.context); + } + } + dlp_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Content { + constructor(context) { + this.context = context; + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/content:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + inspect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/content:inspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/content:reidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Content = Resource$Projects$Locations$Content; + class Resource$Projects$Locations$Deidentifytemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v2/{+parent}/locations/{locationId}/deidentifyTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Deidentifytemplates = Resource$Projects$Locations$Deidentifytemplates; + class Resource$Projects$Locations$Dlpjobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + finish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:finish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + hybridInspect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/dlpJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Dlpjobs = Resource$Projects$Locations$Dlpjobs; + class Resource$Projects$Locations$Image { + constructor(context) { + this.context = context; + } + redact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/image:redact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Image = Resource$Projects$Locations$Image; + class Resource$Projects$Locations$Inspecttemplates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/inspectTemplates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Inspecttemplates = Resource$Projects$Locations$Inspecttemplates; + class Resource$Projects$Locations$Jobtriggers { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + hybridInspect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:hybridInspect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/jobTriggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Jobtriggers = Resource$Projects$Locations$Jobtriggers; + class Resource$Projects$Locations$Storedinfotypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/locations/{locationId}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'locationId'], + pathParams: ['locationId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Locations$Storedinfotypes = Resource$Projects$Locations$Storedinfotypes; + class Resource$Projects$Storedinfotypes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/storedInfoTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dlp.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dlp_v2.Resource$Projects$Storedinfotypes = Resource$Projects$Storedinfotypes; +})(dlp_v2 = exports.dlp_v2 || (exports.dlp_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 40788: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.dns = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(66812); +const v1beta2_1 = __nccwpck_require__(98194); +const v2beta1_1 = __nccwpck_require__(43894); +exports.VERSIONS = { + v1: v1_1.dns_v1.Dns, + v1beta2: v1beta2_1.dns_v1beta2.Dns, + v2beta1: v2beta1_1.dns_v2beta1.Dns, +}; +function dns(versionOrOptions) { + return googleapis_common_1.getAPI('dns', versionOrOptions, exports.VERSIONS, this); +} +exports.dns = dns; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 66812: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dns_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dns_v1; +(function (dns_v1) { + /** + * Google Cloud DNS API + * + * Configures and serves authoritative DNS records. + * + * @example + * const {google} = require('googleapis'); + * const dns = google.dns('v1'); + * + * @namespace dns + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Dns + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + } + } + dns_v1.Dns = Dns; + class Resource$Changes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Policies = Resource$Policies; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; +})(dns_v1 = exports.dns_v1 || (exports.dns_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 98194: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dns_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dns_v1beta2; +(function (dns_v1beta2) { + /** + * Google Cloud DNS API + * + * Configures and serves authoritative DNS records. + * + * @example + * const {google} = require('googleapis'); + * const dns = google.dns('v1beta2'); + * + * @namespace dns + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Dns + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + } + } + dns_v1beta2.Dns = Dns; + class Resource$Changes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Policies = Resource$Policies; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v1beta2/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v1beta2/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v1beta2.Resource$Resourcerecordsets = Resource$Resourcerecordsets; +})(dns_v1beta2 = exports.dns_v1beta2 || (exports.dns_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 43894: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.dns_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var dns_v2beta1; +(function (dns_v2beta1) { + /** + * Google Cloud DNS API + * + * Configures and serves authoritative DNS records. + * + * @example + * const {google} = require('googleapis'); + * const dns = google.dns('v2beta1'); + * + * @namespace dns + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Dns + */ + class Dns { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.changes = new Resource$Changes(this.context); + this.dnsKeys = new Resource$Dnskeys(this.context); + this.managedZoneOperations = new Resource$Managedzoneoperations(this.context); + this.managedZones = new Resource$Managedzones(this.context); + this.policies = new Resource$Policies(this.context); + this.projects = new Resource$Projects(this.context); + this.resourceRecordSets = new Resource$Resourcerecordsets(this.context); + } + } + dns_v2beta1.Dns = Dns; + class Resource$Changes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'changeId'], + pathParams: ['changeId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Changes = Resource$Changes; + class Resource$Dnskeys { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys/{dnsKeyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'dnsKeyId'], + pathParams: ['dnsKeyId', 'managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/dnsKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Dnskeys = Resource$Dnskeys; + class Resource$Managedzoneoperations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone', 'operation'], + pathParams: ['managedZone', 'operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Managedzoneoperations = Resource$Managedzoneoperations; + class Resource$Managedzones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/managedZones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Managedzones = Resource$Managedzones; + class Resource$Policies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}/policies/{policy}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'policy'], + pathParams: ['policy', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Policies = Resource$Policies; + class Resource$Projects { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/dns/v2beta1/projects/{project}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Resourcerecordsets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://dns.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/dns/v2beta1/projects/{project}/managedZones/{managedZone}/rrsets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'managedZone'], + pathParams: ['managedZone', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + dns_v2beta1.Resource$Resourcerecordsets = Resource$Resourcerecordsets; +})(dns_v2beta1 = exports.dns_v2beta1 || (exports.dns_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 45329: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.docs = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(79902); +exports.VERSIONS = { + v1: v1_1.docs_v1.Docs, +}; +function docs(versionOrOptions) { + return googleapis_common_1.getAPI('docs', versionOrOptions, exports.VERSIONS, this); +} +exports.docs = docs; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 79902: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.docs_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var docs_v1; +(function (docs_v1) { + /** + * Google Docs API + * + * Reads and writes Google Docs documents. + * + * @example + * const {google} = require('googleapis'); + * const docs = google.docs('v1'); + * + * @namespace docs + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Docs + */ + class Docs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + docs_v1.Docs = Docs; + class Resource$Documents { + constructor(context) { + this.context = context; + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents/{documentId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['documentId'], + pathParams: ['documentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://docs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents/{documentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['documentId'], + pathParams: ['documentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + docs_v1.Resource$Documents = Resource$Documents; +})(docs_v1 = exports.docs_v1 || (exports.docs_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 54946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.domainsrdap = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(55451); +exports.VERSIONS = { + v1: v1_1.domainsrdap_v1.Domainsrdap, +}; +function domainsrdap(versionOrOptions) { + return googleapis_common_1.getAPI('domainsrdap', versionOrOptions, exports.VERSIONS, this); +} +exports.domainsrdap = domainsrdap; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 55451: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.domainsrdap_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var domainsrdap_v1; +(function (domainsrdap_v1) { + /** + * Domains RDAP API + * + * Read-only public API that lets users search for information about domain names. + * + * @example + * const {google} = require('googleapis'); + * const domainsrdap = google.domainsrdap('v1'); + * + * @namespace domainsrdap + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Domainsrdap + */ + class Domainsrdap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.autnum = new Resource$Autnum(this.context); + this.domain = new Resource$Domain(this.context); + this.entity = new Resource$Entity(this.context); + this.ip = new Resource$Ip(this.context); + this.nameserver = new Resource$Nameserver(this.context); + this.v1 = new Resource$V1(this.context); + } + } + domainsrdap_v1.Domainsrdap = Domainsrdap; + class Resource$Autnum { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/autnum/{autnumId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['autnumId'], + pathParams: ['autnumId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$Autnum = Resource$Autnum; + class Resource$Domain { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/domain/{+domainName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['domainName'], + pathParams: ['domainName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$Domain = Resource$Domain; + class Resource$Entity { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entity/{entityId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['entityId'], + pathParams: ['entityId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$Entity = Resource$Entity; + class Resource$Ip { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ip/{ipId}/{ipId1}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['ipId', 'ipId1'], + pathParams: ['ipId', 'ipId1'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$Ip = Resource$Ip; + class Resource$Nameserver { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/nameserver/{nameserverId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['nameserverId'], + pathParams: ['nameserverId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$Nameserver = Resource$Nameserver; + class Resource$V1 { + constructor(context) { + this.context = context; + } + getDomains(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getHelp(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/help').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIp(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/ip').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getNameservers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://domainsrdap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/nameservers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + domainsrdap_v1.Resource$V1 = Resource$V1; +})(domainsrdap_v1 = exports.domainsrdap_v1 || (exports.domainsrdap_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 99629: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.doubleclickbidmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1_1 = __nccwpck_require__(28946); +const v1_1 = __nccwpck_require__(67537); +exports.VERSIONS = { + 'v1.1': v1_1_1.doubleclickbidmanager_v1_1.Doubleclickbidmanager, + v1: v1_1.doubleclickbidmanager_v1.Doubleclickbidmanager, +}; +function doubleclickbidmanager(versionOrOptions) { + return googleapis_common_1.getAPI('doubleclickbidmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.doubleclickbidmanager = doubleclickbidmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 28946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.doubleclickbidmanager_v1_1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var doubleclickbidmanager_v1_1; +(function (doubleclickbidmanager_v1_1) { + /** + * DoubleClick Bid Manager API + * + * API for viewing and managing your reports in DoubleClick Bid Manager. + * + * @example + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1.1'); + * + * @namespace doubleclickbidmanager + * @type {Function} + * @version v1.1 + * @variation v1.1 + * @param {object=} options Options for Doubleclickbidmanager + */ + class Doubleclickbidmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.lineitems = new Resource$Lineitems(this.context); + this.queries = new Resource$Queries(this.context); + this.reports = new Resource$Reports(this.context); + this.sdf = new Resource$Sdf(this.context); + } + } + doubleclickbidmanager_v1_1.Doubleclickbidmanager = Doubleclickbidmanager; + class Resource$Lineitems { + constructor(context) { + this.context = context; + } + downloadlineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclickbidmanager/v1.1/lineitems/downloadlineitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + uploadlineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/lineitems/uploadlineitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Lineitems = Resource$Lineitems; + class Resource$Queries { + constructor(context) { + this.context = context; + } + createquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletequery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listqueries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Queries = Resource$Queries; + class Resource$Reports { + constructor(context) { + this.context = context; + } + listreports(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Reports = Resource$Reports; + class Resource$Sdf { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1.1/sdf/download').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1_1.Resource$Sdf = Resource$Sdf; +})(doubleclickbidmanager_v1_1 = exports.doubleclickbidmanager_v1_1 || (exports.doubleclickbidmanager_v1_1 = {})); +//# sourceMappingURL=v1.1.js.map + +/***/ }), + +/***/ 67537: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.doubleclickbidmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var doubleclickbidmanager_v1; +(function (doubleclickbidmanager_v1) { + /** + * DoubleClick Bid Manager API + * + * API for viewing and managing your reports in DoubleClick Bid Manager. + * + * @example + * const {google} = require('googleapis'); + * const doubleclickbidmanager = google.doubleclickbidmanager('v1'); + * + * @namespace doubleclickbidmanager + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Doubleclickbidmanager + */ + class Doubleclickbidmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.lineitems = new Resource$Lineitems(this.context); + this.queries = new Resource$Queries(this.context); + this.reports = new Resource$Reports(this.context); + this.sdf = new Resource$Sdf(this.context); + } + } + doubleclickbidmanager_v1.Doubleclickbidmanager = Doubleclickbidmanager; + class Resource$Lineitems { + constructor(context) { + this.context = context; + } + downloadlineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/lineitems/downloadlineitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + uploadlineitems(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/lineitems/uploadlineitems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1.Resource$Lineitems = Resource$Lineitems; + class Resource$Queries { + constructor(context) { + this.context = context; + } + createquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deletequery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listqueries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/queries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runquery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/query/{queryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1.Resource$Queries = Resource$Queries; + class Resource$Reports { + constructor(context) { + this.context = context; + } + listreports(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/queries/{queryId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['queryId'], + pathParams: ['queryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1.Resource$Reports = Resource$Reports; + class Resource$Sdf { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclickbidmanager/v1/sdf/download').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclickbidmanager_v1.Resource$Sdf = Resource$Sdf; +})(doubleclickbidmanager_v1 = exports.doubleclickbidmanager_v1 || (exports.doubleclickbidmanager_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 50852: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.doubleclicksearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(51344); +exports.VERSIONS = { + v2: v2_1.doubleclicksearch_v2.Doubleclicksearch, +}; +function doubleclicksearch(versionOrOptions) { + return googleapis_common_1.getAPI('doubleclicksearch', versionOrOptions, exports.VERSIONS, this); +} +exports.doubleclicksearch = doubleclicksearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 51344: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.doubleclicksearch_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var doubleclicksearch_v2; +(function (doubleclicksearch_v2) { + /** + * Search Ads 360 API + * + * Reports and modifies your advertising data in DoubleClick Search (for example, campaigns, ad groups, keywords, and conversions). + * + * @example + * const {google} = require('googleapis'); + * const doubleclicksearch = google.doubleclicksearch('v2'); + * + * @namespace doubleclicksearch + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Doubleclicksearch + */ + class Doubleclicksearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.conversion = new Resource$Conversion(this.context); + this.reports = new Resource$Reports(this.context); + this.savedColumns = new Resource$Savedcolumns(this.context); + } + } + doubleclicksearch_v2.Doubleclicksearch = Doubleclicksearch; + class Resource$Conversion { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/engine/{engineAccountId}/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'agencyId', + 'advertiserId', + 'engineAccountId', + 'endDate', + 'rowCount', + 'startDate', + 'startRow', + ], + pathParams: ['advertiserId', 'agencyId', 'engineAccountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAvailability(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/conversion/updateAvailability').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclicksearch_v2.Resource$Conversion = Resource$Conversion; + class Resource$Reports { + constructor(context) { + this.context = context; + } + generate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports/generate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId'], + pathParams: ['reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getFile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/reports/{reportId}/files/{reportFragment}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['reportId', 'reportFragment'], + pathParams: ['reportFragment', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + request(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/doubleclicksearch/v2/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclicksearch_v2.Resource$Reports = Resource$Reports; + class Resource$Savedcolumns { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/doubleclicksearch/v2/agency/{agencyId}/advertiser/{advertiserId}/savedcolumns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['agencyId', 'advertiserId'], + pathParams: ['advertiserId', 'agencyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + doubleclicksearch_v2.Resource$Savedcolumns = Resource$Savedcolumns; +})(doubleclicksearch_v2 = exports.doubleclicksearch_v2 || (exports.doubleclicksearch_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 4637: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.drive = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(26436); +const v3_1 = __nccwpck_require__(95863); +exports.VERSIONS = { + v2: v2_1.drive_v2.Drive, + v3: v3_1.drive_v3.Drive, +}; +function drive(versionOrOptions) { + return googleapis_common_1.getAPI('drive', versionOrOptions, exports.VERSIONS, this); +} +exports.drive = drive; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 26436: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.drive_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var drive_v2; +(function (drive_v2) { + /** + * Drive API + * + * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * + * @example + * const {google} = require('googleapis'); + * const drive = google.drive('v2'); + * + * @namespace drive + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Drive + */ + class Drive { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.about = new Resource$About(this.context); + this.apps = new Resource$Apps(this.context); + this.changes = new Resource$Changes(this.context); + this.channels = new Resource$Channels(this.context); + this.children = new Resource$Children(this.context); + this.comments = new Resource$Comments(this.context); + this.drives = new Resource$Drives(this.context); + this.files = new Resource$Files(this.context); + this.parents = new Resource$Parents(this.context); + this.permissions = new Resource$Permissions(this.context); + this.properties = new Resource$Properties(this.context); + this.replies = new Resource$Replies(this.context); + this.revisions = new Resource$Revisions(this.context); + this.teamdrives = new Resource$Teamdrives(this.context); + } + } + drive_v2.Drive = Drive; + class Resource$About { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/about').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$About = Resource$About; + class Resource$Apps { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/apps/{appId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['appId'], + pathParams: ['appId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/apps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Apps = Resource$Apps; + class Resource$Changes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/changes/{changeId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['changeId'], + pathParams: ['changeId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/changes/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Changes = Resource$Changes; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Channels = Resource$Channels; + class Resource$Children { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{folderId}/children/{childId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['folderId', 'childId'], + pathParams: ['childId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['folderId'], + pathParams: ['folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{folderId}/children').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['folderId'], + pathParams: ['folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Children = Resource$Children; + class Resource$Comments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Comments = Resource$Comments; + class Resource$Drives { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + hide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Drives = Resource$Drives; + class Resource$Files { + constructor(context) { + this.context = context; + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + emptyTrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + touch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/touch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + untrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v2/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Files = Resource$Files; + class Resource$Parents { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/parents/{parentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'parentId'], + pathParams: ['fileId', 'parentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/parents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Parents = Resource$Parents; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIdForEmail(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/permissionIds/{email}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['email'], + pathParams: ['email'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Permissions = Resource$Permissions; + class Resource$Properties { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/properties/{propertyKey}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['fileId', 'propertyKey'], + pathParams: ['fileId', 'propertyKey'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Properties = Resource$Properties; + class Resource$Replies { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v2/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Replies = Resource$Replies; + class Resource$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Revisions = Resource$Revisions; + class Resource$Teamdrives { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v2/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v2.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v2 = exports.drive_v2 || (exports.drive_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 95863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.drive_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var drive_v3; +(function (drive_v3) { + /** + * Drive API + * + * Manages files in Drive including uploading, downloading, searching, detecting changes, and updating sharing permissions. + * + * @example + * const {google} = require('googleapis'); + * const drive = google.drive('v3'); + * + * @namespace drive + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Drive + */ + class Drive { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.about = new Resource$About(this.context); + this.changes = new Resource$Changes(this.context); + this.channels = new Resource$Channels(this.context); + this.comments = new Resource$Comments(this.context); + this.drives = new Resource$Drives(this.context); + this.files = new Resource$Files(this.context); + this.permissions = new Resource$Permissions(this.context); + this.replies = new Resource$Replies(this.context); + this.revisions = new Resource$Revisions(this.context); + this.teamdrives = new Resource$Teamdrives(this.context); + } + } + drive_v3.Drive = Drive; + class Resource$About { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/about').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$About = Resource$About; + class Resource$Changes { + constructor(context) { + this.context = context; + } + getStartPageToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes/startPageToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['pageToken'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/changes/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['pageToken'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Changes = Resource$Changes; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Channels = Resource$Channels; + class Resource$Comments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Comments = Resource$Comments; + class Resource$Drives { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + hide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}/hide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}/unhide').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/drives/{driveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['driveId'], + pathParams: ['driveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Drives = Resource$Drives; + class Resource$Files { + constructor(context) { + this.context = context; + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/copy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + emptyTrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'mimeType'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/generateIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + mediaUrl: (rootUrl + '/upload/drive/v3/files/{fileId}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Files = Resource$Files; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'permissionId'], + pathParams: ['fileId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Permissions = Resource$Permissions; + class Resource$Replies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/comments/{commentId}/replies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'commentId'], + pathParams: ['commentId', 'fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/drive/v3/files/{fileId}/comments/{commentId}/replies/{replyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'commentId', 'replyId'], + pathParams: ['commentId', 'fileId', 'replyId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Replies = Resource$Replies; + class Resource$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['fileId'], + pathParams: ['fileId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/files/{fileId}/revisions/{revisionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['fileId', 'revisionId'], + pathParams: ['fileId', 'revisionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Revisions = Resource$Revisions; + class Resource$Teamdrives { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['requestId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/drive/v3/teamdrives/{teamDriveId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['teamDriveId'], + pathParams: ['teamDriveId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + drive_v3.Resource$Teamdrives = Resource$Teamdrives; +})(drive_v3 = exports.drive_v3 || (exports.drive_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 256: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.driveactivity = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(93293); +exports.VERSIONS = { + v2: v2_1.driveactivity_v2.Driveactivity, +}; +function driveactivity(versionOrOptions) { + return googleapis_common_1.getAPI('driveactivity', versionOrOptions, exports.VERSIONS, this); +} +exports.driveactivity = driveactivity; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 93293: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.driveactivity_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var driveactivity_v2; +(function (driveactivity_v2) { + /** + * Drive Activity API + * + * Provides a historical view of activity in Google Drive. + * + * @example + * const {google} = require('googleapis'); + * const driveactivity = google.driveactivity('v2'); + * + * @namespace driveactivity + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Driveactivity + */ + class Driveactivity { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activity = new Resource$Activity(this.context); + } + } + driveactivity_v2.Driveactivity = Driveactivity; + class Resource$Activity { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://driveactivity.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/activity:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + driveactivity_v2.Resource$Activity = Resource$Activity; +})(driveactivity_v2 = exports.driveactivity_v2 || (exports.driveactivity_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 86145: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.factchecktools = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1alpha1_1 = __nccwpck_require__(13058); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.factchecktools_v1alpha1.Factchecktools, +}; +function factchecktools(versionOrOptions) { + return googleapis_common_1.getAPI('factchecktools', versionOrOptions, exports.VERSIONS, this); +} +exports.factchecktools = factchecktools; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 13058: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.factchecktools_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var factchecktools_v1alpha1; +(function (factchecktools_v1alpha1) { + /** + * Fact Check Tools API + * + * + * + * @example + * const {google} = require('googleapis'); + * const factchecktools = google.factchecktools('v1alpha1'); + * + * @namespace factchecktools + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Factchecktools + */ + class Factchecktools { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.claims = new Resource$Claims(this.context); + this.pages = new Resource$Pages(this.context); + } + } + factchecktools_v1alpha1.Factchecktools = Factchecktools; + class Resource$Claims { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/claims:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + factchecktools_v1alpha1.Resource$Claims = Resource$Claims; + class Resource$Pages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/pages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://factchecktools.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + factchecktools_v1alpha1.Resource$Pages = Resource$Pages; +})(factchecktools_v1alpha1 = exports.factchecktools_v1alpha1 || (exports.factchecktools_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 30850: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.fcm = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(77166); +exports.VERSIONS = { + v1: v1_1.fcm_v1.Fcm, +}; +function fcm(versionOrOptions) { + return googleapis_common_1.getAPI('fcm', versionOrOptions, exports.VERSIONS, this); +} +exports.fcm = fcm; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 77166: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fcm_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var fcm_v1; +(function (fcm_v1) { + /** + * Firebase Cloud Messaging API + * + * FCM send API that provides a cross-platform messaging solution to reliably deliver messages at no cost. + * + * @example + * const {google} = require('googleapis'); + * const fcm = google.fcm('v1'); + * + * @namespace fcm + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Fcm + */ + class Fcm { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + fcm_v1.Fcm = Fcm; + class Resource$Projects { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Messages(this.context); + } + } + fcm_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Messages { + constructor(context) { + this.context = context; + } + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://fcm.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages:send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fcm_v1.Resource$Projects$Messages = Resource$Projects$Messages; +})(fcm_v1 = exports.fcm_v1 || (exports.fcm_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 9521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.file = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(17439); +const v1beta1_1 = __nccwpck_require__(69350); +exports.VERSIONS = { + v1: v1_1.file_v1.File, + v1beta1: v1beta1_1.file_v1beta1.File, +}; +function file(versionOrOptions) { + return googleapis_common_1.getAPI('file', versionOrOptions, exports.VERSIONS, this); +} +exports.file = file; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 17439: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.file_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var file_v1; +(function (file_v1) { + /** + * Cloud Filestore API + * + * The Cloud Filestore API is used for creating and managing cloud file servers. + * + * @example + * const {google} = require('googleapis'); + * const file = google.file('v1'); + * + * @namespace file + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for File + */ + class File { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + file_v1.File = File; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + file_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1 = exports.file_v1 || (exports.file_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 69350: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.file_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var file_v1beta1; +(function (file_v1beta1) { + /** + * Cloud Filestore API + * + * The Cloud Filestore API is used for creating and managing cloud file servers. + * + * @example + * const {google} = require('googleapis'); + * const file = google.file('v1beta1'); + * + * @namespace file + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for File + */ + class File { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + file_v1beta1.File = File; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + file_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://file.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + file_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(file_v1beta1 = exports.file_v1beta1 || (exports.file_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 51323: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firebase = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(92590); +exports.VERSIONS = { + v1beta1: v1beta1_1.firebase_v1beta1.Firebase, +}; +function firebase(versionOrOptions) { + return googleapis_common_1.getAPI('firebase', versionOrOptions, exports.VERSIONS, this); +} +exports.firebase = firebase; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 92590: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebase_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firebase_v1beta1; +(function (firebase_v1beta1) { + /** + * Firebase Management API + * + * The Firebase Management API enables programmatic setup and management of Firebase projects, including a project's Firebase resources and Firebase apps. + * + * @example + * const {google} = require('googleapis'); + * const firebase = google.firebase('v1beta1'); + * + * @namespace firebase + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Firebase + */ + class Firebase { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.availableProjects = new Resource$Availableprojects(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + firebase_v1beta1.Firebase = Firebase; + class Resource$Availableprojects { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/availableProjects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Availableprojects = Resource$Availableprojects; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.androidApps = new Resource$Projects$Androidapps(this.context); + this.availableLocations = new Resource$Projects$Availablelocations(this.context); + this.defaultLocation = new Resource$Projects$Defaultlocation(this.context); + this.iosApps = new Resource$Projects$Iosapps(this.context); + this.webApps = new Resource$Projects$Webapps(this.context); + } + addFirebase(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+project}:addFirebase').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + addGoogleAnalytics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:addGoogleAnalytics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAdminSdkConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAnalyticsDetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeAnalytics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:removeAnalytics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchApps(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:searchApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Androidapps { + constructor(context) { + this.context = context; + this.sha = new Resource$Projects$Androidapps$Sha(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/androidApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Androidapps = Resource$Projects$Androidapps; + class Resource$Projects$Androidapps$Sha { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sha').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Androidapps$Sha = Resource$Projects$Androidapps$Sha; + class Resource$Projects$Availablelocations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/availableLocations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Availablelocations = Resource$Projects$Availablelocations; + class Resource$Projects$Defaultlocation { + constructor(context) { + this.context = context; + } + finalize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/defaultLocation:finalize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Defaultlocation = Resource$Projects$Defaultlocation; + class Resource$Projects$Iosapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/iosApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Iosapps = Resource$Projects$Iosapps; + class Resource$Projects$Webapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/webApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebase.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebase_v1beta1.Resource$Projects$Webapps = Resource$Projects$Webapps; +})(firebase_v1beta1 = exports.firebase_v1beta1 || (exports.firebase_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 13244: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firebasedynamiclinks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(26509); +exports.VERSIONS = { + v1: v1_1.firebasedynamiclinks_v1.Firebasedynamiclinks, +}; +function firebasedynamiclinks(versionOrOptions) { + return googleapis_common_1.getAPI('firebasedynamiclinks', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasedynamiclinks = firebasedynamiclinks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 26509: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebasedynamiclinks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firebasedynamiclinks_v1; +(function (firebasedynamiclinks_v1) { + /** + * Firebase Dynamic Links API + * + * Programmatically creates and manages Firebase Dynamic Links. + * + * @example + * const {google} = require('googleapis'); + * const firebasedynamiclinks = google.firebasedynamiclinks('v1'); + * + * @namespace firebasedynamiclinks + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Firebasedynamiclinks + */ + class Firebasedynamiclinks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.managedShortLinks = new Resource$Managedshortlinks(this.context); + this.shortLinks = new Resource$Shortlinks(this.context); + this.v1 = new Resource$V1(this.context); + } + } + firebasedynamiclinks_v1.Firebasedynamiclinks = Firebasedynamiclinks; + class Resource$Managedshortlinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/managedShortLinks:create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$Managedshortlinks = Resource$Managedshortlinks; + class Resource$Shortlinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/shortLinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$Shortlinks = Resource$Shortlinks; + class Resource$V1 { + constructor(context) { + this.context = context; + } + getLinkStats(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{dynamicLink}/linkStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['dynamicLink'], + pathParams: ['dynamicLink'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + installAttribution(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/installAttribution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reopenAttribution(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasedynamiclinks.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/reopenAttribution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasedynamiclinks_v1.Resource$V1 = Resource$V1; +})(firebasedynamiclinks_v1 = exports.firebasedynamiclinks_v1 || (exports.firebasedynamiclinks_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 15505: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firebasehosting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(15811); +exports.VERSIONS = { + v1beta1: v1beta1_1.firebasehosting_v1beta1.Firebasehosting, +}; +function firebasehosting(versionOrOptions) { + return googleapis_common_1.getAPI('firebasehosting', versionOrOptions, exports.VERSIONS, this); +} +exports.firebasehosting = firebasehosting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 15811: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebasehosting_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firebasehosting_v1beta1; +(function (firebasehosting_v1beta1) { + /** + * Firebase Hosting API + * + * The Firebase Hosting REST API enables programmatic and customizable deployments to your Firebase-hosted sites. Use this REST API to deploy new or updated hosting configurations and content files. + * + * @example + * const {google} = require('googleapis'); + * const firebasehosting = google.firebasehosting('v1beta1'); + * + * @namespace firebasehosting + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Firebasehosting + */ + class Firebasehosting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.sites = new Resource$Sites(this.context); + } + } + firebasehosting_v1beta1.Firebasehosting = Firebasehosting; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.sites = new Resource$Projects$Sites(this.context); + } + } + firebasehosting_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Sites { + constructor(context) { + this.context = context; + this.channels = new Resource$Projects$Sites$Channels(this.context); + this.domains = new Resource$Projects$Sites$Domains(this.context); + this.releases = new Resource$Projects$Sites$Releases(this.context); + this.versions = new Resource$Projects$Sites$Versions(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites = Resource$Projects$Sites; + class Resource$Projects$Sites$Channels { + constructor(context) { + this.context = context; + this.releases = new Resource$Projects$Sites$Channels$Releases(this.context); + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Channels = Resource$Projects$Sites$Channels; + class Resource$Projects$Sites$Channels$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Channels$Releases = Resource$Projects$Sites$Channels$Releases; + class Resource$Projects$Sites$Domains { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Domains = Resource$Projects$Sites$Domains; + class Resource$Projects$Sites$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Releases = Resource$Projects$Sites$Releases; + class Resource$Projects$Sites$Versions { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Sites$Versions$Files(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + populateFiles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Versions = Resource$Projects$Sites$Versions; + class Resource$Projects$Sites$Versions$Files { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Projects$Sites$Versions$Files = Resource$Projects$Sites$Versions$Files; + class Resource$Sites { + constructor(context) { + this.context = context; + this.channels = new Resource$Sites$Channels(this.context); + this.domains = new Resource$Sites$Domains(this.context); + this.releases = new Resource$Sites$Releases(this.context); + this.versions = new Resource$Sites$Versions(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites = Resource$Sites; + class Resource$Sites$Channels { + constructor(context) { + this.context = context; + this.releases = new Resource$Sites$Channels$Releases(this.context); + } + } + firebasehosting_v1beta1.Resource$Sites$Channels = Resource$Sites$Channels; + class Resource$Sites$Channels$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Channels$Releases = Resource$Sites$Channels$Releases; + class Resource$Sites$Domains { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Domains = Resource$Sites$Domains; + class Resource$Sites$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Releases = Resource$Sites$Releases; + class Resource$Sites$Versions { + constructor(context) { + this.context = context; + this.files = new Resource$Sites$Versions$Files(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + populateFiles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:populateFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Versions = Resource$Sites$Versions; + class Resource$Sites$Versions$Files { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebasehosting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/files').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebasehosting_v1beta1.Resource$Sites$Versions$Files = Resource$Sites$Versions$Files; +})(firebasehosting_v1beta1 = exports.firebasehosting_v1beta1 || (exports.firebasehosting_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 84573: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firebaseml = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta2_1 = __nccwpck_require__(75272); +exports.VERSIONS = { + v1beta2: v1beta2_1.firebaseml_v1beta2.Firebaseml, +}; +function firebaseml(versionOrOptions) { + return googleapis_common_1.getAPI('firebaseml', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaseml = firebaseml; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebaseml_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firebaseml_v1beta2; +(function (firebaseml_v1beta2) { + /** + * Firebase ML API + * + * Access custom machine learning models hosted via Firebase ML. + * + * @example + * const {google} = require('googleapis'); + * const firebaseml = google.firebaseml('v1beta2'); + * + * @namespace firebaseml + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Firebaseml + */ + class Firebaseml { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebaseml_v1beta2.Firebaseml = Firebaseml; + class Resource$Projects { + constructor(context) { + this.context = context; + this.models = new Resource$Projects$Models(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + firebaseml_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Models { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebaseml_v1beta2.Resource$Projects$Models = Resource$Projects$Models; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaseml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebaseml_v1beta2.Resource$Projects$Operations = Resource$Projects$Operations; +})(firebaseml_v1beta2 = exports.firebaseml_v1beta2 || (exports.firebaseml_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 92007: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firebaserules = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(48907); +exports.VERSIONS = { + v1: v1_1.firebaserules_v1.Firebaserules, +}; +function firebaserules(versionOrOptions) { + return googleapis_common_1.getAPI('firebaserules', versionOrOptions, exports.VERSIONS, this); +} +exports.firebaserules = firebaserules; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 48907: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firebaserules_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firebaserules_v1; +(function (firebaserules_v1) { + /** + * Firebase Rules API + * + * Creates and manages rules that determine when a Firebase Rules-enabled service should permit a request. + * + * @example + * const {google} = require('googleapis'); + * const firebaserules = google.firebaserules('v1'); + * + * @namespace firebaserules + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Firebaserules + */ + class Firebaserules { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firebaserules_v1.Firebaserules = Firebaserules; + class Resource$Projects { + constructor(context) { + this.context = context; + this.releases = new Resource$Projects$Releases(this.context); + this.rulesets = new Resource$Projects$Rulesets(this.context); + } + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebaserules_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Releases { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getExecutable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getExecutable').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/releases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebaserules_v1.Resource$Projects$Releases = Resource$Projects$Releases; + class Resource$Projects$Rulesets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firebaserules.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/rulesets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firebaserules_v1.Resource$Projects$Rulesets = Resource$Projects$Rulesets; +})(firebaserules_v1 = exports.firebaserules_v1 || (exports.firebaserules_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 72411: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.firestore = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(61083); +const v1beta1_1 = __nccwpck_require__(93083); +const v1beta2_1 = __nccwpck_require__(86640); +exports.VERSIONS = { + v1: v1_1.firestore_v1.Firestore, + v1beta1: v1beta1_1.firestore_v1beta1.Firestore, + v1beta2: v1beta2_1.firestore_v1beta2.Firestore, +}; +function firestore(versionOrOptions) { + return googleapis_common_1.getAPI('firestore', versionOrOptions, exports.VERSIONS, this); +} +exports.firestore = firestore; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 61083: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firestore_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firestore_v1; +(function (firestore_v1) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1'); + * + * @namespace firestore + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Firestore + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + firestore_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { + constructor(context) { + this.context = context; + this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); + this.documents = new Resource$Projects$Databases$Documents(this.context); + this.operations = new Resource$Projects$Databases$Operations(this.context); + } + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Collectiongroups { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); + this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); + } + } + firestore_v1.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; + class Resource$Projects$Databases$Collectiongroups$Fields { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; + class Resource$Projects$Databases$Collectiongroups$Indexes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; + class Resource$Projects$Databases$Documents { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createDocument(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Databases$Operations = Resource$Projects$Databases$Operations; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1.Resource$Projects$Locations = Resource$Projects$Locations; +})(firestore_v1 = exports.firestore_v1 || (exports.firestore_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 93083: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firestore_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firestore_v1beta1; +(function (firestore_v1beta1) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1beta1'); + * + * @namespace firestore + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Firestore + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1beta1.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + } + } + firestore_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { + constructor(context) { + this.context = context; + this.documents = new Resource$Projects$Databases$Documents(this.context); + this.indexes = new Resource$Projects$Databases$Indexes(this.context); + } + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta1.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Documents { + constructor(context) { + this.context = context; + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createDocument(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/{collectionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'collectionId'], + pathParams: ['collectionId', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listCollectionIds(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:listCollectionIds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:listen').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:runQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+database}/documents:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta1.Resource$Projects$Databases$Documents = Resource$Projects$Databases$Documents; + class Resource$Projects$Databases$Indexes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta1.Resource$Projects$Databases$Indexes = Resource$Projects$Databases$Indexes; +})(firestore_v1beta1 = exports.firestore_v1beta1 || (exports.firestore_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 86640: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.firestore_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var firestore_v1beta2; +(function (firestore_v1beta2) { + /** + * Cloud Firestore API + * + * Accesses the NoSQL document database built for automatic scaling, high performance, and ease of application development. + * + * @example + * const {google} = require('googleapis'); + * const firestore = google.firestore('v1beta2'); + * + * @namespace firestore + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Firestore + */ + class Firestore { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + firestore_v1beta2.Firestore = Firestore; + class Resource$Projects { + constructor(context) { + this.context = context; + this.databases = new Resource$Projects$Databases(this.context); + } + } + firestore_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Databases { + constructor(context) { + this.context = context; + this.collectionGroups = new Resource$Projects$Databases$Collectiongroups(this.context); + } + exportDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:exportDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importDocuments(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:importDocuments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases = Resource$Projects$Databases; + class Resource$Projects$Databases$Collectiongroups { + constructor(context) { + this.context = context; + this.fields = new Resource$Projects$Databases$Collectiongroups$Fields(this.context); + this.indexes = new Resource$Projects$Databases$Collectiongroups$Indexes(this.context); + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups = Resource$Projects$Databases$Collectiongroups; + class Resource$Projects$Databases$Collectiongroups$Fields { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/fields').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Fields = Resource$Projects$Databases$Collectiongroups$Fields; + class Resource$Projects$Databases$Collectiongroups$Indexes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://firestore.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/indexes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + firestore_v1beta2.Resource$Projects$Databases$Collectiongroups$Indexes = Resource$Projects$Databases$Collectiongroups$Indexes; +})(firestore_v1beta2 = exports.firestore_v1beta2 || (exports.firestore_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 64946: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.fitness = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(12030); +exports.VERSIONS = { + v1: v1_1.fitness_v1.Fitness, +}; +function fitness(versionOrOptions) { + return googleapis_common_1.getAPI('fitness', versionOrOptions, exports.VERSIONS, this); +} +exports.fitness = fitness; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 12030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.fitness_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var fitness_v1; +(function (fitness_v1) { + /** + * Fitness + * + * Stores and accesses user data in the fitness store from apps on any platform. + * + * @example + * const {google} = require('googleapis'); + * const fitness = google.fitness('v1'); + * + * @namespace fitness + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Fitness + */ + class Fitness { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + fitness_v1.Fitness = Fitness; + class Resource$Users { + constructor(context) { + this.context = context; + this.dataset = new Resource$Users$Dataset(this.context); + this.dataSources = new Resource$Users$Datasources(this.context); + this.sessions = new Resource$Users$Sessions(this.context); + } + } + fitness_v1.Resource$Users = Resource$Users; + class Resource$Users$Dataset { + constructor(context) { + this.context = context; + } + aggregate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataset:aggregate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fitness_v1.Resource$Users$Dataset = Resource$Users$Dataset; + class Resource$Users$Datasources { + constructor(context) { + this.context = context; + this.dataPointChanges = new Resource$Users$Datasources$Datapointchanges(this.context); + this.datasets = new Resource$Users$Datasources$Datasets(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fitness_v1.Resource$Users$Datasources = Resource$Users$Datasources; + class Resource$Users$Datasources$Datapointchanges { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/dataPointChanges').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'dataSourceId'], + pathParams: ['dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fitness_v1.Resource$Users$Datasources$Datapointchanges = Resource$Users$Datasources$Datapointchanges; + class Resource$Users$Datasources$Datasets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/fitness/v1/users/{userId}/dataSources/{dataSourceId}/datasets/{datasetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userId', 'dataSourceId', 'datasetId'], + pathParams: ['datasetId', 'dataSourceId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fitness_v1.Resource$Users$Datasources$Datasets = Resource$Users$Datasources$Datasets; + class Resource$Users$Sessions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/fitness/v1/users/{userId}/sessions/{sessionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId', 'sessionId'], + pathParams: ['sessionId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + fitness_v1.Resource$Users$Sessions = Resource$Users$Sessions; +})(fitness_v1 = exports.fitness_v1 || (exports.fitness_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 78751: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.gamesConfiguration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1configuration_1 = __nccwpck_require__(10294); +exports.VERSIONS = { + v1configuration: v1configuration_1.gamesConfiguration_v1configuration.Gamesconfiguration, +}; +function gamesConfiguration(versionOrOptions) { + return googleapis_common_1.getAPI('gamesConfiguration', versionOrOptions, exports.VERSIONS, this); +} +exports.gamesConfiguration = gamesConfiguration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 10294: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.gamesConfiguration_v1configuration = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var gamesConfiguration_v1configuration; +(function (gamesConfiguration_v1configuration) { + /** + * Google Play Game Services Publishing API + * + * The Google Play Game Services Publishing API allows developers to configure their games in Game Services. + * + * @example + * const {google} = require('googleapis'); + * const gamesConfiguration = google.gamesConfiguration('v1configuration'); + * + * @namespace gamesConfiguration + * @type {Function} + * @version v1configuration + * @variation v1configuration + * @param {object=} options Options for Gamesconfiguration + */ + class Gamesconfiguration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.achievementConfigurations = new Resource$Achievementconfigurations(this.context); + this.imageConfigurations = new Resource$Imageconfigurations(this.context); + this.leaderboardConfigurations = new Resource$Leaderboardconfigurations(this.context); + } + } + gamesConfiguration_v1configuration.Gamesconfiguration = Gamesconfiguration; + class Resource$Achievementconfigurations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/achievements/{achievementId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesConfiguration_v1configuration.Resource$Achievementconfigurations = Resource$Achievementconfigurations; + class Resource$Imageconfigurations { + constructor(context) { + this.context = context; + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/images/{resourceId}/imageType/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + + '/upload/games/v1configuration/images/{resourceId}/imageType/{imageType}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceId', 'imageType'], + pathParams: ['imageType', 'resourceId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesConfiguration_v1configuration.Resource$Imageconfigurations = Resource$Imageconfigurations; + class Resource$Leaderboardconfigurations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1configuration/applications/{applicationId}/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1configuration/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesConfiguration_v1configuration.Resource$Leaderboardconfigurations = Resource$Leaderboardconfigurations; +})(gamesConfiguration_v1configuration = exports.gamesConfiguration_v1configuration || (exports.gamesConfiguration_v1configuration = {})); +//# sourceMappingURL=v1configuration.js.map + +/***/ }), + +/***/ 52357: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.gamesManagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1management_1 = __nccwpck_require__(7364); +exports.VERSIONS = { + v1management: v1management_1.gamesManagement_v1management.Gamesmanagement, +}; +function gamesManagement(versionOrOptions) { + return googleapis_common_1.getAPI('gamesManagement', versionOrOptions, exports.VERSIONS, this); +} +exports.gamesManagement = gamesManagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 7364: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.gamesManagement_v1management = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var gamesManagement_v1management; +(function (gamesManagement_v1management) { + /** + * Google Play Game Services Management API + * + * The Management API for Google Play Game Services. + * + * @example + * const {google} = require('googleapis'); + * const gamesManagement = google.gamesManagement('v1management'); + * + * @namespace gamesManagement + * @type {Function} + * @version v1management + * @variation v1management + * @param {object=} options Options for Gamesmanagement + */ + class Gamesmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.achievements = new Resource$Achievements(this.context); + this.applications = new Resource$Applications(this.context); + this.events = new Resource$Events(this.context); + this.players = new Resource$Players(this.context); + this.rooms = new Resource$Rooms(this.context); + this.scores = new Resource$Scores(this.context); + this.turnBasedMatches = new Resource$Turnbasedmatches(this.context); + } + } + gamesManagement_v1management.Gamesmanagement = Gamesmanagement; + class Resource$Achievements { + constructor(context) { + this.context = context; + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/{achievementId}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/achievements/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/achievements/{achievementId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/achievements/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } + listHidden(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Applications = Resource$Applications; + class Resource$Events { + constructor(context) { + this.context = context; + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/{eventId}/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['eventId'], + pathParams: ['eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/events/{eventId}/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['eventId'], + pathParams: ['eventId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/events/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Events = Resource$Events; + class Resource$Players { + constructor(context) { + this.context = context; + } + hide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unhide(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/applications/{applicationId}/players/hidden/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['applicationId', 'playerId'], + pathParams: ['applicationId', 'playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Players = Resource$Players; + class Resource$Rooms { + constructor(context) { + this.context = context; + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/rooms/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/rooms/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Rooms = Resource$Rooms; + class Resource$Scores { + constructor(context) { + this.context = context; + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/leaderboards/{leaderboardId}/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAllForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/resetAllForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/leaderboards/{leaderboardId}/scores/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetMultipleForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/scores/resetMultipleForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Scores = Resource$Scores; + class Resource$Turnbasedmatches { + constructor(context) { + this.context = context; + } + reset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1management/turnbasedmatches/reset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetForAllPlayers(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1management/turnbasedmatches/resetForAllPlayers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gamesManagement_v1management.Resource$Turnbasedmatches = Resource$Turnbasedmatches; +})(gamesManagement_v1management = exports.gamesManagement_v1management || (exports.gamesManagement_v1management = {})); +//# sourceMappingURL=v1management.js.map + +/***/ }), + +/***/ 12136: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.games = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(23512); +exports.VERSIONS = { + v1: v1_1.games_v1.Games, +}; +function games(versionOrOptions) { + return googleapis_common_1.getAPI('games', versionOrOptions, exports.VERSIONS, this); +} +exports.games = games; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 23512: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.games_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var games_v1; +(function (games_v1) { + /** + * Google Play Game Services API + * + * The API for Google Play Game Services. + * + * @example + * const {google} = require('googleapis'); + * const games = google.games('v1'); + * + * @namespace games + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Games + */ + class Games { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.achievementDefinitions = new Resource$Achievementdefinitions(this.context); + this.achievements = new Resource$Achievements(this.context); + this.applications = new Resource$Applications(this.context); + this.events = new Resource$Events(this.context); + this.leaderboards = new Resource$Leaderboards(this.context); + this.metagame = new Resource$Metagame(this.context); + this.players = new Resource$Players(this.context); + this.pushtokens = new Resource$Pushtokens(this.context); + this.revisions = new Resource$Revisions(this.context); + this.rooms = new Resource$Rooms(this.context); + this.scores = new Resource$Scores(this.context); + this.snapshots = new Resource$Snapshots(this.context); + this.turnBasedMatches = new Resource$Turnbasedmatches(this.context); + } + } + games_v1.Games = Games; + class Resource$Achievementdefinitions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Achievementdefinitions = Resource$Achievementdefinitions; + class Resource$Achievements { + constructor(context) { + this.context = context; + } + increment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements/{achievementId}/increment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId', 'stepsToIncrement'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}/achievements').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId'], + pathParams: ['playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reveal(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements/{achievementId}/reveal').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setStepsAtLeast(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements/{achievementId}/setStepsAtLeast').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId', 'steps'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unlock(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements/{achievementId}/unlock').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['achievementId'], + pathParams: ['achievementId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateMultiple(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/achievements/updateMultiple').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Achievements = Resource$Achievements; + class Resource$Applications { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/applications/{applicationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + played(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/applications/played').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/applications/{applicationId}/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['applicationId'], + pathParams: ['applicationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Applications = Resource$Applications; + class Resource$Events { + constructor(context) { + this.context = context; + } + listByPlayer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listDefinitions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/eventDefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + record(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/events').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Events = Resource$Events; + class Resource$Leaderboards { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Leaderboards = Resource$Leaderboards; + class Resource$Metagame { + constructor(context) { + this.context = context; + } + getMetagameConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/metagameConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listCategoriesByPlayer(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}/categories/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId', 'collection'], + pathParams: ['collection', 'playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Metagame = Resource$Metagame; + class Resource$Players { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId'], + pathParams: ['playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/me/players/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['collection'], + pathParams: ['collection'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Players = Resource$Players; + class Resource$Pushtokens { + constructor(context) { + this.context = context; + } + remove(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/pushtokens/remove').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/pushtokens').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Pushtokens = Resource$Pushtokens; + class Resource$Revisions { + constructor(context) { + this.context = context; + } + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/revisions/check').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['clientRevision'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Revisions = Resource$Revisions; + class Resource$Rooms { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + decline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}/decline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}/dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + join(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}/join').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + leave(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}/leave').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reportStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/rooms/{roomId}/reportstatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['roomId'], + pathParams: ['roomId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Rooms = Resource$Rooms; + class Resource$Scores { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1/players/{playerId}/leaderboards/{leaderboardId}/scores/{timeSpan}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId', 'leaderboardId', 'timeSpan'], + pathParams: ['leaderboardId', 'playerId', 'timeSpan'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1/leaderboards/{leaderboardId}/scores/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId', 'collection', 'timeSpan'], + pathParams: ['collection', 'leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listWindow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/games/v1/leaderboards/{leaderboardId}/window/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['leaderboardId', 'collection', 'timeSpan'], + pathParams: ['collection', 'leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards/{leaderboardId}/scores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['leaderboardId', 'score'], + pathParams: ['leaderboardId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submitMultiple(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/leaderboards/scores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Scores = Resource$Scores; + class Resource$Snapshots { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/snapshots/{snapshotId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['snapshotId'], + pathParams: ['snapshotId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/players/{playerId}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['playerId'], + pathParams: ['playerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Snapshots = Resource$Snapshots; + class Resource$Turnbasedmatches { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/create').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + decline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/decline').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dismiss(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/dismiss').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + finish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/finish').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + join(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/join').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + leave(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/leave').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + leaveTurn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/leaveTurn').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId', 'matchVersion'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rematch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/rematch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + takeTurn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/games/v1/turnbasedmatches/{matchId}/turn').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matchId'], + pathParams: ['matchId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + games_v1.Resource$Turnbasedmatches = Resource$Turnbasedmatches; +})(games_v1 = exports.games_v1 || (exports.games_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 60729: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.gameservices = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta_1 = __nccwpck_require__(21675); +exports.VERSIONS = { + v1beta: v1beta_1.gameservices_v1beta.Gameservices, +}; +function gameservices(versionOrOptions) { + return googleapis_common_1.getAPI('gameservices', versionOrOptions, exports.VERSIONS, this); +} +exports.gameservices = gameservices; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 21675: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.gameservices_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var gameservices_v1beta; +(function (gameservices_v1beta) { + /** + * Game Services API + * + * Deploy and manage infrastructure for global multiplayer gaming experiences. + * + * @example + * const {google} = require('googleapis'); + * const gameservices = google.gameservices('v1beta'); + * + * @namespace gameservices + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Gameservices + */ + class Gameservices { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + gameservices_v1beta.Gameservices = Gameservices; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + gameservices_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.gameServerDeployments = new Resource$Projects$Locations$Gameserverdeployments(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.realms = new Resource$Projects$Locations$Realms(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Gameserverdeployments { + constructor(context) { + this.context = context; + this.configs = new Resource$Projects$Locations$Gameserverdeployments$Configs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gameServerDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + fetchDeploymentState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:fetchDeploymentState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRollout(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/rollout').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gameServerDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + previewRollout(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/rollout:preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateRollout(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/rollout').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Gameserverdeployments = Resource$Projects$Locations$Gameserverdeployments; + class Resource$Projects$Locations$Gameserverdeployments$Configs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Gameserverdeployments$Configs = Resource$Projects$Locations$Gameserverdeployments$Configs; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Realms { + constructor(context) { + this.context = context; + this.gameServerClusters = new Resource$Projects$Locations$Realms$Gameserverclusters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/realms').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/realms').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + previewUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:previewUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Realms = Resource$Projects$Locations$Realms; + class Resource$Projects$Locations$Realms$Gameserverclusters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gameServerClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gameServerClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + previewCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/gameServerClusters:previewCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + previewDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:previewDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + previewUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://gameservices.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:previewUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gameservices_v1beta.Resource$Projects$Locations$Realms$Gameserverclusters = Resource$Projects$Locations$Realms$Gameserverclusters; +})(gameservices_v1beta = exports.gameservices_v1beta || (exports.gameservices_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 34858: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.genomics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(91674); +const v1alpha2_1 = __nccwpck_require__(24800); +const v2alpha1_1 = __nccwpck_require__(33251); +exports.VERSIONS = { + v1: v1_1.genomics_v1.Genomics, + v1alpha2: v1alpha2_1.genomics_v1alpha2.Genomics, + v2alpha1: v2alpha1_1.genomics_v2alpha1.Genomics, +}; +function genomics(versionOrOptions) { + return googleapis_common_1.getAPI('genomics', versionOrOptions, exports.VERSIONS, this); +} +exports.genomics = genomics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 91674: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.genomics_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var genomics_v1; +(function (genomics_v1) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * const {google} = require('googleapis'); + * const genomics = google.genomics('v1'); + * + * @namespace genomics + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Genomics + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + genomics_v1.Genomics = Genomics; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v1.Resource$Operations = Resource$Operations; +})(genomics_v1 = exports.genomics_v1 || (exports.genomics_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 24800: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.genomics_v1alpha2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var genomics_v1alpha2; +(function (genomics_v1alpha2) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * const {google} = require('googleapis'); + * const genomics = google.genomics('v1alpha2'); + * + * @namespace genomics + * @type {Function} + * @version v1alpha2 + * @variation v1alpha2 + * @param {object=} options Options for Genomics + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.pipelines = new Resource$Pipelines(this.context); + } + } + genomics_v1alpha2.Genomics = Genomics; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v1alpha2.Resource$Operations = Resource$Operations; + class Resource$Pipelines { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines/{pipelineId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['pipelineId'], + pathParams: ['pipelineId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getControllerConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:getControllerConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setOperationStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha2/pipelines:setOperationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v1alpha2.Resource$Pipelines = Resource$Pipelines; +})(genomics_v1alpha2 = exports.genomics_v1alpha2 || (exports.genomics_v1alpha2 = {})); +//# sourceMappingURL=v1alpha2.js.map + +/***/ }), + +/***/ 33251: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.genomics_v2alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var genomics_v2alpha1; +(function (genomics_v2alpha1) { + /** + * Genomics API + * + * Uploads, processes, queries, and searches Genomics data in the cloud. + * + * @example + * const {google} = require('googleapis'); + * const genomics = google.genomics('v2alpha1'); + * + * @namespace genomics + * @type {Function} + * @version v2alpha1 + * @variation v2alpha1 + * @param {object=} options Options for Genomics + */ + class Genomics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pipelines = new Resource$Pipelines(this.context); + this.projects = new Resource$Projects(this.context); + this.workers = new Resource$Workers(this.context); + } + } + genomics_v2alpha1.Genomics = Genomics; + class Resource$Pipelines { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v2alpha1.Resource$Pipelines = Resource$Pipelines; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + this.workers = new Resource$Projects$Workers(this.context); + } + } + genomics_v2alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v2alpha1.Resource$Projects$Operations = Resource$Projects$Operations; + class Resource$Projects$Workers { + constructor(context) { + this.context = context; + } + checkIn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/{+id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v2alpha1.Resource$Projects$Workers = Resource$Projects$Workers; + class Resource$Workers { + constructor(context) { + this.context = context; + } + checkIn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://genomics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2alpha1/workers/{id}:checkIn').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + genomics_v2alpha1.Resource$Workers = Resource$Workers; +})(genomics_v2alpha1 = exports.genomics_v2alpha1 || (exports.genomics_v2alpha1 = {})); +//# sourceMappingURL=v2alpha1.js.map + +/***/ }), + +/***/ 10088: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.gmail = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(20989); +exports.VERSIONS = { + v1: v1_1.gmail_v1.Gmail, +}; +function gmail(versionOrOptions) { + return googleapis_common_1.getAPI('gmail', versionOrOptions, exports.VERSIONS, this); +} +exports.gmail = gmail; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 20989: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.gmail_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var gmail_v1; +(function (gmail_v1) { + /** + * Gmail API + * + * Access Gmail mailboxes including sending user email. + * + * @example + * const {google} = require('googleapis'); + * const gmail = google.gmail('v1'); + * + * @namespace gmail + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Gmail + */ + class Gmail { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + gmail_v1.Gmail = Gmail; + class Resource$Users { + constructor(context) { + this.context = context; + this.drafts = new Resource$Users$Drafts(this.context); + this.history = new Resource$Users$History(this.context); + this.labels = new Resource$Users$Labels(this.context); + this.messages = new Resource$Users$Messages(this.context); + this.settings = new Resource$Users$Settings(this.context); + this.threads = new Resource$Users$Threads(this.context); + } + getProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/profile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users = Resource$Users; + class Resource$Users$Drafts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/drafts/{id}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Drafts = Resource$Users$Drafts; + class Resource$Users$History { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$History = Resource$Users$History; + class Resource$Users$Labels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/labels/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Labels = Resource$Users$Labels; + class Resource$Users$Messages { + constructor(context) { + this.context = context; + this.attachments = new Resource$Users$Messages$Attachments(this.context); + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchModify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/batchModify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/import').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + send(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/gmail/v1/users/{userId}/messages/send').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + untrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/messages/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Messages = Resource$Users$Messages; + class Resource$Users$Messages$Attachments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/messages/{messageId}/attachments/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'messageId', 'id'], + pathParams: ['id', 'messageId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Messages$Attachments = Resource$Users$Messages$Attachments; + class Resource$Users$Settings { + constructor(context) { + this.context = context; + this.delegates = new Resource$Users$Settings$Delegates(this.context); + this.filters = new Resource$Users$Settings$Filters(this.context); + this.forwardingAddresses = new Resource$Users$Settings$Forwardingaddresses(this.context); + this.sendAs = new Resource$Users$Settings$Sendas(this.context); + } + getAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getImap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getPop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getVacation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateAutoForwarding(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/autoForwarding').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateImap(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/imap').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/language').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updatePop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/pop').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateVacation(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/vacation').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings = Resource$Users$Settings; + class Resource$Users$Settings$Delegates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/delegates/{delegateEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'delegateEmail'], + pathParams: ['delegateEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/delegates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings$Delegates = Resource$Users$Settings$Delegates; + class Resource$Users$Settings$Filters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/filters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings$Filters = Resource$Users$Settings$Filters; + class Resource$Users$Settings$Forwardingaddresses { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/forwardingAddresses/{forwardingEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'forwardingEmail'], + pathParams: ['forwardingEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/forwardingAddresses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings$Forwardingaddresses = Resource$Users$Settings$Forwardingaddresses; + class Resource$Users$Settings$Sendas { + constructor(context) { + this.context = context; + this.smimeInfo = new Resource$Users$Settings$Sendas$Smimeinfo(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings$Sendas = Resource$Users$Settings$Sendas; + class Resource$Users$Settings$Sendas$Smimeinfo { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail'], + pathParams: ['sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefault(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/gmail/v1/users/{userId}/settings/sendAs/{sendAsEmail}/smimeInfo/{id}/setDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'sendAsEmail', 'id'], + pathParams: ['id', 'sendAsEmail', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Settings$Sendas$Smimeinfo = Resource$Users$Settings$Sendas$Smimeinfo; + class Resource$Users$Threads { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + trash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/trash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + untrash(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/gmail/v1/users/{userId}/threads/{id}/untrash').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['userId', 'id'], + pathParams: ['id', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + gmail_v1.Resource$Users$Threads = Resource$Users$Threads; +})(gmail_v1 = exports.gmail_v1 || (exports.gmail_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 62879: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.groupsmigration = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(95047); +exports.VERSIONS = { + v1: v1_1.groupsmigration_v1.Groupsmigration, +}; +function groupsmigration(versionOrOptions) { + return googleapis_common_1.getAPI('groupsmigration', versionOrOptions, exports.VERSIONS, this); +} +exports.groupsmigration = groupsmigration; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 95047: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.groupsmigration_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var groupsmigration_v1; +(function (groupsmigration_v1) { + /** + * Groups Migration API + * + * Groups Migration Api. + * + * @example + * const {google} = require('googleapis'); + * const groupsmigration = google.groupsmigration('v1'); + * + * @namespace groupsmigration + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Groupsmigration + */ + class Groupsmigration { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.archive = new Resource$Archive(this.context); + } + } + groupsmigration_v1.Groupsmigration = Groupsmigration; + class Resource$Archive { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/groups/v1/groups/{groupId}/archive').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['groupId'], + pathParams: ['groupId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + groupsmigration_v1.Resource$Archive = Resource$Archive; +})(groupsmigration_v1 = exports.groupsmigration_v1 || (exports.groupsmigration_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 79993: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.groupssettings = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(34153); +exports.VERSIONS = { + v1: v1_1.groupssettings_v1.Groupssettings, +}; +function groupssettings(versionOrOptions) { + return googleapis_common_1.getAPI('groupssettings', versionOrOptions, exports.VERSIONS, this); +} +exports.groupssettings = groupssettings; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 34153: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.groupssettings_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var groupssettings_v1; +(function (groupssettings_v1) { + /** + * Groups Settings API + * + * Manages permission levels and related settings of a group. + * + * @example + * const {google} = require('googleapis'); + * const groupssettings = google.groupssettings('v1'); + * + * @namespace groupssettings + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Groupssettings + */ + class Groupssettings { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groups = new Resource$Groups(this.context); + } + } + groupssettings_v1.Groupssettings = Groupssettings; + class Resource$Groups { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/groups/v1/groups/{groupUniqueId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['groupUniqueId'], + pathParams: ['groupUniqueId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + groupssettings_v1.Resource$Groups = Resource$Groups; +})(groupssettings_v1 = exports.groupssettings_v1 || (exports.groupssettings_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 93611: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.healthcare = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(85851); +const v1beta1_1 = __nccwpck_require__(60667); +exports.VERSIONS = { + v1: v1_1.healthcare_v1.Healthcare, + v1beta1: v1beta1_1.healthcare_v1beta1.Healthcare, +}; +function healthcare(versionOrOptions) { + return googleapis_common_1.getAPI('healthcare', versionOrOptions, exports.VERSIONS, this); +} +exports.healthcare = healthcare; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 85851: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.healthcare_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var healthcare_v1; +(function (healthcare_v1) { + /** + * Cloud Healthcare API + * + * Manage, store, and access healthcare data in Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const healthcare = google.healthcare('v1'); + * + * @namespace healthcare + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Healthcare + */ + class Healthcare { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + healthcare_v1.Healthcare = Healthcare; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + healthcare_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + } + } + healthcare_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); + this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); + this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Dicomstores { + constructor(context) { + this.context = context; + this.studies = new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForStudies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + storeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies { + constructor(context) { + this.context = context; + this.series = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + storeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances { + constructor(context) { + this.context = context; + this.frames = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { + constructor(context) { + this.context = context; + } + retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; + class Resource$Projects$Locations$Datasets$Fhirstores { + constructor(context) { + this.context = context; + this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; + class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { + constructor(context) { + this.context = context; + } + capabilities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + executeBundle(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + history(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + PatientEverything(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + read(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + vread(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; + class Resource$Projects$Locations$Datasets$Hl7v2stores { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; + class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ingest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; + class Resource$Projects$Locations$Datasets$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; +})(healthcare_v1 = exports.healthcare_v1 || (exports.healthcare_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 60667: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.healthcare_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var healthcare_v1beta1; +(function (healthcare_v1beta1) { + /** + * Cloud Healthcare API + * + * Manage, store, and access healthcare data in Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const healthcare = google.healthcare('v1beta1'); + * + * @namespace healthcare + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Healthcare + */ + class Healthcare { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + healthcare_v1beta1.Healthcare = Healthcare; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + healthcare_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.datasets = new Resource$Projects$Locations$Datasets(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Datasets { + constructor(context) { + this.context = context; + this.annotationStores = new Resource$Projects$Locations$Datasets$Annotationstores(this.context); + this.dicomStores = new Resource$Projects$Locations$Datasets$Dicomstores(this.context); + this.fhirStores = new Resource$Projects$Locations$Datasets$Fhirstores(this.context); + this.hl7V2Stores = new Resource$Projects$Locations$Datasets$Hl7v2stores(this.context); + this.operations = new Resource$Projects$Locations$Datasets$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+sourceDataset}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceDataset'], + pathParams: ['sourceDataset'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/datasets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets = Resource$Projects$Locations$Datasets; + class Resource$Projects$Locations$Datasets$Annotationstores { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Annotationstores = Resource$Projects$Locations$Datasets$Annotationstores; + class Resource$Projects$Locations$Datasets$Dicomstores { + constructor(context) { + this.context = context; + this.studies = new Resource$Projects$Locations$Datasets$Dicomstores$Studies(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForStudies(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + storeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores = Resource$Projects$Locations$Datasets$Dicomstores; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies { + constructor(context) { + this.context = context; + this.series = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveStudy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + storeInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies = Resource$Projects$Locations$Datasets$Dicomstores$Studies; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveSeries(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForInstances(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances { + constructor(context) { + this.context = context; + this.frames = new Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames(this.context); + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveInstance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances; + class Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames { + constructor(context) { + this.context = context; + } + retrieveFrames(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + retrieveRendered(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/dicomWeb/{+dicomWebPath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'dicomWebPath'], + pathParams: ['dicomWebPath', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames = Resource$Projects$Locations$Datasets$Dicomstores$Studies$Series$Instances$Frames; + class Resource$Projects$Locations$Datasets$Fhirstores { + constructor(context) { + this.context = context; + this.fhir = new Resource$Projects$Locations$Datasets$Fhirstores$Fhir(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deidentify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+sourceStore}:deidentify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['sourceStore'], + pathParams: ['sourceStore'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhirStores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores = Resource$Projects$Locations$Datasets$Fhirstores; + class Resource$Projects$Locations$Datasets$Fhirstores$Fhir { + constructor(context) { + this.context = context; + } + capabilities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/fhir/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ConceptMapSearchTranslate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/ConceptMap/$translate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ConceptMapTranslate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/$translate').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + conditionalDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + conditionalPatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + conditionalUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/{+type}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent', 'type'], + pathParams: ['parent', 'type'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + executeBundle(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + history(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/_history').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ObservationLastn(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/Observation/$lastn').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + PatientEverything(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/$everything').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + read(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ResourcePurge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/$purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/fhir/_search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + vread(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Fhirstores$Fhir = Resource$Projects$Locations$Datasets$Fhirstores$Fhir; + class Resource$Projects$Locations$Datasets$Hl7v2stores { + constructor(context) { + this.context = context; + this.messages = new Resource$Projects$Locations$Datasets$Hl7v2stores$Messages(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/hl7V2Stores').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores = Resource$Projects$Locations$Datasets$Hl7v2stores; + class Resource$Projects$Locations$Datasets$Hl7v2stores$Messages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + ingest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/messages:ingest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Hl7v2stores$Messages = Resource$Projects$Locations$Datasets$Hl7v2stores$Messages; + class Resource$Projects$Locations$Datasets$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://healthcare.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + healthcare_v1beta1.Resource$Projects$Locations$Datasets$Operations = Resource$Projects$Locations$Datasets$Operations; +})(healthcare_v1beta1 = exports.healthcare_v1beta1 || (exports.healthcare_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 1519: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.homegraph = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(6832); +exports.VERSIONS = { + v1: v1_1.homegraph_v1.Homegraph, +}; +function homegraph(versionOrOptions) { + return googleapis_common_1.getAPI('homegraph', versionOrOptions, exports.VERSIONS, this); +} +exports.homegraph = homegraph; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 6832: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.homegraph_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var homegraph_v1; +(function (homegraph_v1) { + /** + * HomeGraph API + * + * + * + * @example + * const {google} = require('googleapis'); + * const homegraph = google.homegraph('v1'); + * + * @namespace homegraph + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Homegraph + */ + class Homegraph { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.agentUsers = new Resource$Agentusers(this.context); + this.devices = new Resource$Devices(this.context); + } + } + homegraph_v1.Homegraph = Homegraph; + class Resource$Agentusers { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+agentUserId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['agentUserId'], + pathParams: ['agentUserId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + homegraph_v1.Resource$Agentusers = Resource$Agentusers; + class Resource$Devices { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/devices:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reportStateAndNotification(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/devices:reportStateAndNotification').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + requestSync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/devices:requestSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://homegraph.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/devices:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + homegraph_v1.Resource$Devices = Resource$Devices; +})(homegraph_v1 = exports.homegraph_v1 || (exports.homegraph_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 78982: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.iam = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(16402); +exports.VERSIONS = { + v1: v1_1.iam_v1.Iam, +}; +function iam(versionOrOptions) { + return googleapis_common_1.getAPI('iam', versionOrOptions, exports.VERSIONS, this); +} +exports.iam = iam; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iam_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var iam_v1; +(function (iam_v1) { + /** + * Identity and Access Management (IAM) API + * + * Manages identity and access control for Google Cloud Platform resources, including the creation of service accounts, which you can use to authenticate to Google and make API calls. + * + * @example + * const {google} = require('googleapis'); + * const iam = google.iam('v1'); + * + * @namespace iam + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Iam + */ + class Iam { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iamPolicies = new Resource$Iampolicies(this.context); + this.organizations = new Resource$Organizations(this.context); + this.permissions = new Resource$Permissions(this.context); + this.projects = new Resource$Projects(this.context); + this.roles = new Resource$Roles(this.context); + } + } + iam_v1.Iam = Iam; + class Resource$Iampolicies { + constructor(context) { + this.context = context; + } + lintPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/iamPolicies:lintPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + queryAuditableServices(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/iamPolicies:queryAuditableServices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Iampolicies = Resource$Iampolicies; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.roles = new Resource$Organizations$Roles(this.context); + } + } + iam_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Roles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Organizations$Roles = Resource$Organizations$Roles; + class Resource$Permissions { + constructor(context) { + this.context = context; + } + queryTestablePermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/permissions:queryTestablePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Permissions = Resource$Permissions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.roles = new Resource$Projects$Roles(this.context); + this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); + } + } + iam_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Roles { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Projects$Roles = Resource$Projects$Roles; + class Resource$Projects$Serviceaccounts { + constructor(context) { + this.context = context; + this.keys = new Resource$Projects$Serviceaccounts$Keys(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/serviceAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signBlob(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signJwt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; + class Resource$Projects$Serviceaccounts$Keys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/keys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/keys:upload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Projects$Serviceaccounts$Keys = Resource$Projects$Serviceaccounts$Keys; + class Resource$Roles { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/roles').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + queryGrantableRoles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iam.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/roles:queryGrantableRoles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iam_v1.Resource$Roles = Resource$Roles; +})(iam_v1 = exports.iam_v1 || (exports.iam_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 75073: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.iamcredentials = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(62213); +exports.VERSIONS = { + v1: v1_1.iamcredentials_v1.Iamcredentials, +}; +function iamcredentials(versionOrOptions) { + return googleapis_common_1.getAPI('iamcredentials', versionOrOptions, exports.VERSIONS, this); +} +exports.iamcredentials = iamcredentials; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 62213: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iamcredentials_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var iamcredentials_v1; +(function (iamcredentials_v1) { + /** + * IAM Service Account Credentials API + * + * Creates short-lived, limited-privilege credentials for IAM service accounts. + * + * @example + * const {google} = require('googleapis'); + * const iamcredentials = google.iamcredentials('v1'); + * + * @namespace iamcredentials + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Iamcredentials + */ + class Iamcredentials { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + iamcredentials_v1.Iamcredentials = Iamcredentials; + class Resource$Projects { + constructor(context) { + this.context = context; + this.serviceAccounts = new Resource$Projects$Serviceaccounts(this.context); + } + } + iamcredentials_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Serviceaccounts { + constructor(context) { + this.context = context; + } + generateAccessToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateAccessToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateIdToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:generateIdToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signBlob(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signBlob').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signJwt(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iamcredentials.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:signJwt').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iamcredentials_v1.Resource$Projects$Serviceaccounts = Resource$Projects$Serviceaccounts; +})(iamcredentials_v1 = exports.iamcredentials_v1 || (exports.iamcredentials_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 55172: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.iap = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(83238); +const v1beta1_1 = __nccwpck_require__(62180); +exports.VERSIONS = { + v1: v1_1.iap_v1.Iap, + v1beta1: v1beta1_1.iap_v1beta1.Iap, +}; +function iap(versionOrOptions) { + return googleapis_common_1.getAPI('iap', versionOrOptions, exports.VERSIONS, this); +} +exports.iap = iap; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 83238: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iap_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var iap_v1; +(function (iap_v1) { + /** + * Cloud Identity-Aware Proxy API + * + * Controls access to cloud applications running on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const iap = google.iap('v1'); + * + * @namespace iap + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Iap + */ + class Iap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.v1 = new Resource$V1(this.context); + } + } + iap_v1.Iap = Iap; + class Resource$Projects { + constructor(context) { + this.context = context; + this.brands = new Resource$Projects$Brands(this.context); + } + } + iap_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Brands { + constructor(context) { + this.context = context; + this.identityAwareProxyClients = new Resource$Projects$Brands$Identityawareproxyclients(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/brands').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iap_v1.Resource$Projects$Brands = Resource$Projects$Brands; + class Resource$Projects$Brands$Identityawareproxyclients { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/identityAwareProxyClients').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetSecret(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resetSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iap_v1.Resource$Projects$Brands$Identityawareproxyclients = Resource$Projects$Brands$Identityawareproxyclients; + class Resource$V1 { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIapSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateIapSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:iapSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iap_v1.Resource$V1 = Resource$V1; +})(iap_v1 = exports.iap_v1 || (exports.iap_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 62180: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.iap_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var iap_v1beta1; +(function (iap_v1beta1) { + /** + * Cloud Identity-Aware Proxy API + * + * Controls access to cloud applications running on Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const iap = google.iap('v1beta1'); + * + * @namespace iap + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Iap + */ + class Iap { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.v1beta1 = new Resource$V1beta1(this.context); + } + } + iap_v1beta1.Iap = Iap; + class Resource$V1beta1 { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://iap.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + iap_v1beta1.Resource$V1beta1 = Resource$V1beta1; +})(iap_v1beta1 = exports.iap_v1beta1 || (exports.iap_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 46125: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.identitytoolkit = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(21179); +exports.VERSIONS = { + v3: v3_1.identitytoolkit_v3.Identitytoolkit, +}; +function identitytoolkit(versionOrOptions) { + return googleapis_common_1.getAPI('identitytoolkit', versionOrOptions, exports.VERSIONS, this); +} +exports.identitytoolkit = identitytoolkit; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 21179: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.identitytoolkit_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var identitytoolkit_v3; +(function (identitytoolkit_v3) { + /** + * Google Identity Toolkit API + * + * Help the third party sites to implement federated login. + * + * @example + * const {google} = require('googleapis'); + * const identitytoolkit = google.identitytoolkit('v3'); + * + * @namespace identitytoolkit + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Identitytoolkit + */ + class Identitytoolkit { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.relyingparty = new Resource$Relyingparty(this.context); + } + } + identitytoolkit_v3.Identitytoolkit = Identitytoolkit; + class Resource$Relyingparty { + constructor(context) { + this.context = context; + } + createAuthUri(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/createAuthUri').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/deleteAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + downloadAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/downloadAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + emailLinkSignin(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/emailLinkSignin').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getOobConfirmationCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/identitytoolkit/v3/relyingparty/getOobConfirmationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getPublicKeys(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/publicKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRecaptchaParam(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/getRecaptchaParam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/resetPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setAccountInfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setAccountInfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/setProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signOutUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signOutUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signupNewUser(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/signupNewUser').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + uploadAccount(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/uploadAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verifyAssertion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyAssertion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verifyCustomToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyCustomToken').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verifyPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verifyPhoneNumber(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/identitytoolkit/v3/relyingparty/verifyPhoneNumber').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + identitytoolkit_v3.Resource$Relyingparty = Resource$Relyingparty; +})(identitytoolkit_v3 = exports.identitytoolkit_v3 || (exports.identitytoolkit_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 24653: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/*! THIS FILE IS AUTO-GENERATED */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GeneratedAPIs = exports.APIS = void 0; +const abusiveexperiencereport = __nccwpck_require__(38475); +const acceleratedmobilepageurl = __nccwpck_require__(93956); +const accessapproval = __nccwpck_require__(81023); +const accesscontextmanager = __nccwpck_require__(18824); +const adexchangebuyer = __nccwpck_require__(99631); +const adexchangebuyer2 = __nccwpck_require__(27497); +const adexperiencereport = __nccwpck_require__(72656); +const admin = __nccwpck_require__(17379); +const admob = __nccwpck_require__(77212); +const adsense = __nccwpck_require__(83399); +const adsensehost = __nccwpck_require__(63182); +const alertcenter = __nccwpck_require__(86448); +const analytics = __nccwpck_require__(31306); +const analyticsreporting = __nccwpck_require__(91490); +const androiddeviceprovisioning = __nccwpck_require__(80424); +const androidenterprise = __nccwpck_require__(51378); +const androidmanagement = __nccwpck_require__(62596); +const androidpublisher = __nccwpck_require__(29088); +const appengine = __nccwpck_require__(9054); +const appsactivity = __nccwpck_require__(1516); +const bigquery = __nccwpck_require__(99767); +const bigqueryconnection = __nccwpck_require__(49581); +const bigquerydatatransfer = __nccwpck_require__(92115); +const bigqueryreservation = __nccwpck_require__(5379); +const bigtableadmin = __nccwpck_require__(13197); +const billingbudgets = __nccwpck_require__(7795); +const binaryauthorization = __nccwpck_require__(91853); +const blogger = __nccwpck_require__(226); +const books = __nccwpck_require__(47930); +const calendar = __nccwpck_require__(70013); +const chat = __nccwpck_require__(17032); +const civicinfo = __nccwpck_require__(41037); +const classroom = __nccwpck_require__(80556); +const cloudasset = __nccwpck_require__(93280); +const cloudbilling = __nccwpck_require__(27326); +const cloudbuild = __nccwpck_require__(95226); +const clouddebugger = __nccwpck_require__(8047); +const clouderrorreporting = __nccwpck_require__(93964); +const cloudfunctions = __nccwpck_require__(14465); +const cloudidentity = __nccwpck_require__(36934); +const cloudiot = __nccwpck_require__(72589); +const cloudkms = __nccwpck_require__(69699); +const cloudprofiler = __nccwpck_require__(18445); +const cloudresourcemanager = __nccwpck_require__(31235); +const cloudscheduler = __nccwpck_require__(64769); +const cloudsearch = __nccwpck_require__(26806); +const cloudshell = __nccwpck_require__(75257); +const cloudtasks = __nccwpck_require__(53072); +const cloudtrace = __nccwpck_require__(82677); +const composer = __nccwpck_require__(51697); +const compute = __nccwpck_require__(2064); +const container = __nccwpck_require__(7668); +const containeranalysis = __nccwpck_require__(35578); +const content = __nccwpck_require__(94516); +const customsearch = __nccwpck_require__(51813); +const datacatalog = __nccwpck_require__(97799); +const dataflow = __nccwpck_require__(82914); +const datafusion = __nccwpck_require__(56597); +const dataproc = __nccwpck_require__(30016); +const datastore = __nccwpck_require__(17286); +const deploymentmanager = __nccwpck_require__(87063); +const dfareporting = __nccwpck_require__(35399); +const dialogflow = __nccwpck_require__(12984); +const digitalassetlinks = __nccwpck_require__(72809); +const discovery = __nccwpck_require__(19583); +const displayvideo = __nccwpck_require__(92885); +const dlp = __nccwpck_require__(58694); +const dns = __nccwpck_require__(40788); +const docs = __nccwpck_require__(45329); +const domainsrdap = __nccwpck_require__(54946); +const doubleclickbidmanager = __nccwpck_require__(99629); +const doubleclicksearch = __nccwpck_require__(50852); +const drive = __nccwpck_require__(4637); +const driveactivity = __nccwpck_require__(256); +const factchecktools = __nccwpck_require__(86145); +const fcm = __nccwpck_require__(30850); +const file = __nccwpck_require__(9521); +const firebase = __nccwpck_require__(51323); +const firebasedynamiclinks = __nccwpck_require__(13244); +const firebasehosting = __nccwpck_require__(15505); +const firebaseml = __nccwpck_require__(84573); +const firebaserules = __nccwpck_require__(92007); +const firestore = __nccwpck_require__(72411); +const fitness = __nccwpck_require__(64946); +const games = __nccwpck_require__(12136); +const gamesConfiguration = __nccwpck_require__(78751); +const gamesManagement = __nccwpck_require__(52357); +const gameservices = __nccwpck_require__(60729); +const genomics = __nccwpck_require__(34858); +const gmail = __nccwpck_require__(10088); +const groupsmigration = __nccwpck_require__(62879); +const groupssettings = __nccwpck_require__(79993); +const healthcare = __nccwpck_require__(93611); +const homegraph = __nccwpck_require__(1519); +const iam = __nccwpck_require__(78982); +const iamcredentials = __nccwpck_require__(75073); +const iap = __nccwpck_require__(55172); +const identitytoolkit = __nccwpck_require__(46125); +const indexing = __nccwpck_require__(95299); +const jobs = __nccwpck_require__(59997); +const kgsearch = __nccwpck_require__(39363); +const language = __nccwpck_require__(61070); +const libraryagent = __nccwpck_require__(79290); +const licensing = __nccwpck_require__(98034); +const lifesciences = __nccwpck_require__(35712); +const logging = __nccwpck_require__(70743); +const managedidentities = __nccwpck_require__(44306); +const manufacturers = __nccwpck_require__(68190); +const memcache = __nccwpck_require__(75934); +const ml = __nccwpck_require__(11225); +const monitoring = __nccwpck_require__(23214); +const networkmanagement = __nccwpck_require__(5309); +const oauth2 = __nccwpck_require__(13920); +const osconfig = __nccwpck_require__(52823); +const oslogin = __nccwpck_require__(60369); +const pagespeedonline = __nccwpck_require__(26097); +const people = __nccwpck_require__(6584); +const playcustomapp = __nccwpck_require__(3776); +const plus = __nccwpck_require__(95424); +const policytroubleshooter = __nccwpck_require__(99171); +const poly = __nccwpck_require__(29019); +const prod_tt_sasportal = __nccwpck_require__(68165); +const pubsub = __nccwpck_require__(39727); +const recommender = __nccwpck_require__(65624); +const redis = __nccwpck_require__(21868); +const remotebuildexecution = __nccwpck_require__(78316); +const reseller = __nccwpck_require__(53337); +const run = __nccwpck_require__(53389); +const runtimeconfig = __nccwpck_require__(58489); +const safebrowsing = __nccwpck_require__(46855); +const sasportal = __nccwpck_require__(30746); +const script = __nccwpck_require__(41268); +const searchconsole = __nccwpck_require__(73863); +const secretmanager = __nccwpck_require__(36147); +const securitycenter = __nccwpck_require__(95498); +const serviceconsumermanagement = __nccwpck_require__(39919); +const servicecontrol = __nccwpck_require__(7141); +const servicedirectory = __nccwpck_require__(65338); +const servicemanagement = __nccwpck_require__(71081); +const servicenetworking = __nccwpck_require__(6337); +const serviceusage = __nccwpck_require__(47223); +const sheets = __nccwpck_require__(60073); +const siteVerification = __nccwpck_require__(72899); +const slides = __nccwpck_require__(62936); +const sourcerepo = __nccwpck_require__(77315); +const spanner = __nccwpck_require__(34583); +const speech = __nccwpck_require__(30423); +const sql = __nccwpck_require__(28735); +const storage = __nccwpck_require__(51255); +const storagetransfer = __nccwpck_require__(45719); +const streetviewpublish = __nccwpck_require__(89467); +const tagmanager = __nccwpck_require__(25306); +const tasks = __nccwpck_require__(59781); +const testing = __nccwpck_require__(11091); +const texttospeech = __nccwpck_require__(95059); +const toolresults = __nccwpck_require__(4066); +const tpu = __nccwpck_require__(55768); +const translate = __nccwpck_require__(39652); +const vault = __nccwpck_require__(72810); +const verifiedaccess = __nccwpck_require__(68211); +const videointelligence = __nccwpck_require__(94742); +const vision = __nccwpck_require__(154); +const webfonts = __nccwpck_require__(45680); +const webmasters = __nccwpck_require__(49100); +const websecurityscanner = __nccwpck_require__(56476); +const youtube = __nccwpck_require__(70721); +const youtubeAnalytics = __nccwpck_require__(31234); +const youtubereporting = __nccwpck_require__(66336); +exports.APIS = { + abusiveexperiencereport: abusiveexperiencereport.VERSIONS, + acceleratedmobilepageurl: acceleratedmobilepageurl.VERSIONS, + accessapproval: accessapproval.VERSIONS, + accesscontextmanager: accesscontextmanager.VERSIONS, + adexchangebuyer: adexchangebuyer.VERSIONS, + adexchangebuyer2: adexchangebuyer2.VERSIONS, + adexperiencereport: adexperiencereport.VERSIONS, + admin: admin.VERSIONS, + admob: admob.VERSIONS, + adsense: adsense.VERSIONS, + adsensehost: adsensehost.VERSIONS, + alertcenter: alertcenter.VERSIONS, + analytics: analytics.VERSIONS, + analyticsreporting: analyticsreporting.VERSIONS, + androiddeviceprovisioning: androiddeviceprovisioning.VERSIONS, + androidenterprise: androidenterprise.VERSIONS, + androidmanagement: androidmanagement.VERSIONS, + androidpublisher: androidpublisher.VERSIONS, + appengine: appengine.VERSIONS, + appsactivity: appsactivity.VERSIONS, + bigquery: bigquery.VERSIONS, + bigqueryconnection: bigqueryconnection.VERSIONS, + bigquerydatatransfer: bigquerydatatransfer.VERSIONS, + bigqueryreservation: bigqueryreservation.VERSIONS, + bigtableadmin: bigtableadmin.VERSIONS, + billingbudgets: billingbudgets.VERSIONS, + binaryauthorization: binaryauthorization.VERSIONS, + blogger: blogger.VERSIONS, + books: books.VERSIONS, + calendar: calendar.VERSIONS, + chat: chat.VERSIONS, + civicinfo: civicinfo.VERSIONS, + classroom: classroom.VERSIONS, + cloudasset: cloudasset.VERSIONS, + cloudbilling: cloudbilling.VERSIONS, + cloudbuild: cloudbuild.VERSIONS, + clouddebugger: clouddebugger.VERSIONS, + clouderrorreporting: clouderrorreporting.VERSIONS, + cloudfunctions: cloudfunctions.VERSIONS, + cloudidentity: cloudidentity.VERSIONS, + cloudiot: cloudiot.VERSIONS, + cloudkms: cloudkms.VERSIONS, + cloudprofiler: cloudprofiler.VERSIONS, + cloudresourcemanager: cloudresourcemanager.VERSIONS, + cloudscheduler: cloudscheduler.VERSIONS, + cloudsearch: cloudsearch.VERSIONS, + cloudshell: cloudshell.VERSIONS, + cloudtasks: cloudtasks.VERSIONS, + cloudtrace: cloudtrace.VERSIONS, + composer: composer.VERSIONS, + compute: compute.VERSIONS, + container: container.VERSIONS, + containeranalysis: containeranalysis.VERSIONS, + content: content.VERSIONS, + customsearch: customsearch.VERSIONS, + datacatalog: datacatalog.VERSIONS, + dataflow: dataflow.VERSIONS, + datafusion: datafusion.VERSIONS, + dataproc: dataproc.VERSIONS, + datastore: datastore.VERSIONS, + deploymentmanager: deploymentmanager.VERSIONS, + dfareporting: dfareporting.VERSIONS, + dialogflow: dialogflow.VERSIONS, + digitalassetlinks: digitalassetlinks.VERSIONS, + discovery: discovery.VERSIONS, + displayvideo: displayvideo.VERSIONS, + dlp: dlp.VERSIONS, + dns: dns.VERSIONS, + docs: docs.VERSIONS, + domainsrdap: domainsrdap.VERSIONS, + doubleclickbidmanager: doubleclickbidmanager.VERSIONS, + doubleclicksearch: doubleclicksearch.VERSIONS, + drive: drive.VERSIONS, + driveactivity: driveactivity.VERSIONS, + factchecktools: factchecktools.VERSIONS, + fcm: fcm.VERSIONS, + file: file.VERSIONS, + firebase: firebase.VERSIONS, + firebasedynamiclinks: firebasedynamiclinks.VERSIONS, + firebasehosting: firebasehosting.VERSIONS, + firebaseml: firebaseml.VERSIONS, + firebaserules: firebaserules.VERSIONS, + firestore: firestore.VERSIONS, + fitness: fitness.VERSIONS, + games: games.VERSIONS, + gamesConfiguration: gamesConfiguration.VERSIONS, + gamesManagement: gamesManagement.VERSIONS, + gameservices: gameservices.VERSIONS, + genomics: genomics.VERSIONS, + gmail: gmail.VERSIONS, + groupsmigration: groupsmigration.VERSIONS, + groupssettings: groupssettings.VERSIONS, + healthcare: healthcare.VERSIONS, + homegraph: homegraph.VERSIONS, + iam: iam.VERSIONS, + iamcredentials: iamcredentials.VERSIONS, + iap: iap.VERSIONS, + identitytoolkit: identitytoolkit.VERSIONS, + indexing: indexing.VERSIONS, + jobs: jobs.VERSIONS, + kgsearch: kgsearch.VERSIONS, + language: language.VERSIONS, + libraryagent: libraryagent.VERSIONS, + licensing: licensing.VERSIONS, + lifesciences: lifesciences.VERSIONS, + logging: logging.VERSIONS, + managedidentities: managedidentities.VERSIONS, + manufacturers: manufacturers.VERSIONS, + memcache: memcache.VERSIONS, + ml: ml.VERSIONS, + monitoring: monitoring.VERSIONS, + networkmanagement: networkmanagement.VERSIONS, + oauth2: oauth2.VERSIONS, + osconfig: osconfig.VERSIONS, + oslogin: oslogin.VERSIONS, + pagespeedonline: pagespeedonline.VERSIONS, + people: people.VERSIONS, + playcustomapp: playcustomapp.VERSIONS, + plus: plus.VERSIONS, + policytroubleshooter: policytroubleshooter.VERSIONS, + poly: poly.VERSIONS, + prod_tt_sasportal: prod_tt_sasportal.VERSIONS, + pubsub: pubsub.VERSIONS, + recommender: recommender.VERSIONS, + redis: redis.VERSIONS, + remotebuildexecution: remotebuildexecution.VERSIONS, + reseller: reseller.VERSIONS, + run: run.VERSIONS, + runtimeconfig: runtimeconfig.VERSIONS, + safebrowsing: safebrowsing.VERSIONS, + sasportal: sasportal.VERSIONS, + script: script.VERSIONS, + searchconsole: searchconsole.VERSIONS, + secretmanager: secretmanager.VERSIONS, + securitycenter: securitycenter.VERSIONS, + serviceconsumermanagement: serviceconsumermanagement.VERSIONS, + servicecontrol: servicecontrol.VERSIONS, + servicedirectory: servicedirectory.VERSIONS, + servicemanagement: servicemanagement.VERSIONS, + servicenetworking: servicenetworking.VERSIONS, + serviceusage: serviceusage.VERSIONS, + sheets: sheets.VERSIONS, + siteVerification: siteVerification.VERSIONS, + slides: slides.VERSIONS, + sourcerepo: sourcerepo.VERSIONS, + spanner: spanner.VERSIONS, + speech: speech.VERSIONS, + sql: sql.VERSIONS, + storage: storage.VERSIONS, + storagetransfer: storagetransfer.VERSIONS, + streetviewpublish: streetviewpublish.VERSIONS, + tagmanager: tagmanager.VERSIONS, + tasks: tasks.VERSIONS, + testing: testing.VERSIONS, + texttospeech: texttospeech.VERSIONS, + toolresults: toolresults.VERSIONS, + tpu: tpu.VERSIONS, + translate: translate.VERSIONS, + vault: vault.VERSIONS, + verifiedaccess: verifiedaccess.VERSIONS, + videointelligence: videointelligence.VERSIONS, + vision: vision.VERSIONS, + webfonts: webfonts.VERSIONS, + webmasters: webmasters.VERSIONS, + websecurityscanner: websecurityscanner.VERSIONS, + youtube: youtube.VERSIONS, + youtubeAnalytics: youtubeAnalytics.VERSIONS, + youtubereporting: youtubereporting.VERSIONS, +}; +class GeneratedAPIs { + constructor() { + this.abusiveexperiencereport = abusiveexperiencereport.abusiveexperiencereport; + this.acceleratedmobilepageurl = acceleratedmobilepageurl.acceleratedmobilepageurl; + this.accessapproval = accessapproval.accessapproval; + this.accesscontextmanager = accesscontextmanager.accesscontextmanager; + this.adexchangebuyer = adexchangebuyer.adexchangebuyer; + this.adexchangebuyer2 = adexchangebuyer2.adexchangebuyer2; + this.adexperiencereport = adexperiencereport.adexperiencereport; + this.admin = admin.admin; + this.admob = admob.admob; + this.adsense = adsense.adsense; + this.adsensehost = adsensehost.adsensehost; + this.alertcenter = alertcenter.alertcenter; + this.analytics = analytics.analytics; + this.analyticsreporting = analyticsreporting.analyticsreporting; + this.androiddeviceprovisioning = androiddeviceprovisioning.androiddeviceprovisioning; + this.androidenterprise = androidenterprise.androidenterprise; + this.androidmanagement = androidmanagement.androidmanagement; + this.androidpublisher = androidpublisher.androidpublisher; + this.appengine = appengine.appengine; + this.appsactivity = appsactivity.appsactivity; + this.bigquery = bigquery.bigquery; + this.bigqueryconnection = bigqueryconnection.bigqueryconnection; + this.bigquerydatatransfer = bigquerydatatransfer.bigquerydatatransfer; + this.bigqueryreservation = bigqueryreservation.bigqueryreservation; + this.bigtableadmin = bigtableadmin.bigtableadmin; + this.billingbudgets = billingbudgets.billingbudgets; + this.binaryauthorization = binaryauthorization.binaryauthorization; + this.blogger = blogger.blogger; + this.books = books.books; + this.calendar = calendar.calendar; + this.chat = chat.chat; + this.civicinfo = civicinfo.civicinfo; + this.classroom = classroom.classroom; + this.cloudasset = cloudasset.cloudasset; + this.cloudbilling = cloudbilling.cloudbilling; + this.cloudbuild = cloudbuild.cloudbuild; + this.clouddebugger = clouddebugger.clouddebugger; + this.clouderrorreporting = clouderrorreporting.clouderrorreporting; + this.cloudfunctions = cloudfunctions.cloudfunctions; + this.cloudidentity = cloudidentity.cloudidentity; + this.cloudiot = cloudiot.cloudiot; + this.cloudkms = cloudkms.cloudkms; + this.cloudprofiler = cloudprofiler.cloudprofiler; + this.cloudresourcemanager = cloudresourcemanager.cloudresourcemanager; + this.cloudscheduler = cloudscheduler.cloudscheduler; + this.cloudsearch = cloudsearch.cloudsearch; + this.cloudshell = cloudshell.cloudshell; + this.cloudtasks = cloudtasks.cloudtasks; + this.cloudtrace = cloudtrace.cloudtrace; + this.composer = composer.composer; + this.compute = compute.compute; + this.container = container.container; + this.containeranalysis = containeranalysis.containeranalysis; + this.content = content.content; + this.customsearch = customsearch.customsearch; + this.datacatalog = datacatalog.datacatalog; + this.dataflow = dataflow.dataflow; + this.datafusion = datafusion.datafusion; + this.dataproc = dataproc.dataproc; + this.datastore = datastore.datastore; + this.deploymentmanager = deploymentmanager.deploymentmanager; + this.dfareporting = dfareporting.dfareporting; + this.dialogflow = dialogflow.dialogflow; + this.digitalassetlinks = digitalassetlinks.digitalassetlinks; + this.discovery = discovery.discovery; + this.displayvideo = displayvideo.displayvideo; + this.dlp = dlp.dlp; + this.dns = dns.dns; + this.docs = docs.docs; + this.domainsrdap = domainsrdap.domainsrdap; + this.doubleclickbidmanager = doubleclickbidmanager.doubleclickbidmanager; + this.doubleclicksearch = doubleclicksearch.doubleclicksearch; + this.drive = drive.drive; + this.driveactivity = driveactivity.driveactivity; + this.factchecktools = factchecktools.factchecktools; + this.fcm = fcm.fcm; + this.file = file.file; + this.firebase = firebase.firebase; + this.firebasedynamiclinks = firebasedynamiclinks.firebasedynamiclinks; + this.firebasehosting = firebasehosting.firebasehosting; + this.firebaseml = firebaseml.firebaseml; + this.firebaserules = firebaserules.firebaserules; + this.firestore = firestore.firestore; + this.fitness = fitness.fitness; + this.games = games.games; + this.gamesConfiguration = gamesConfiguration.gamesConfiguration; + this.gamesManagement = gamesManagement.gamesManagement; + this.gameservices = gameservices.gameservices; + this.genomics = genomics.genomics; + this.gmail = gmail.gmail; + this.groupsmigration = groupsmigration.groupsmigration; + this.groupssettings = groupssettings.groupssettings; + this.healthcare = healthcare.healthcare; + this.homegraph = homegraph.homegraph; + this.iam = iam.iam; + this.iamcredentials = iamcredentials.iamcredentials; + this.iap = iap.iap; + this.identitytoolkit = identitytoolkit.identitytoolkit; + this.indexing = indexing.indexing; + this.jobs = jobs.jobs; + this.kgsearch = kgsearch.kgsearch; + this.language = language.language; + this.libraryagent = libraryagent.libraryagent; + this.licensing = licensing.licensing; + this.lifesciences = lifesciences.lifesciences; + this.logging = logging.logging; + this.managedidentities = managedidentities.managedidentities; + this.manufacturers = manufacturers.manufacturers; + this.memcache = memcache.memcache; + this.ml = ml.ml; + this.monitoring = monitoring.monitoring; + this.networkmanagement = networkmanagement.networkmanagement; + this.oauth2 = oauth2.oauth2; + this.osconfig = osconfig.osconfig; + this.oslogin = oslogin.oslogin; + this.pagespeedonline = pagespeedonline.pagespeedonline; + this.people = people.people; + this.playcustomapp = playcustomapp.playcustomapp; + this.plus = plus.plus; + this.policytroubleshooter = policytroubleshooter.policytroubleshooter; + this.poly = poly.poly; + this.prod_tt_sasportal = prod_tt_sasportal.prod_tt_sasportal; + this.pubsub = pubsub.pubsub; + this.recommender = recommender.recommender; + this.redis = redis.redis; + this.remotebuildexecution = remotebuildexecution.remotebuildexecution; + this.reseller = reseller.reseller; + this.run = run.run; + this.runtimeconfig = runtimeconfig.runtimeconfig; + this.safebrowsing = safebrowsing.safebrowsing; + this.sasportal = sasportal.sasportal; + this.script = script.script; + this.searchconsole = searchconsole.searchconsole; + this.secretmanager = secretmanager.secretmanager; + this.securitycenter = securitycenter.securitycenter; + this.serviceconsumermanagement = serviceconsumermanagement.serviceconsumermanagement; + this.servicecontrol = servicecontrol.servicecontrol; + this.servicedirectory = servicedirectory.servicedirectory; + this.servicemanagement = servicemanagement.servicemanagement; + this.servicenetworking = servicenetworking.servicenetworking; + this.serviceusage = serviceusage.serviceusage; + this.sheets = sheets.sheets; + this.siteVerification = siteVerification.siteVerification; + this.slides = slides.slides; + this.sourcerepo = sourcerepo.sourcerepo; + this.spanner = spanner.spanner; + this.speech = speech.speech; + this.sql = sql.sql; + this.storage = storage.storage; + this.storagetransfer = storagetransfer.storagetransfer; + this.streetviewpublish = streetviewpublish.streetviewpublish; + this.tagmanager = tagmanager.tagmanager; + this.tasks = tasks.tasks; + this.testing = testing.testing; + this.texttospeech = texttospeech.texttospeech; + this.toolresults = toolresults.toolresults; + this.tpu = tpu.tpu; + this.translate = translate.translate; + this.vault = vault.vault; + this.verifiedaccess = verifiedaccess.verifiedaccess; + this.videointelligence = videointelligence.videointelligence; + this.vision = vision.vision; + this.webfonts = webfonts.webfonts; + this.webmasters = webmasters.webmasters; + this.websecurityscanner = websecurityscanner.websecurityscanner; + this.youtube = youtube.youtube; + this.youtubeAnalytics = youtubeAnalytics.youtubeAnalytics; + this.youtubereporting = youtubereporting.youtubereporting; + } +} +exports.GeneratedAPIs = GeneratedAPIs; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 95299: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.indexing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(31491); +exports.VERSIONS = { + v3: v3_1.indexing_v3.Indexing, +}; +function indexing(versionOrOptions) { + return googleapis_common_1.getAPI('indexing', versionOrOptions, exports.VERSIONS, this); +} +exports.indexing = indexing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 31491: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.indexing_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var indexing_v3; +(function (indexing_v3) { + /** + * Indexing API + * + * Notifies Google when your web pages change. + * + * @example + * const {google} = require('googleapis'); + * const indexing = google.indexing('v3'); + * + * @namespace indexing + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Indexing + */ + class Indexing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.urlNotifications = new Resource$Urlnotifications(this.context); + } + } + indexing_v3.Indexing = Indexing; + class Resource$Urlnotifications { + constructor(context) { + this.context = context; + } + getMetadata(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/urlNotifications/metadata').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://indexing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/urlNotifications:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + indexing_v3.Resource$Urlnotifications = Resource$Urlnotifications; +})(indexing_v3 = exports.indexing_v3 || (exports.indexing_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 59997: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.jobs = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(48921); +const v3_1 = __nccwpck_require__(8949); +const v3p1beta1_1 = __nccwpck_require__(28790); +exports.VERSIONS = { + v2: v2_1.jobs_v2.Jobs, + v3: v3_1.jobs_v3.Jobs, + v3p1beta1: v3p1beta1_1.jobs_v3p1beta1.Jobs, +}; +function jobs(versionOrOptions) { + return googleapis_common_1.getAPI('jobs', versionOrOptions, exports.VERSIONS, this); +} +exports.jobs = jobs; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 48921: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.jobs_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var jobs_v2; +(function (jobs_v2) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * const {google} = require('googleapis'); + * const jobs = google.jobs('v2'); + * + * @namespace jobs + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Jobs + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.companies = new Resource$Companies(this.context); + this.jobs = new Resource$Jobs(this.context); + this.v2 = new Resource$V2(this.context); + } + } + jobs_v2.Jobs = Jobs; + class Resource$Companies { + constructor(context) { + this.context = context; + this.jobs = new Resource$Companies$Jobs(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v2.Resource$Companies = Resource$Companies; + class Resource$Companies$Jobs { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+companyName}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['companyName'], + pathParams: ['companyName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v2.Resource$Companies$Jobs = Resource$Companies$Jobs; + class Resource$Jobs { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteByFilter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:deleteByFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + histogram(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:histogram').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v2.Resource$Jobs = Resource$Jobs; + class Resource$V2 { + constructor(context) { + this.context = context; + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v2.Resource$V2 = Resource$V2; +})(jobs_v2 = exports.jobs_v2 || (exports.jobs_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 8949: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.jobs_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var jobs_v3; +(function (jobs_v3) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * const {google} = require('googleapis'); + * const jobs = google.jobs('v3'); + * + * @namespace jobs + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Jobs + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + jobs_v3.Jobs = Jobs; + class Resource$Projects { + constructor(context) { + this.context = context; + this.clientEvents = new Resource$Projects$Clientevents(this.context); + this.companies = new Resource$Projects$Companies(this.context); + this.jobs = new Resource$Projects$Jobs(this.context); + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Clientevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3.Resource$Projects$Clientevents = Resource$Projects$Clientevents; + class Resource$Projects$Companies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3.Resource$Projects$Companies = Resource$Projects$Companies; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3.Resource$Projects$Jobs = Resource$Projects$Jobs; +})(jobs_v3 = exports.jobs_v3 || (exports.jobs_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 28790: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.jobs_v3p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var jobs_v3p1beta1; +(function (jobs_v3p1beta1) { + /** + * Cloud Talent Solution API + * + * Cloud Talent Solution provides the capability to create, read, update, and delete job postings, as well as search jobs based on keywords and filters. + * + * @example + * const {google} = require('googleapis'); + * const jobs = google.jobs('v3p1beta1'); + * + * @namespace jobs + * @type {Function} + * @version v3p1beta1 + * @variation v3p1beta1 + * @param {object=} options Options for Jobs + */ + class Jobs { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + jobs_v3p1beta1.Jobs = Jobs; + class Resource$Projects { + constructor(context) { + this.context = context; + this.clientEvents = new Resource$Projects$Clientevents(this.context); + this.companies = new Resource$Projects$Companies(this.context); + this.jobs = new Resource$Projects$Jobs(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Clientevents { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/clientEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3p1beta1.Resource$Projects$Clientevents = Resource$Projects$Clientevents; + class Resource$Projects$Companies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/companies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3p1beta1.Resource$Projects$Companies = Resource$Projects$Companies; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchForAlert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+parent}/jobs:searchForAlert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3p1beta1.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://jobs.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + jobs_v3p1beta1.Resource$Projects$Operations = Resource$Projects$Operations; +})(jobs_v3p1beta1 = exports.jobs_v3p1beta1 || (exports.jobs_v3p1beta1 = {})); +//# sourceMappingURL=v3p1beta1.js.map + +/***/ }), + +/***/ 39363: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.kgsearch = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(63655); +exports.VERSIONS = { + v1: v1_1.kgsearch_v1.Kgsearch, +}; +function kgsearch(versionOrOptions) { + return googleapis_common_1.getAPI('kgsearch', versionOrOptions, exports.VERSIONS, this); +} +exports.kgsearch = kgsearch; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 63655: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.kgsearch_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var kgsearch_v1; +(function (kgsearch_v1) { + /** + * Knowledge Graph Search API + * + * Searches the Google Knowledge Graph for entities. + * + * @example + * const {google} = require('googleapis'); + * const kgsearch = google.kgsearch('v1'); + * + * @namespace kgsearch + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Kgsearch + */ + class Kgsearch { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.entities = new Resource$Entities(this.context); + } + } + kgsearch_v1.Kgsearch = Kgsearch; + class Resource$Entities { + constructor(context) { + this.context = context; + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://kgsearch.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/entities:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + kgsearch_v1.Resource$Entities = Resource$Entities; +})(kgsearch_v1 = exports.kgsearch_v1 || (exports.kgsearch_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 61070: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.language = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(85095); +const v1beta1_1 = __nccwpck_require__(55348); +const v1beta2_1 = __nccwpck_require__(19069); +exports.VERSIONS = { + v1: v1_1.language_v1.Language, + v1beta1: v1beta1_1.language_v1beta1.Language, + v1beta2: v1beta2_1.language_v1beta2.Language, +}; +function language(versionOrOptions) { + return googleapis_common_1.getAPI('language', versionOrOptions, exports.VERSIONS, this); +} +exports.language = language; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 85095: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.language_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var language_v1; +(function (language_v1) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * const {google} = require('googleapis'); + * const language = google.language('v1'); + * + * @namespace language + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Language + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1.Language = Language; + class Resource$Documents { + constructor(context) { + this.context = context; + } + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + annotateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + classifyText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + language_v1.Resource$Documents = Resource$Documents; +})(language_v1 = exports.language_v1 || (exports.language_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 55348: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.language_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var language_v1beta1; +(function (language_v1beta1) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * const {google} = require('googleapis'); + * const language = google.language('v1beta1'); + * + * @namespace language + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Language + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1beta1.Language = Language; + class Resource$Documents { + constructor(context) { + this.context = context; + } + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + annotateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + language_v1beta1.Resource$Documents = Resource$Documents; +})(language_v1beta1 = exports.language_v1beta1 || (exports.language_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 19069: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.language_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var language_v1beta2; +(function (language_v1beta2) { + /** + * Cloud Natural Language API + * + * Provides natural language understanding technologies, such as sentiment analysis, entity recognition, entity sentiment analysis, and other text annotations, to developers. + * + * @example + * const {google} = require('googleapis'); + * const language = google.language('v1beta2'); + * + * @namespace language + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Language + */ + class Language { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.documents = new Resource$Documents(this.context); + } + } + language_v1beta2.Language = Language; + class Resource$Documents { + constructor(context) { + this.context = context; + } + analyzeEntities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:analyzeEntities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeEntitySentiment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:analyzeEntitySentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSentiment(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:analyzeSentiment').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + analyzeSyntax(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:analyzeSyntax').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + annotateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:annotateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + classifyText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://language.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/documents:classifyText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + language_v1beta2.Resource$Documents = Resource$Documents; +})(language_v1beta2 = exports.language_v1beta2 || (exports.language_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 79290: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.libraryagent = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(17080); +exports.VERSIONS = { + v1: v1_1.libraryagent_v1.Libraryagent, +}; +function libraryagent(versionOrOptions) { + return googleapis_common_1.getAPI('libraryagent', versionOrOptions, exports.VERSIONS, this); +} +exports.libraryagent = libraryagent; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 17080: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.libraryagent_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var libraryagent_v1; +(function (libraryagent_v1) { + /** + * Library Agent API + * + * A simple Google Example Library API. + * + * @example + * const {google} = require('googleapis'); + * const libraryagent = google.libraryagent('v1'); + * + * @namespace libraryagent + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Libraryagent + */ + class Libraryagent { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.shelves = new Resource$Shelves(this.context); + } + } + libraryagent_v1.Libraryagent = Libraryagent; + class Resource$Shelves { + constructor(context) { + this.context = context; + this.books = new Resource$Shelves$Books(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/shelves').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + libraryagent_v1.Resource$Shelves = Resource$Shelves; + class Resource$Shelves$Books { + constructor(context) { + this.context = context; + } + borrow(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:borrow').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/books').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + return(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://libraryagent.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:return').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + libraryagent_v1.Resource$Shelves$Books = Resource$Shelves$Books; +})(libraryagent_v1 = exports.libraryagent_v1 || (exports.libraryagent_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 98034: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.licensing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(26983); +exports.VERSIONS = { + v1: v1_1.licensing_v1.Licensing, +}; +function licensing(versionOrOptions) { + return googleapis_common_1.getAPI('licensing', versionOrOptions, exports.VERSIONS, this); +} +exports.licensing = licensing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 26983: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.licensing_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var licensing_v1; +(function (licensing_v1) { + /** + * Licensing API + * + * Licensing API to view and manage licenses for your domain + * + * @example + * const {google} = require('googleapis'); + * const licensing = google.licensing('v1'); + * + * @namespace licensing + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Licensing + */ + class Licensing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.licenseAssignments = new Resource$Licenseassignments(this.context); + } + } + licensing_v1.Licensing = Licensing; + class Resource$Licenseassignments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['productId', 'skuId'], + pathParams: ['productId', 'skuId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listForProduct(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/licensing/v1/product/{productId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'customerId'], + pathParams: ['productId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listForProductAndSku(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['productId', 'skuId', 'customerId'], + pathParams: ['productId', 'skuId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['productId', 'skuId', 'userId'], + pathParams: ['productId', 'skuId', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + licensing_v1.Resource$Licenseassignments = Resource$Licenseassignments; +})(licensing_v1 = exports.licensing_v1 || (exports.licensing_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 35712: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.lifesciences = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2beta_1 = __nccwpck_require__(33840); +exports.VERSIONS = { + v2beta: v2beta_1.lifesciences_v2beta.Lifesciences, +}; +function lifesciences(versionOrOptions) { + return googleapis_common_1.getAPI('lifesciences', versionOrOptions, exports.VERSIONS, this); +} +exports.lifesciences = lifesciences; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 33840: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.lifesciences_v2beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var lifesciences_v2beta; +(function (lifesciences_v2beta) { + /** + * Cloud Life Sciences API + * + * Cloud Life Sciences is a suite of services and tools for managing, processing, and transforming life sciences data. + * + * @example + * const {google} = require('googleapis'); + * const lifesciences = google.lifesciences('v2beta'); + * + * @namespace lifesciences + * @type {Function} + * @version v2beta + * @variation v2beta + * @param {object=} options Options for Lifesciences + */ + class Lifesciences { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + lifesciences_v2beta.Lifesciences = Lifesciences; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + lifesciences_v2beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.pipelines = new Resource$Projects$Locations$Pipelines(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + lifesciences_v2beta.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + lifesciences_v2beta.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Pipelines { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://lifesciences.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta/{+parent}/pipelines:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + lifesciences_v2beta.Resource$Projects$Locations$Pipelines = Resource$Projects$Locations$Pipelines; +})(lifesciences_v2beta = exports.lifesciences_v2beta || (exports.lifesciences_v2beta = {})); +//# sourceMappingURL=v2beta.js.map + +/***/ }), + +/***/ 70743: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.logging = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(41752); +exports.VERSIONS = { + v2: v2_1.logging_v2.Logging, +}; +function logging(versionOrOptions) { + return googleapis_common_1.getAPI('logging', versionOrOptions, exports.VERSIONS, this); +} +exports.logging = logging; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 41752: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.logging_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var logging_v2; +(function (logging_v2) { + /** + * Cloud Logging API + * + * Writes log entries and manages your Cloud Logging configuration. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the documentation at https://cloud.google.com/logging/docs. + * + * @example + * const {google} = require('googleapis'); + * const logging = google.logging('v2'); + * + * @namespace logging + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Logging + */ + class Logging { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.billingAccounts = new Resource$Billingaccounts(this.context); + this.entries = new Resource$Entries(this.context); + this.exclusions = new Resource$Exclusions(this.context); + this.folders = new Resource$Folders(this.context); + this.locations = new Resource$Locations(this.context); + this.logs = new Resource$Logs(this.context); + this.monitoredResourceDescriptors = new Resource$Monitoredresourcedescriptors(this.context); + this.organizations = new Resource$Organizations(this.context); + this.projects = new Resource$Projects(this.context); + this.sinks = new Resource$Sinks(this.context); + this.v2 = new Resource$V2(this.context); + } + } + logging_v2.Logging = Logging; + class Resource$Billingaccounts { + constructor(context) { + this.context = context; + this.buckets = new Resource$Billingaccounts$Buckets(this.context); + this.exclusions = new Resource$Billingaccounts$Exclusions(this.context); + this.locations = new Resource$Billingaccounts$Locations(this.context); + this.logs = new Resource$Billingaccounts$Logs(this.context); + this.sinks = new Resource$Billingaccounts$Sinks(this.context); + } + } + logging_v2.Resource$Billingaccounts = Resource$Billingaccounts; + class Resource$Billingaccounts$Buckets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Buckets = Resource$Billingaccounts$Buckets; + class Resource$Billingaccounts$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Exclusions = Resource$Billingaccounts$Exclusions; + class Resource$Billingaccounts$Locations { + constructor(context) { + this.context = context; + this.buckets = new Resource$Billingaccounts$Locations$Buckets(this.context); + } + } + logging_v2.Resource$Billingaccounts$Locations = Resource$Billingaccounts$Locations; + class Resource$Billingaccounts$Locations$Buckets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Locations$Buckets = Resource$Billingaccounts$Locations$Buckets; + class Resource$Billingaccounts$Logs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['logName'], + pathParams: ['logName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Logs = Resource$Billingaccounts$Logs; + class Resource$Billingaccounts$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Billingaccounts$Sinks = Resource$Billingaccounts$Sinks; + class Resource$Entries { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/entries:list').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + write(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/entries:write').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Entries = Resource$Entries; + class Resource$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Exclusions = Resource$Exclusions; + class Resource$Folders { + constructor(context) { + this.context = context; + this.exclusions = new Resource$Folders$Exclusions(this.context); + this.locations = new Resource$Folders$Locations(this.context); + this.logs = new Resource$Folders$Logs(this.context); + this.sinks = new Resource$Folders$Sinks(this.context); + } + } + logging_v2.Resource$Folders = Resource$Folders; + class Resource$Folders$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Folders$Exclusions = Resource$Folders$Exclusions; + class Resource$Folders$Locations { + constructor(context) { + this.context = context; + this.buckets = new Resource$Folders$Locations$Buckets(this.context); + } + } + logging_v2.Resource$Folders$Locations = Resource$Folders$Locations; + class Resource$Folders$Locations$Buckets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Folders$Locations$Buckets = Resource$Folders$Locations$Buckets; + class Resource$Folders$Logs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['logName'], + pathParams: ['logName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Folders$Logs = Resource$Folders$Logs; + class Resource$Folders$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Folders$Sinks = Resource$Folders$Sinks; + class Resource$Locations { + constructor(context) { + this.context = context; + this.buckets = new Resource$Locations$Buckets(this.context); + } + } + logging_v2.Resource$Locations = Resource$Locations; + class Resource$Locations$Buckets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Locations$Buckets = Resource$Locations$Buckets; + class Resource$Logs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['logName'], + pathParams: ['logName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Logs = Resource$Logs; + class Resource$Monitoredresourcedescriptors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Monitoredresourcedescriptors = Resource$Monitoredresourcedescriptors; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.exclusions = new Resource$Organizations$Exclusions(this.context); + this.locations = new Resource$Organizations$Locations(this.context); + this.logs = new Resource$Organizations$Logs(this.context); + this.sinks = new Resource$Organizations$Sinks(this.context); + } + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Organizations$Exclusions = Resource$Organizations$Exclusions; + class Resource$Organizations$Locations { + constructor(context) { + this.context = context; + this.buckets = new Resource$Organizations$Locations$Buckets(this.context); + } + } + logging_v2.Resource$Organizations$Locations = Resource$Organizations$Locations; + class Resource$Organizations$Locations$Buckets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Organizations$Locations$Buckets = Resource$Organizations$Locations$Buckets; + class Resource$Organizations$Logs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['logName'], + pathParams: ['logName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Organizations$Logs = Resource$Organizations$Logs; + class Resource$Organizations$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Organizations$Sinks = Resource$Organizations$Sinks; + class Resource$Projects { + constructor(context) { + this.context = context; + this.exclusions = new Resource$Projects$Exclusions(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.logs = new Resource$Projects$Logs(this.context); + this.metrics = new Resource$Projects$Metrics(this.context); + this.sinks = new Resource$Projects$Sinks(this.context); + } + } + logging_v2.Resource$Projects = Resource$Projects; + class Resource$Projects$Exclusions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/exclusions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Projects$Exclusions = Resource$Projects$Exclusions; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.buckets = new Resource$Projects$Locations$Buckets(this.context); + } + } + logging_v2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Buckets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/buckets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Projects$Locations$Buckets = Resource$Projects$Locations$Buckets; + class Resource$Projects$Logs { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+logName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['logName'], + pathParams: ['logName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/logs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Projects$Logs = Resource$Projects$Logs; + class Resource$Projects$Metrics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['metricName'], + pathParams: ['metricName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['metricName'], + pathParams: ['metricName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+metricName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['metricName'], + pathParams: ['metricName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Projects$Metrics = Resource$Projects$Metrics; + class Resource$Projects$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Projects$Sinks = Resource$Projects$Sinks; + class Resource$Sinks { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+parent}/sinks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+sinkName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['sinkName'], + pathParams: ['sinkName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$Sinks = Resource$Sinks; + class Resource$V2 { + constructor(context) { + this.context = context; + } + getCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateCmekSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://logging.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}/cmekSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + logging_v2.Resource$V2 = Resource$V2; +})(logging_v2 = exports.logging_v2 || (exports.logging_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 44306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.managedidentities = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(42462); +const v1alpha1_1 = __nccwpck_require__(84396); +const v1beta1_1 = __nccwpck_require__(20947); +exports.VERSIONS = { + v1: v1_1.managedidentities_v1.Managedidentities, + v1alpha1: v1alpha1_1.managedidentities_v1alpha1.Managedidentities, + v1beta1: v1beta1_1.managedidentities_v1beta1.Managedidentities, +}; +function managedidentities(versionOrOptions) { + return googleapis_common_1.getAPI('managedidentities', versionOrOptions, exports.VERSIONS, this); +} +exports.managedidentities = managedidentities; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 42462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.managedidentities_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var managedidentities_v1; +(function (managedidentities_v1) { + /** + * Managed Service for Microsoft Active Directory API + * + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * + * @example + * const {google} = require('googleapis'); + * const managedidentities = google.managedidentities('v1'); + * + * @namespace managedidentities + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Managedidentities + */ + class Managedidentities { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + managedidentities_v1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + managedidentities_v1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { + constructor(context) { + this.context = context; + } + attachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validateTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(managedidentities_v1 = exports.managedidentities_v1 || (exports.managedidentities_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 84396: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.managedidentities_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var managedidentities_v1alpha1; +(function (managedidentities_v1alpha1) { + /** + * Managed Service for Microsoft Active Directory API + * + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * + * @example + * const {google} = require('googleapis'); + * const managedidentities = google.managedidentities('v1alpha1'); + * + * @namespace managedidentities + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Managedidentities + */ + class Managedidentities { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + managedidentities_v1alpha1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { + constructor(context) { + this.context = context; + } + attachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validateTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1alpha1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(managedidentities_v1alpha1 = exports.managedidentities_v1alpha1 || (exports.managedidentities_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 20947: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.managedidentities_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var managedidentities_v1beta1; +(function (managedidentities_v1beta1) { + /** + * Managed Service for Microsoft Active Directory API + * + * The Managed Service for Microsoft Active Directory API is used for managing a highly available, hardened service running Microsoft Active Directory (AD). + * + * @example + * const {google} = require('googleapis'); + * const managedidentities = google.managedidentities('v1beta1'); + * + * @namespace managedidentities + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Managedidentities + */ + class Managedidentities { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + managedidentities_v1beta1.Managedidentities = Managedidentities; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + managedidentities_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.domains = new Resource$Projects$Locations$Global$Domains(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Domains { + constructor(context) { + this.context = context; + } + attachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:attachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detachTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:detachTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/domains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reconfigureTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:reconfigureTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetAdminPassword(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resetAdminPassword').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validateTrust(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:validateTrust').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Domains = Resource$Projects$Locations$Global$Domains; + class Resource$Projects$Locations$Global$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://managedidentities.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + managedidentities_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(managedidentities_v1beta1 = exports.managedidentities_v1beta1 || (exports.managedidentities_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 68190: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.manufacturers = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(28583); +exports.VERSIONS = { + v1: v1_1.manufacturers_v1.Manufacturers, +}; +function manufacturers(versionOrOptions) { + return googleapis_common_1.getAPI('manufacturers', versionOrOptions, exports.VERSIONS, this); +} +exports.manufacturers = manufacturers; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 28583: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.manufacturers_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var manufacturers_v1; +(function (manufacturers_v1) { + /** + * Manufacturer Center API + * + * Public API for managing Manufacturer Center related data. + * + * @example + * const {google} = require('googleapis'); + * const manufacturers = google.manufacturers('v1'); + * + * @namespace manufacturers + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Manufacturers + */ + class Manufacturers { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + manufacturers_v1.Manufacturers = Manufacturers; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.products = new Resource$Accounts$Products(this.context); + } + } + manufacturers_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Products { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://manufacturers.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['parent', 'name'], + pathParams: ['name', 'parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + manufacturers_v1.Resource$Accounts$Products = Resource$Accounts$Products; +})(manufacturers_v1 = exports.manufacturers_v1 || (exports.manufacturers_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 75934: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.memcache = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta2_1 = __nccwpck_require__(4833); +exports.VERSIONS = { + v1beta2: v1beta2_1.memcache_v1beta2.Memcache, +}; +function memcache(versionOrOptions) { + return googleapis_common_1.getAPI('memcache', versionOrOptions, exports.VERSIONS, this); +} +exports.memcache = memcache; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 4833: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.memcache_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var memcache_v1beta2; +(function (memcache_v1beta2) { + /** + * Cloud Memorystore for Memcached API + * + * Google Cloud Memorystore for Memcached API is used for creating and managing Memcached instances in GCP. + * + * @example + * const {google} = require('googleapis'); + * const memcache = google.memcache('v1beta2'); + * + * @namespace memcache + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Memcache + */ + class Memcache { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + memcache_v1beta2.Memcache = Memcache; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + memcache_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + memcache_v1beta2.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + applyParameters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:applyParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateParameters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:updateParameters').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + memcache_v1beta2.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://memcache.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + memcache_v1beta2.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(memcache_v1beta2 = exports.memcache_v1beta2 || (exports.memcache_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 11225: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.ml = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(51921); +exports.VERSIONS = { + v1: v1_1.ml_v1.Ml, +}; +function ml(versionOrOptions) { + return googleapis_common_1.getAPI('ml', versionOrOptions, exports.VERSIONS, this); +} +exports.ml = ml; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 51921: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.ml_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var ml_v1; +(function (ml_v1) { + /** + * AI Platform Training & Prediction API + * + * An API to enable creating and using machine learning models. + * + * @example + * const {google} = require('googleapis'); + * const ml = google.ml('v1'); + * + * @namespace ml + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Ml + */ + class Ml { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + ml_v1.Ml = Ml; + class Resource$Projects { + constructor(context) { + this.context = context; + this.jobs = new Resource$Projects$Jobs(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.models = new Resource$Projects$Models(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + explain(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:explain').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:getConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + predict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:predict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Jobs { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Jobs = Resource$Projects$Jobs; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.studies = new Resource$Projects$Locations$Studies(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Studies { + constructor(context) { + this.context = context; + this.trials = new Resource$Projects$Locations$Studies$Trials(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/studies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Studies = Resource$Projects$Locations$Studies; + class Resource$Projects$Locations$Studies$Trials { + constructor(context) { + this.context = context; + } + addMeasurement(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:addMeasurement').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + checkEarlyStoppingState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:checkEarlyStoppingState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + complete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:complete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + suggest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/trials:suggest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Locations$Studies$Trials = Resource$Projects$Locations$Studies$Trials; + class Resource$Projects$Models { + constructor(context) { + this.context = context; + this.versions = new Resource$Projects$Models$Versions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/models').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Models = Resource$Projects$Models; + class Resource$Projects$Models$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setDefault(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setDefault').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Models$Versions = Resource$Projects$Models$Versions; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://ml.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + ml_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(ml_v1 = exports.ml_v1 || (exports.ml_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 23214: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.monitoring = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(25706); +const v3_1 = __nccwpck_require__(82249); +exports.VERSIONS = { + v1: v1_1.monitoring_v1.Monitoring, + v3: v3_1.monitoring_v3.Monitoring, +}; +function monitoring(versionOrOptions) { + return googleapis_common_1.getAPI('monitoring', versionOrOptions, exports.VERSIONS, this); +} +exports.monitoring = monitoring; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25706: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.monitoring_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var monitoring_v1; +(function (monitoring_v1) { + /** + * Cloud Monitoring API + * + * Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation. + * + * @example + * const {google} = require('googleapis'); + * const monitoring = google.monitoring('v1'); + * + * @namespace monitoring + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Monitoring + */ + class Monitoring { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + monitoring_v1.Monitoring = Monitoring; + class Resource$Projects { + constructor(context) { + this.context = context; + this.dashboards = new Resource$Projects$Dashboards(this.context); + } + } + monitoring_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Dashboards { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/dashboards').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v1.Resource$Projects$Dashboards = Resource$Projects$Dashboards; +})(monitoring_v1 = exports.monitoring_v1 || (exports.monitoring_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 82249: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.monitoring_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var monitoring_v3; +(function (monitoring_v3) { + /** + * Cloud Monitoring API + * + * Manages your Cloud Monitoring data and configurations. Most projects must be associated with a Workspace, with a few exceptions as noted on the individual method pages. The table entries below are presented in alphabetical order, not in order of common use. For explanations of the concepts found in the table entries, read the Cloud Monitoring documentation. + * + * @example + * const {google} = require('googleapis'); + * const monitoring = google.monitoring('v3'); + * + * @namespace monitoring + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Monitoring + */ + class Monitoring { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + this.services = new Resource$Services(this.context); + this.uptimeCheckIps = new Resource$Uptimecheckips(this.context); + } + } + monitoring_v3.Monitoring = Monitoring; + class Resource$Projects { + constructor(context) { + this.context = context; + this.alertPolicies = new Resource$Projects$Alertpolicies(this.context); + this.collectdTimeSeries = new Resource$Projects$Collectdtimeseries(this.context); + this.groups = new Resource$Projects$Groups(this.context); + this.metricDescriptors = new Resource$Projects$Metricdescriptors(this.context); + this.monitoredResourceDescriptors = new Resource$Projects$Monitoredresourcedescriptors(this.context); + this.notificationChannelDescriptors = new Resource$Projects$Notificationchanneldescriptors(this.context); + this.notificationChannels = new Resource$Projects$Notificationchannels(this.context); + this.timeSeries = new Resource$Projects$Timeseries(this.context); + this.uptimeCheckConfigs = new Resource$Projects$Uptimecheckconfigs(this.context); + } + } + monitoring_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Alertpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/alertPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Alertpolicies = Resource$Projects$Alertpolicies; + class Resource$Projects$Collectdtimeseries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/collectdTimeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Collectdtimeseries = Resource$Projects$Collectdtimeseries; + class Resource$Projects$Groups { + constructor(context) { + this.context = context; + this.members = new Resource$Projects$Groups$Members(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Groups = Resource$Projects$Groups; + class Resource$Projects$Groups$Members { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Groups$Members = Resource$Projects$Groups$Members; + class Resource$Projects$Metricdescriptors { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/metricDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Metricdescriptors = Resource$Projects$Metricdescriptors; + class Resource$Projects$Monitoredresourcedescriptors { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/monitoredResourceDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Monitoredresourcedescriptors = Resource$Projects$Monitoredresourcedescriptors; + class Resource$Projects$Notificationchanneldescriptors { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannelDescriptors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Notificationchanneldescriptors = Resource$Projects$Notificationchanneldescriptors; + class Resource$Projects$Notificationchannels { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:getVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/notificationChannels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sendVerificationCode(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:sendVerificationCode').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Notificationchannels = Resource$Projects$Notificationchannels; + class Resource$Projects$Timeseries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/timeSeries:query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Timeseries = Resource$Projects$Timeseries; + class Resource$Projects$Uptimecheckconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/uptimeCheckConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Projects$Uptimecheckconfigs = Resource$Projects$Uptimecheckconfigs; + class Resource$Services { + constructor(context) { + this.context = context; + this.serviceLevelObjectives = new Resource$Services$Servicelevelobjectives(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Services = Resource$Services; + class Resource$Services$Servicelevelobjectives { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/serviceLevelObjectives').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Services$Servicelevelobjectives = Resource$Services$Servicelevelobjectives; + class Resource$Uptimecheckips { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://monitoring.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/uptimeCheckIps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + monitoring_v3.Resource$Uptimecheckips = Resource$Uptimecheckips; +})(monitoring_v3 = exports.monitoring_v3 || (exports.monitoring_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 5309: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.networkmanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(21076); +exports.VERSIONS = { + v1beta1: v1beta1_1.networkmanagement_v1beta1.Networkmanagement, +}; +function networkmanagement(versionOrOptions) { + return googleapis_common_1.getAPI('networkmanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.networkmanagement = networkmanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 21076: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.networkmanagement_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var networkmanagement_v1beta1; +(function (networkmanagement_v1beta1) { + /** + * Network Management API + * + * The Network Management API provides a collection of network performance monitoring and diagnostic capabilities. + * + * @example + * const {google} = require('googleapis'); + * const networkmanagement = google.networkmanagement('v1beta1'); + * + * @namespace networkmanagement + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Networkmanagement + */ + class Networkmanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + networkmanagement_v1beta1.Networkmanagement = Networkmanagement; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + networkmanagement_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.global = new Resource$Projects$Locations$Global(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Global { + constructor(context) { + this.context = context; + this.connectivityTests = new Resource$Projects$Locations$Global$Connectivitytests(this.context); + this.operations = new Resource$Projects$Locations$Global$Operations(this.context); + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global = Resource$Projects$Locations$Global; + class Resource$Projects$Locations$Global$Connectivitytests { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/connectivityTests').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rerun(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:rerun').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global$Connectivitytests = Resource$Projects$Locations$Global$Connectivitytests; + class Resource$Projects$Locations$Global$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://networkmanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + networkmanagement_v1beta1.Resource$Projects$Locations$Global$Operations = Resource$Projects$Locations$Global$Operations; +})(networkmanagement_v1beta1 = exports.networkmanagement_v1beta1 || (exports.networkmanagement_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 13920: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.oauth2 = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(17744); +exports.VERSIONS = { + v2: v2_1.oauth2_v2.Oauth2, +}; +function oauth2(versionOrOptions) { + return googleapis_common_1.getAPI('oauth2', versionOrOptions, exports.VERSIONS, this); +} +exports.oauth2 = oauth2; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 17744: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.oauth2_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var oauth2_v2; +(function (oauth2_v2) { + /** + * Google OAuth2 API + * + * Obtains end-user authorization grants for use with other Google APIs. + * + * @example + * const {google} = require('googleapis'); + * const oauth2 = google.oauth2('v2'); + * + * @namespace oauth2 + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Oauth2 + */ + class Oauth2 { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.userinfo = new Resource$Userinfo(this.context); + } + tokeninfo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/oauth2/v2/tokeninfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oauth2_v2.Oauth2 = Oauth2; + class Resource$Userinfo { + constructor(context) { + this.context = context; + this.v2 = new Resource$Userinfo$V2(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/oauth2/v2/userinfo').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oauth2_v2.Resource$Userinfo = Resource$Userinfo; + class Resource$Userinfo$V2 { + constructor(context) { + this.context = context; + this.me = new Resource$Userinfo$V2$Me(this.context); + } + } + oauth2_v2.Resource$Userinfo$V2 = Resource$Userinfo$V2; + class Resource$Userinfo$V2$Me { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/userinfo/v2/me').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oauth2_v2.Resource$Userinfo$V2$Me = Resource$Userinfo$V2$Me; +})(oauth2_v2 = exports.oauth2_v2 || (exports.oauth2_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 52823: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.osconfig = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(862); +const v1beta_1 = __nccwpck_require__(18087); +exports.VERSIONS = { + v1: v1_1.osconfig_v1.Osconfig, + v1beta: v1beta_1.osconfig_v1beta.Osconfig, +}; +function osconfig(versionOrOptions) { + return googleapis_common_1.getAPI('osconfig', versionOrOptions, exports.VERSIONS, this); +} +exports.osconfig = osconfig; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 862: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.osconfig_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var osconfig_v1; +(function (osconfig_v1) { + /** + * Cloud OS Config API + * + * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * + * @example + * const {google} = require('googleapis'); + * const osconfig = google.osconfig('v1'); + * + * @namespace osconfig + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Osconfig + */ + class Osconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + osconfig_v1.Osconfig = Osconfig; + class Resource$Projects { + constructor(context) { + this.context = context; + this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); + this.patchJobs = new Resource$Projects$Patchjobs(this.context); + } + } + osconfig_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Patchdeployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; + class Resource$Projects$Patchjobs { + constructor(context) { + this.context = context; + this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; +})(osconfig_v1 = exports.osconfig_v1 || (exports.osconfig_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 18087: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.osconfig_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var osconfig_v1beta; +(function (osconfig_v1beta) { + /** + * Cloud OS Config API + * + * OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + * + * @example + * const {google} = require('googleapis'); + * const osconfig = google.osconfig('v1beta'); + * + * @namespace osconfig + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Osconfig + */ + class Osconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + osconfig_v1beta.Osconfig = Osconfig; + class Resource$Projects { + constructor(context) { + this.context = context; + this.guestPolicies = new Resource$Projects$Guestpolicies(this.context); + this.patchDeployments = new Resource$Projects$Patchdeployments(this.context); + this.patchJobs = new Resource$Projects$Patchjobs(this.context); + this.zones = new Resource$Projects$Zones(this.context); + } + } + osconfig_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Guestpolicies { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/guestPolicies').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Guestpolicies = Resource$Projects$Guestpolicies; + class Resource$Projects$Patchdeployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchDeployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchdeployments = Resource$Projects$Patchdeployments; + class Resource$Projects$Patchjobs { + constructor(context) { + this.context = context; + this.instanceDetails = new Resource$Projects$Patchjobs$Instancedetails(this.context); + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchJobs:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/patchJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchjobs = Resource$Projects$Patchjobs; + class Resource$Projects$Patchjobs$Instancedetails { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/instanceDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Patchjobs$Instancedetails = Resource$Projects$Patchjobs$Instancedetails; + class Resource$Projects$Zones { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Zones$Instances(this.context); + } + } + osconfig_v1beta.Resource$Projects$Zones = Resource$Projects$Zones; + class Resource$Projects$Zones$Instances { + constructor(context) { + this.context = context; + } + lookupEffectiveGuestPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://osconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+instance}:lookupEffectiveGuestPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instance'], + pathParams: ['instance'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + osconfig_v1beta.Resource$Projects$Zones$Instances = Resource$Projects$Zones$Instances; +})(osconfig_v1beta = exports.osconfig_v1beta || (exports.osconfig_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 60369: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.oslogin = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(94424); +const v1alpha_1 = __nccwpck_require__(44272); +const v1beta_1 = __nccwpck_require__(58402); +exports.VERSIONS = { + v1: v1_1.oslogin_v1.Oslogin, + v1alpha: v1alpha_1.oslogin_v1alpha.Oslogin, + v1beta: v1beta_1.oslogin_v1beta.Oslogin, +}; +function oslogin(versionOrOptions) { + return googleapis_common_1.getAPI('oslogin', versionOrOptions, exports.VERSIONS, this); +} +exports.oslogin = oslogin; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 94424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.oslogin_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var oslogin_v1; +(function (oslogin_v1) { + /** + * Cloud OS Login API + * + * You can use OS Login to manage access to your VM instances using IAM roles. + * + * @example + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1'); + * + * @namespace oslogin + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Oslogin + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1.Oslogin = Oslogin; + class Resource$Users { + constructor(context) { + this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + } + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1.Resource$Users = Resource$Users; + class Resource$Users$Projects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1 = exports.oslogin_v1 || (exports.oslogin_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 44272: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.oslogin_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var oslogin_v1alpha; +(function (oslogin_v1alpha) { + /** + * Cloud OS Login API + * + * You can use OS Login to manage access to your VM instances using IAM roles. + * + * @example + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1alpha'); + * + * @namespace oslogin + * @type {Function} + * @version v1alpha + * @variation v1alpha + * @param {object=} options Options for Oslogin + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1alpha.Oslogin = Oslogin; + class Resource$Users { + constructor(context) { + this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + } + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1alpha.Resource$Users = Resource$Users; + class Resource$Users$Projects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1alpha.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1alpha.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1alpha = exports.oslogin_v1alpha || (exports.oslogin_v1alpha = {})); +//# sourceMappingURL=v1alpha.js.map + +/***/ }), + +/***/ 58402: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.oslogin_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var oslogin_v1beta; +(function (oslogin_v1beta) { + /** + * Cloud OS Login API + * + * You can use OS Login to manage access to your VM instances using IAM roles. + * + * @example + * const {google} = require('googleapis'); + * const oslogin = google.oslogin('v1beta'); + * + * @namespace oslogin + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Oslogin + */ + class Oslogin { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.users = new Resource$Users(this.context); + } + } + oslogin_v1beta.Oslogin = Oslogin; + class Resource$Users { + constructor(context) { + this.context = context; + this.projects = new Resource$Users$Projects(this.context); + this.sshPublicKeys = new Resource$Users$Sshpublickeys(this.context); + } + getLoginProfile(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/loginProfile').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importSshPublicKey(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}:importSshPublicKey').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1beta.Resource$Users = Resource$Users; + class Resource$Users$Projects { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1beta.Resource$Users$Projects = Resource$Users$Projects; + class Resource$Users$Sshpublickeys { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://oslogin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + oslogin_v1beta.Resource$Users$Sshpublickeys = Resource$Users$Sshpublickeys; +})(oslogin_v1beta = exports.oslogin_v1beta || (exports.oslogin_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 26097: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.pagespeedonline = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(33677); +const v4_1 = __nccwpck_require__(41257); +const v5_1 = __nccwpck_require__(62031); +exports.VERSIONS = { + v2: v2_1.pagespeedonline_v2.Pagespeedonline, + v4: v4_1.pagespeedonline_v4.Pagespeedonline, + v5: v5_1.pagespeedonline_v5.Pagespeedonline, +}; +function pagespeedonline(versionOrOptions) { + return googleapis_common_1.getAPI('pagespeedonline', versionOrOptions, exports.VERSIONS, this); +} +exports.pagespeedonline = pagespeedonline; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 33677: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pagespeedonline_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pagespeedonline_v2; +(function (pagespeedonline_v2) { + /** + * PageSpeed Insights API + * + * Analyzes the performance of a web page and provides tailored suggestions to make that page faster. + * + * @example + * const {google} = require('googleapis'); + * const pagespeedonline = google.pagespeedonline('v2'); + * + * @namespace pagespeedonline + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Pagespeedonline + */ + class Pagespeedonline { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pagespeedapi = new Resource$Pagespeedapi(this.context); + } + } + pagespeedonline_v2.Pagespeedonline = Pagespeedonline; + class Resource$Pagespeedapi { + constructor(context) { + this.context = context; + } + runpagespeed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/pagespeedonline/v2/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pagespeedonline_v2.Resource$Pagespeedapi = Resource$Pagespeedapi; +})(pagespeedonline_v2 = exports.pagespeedonline_v2 || (exports.pagespeedonline_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 41257: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pagespeedonline_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pagespeedonline_v4; +(function (pagespeedonline_v4) { + /** + * PageSpeed Insights API + * + * Analyzes the performance of a web page and provides tailored suggestions to make that page faster. + * + * @example + * const {google} = require('googleapis'); + * const pagespeedonline = google.pagespeedonline('v4'); + * + * @namespace pagespeedonline + * @type {Function} + * @version v4 + * @variation v4 + * @param {object=} options Options for Pagespeedonline + */ + class Pagespeedonline { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pagespeedapi = new Resource$Pagespeedapi(this.context); + } + } + pagespeedonline_v4.Pagespeedonline = Pagespeedonline; + class Resource$Pagespeedapi { + constructor(context) { + this.context = context; + } + runpagespeed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/pagespeedonline/v4/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['url'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pagespeedonline_v4.Resource$Pagespeedapi = Resource$Pagespeedapi; +})(pagespeedonline_v4 = exports.pagespeedonline_v4 || (exports.pagespeedonline_v4 = {})); +//# sourceMappingURL=v4.js.map + +/***/ }), + +/***/ 62031: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pagespeedonline_v5 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pagespeedonline_v5; +(function (pagespeedonline_v5) { + /** + * PageSpeed Insights API + * + * The PageSpeed Insights API lets you analyze the performance of your website with a simple API. It offers tailored suggestions for how you can optimize your site, and lets you easily integrate PageSpeed Insights analysis into your development tools and workflow. + * + * @example + * const {google} = require('googleapis'); + * const pagespeedonline = google.pagespeedonline('v5'); + * + * @namespace pagespeedonline + * @type {Function} + * @version v5 + * @variation v5 + * @param {object=} options Options for Pagespeedonline + */ + class Pagespeedonline { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.pagespeedapi = new Resource$Pagespeedapi(this.context); + } + } + pagespeedonline_v5.Pagespeedonline = Pagespeedonline; + class Resource$Pagespeedapi { + constructor(context) { + this.context = context; + } + runpagespeed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pagespeedonline.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/pagespeedonline/v5/runPagespeed').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pagespeedonline_v5.Resource$Pagespeedapi = Resource$Pagespeedapi; +})(pagespeedonline_v5 = exports.pagespeedonline_v5 || (exports.pagespeedonline_v5 = {})); +//# sourceMappingURL=v5.js.map + +/***/ }), + +/***/ 6584: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.people = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(85246); +exports.VERSIONS = { + v1: v1_1.people_v1.People, +}; +function people(versionOrOptions) { + return googleapis_common_1.getAPI('people', versionOrOptions, exports.VERSIONS, this); +} +exports.people = people; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 85246: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.people_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var people_v1; +(function (people_v1) { + /** + * People API + * + * Provides access to information about profiles and contacts. + * + * @example + * const {google} = require('googleapis'); + * const people = google.people('v1'); + * + * @namespace people + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for People + */ + class People { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.contactGroups = new Resource$Contactgroups(this.context); + this.people = new Resource$People(this.context); + } + } + people_v1.People = People; + class Resource$Contactgroups { + constructor(context) { + this.context = context; + this.members = new Resource$Contactgroups$Members(this.context); + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/contactGroups:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/contactGroups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + people_v1.Resource$Contactgroups = Resource$Contactgroups; + class Resource$Contactgroups$Members { + constructor(context) { + this.context = context; + } + modify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}/members:modify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + people_v1.Resource$Contactgroups$Members = Resource$Contactgroups$Members; + class Resource$People { + constructor(context) { + this.context = context; + this.connections = new Resource$People$Connections(this.context); + } + createContact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/people:createContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteContact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}:deleteContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteContactPhoto(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}:deleteContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getBatchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/people:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateContact(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}:updateContact').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateContactPhoto(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}:updateContactPhoto').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + people_v1.Resource$People = Resource$People; + class Resource$People$Connections { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://people.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resourceName}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + people_v1.Resource$People$Connections = Resource$People$Connections; +})(people_v1 = exports.people_v1 || (exports.people_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 3776: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.playcustomapp = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(46149); +exports.VERSIONS = { + v1: v1_1.playcustomapp_v1.Playcustomapp, +}; +function playcustomapp(versionOrOptions) { + return googleapis_common_1.getAPI('playcustomapp', versionOrOptions, exports.VERSIONS, this); +} +exports.playcustomapp = playcustomapp; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 46149: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.playcustomapp_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var playcustomapp_v1; +(function (playcustomapp_v1) { + /** + * Google Play Custom App Publishing API + * + * An API to publish custom Android apps. + * + * @example + * const {google} = require('googleapis'); + * const playcustomapp = google.playcustomapp('v1'); + * + * @namespace playcustomapp + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Playcustomapp + */ + class Playcustomapp { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + playcustomapp_v1.Playcustomapp = Playcustomapp; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.customApps = new Resource$Accounts$Customapps(this.context); + } + } + playcustomapp_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Customapps { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/playcustomapp/v1/accounts/{account}/customApps').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['account'], + pathParams: ['account'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + playcustomapp_v1.Resource$Accounts$Customapps = Resource$Accounts$Customapps; +})(playcustomapp_v1 = exports.playcustomapp_v1 || (exports.playcustomapp_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 95424: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.plus = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(38263); +exports.VERSIONS = { + v1: v1_1.plus_v1.Plus, +}; +function plus(versionOrOptions) { + return googleapis_common_1.getAPI('plus', versionOrOptions, exports.VERSIONS, this); +} +exports.plus = plus; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 38263: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.plus_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var plus_v1; +(function (plus_v1) { + /** + * Google+ API + * + * Builds on top of the Google+ platform. + * + * @example + * const {google} = require('googleapis'); + * const plus = google.plus('v1'); + * + * @namespace plus + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Plus + */ + class Plus { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + this.comments = new Resource$Comments(this.context); + this.people = new Resource$People(this.context); + } + } + plus_v1.Plus = Plus; + class Resource$Activities { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId'], + pathParams: ['activityId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}/activities/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'collection'], + pathParams: ['collection', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['query'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + plus_v1.Resource$Activities = Resource$Activities; + class Resource$Comments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/comments/{commentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['commentId'], + pathParams: ['commentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId'], + pathParams: ['activityId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + plus_v1.Resource$Comments = Resource$Comments; + class Resource$People { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId'], + pathParams: ['userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people/{userId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['userId', 'collection'], + pathParams: ['collection', 'userId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listByActivity(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/activities/{activityId}/people/{collection}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['activityId', 'collection'], + pathParams: ['activityId', 'collection'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/plus/v1/people').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['query'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + plus_v1.Resource$People = Resource$People; +})(plus_v1 = exports.plus_v1 || (exports.plus_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 99171: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.policytroubleshooter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(56546); +const v1beta_1 = __nccwpck_require__(96545); +exports.VERSIONS = { + v1: v1_1.policytroubleshooter_v1.Policytroubleshooter, + v1beta: v1beta_1.policytroubleshooter_v1beta.Policytroubleshooter, +}; +function policytroubleshooter(versionOrOptions) { + return googleapis_common_1.getAPI('policytroubleshooter', versionOrOptions, exports.VERSIONS, this); +} +exports.policytroubleshooter = policytroubleshooter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 56546: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.policytroubleshooter_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var policytroubleshooter_v1; +(function (policytroubleshooter_v1) { + /** + * Policy Troubleshooter API + * + * + * + * @example + * const {google} = require('googleapis'); + * const policytroubleshooter = google.policytroubleshooter('v1'); + * + * @namespace policytroubleshooter + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Policytroubleshooter + */ + class Policytroubleshooter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iam = new Resource$Iam(this.context); + } + } + policytroubleshooter_v1.Policytroubleshooter = Policytroubleshooter; + class Resource$Iam { + constructor(context) { + this.context = context; + } + troubleshoot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://policytroubleshooter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + policytroubleshooter_v1.Resource$Iam = Resource$Iam; +})(policytroubleshooter_v1 = exports.policytroubleshooter_v1 || (exports.policytroubleshooter_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 96545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.policytroubleshooter_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var policytroubleshooter_v1beta; +(function (policytroubleshooter_v1beta) { + /** + * Policy Troubleshooter API + * + * + * + * @example + * const {google} = require('googleapis'); + * const policytroubleshooter = google.policytroubleshooter('v1beta'); + * + * @namespace policytroubleshooter + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Policytroubleshooter + */ + class Policytroubleshooter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.iam = new Resource$Iam(this.context); + } + } + policytroubleshooter_v1beta.Policytroubleshooter = Policytroubleshooter; + class Resource$Iam { + constructor(context) { + this.context = context; + } + troubleshoot(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://policytroubleshooter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/iam:troubleshoot').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + policytroubleshooter_v1beta.Resource$Iam = Resource$Iam; +})(policytroubleshooter_v1beta = exports.policytroubleshooter_v1beta || (exports.policytroubleshooter_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 29019: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.poly = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(65838); +exports.VERSIONS = { + v1: v1_1.poly_v1.Poly, +}; +function poly(versionOrOptions) { + return googleapis_common_1.getAPI('poly', versionOrOptions, exports.VERSIONS, this); +} +exports.poly = poly; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 65838: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.poly_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var poly_v1; +(function (poly_v1) { + /** + * Poly API + * + * The Poly API provides read access to assets hosted on <a href="https://poly.google.com">poly.google.com</a> to all, and upload access to <a href="https://poly.google.com">poly.google.com</a> for whitelisted accounts. + * + * @example + * const {google} = require('googleapis'); + * const poly = google.poly('v1'); + * + * @namespace poly + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Poly + */ + class Poly { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.assets = new Resource$Assets(this.context); + this.users = new Resource$Users(this.context); + } + } + poly_v1.Poly = Poly; + class Resource$Assets { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + poly_v1.Resource$Assets = Resource$Assets; + class Resource$Users { + constructor(context) { + this.context = context; + this.assets = new Resource$Users$Assets(this.context); + this.likedassets = new Resource$Users$Likedassets(this.context); + } + } + poly_v1.Resource$Users = Resource$Users; + class Resource$Users$Assets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + poly_v1.Resource$Users$Assets = Resource$Users$Assets; + class Resource$Users$Likedassets { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://poly.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/likedassets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + poly_v1.Resource$Users$Likedassets = Resource$Users$Likedassets; +})(poly_v1 = exports.poly_v1 || (exports.poly_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 68165: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.prod_tt_sasportal = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1alpha1_1 = __nccwpck_require__(64154); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.prod_tt_sasportal_v1alpha1.Prod_tt_sasportal, +}; +function prod_tt_sasportal(versionOrOptions) { + return googleapis_common_1.getAPI('prod_tt_sasportal', versionOrOptions, exports.VERSIONS, this); +} +exports.prod_tt_sasportal = prod_tt_sasportal; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 64154: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.prod_tt_sasportal_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var prod_tt_sasportal_v1alpha1; +(function (prod_tt_sasportal_v1alpha1) { + /** + * SAS Portal API (Testing) + * + * + * + * @example + * const {google} = require('googleapis'); + * const prod_tt_sasportal = google.prod_tt_sasportal('v1alpha1'); + * + * @namespace prod_tt_sasportal + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Prod_tt_sasportal + */ + class Prod_tt_sasportal { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.installer = new Resource$Installer(this.context); + this.nodes = new Resource$Nodes(this.context); + this.policies = new Resource$Policies(this.context); + } + } + prod_tt_sasportal_v1alpha1.Prod_tt_sasportal = Prod_tt_sasportal; + class Resource$Customers { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Devices(this.context); + this.nodes = new Resource$Customers$Nodes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Customers = Resource$Customers; + class Resource$Customers$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Nodes { + constructor(context) { + this.context = context; + this.nodes = new Resource$Customers$Nodes$Nodes(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; + class Resource$Customers$Nodes$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; + class Resource$Installer { + constructor(context) { + this.context = context; + } + generateSecret(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Installer = Resource$Installer; + class Resource$Nodes { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes(this.context); + } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; + class Resource$Nodes$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; + class Resource$Nodes$Nodes { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes$Nodes(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; + class Resource$Nodes$Nodes$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; + class Resource$Nodes$Nodes$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; + class Resource$Policies { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://prod-tt-sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + prod_tt_sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(prod_tt_sasportal_v1alpha1 = exports.prod_tt_sasportal_v1alpha1 || (exports.prod_tt_sasportal_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 39727: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.pubsub = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(62050); +const v1beta1a_1 = __nccwpck_require__(94305); +const v1beta2_1 = __nccwpck_require__(47256); +exports.VERSIONS = { + v1: v1_1.pubsub_v1.Pubsub, + v1beta1a: v1beta1a_1.pubsub_v1beta1a.Pubsub, + v1beta2: v1beta2_1.pubsub_v1beta2.Pubsub, +}; +function pubsub(versionOrOptions) { + return googleapis_common_1.getAPI('pubsub', versionOrOptions, exports.VERSIONS, this); +} +exports.pubsub = pubsub; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 62050: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pubsub_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pubsub_v1; +(function (pubsub_v1) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1'); + * + * @namespace pubsub + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Pubsub + */ + class Pubsub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + pubsub_v1.Pubsub = Pubsub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.snapshots = new Resource$Projects$Snapshots(this.context); + this.subscriptions = new Resource$Projects$Subscriptions(this.context); + this.topics = new Resource$Projects$Topics(this.context); + } + } + pubsub_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Snapshots { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['snapshot'], + pathParams: ['snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+snapshot}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['snapshot'], + pathParams: ['snapshot'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1.Resource$Projects$Snapshots = Resource$Projects$Snapshots; + class Resource$Projects$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pull(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + seek(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+subscription}:seek').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; + class Resource$Projects$Topics { + constructor(context) { + this.context = context; + this.snapshots = new Resource$Projects$Topics$Snapshots(this.context); + this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics = Resource$Projects$Topics; + class Resource$Projects$Topics$Snapshots { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}/snapshots').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics$Snapshots = Resource$Projects$Topics$Snapshots; + class Resource$Projects$Topics$Subscriptions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1 = exports.pubsub_v1 || (exports.pubsub_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 94305: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pubsub_v1beta1a = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pubsub_v1beta1a; +(function (pubsub_v1beta1a) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1beta1a'); + * + * @namespace pubsub + * @type {Function} + * @version v1beta1a + * @variation v1beta1a + * @param {object=} options Options for Pubsub + */ + class Pubsub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.subscriptions = new Resource$Subscriptions(this.context); + this.topics = new Resource$Topics(this.context); + } + } + pubsub_v1beta1a.Pubsub = Pubsub; + class Resource$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pull(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pullBatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/subscriptions/pullBatch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1beta1a.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Topics { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publishBatch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1a/topics/publishBatch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1beta1a.Resource$Topics = Resource$Topics; +})(pubsub_v1beta1a = exports.pubsub_v1beta1a || (exports.pubsub_v1beta1a = {})); +//# sourceMappingURL=v1beta1a.js.map + +/***/ }), + +/***/ 47256: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.pubsub_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var pubsub_v1beta2; +(function (pubsub_v1beta2) { + /** + * Cloud Pub/Sub API + * + * Provides reliable, many-to-many, asynchronous messaging between applications. + * + * @example + * const {google} = require('googleapis'); + * const pubsub = google.pubsub('v1beta2'); + * + * @namespace pubsub + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Pubsub + */ + class Pubsub { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + pubsub_v1beta2.Pubsub = Pubsub; + class Resource$Projects { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Projects$Subscriptions(this.context); + this.topics = new Resource$Projects$Topics(this.context); + } + } + pubsub_v1beta2.Resource$Projects = Resource$Projects; + class Resource$Projects$Subscriptions { + constructor(context) { + this.context = context; + } + acknowledge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}:acknowledge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+project}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyAckDeadline(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}:modifyAckDeadline').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + modifyPushConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}:modifyPushConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pull(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+subscription}:pull').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['subscription'], + pathParams: ['subscription'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1beta2.Resource$Projects$Subscriptions = Resource$Projects$Subscriptions; + class Resource$Projects$Topics { + constructor(context) { + this.context = context; + this.subscriptions = new Resource$Projects$Topics$Subscriptions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+topic}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+project}/topics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+topic}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1beta2.Resource$Projects$Topics = Resource$Projects$Topics; + class Resource$Projects$Topics$Subscriptions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://pubsub.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/{+topic}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['topic'], + pathParams: ['topic'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + pubsub_v1beta2.Resource$Projects$Topics$Subscriptions = Resource$Projects$Topics$Subscriptions; +})(pubsub_v1beta2 = exports.pubsub_v1beta2 || (exports.pubsub_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 65624: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.recommender = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(82545); +exports.VERSIONS = { + v1beta1: v1beta1_1.recommender_v1beta1.Recommender, +}; +function recommender(versionOrOptions) { + return googleapis_common_1.getAPI('recommender', versionOrOptions, exports.VERSIONS, this); +} +exports.recommender = recommender; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 82545: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.recommender_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var recommender_v1beta1; +(function (recommender_v1beta1) { + /** + * Recommender API + * + * + * + * @example + * const {google} = require('googleapis'); + * const recommender = google.recommender('v1beta1'); + * + * @namespace recommender + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Recommender + */ + class Recommender { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + recommender_v1beta1.Recommender = Recommender; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + recommender_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.insightTypes = new Resource$Projects$Locations$Insighttypes(this.context); + this.recommenders = new Resource$Projects$Locations$Recommenders(this.context); + } + } + recommender_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Insighttypes { + constructor(context) { + this.context = context; + this.insights = new Resource$Projects$Locations$Insighttypes$Insights(this.context); + } + } + recommender_v1beta1.Resource$Projects$Locations$Insighttypes = Resource$Projects$Locations$Insighttypes; + class Resource$Projects$Locations$Insighttypes$Insights { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/insights').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markAccepted(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markAccepted').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + recommender_v1beta1.Resource$Projects$Locations$Insighttypes$Insights = Resource$Projects$Locations$Insighttypes$Insights; + class Resource$Projects$Locations$Recommenders { + constructor(context) { + this.context = context; + this.recommendations = new Resource$Projects$Locations$Recommenders$Recommendations(this.context); + } + } + recommender_v1beta1.Resource$Projects$Locations$Recommenders = Resource$Projects$Locations$Recommenders; + class Resource$Projects$Locations$Recommenders$Recommendations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/recommendations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markClaimed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markClaimed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markFailed(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markFailed').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markSucceeded(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://recommender.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:markSucceeded').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + recommender_v1beta1.Resource$Projects$Locations$Recommenders$Recommendations = Resource$Projects$Locations$Recommenders$Recommendations; +})(recommender_v1beta1 = exports.recommender_v1beta1 || (exports.recommender_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 21868: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.redis = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(75177); +const v1beta1_1 = __nccwpck_require__(80891); +exports.VERSIONS = { + v1: v1_1.redis_v1.Redis, + v1beta1: v1beta1_1.redis_v1beta1.Redis, +}; +function redis(versionOrOptions) { + return googleapis_common_1.getAPI('redis', versionOrOptions, exports.VERSIONS, this); +} +exports.redis = redis; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75177: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.redis_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var redis_v1; +(function (redis_v1) { + /** + * Google Cloud Memorystore for Redis API + * + * Creates and manages Redis instances on the Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const redis = google.redis('v1'); + * + * @namespace redis + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Redis + */ + class Redis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + redis_v1.Redis = Redis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + redis_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + failover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1 = exports.redis_v1 || (exports.redis_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 80891: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.redis_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var redis_v1beta1; +(function (redis_v1beta1) { + /** + * Google Cloud Memorystore for Redis API + * + * Creates and manages Redis instances on the Google Cloud Platform. + * + * @example + * const {google} = require('googleapis'); + * const redis = google.redis('v1beta1'); + * + * @namespace redis + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Redis + */ + class Redis { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + redis_v1beta1.Redis = Redis; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + redis_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Locations$Instances(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Instances { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + failover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upgrade(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:upgrade').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1beta1.Resource$Projects$Locations$Instances = Resource$Projects$Locations$Instances; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://redis.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + redis_v1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(redis_v1beta1 = exports.redis_v1beta1 || (exports.redis_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 78316: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.remotebuildexecution = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(26530); +const v1alpha_1 = __nccwpck_require__(28414); +const v2_1 = __nccwpck_require__(48189); +exports.VERSIONS = { + v1: v1_1.remotebuildexecution_v1.Remotebuildexecution, + v1alpha: v1alpha_1.remotebuildexecution_v1alpha.Remotebuildexecution, + v2: v2_1.remotebuildexecution_v2.Remotebuildexecution, +}; +function remotebuildexecution(versionOrOptions) { + return googleapis_common_1.getAPI('remotebuildexecution', versionOrOptions, exports.VERSIONS, this); +} +exports.remotebuildexecution = remotebuildexecution; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 26530: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.remotebuildexecution_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var remotebuildexecution_v1; +(function (remotebuildexecution_v1) { + /** + * Remote Build Execution API + * + * Supplies a Remote Execution API service for tools such as bazel. + * + * @example + * const {google} = require('googleapis'); + * const remotebuildexecution = google.remotebuildexecution('v1'); + * + * @namespace remotebuildexecution + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Remotebuildexecution + */ + class Remotebuildexecution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.media = new Resource$Media(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + remotebuildexecution_v1.Remotebuildexecution = Remotebuildexecution; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + upload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1.Resource$Media = Resource$Media; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Operations(this.context); + } + } + remotebuildexecution_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1 = exports.remotebuildexecution_v1 || (exports.remotebuildexecution_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 28414: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.remotebuildexecution_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var remotebuildexecution_v1alpha; +(function (remotebuildexecution_v1alpha) { + /** + * Remote Build Execution API + * + * Supplies a Remote Execution API service for tools such as bazel. + * + * @example + * const {google} = require('googleapis'); + * const remotebuildexecution = google.remotebuildexecution('v1alpha'); + * + * @namespace remotebuildexecution + * @type {Function} + * @version v1alpha + * @variation v1alpha + * @param {object=} options Options for Remotebuildexecution + */ + class Remotebuildexecution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + remotebuildexecution_v1alpha.Remotebuildexecution = Remotebuildexecution; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + remotebuildexecution_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.workerpools = new Resource$Projects$Instances$Workerpools(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1alpha.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Workerpools { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/workerpools').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1alpha.Resource$Projects$Instances$Workerpools = Resource$Projects$Instances$Workerpools; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://admin-remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v1alpha.Resource$Projects$Operations = Resource$Projects$Operations; +})(remotebuildexecution_v1alpha = exports.remotebuildexecution_v1alpha || (exports.remotebuildexecution_v1alpha = {})); +//# sourceMappingURL=v1alpha.js.map + +/***/ }), + +/***/ 48189: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.remotebuildexecution_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var remotebuildexecution_v2; +(function (remotebuildexecution_v2) { + /** + * Remote Build Execution API + * + * Supplies a Remote Execution API service for tools such as bazel. + * + * @example + * const {google} = require('googleapis'); + * const remotebuildexecution = google.remotebuildexecution('v2'); + * + * @namespace remotebuildexecution + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Remotebuildexecution + */ + class Remotebuildexecution { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.actionResults = new Resource$Actionresults(this.context); + this.actions = new Resource$Actions(this.context); + this.blobs = new Resource$Blobs(this.context); + this.operations = new Resource$Operations(this.context); + this.v2 = new Resource$V2(this.context); + } + } + remotebuildexecution_v2.Remotebuildexecution = Remotebuildexecution; + class Resource$Actionresults { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/actionResults/{hash}/{sizeBytes}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v2.Resource$Actionresults = Resource$Actionresults; + class Resource$Actions { + constructor(context) { + this.context = context; + } + execute(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/actions:execute').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instanceName'], + pathParams: ['instanceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v2.Resource$Actions = Resource$Actions; + class Resource$Blobs { + constructor(context) { + this.context = context; + } + batchRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/blobs:batchRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instanceName'], + pathParams: ['instanceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/blobs:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instanceName'], + pathParams: ['instanceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + findMissing(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/blobs:findMissing').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['instanceName'], + pathParams: ['instanceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getTree(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/blobs/{hash}/{sizeBytes}:getTree').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['instanceName', 'hash', 'sizeBytes'], + pathParams: ['hash', 'instanceName', 'sizeBytes'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v2.Resource$Blobs = Resource$Blobs; + class Resource$Operations { + constructor(context) { + this.context = context; + } + waitExecution(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+name}:waitExecution').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v2.Resource$Operations = Resource$Operations; + class Resource$V2 { + constructor(context) { + this.context = context; + } + getCapabilities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://remotebuildexecution.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/{+instanceName}/capabilities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['instanceName'], + pathParams: ['instanceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + remotebuildexecution_v2.Resource$V2 = Resource$V2; +})(remotebuildexecution_v2 = exports.remotebuildexecution_v2 || (exports.remotebuildexecution_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 53337: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.reseller = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(69798); +exports.VERSIONS = { + v1: v1_1.reseller_v1.Reseller, +}; +function reseller(versionOrOptions) { + return googleapis_common_1.getAPI('reseller', versionOrOptions, exports.VERSIONS, this); +} +exports.reseller = reseller; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 69798: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.reseller_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var reseller_v1; +(function (reseller_v1) { + /** + * Enterprise Apps Reseller API + * + * Creates and manages your customers and their subscriptions. + * + * @example + * const {google} = require('googleapis'); + * const reseller = google.reseller('v1'); + * + * @namespace reseller + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Reseller + */ + class Reseller { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.resellernotify = new Resource$Resellernotify(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); + } + } + reseller_v1.Reseller = Reseller; + class Resource$Customers { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + reseller_v1.Resource$Customers = Resource$Customers; + class Resource$Resellernotify { + constructor(context) { + this.context = context; + } + getwatchdetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/resellernotify/getwatchdetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + register(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/resellernotify/register').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unregister(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/resellernotify/unregister').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + reseller_v1.Resource$Resellernotify = Resource$Resellernotify; + class Resource$Subscriptions { + constructor(context) { + this.context = context; + } + activate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/activate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + changePlan(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changePlan').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + changeRenewalSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeRenewalSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + changeSeats(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/changeSeats').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId', 'deletionType'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/customers/{customerId}/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId'], + pathParams: ['customerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apps/reseller/v1/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startPaidService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/startPaidService').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + suspend(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apps/reseller/v1/customers/{customerId}/subscriptions/{subscriptionId}/suspend').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['customerId', 'subscriptionId'], + pathParams: ['customerId', 'subscriptionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + reseller_v1.Resource$Subscriptions = Resource$Subscriptions; +})(reseller_v1 = exports.reseller_v1 || (exports.reseller_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 53389: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.run = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(58579); +const v1alpha1_1 = __nccwpck_require__(5522); +const v1beta1_1 = __nccwpck_require__(70121); +exports.VERSIONS = { + v1: v1_1.run_v1.Run, + v1alpha1: v1alpha1_1.run_v1alpha1.Run, + v1beta1: v1beta1_1.run_v1beta1.Run, +}; +function run(versionOrOptions) { + return googleapis_common_1.getAPI('run', versionOrOptions, exports.VERSIONS, this); +} +exports.run = run; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 58579: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.run_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var run_v1; +(function (run_v1) { + /** + * Cloud Run API + * + * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * + * @example + * const {google} = require('googleapis'); + * const run = google.run('v1'); + * + * @namespace run + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Run + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.api = new Resource$Api(this.context); + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); + } + } + run_v1.Run = Run; + class Resource$Api { + constructor(context) { + this.context = context; + this.v1 = new Resource$Api$V1(this.context); + } + } + run_v1.Resource$Api = Resource$Api; + class Resource$Api$V1 { + constructor(context) { + this.context = context; + this.namespaces = new Resource$Api$V1$Namespaces(this.context); + } + } + run_v1.Resource$Api$V1 = Resource$Api$V1; + class Resource$Api$V1$Namespaces { + constructor(context) { + this.context = context; + this.secrets = new Resource$Api$V1$Namespaces$Secrets(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Api$V1$Namespaces = Resource$Api$V1$Namespaces; + class Resource$Api$V1$Namespaces$Secrets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/api/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceSecret(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/api/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Api$V1$Namespaces$Secrets = Resource$Api$V1$Namespaces$Secrets; + class Resource$Namespaces { + constructor(context) { + this.context = context; + this.authorizeddomains = new Resource$Namespaces$Authorizeddomains(this.context); + this.configurations = new Resource$Namespaces$Configurations(this.context); + this.domainmappings = new Resource$Namespaces$Domainmappings(this.context); + this.revisions = new Resource$Namespaces$Revisions(this.context); + this.routes = new Resource$Namespaces$Routes(this.context); + this.services = new Resource$Namespaces$Services(this.context); + } + } + run_v1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/domains.cloudrun.com/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; + class Resource$Namespaces$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; + class Resource$Namespaces$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; + class Resource$Namespaces$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; + class Resource$Namespaces$Routes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; + class Resource$Namespaces$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Namespaces$Services = Resource$Namespaces$Services; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains(this.context); + this.configurations = new Resource$Projects$Locations$Configurations(this.context); + this.domainmappings = new Resource$Projects$Locations$Domainmappings(this.context); + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + this.revisions = new Resource$Projects$Locations$Revisions(this.context); + this.routes = new Resource$Projects$Locations$Routes(this.context); + this.secrets = new Resource$Projects$Locations$Secrets(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; + class Resource$Projects$Locations$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; + class Resource$Projects$Locations$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; + class Resource$Projects$Locations$Namespaces { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; + class Resource$Projects$Locations$Routes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; + class Resource$Projects$Locations$Secrets { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceSecret(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Secrets = Resource$Projects$Locations$Secrets; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; +})(run_v1 = exports.run_v1 || (exports.run_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 5522: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.run_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var run_v1alpha1; +(function (run_v1alpha1) { + /** + * Cloud Run API + * + * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * + * @example + * const {google} = require('googleapis'); + * const run = google.run('v1alpha1'); + * + * @namespace run + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Run + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); + } + } + run_v1alpha1.Run = Run; + class Resource$Namespaces { + constructor(context) { + this.context = context; + this.authorizeddomains = new Resource$Namespaces$Authorizeddomains(this.context); + this.cloudauditlogssources = new Resource$Namespaces$Cloudauditlogssources(this.context); + this.cloudpubsubsources = new Resource$Namespaces$Cloudpubsubsources(this.context); + this.cloudschedulersources = new Resource$Namespaces$Cloudschedulersources(this.context); + this.cloudstoragesources = new Resource$Namespaces$Cloudstoragesources(this.context); + this.configurations = new Resource$Namespaces$Configurations(this.context); + this.domainmappings = new Resource$Namespaces$Domainmappings(this.context); + this.revisions = new Resource$Namespaces$Revisions(this.context); + this.routes = new Resource$Namespaces$Routes(this.context); + this.services = new Resource$Namespaces$Services(this.context); + this.triggers = new Resource$Namespaces$Triggers(this.context); + } + } + run_v1alpha1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/domains.cloudrun.com/v1alpha1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Authorizeddomains = Resource$Namespaces$Authorizeddomains; + class Resource$Namespaces$Cloudauditlogssources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Cloudauditlogssources = Resource$Namespaces$Cloudauditlogssources; + class Resource$Namespaces$Cloudpubsubsources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Cloudpubsubsources = Resource$Namespaces$Cloudpubsubsources; + class Resource$Namespaces$Cloudschedulersources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceCloudSchedulerSource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Cloudschedulersources = Resource$Namespaces$Cloudschedulersources; + class Resource$Namespaces$Cloudstoragesources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/events.cloud.google.com/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceCloudStorageSource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/events.cloud.google.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Cloudstoragesources = Resource$Namespaces$Cloudstoragesources; + class Resource$Namespaces$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/serving.knative.dev/v1alpha1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Configurations = Resource$Namespaces$Configurations; + class Resource$Namespaces$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/domains.cloudrun.com/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/domains.cloudrun.com/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Domainmappings = Resource$Namespaces$Domainmappings; + class Resource$Namespaces$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Revisions = Resource$Namespaces$Revisions; + class Resource$Namespaces$Routes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Routes = Resource$Namespaces$Routes; + class Resource$Namespaces$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/serving.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Services = Resource$Namespaces$Services; + class Resource$Namespaces$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/eventing.knative.dev/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Namespaces$Triggers = Resource$Namespaces$Triggers; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.authorizeddomains = new Resource$Projects$Locations$Authorizeddomains(this.context); + this.cloudauditlogssources = new Resource$Projects$Locations$Cloudauditlogssources(this.context); + this.cloudpubsubsources = new Resource$Projects$Locations$Cloudpubsubsources(this.context); + this.cloudschedulersources = new Resource$Projects$Locations$Cloudschedulersources(this.context); + this.cloudstoragesources = new Resource$Projects$Locations$Cloudstoragesources(this.context); + this.configurations = new Resource$Projects$Locations$Configurations(this.context); + this.domainmappings = new Resource$Projects$Locations$Domainmappings(this.context); + this.revisions = new Resource$Projects$Locations$Revisions(this.context); + this.routes = new Resource$Projects$Locations$Routes(this.context); + this.services = new Resource$Projects$Locations$Services(this.context); + this.triggers = new Resource$Projects$Locations$Triggers(this.context); + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Authorizeddomains { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/authorizeddomains').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Authorizeddomains = Resource$Projects$Locations$Authorizeddomains; + class Resource$Projects$Locations$Cloudauditlogssources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudauditlogssources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Cloudauditlogssources = Resource$Projects$Locations$Cloudauditlogssources; + class Resource$Projects$Locations$Cloudpubsubsources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudpubsubsources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Cloudpubsubsources = Resource$Projects$Locations$Cloudpubsubsources; + class Resource$Projects$Locations$Cloudschedulersources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudschedulersources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceCloudSchedulerSource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Cloudschedulersources = Resource$Projects$Locations$Cloudschedulersources; + class Resource$Projects$Locations$Cloudstoragesources { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/cloudstoragesources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceCloudStorageSource(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Cloudstoragesources = Resource$Projects$Locations$Cloudstoragesources; + class Resource$Projects$Locations$Configurations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/configurations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Configurations = Resource$Projects$Locations$Configurations; + class Resource$Projects$Locations$Domainmappings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/domainmappings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Domainmappings = Resource$Projects$Locations$Domainmappings; + class Resource$Projects$Locations$Revisions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/revisions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Revisions = Resource$Projects$Locations$Revisions; + class Resource$Projects$Locations$Routes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/routes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Routes = Resource$Projects$Locations$Routes; + class Resource$Projects$Locations$Services { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + replaceService(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Services = Resource$Projects$Locations$Services; + class Resource$Projects$Locations$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1alpha1.Resource$Projects$Locations$Triggers = Resource$Projects$Locations$Triggers; +})(run_v1alpha1 = exports.run_v1alpha1 || (exports.run_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 70121: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.run_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var run_v1beta1; +(function (run_v1beta1) { + /** + * Cloud Run API + * + * Deploy and manage user provided container images that scale automatically based on HTTP traffic. + * + * @example + * const {google} = require('googleapis'); + * const run = google.run('v1beta1'); + * + * @namespace run + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Run + */ + class Run { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customresourcedefinitions = new Resource$Customresourcedefinitions(this.context); + this.namespaces = new Resource$Namespaces(this.context); + this.projects = new Resource$Projects(this.context); + } + } + run_v1beta1.Run = Run; + class Resource$Customresourcedefinitions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/apis/apiextensions.k8s.io/v1beta1/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1beta1.Resource$Customresourcedefinitions = Resource$Customresourcedefinitions; + class Resource$Namespaces { + constructor(context) { + this.context = context; + this.customresourcedefinitions = new Resource$Namespaces$Customresourcedefinitions(this.context); + } + } + run_v1beta1.Resource$Namespaces = Resource$Namespaces; + class Resource$Namespaces$Customresourcedefinitions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/apis/apiextensions.k8s.io/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1beta1.Resource$Namespaces$Customresourcedefinitions = Resource$Namespaces$Customresourcedefinitions; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + run_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.customresourcedefinitions = new Resource$Projects$Locations$Customresourcedefinitions(this.context); + } + } + run_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Customresourcedefinitions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://run.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/customresourcedefinitions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + run_v1beta1.Resource$Projects$Locations$Customresourcedefinitions = Resource$Projects$Locations$Customresourcedefinitions; +})(run_v1beta1 = exports.run_v1beta1 || (exports.run_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 58489: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.runtimeconfig = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(75440); +const v1beta1_1 = __nccwpck_require__(35876); +exports.VERSIONS = { + v1: v1_1.runtimeconfig_v1.Runtimeconfig, + v1beta1: v1beta1_1.runtimeconfig_v1beta1.Runtimeconfig, +}; +function runtimeconfig(versionOrOptions) { + return googleapis_common_1.getAPI('runtimeconfig', versionOrOptions, exports.VERSIONS, this); +} +exports.runtimeconfig = runtimeconfig; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 75440: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.runtimeconfig_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var runtimeconfig_v1; +(function (runtimeconfig_v1) { + /** + * Cloud Runtime Configuration API + * + * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. + * + * @example + * const {google} = require('googleapis'); + * const runtimeconfig = google.runtimeconfig('v1'); + * + * @namespace runtimeconfig + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Runtimeconfig + */ + class Runtimeconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + } + } + runtimeconfig_v1.Runtimeconfig = Runtimeconfig; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + runtimeconfig_v1.Resource$Operations = Resource$Operations; +})(runtimeconfig_v1 = exports.runtimeconfig_v1 || (exports.runtimeconfig_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 35876: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.runtimeconfig_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var runtimeconfig_v1beta1; +(function (runtimeconfig_v1beta1) { + /** + * Cloud Runtime Configuration API + * + * The Runtime Configurator allows you to dynamically configure and expose variables through Google Cloud Platform. In addition, you can also set Watchers and Waiters that will watch for changes to your data and return based on certain conditions. + * + * @example + * const {google} = require('googleapis'); + * const runtimeconfig = google.runtimeconfig('v1beta1'); + * + * @namespace runtimeconfig + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Runtimeconfig + */ + class Runtimeconfig { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + runtimeconfig_v1beta1.Runtimeconfig = Runtimeconfig; + class Resource$Projects { + constructor(context) { + this.context = context; + this.configs = new Resource$Projects$Configs(this.context); + } + } + runtimeconfig_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Configs { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Configs$Operations(this.context); + this.variables = new Resource$Projects$Configs$Variables(this.context); + this.waiters = new Resource$Projects$Configs$Waiters(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + runtimeconfig_v1beta1.Resource$Projects$Configs = Resource$Projects$Configs; + class Resource$Projects$Configs$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + runtimeconfig_v1beta1.Resource$Projects$Configs$Operations = Resource$Projects$Configs$Operations; + class Resource$Projects$Configs$Variables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + runtimeconfig_v1beta1.Resource$Projects$Configs$Variables = Resource$Projects$Configs$Variables; + class Resource$Projects$Configs$Waiters { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/waiters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://runtimeconfig.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + runtimeconfig_v1beta1.Resource$Projects$Configs$Waiters = Resource$Projects$Configs$Waiters; +})(runtimeconfig_v1beta1 = exports.runtimeconfig_v1beta1 || (exports.runtimeconfig_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 46855: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.safebrowsing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v4_1 = __nccwpck_require__(48432); +exports.VERSIONS = { + v4: v4_1.safebrowsing_v4.Safebrowsing, +}; +function safebrowsing(versionOrOptions) { + return googleapis_common_1.getAPI('safebrowsing', versionOrOptions, exports.VERSIONS, this); +} +exports.safebrowsing = safebrowsing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 48432: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.safebrowsing_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var safebrowsing_v4; +(function (safebrowsing_v4) { + /** + * Safe Browsing API + * + * Enables client applications to check web resources (most commonly URLs) against Google-generated lists of unsafe web resources. The Safe Browsing APIs are for non-commercial use only. If you need to use APIs to detect malicious URLs for commercial purposes – meaning “for sale or revenue-generating purposes” – please refer to the Web Risk API. + * + * @example + * const {google} = require('googleapis'); + * const safebrowsing = google.safebrowsing('v4'); + * + * @namespace safebrowsing + * @type {Function} + * @version v4 + * @variation v4 + * @param {object=} options Options for Safebrowsing + */ + class Safebrowsing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.encodedFullHashes = new Resource$Encodedfullhashes(this.context); + this.encodedUpdates = new Resource$Encodedupdates(this.context); + this.fullHashes = new Resource$Fullhashes(this.context); + this.threatHits = new Resource$Threathits(this.context); + this.threatLists = new Resource$Threatlists(this.context); + this.threatListUpdates = new Resource$Threatlistupdates(this.context); + this.threatMatches = new Resource$Threatmatches(this.context); + } + } + safebrowsing_v4.Safebrowsing = Safebrowsing; + class Resource$Encodedfullhashes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/encodedFullHashes/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Encodedfullhashes = Resource$Encodedfullhashes; + class Resource$Encodedupdates { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/encodedUpdates/{encodedRequest}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['encodedRequest'], + pathParams: ['encodedRequest'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Encodedupdates = Resource$Encodedupdates; + class Resource$Fullhashes { + constructor(context) { + this.context = context; + } + find(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/fullHashes:find').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Fullhashes = Resource$Fullhashes; + class Resource$Threathits { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatHits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Threathits = Resource$Threathits; + class Resource$Threatlists { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatLists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Threatlists = Resource$Threatlists; + class Resource$Threatlistupdates { + constructor(context) { + this.context = context; + } + fetch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatListUpdates:fetch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Threatlistupdates = Resource$Threatlistupdates; + class Resource$Threatmatches { + constructor(context) { + this.context = context; + } + find(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://safebrowsing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/threatMatches:find').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + safebrowsing_v4.Resource$Threatmatches = Resource$Threatmatches; +})(safebrowsing_v4 = exports.safebrowsing_v4 || (exports.safebrowsing_v4 = {})); +//# sourceMappingURL=v4.js.map + +/***/ }), + +/***/ 30746: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.sasportal = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1alpha1_1 = __nccwpck_require__(32724); +exports.VERSIONS = { + v1alpha1: v1alpha1_1.sasportal_v1alpha1.Sasportal, +}; +function sasportal(versionOrOptions) { + return googleapis_common_1.getAPI('sasportal', versionOrOptions, exports.VERSIONS, this); +} +exports.sasportal = sasportal; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 32724: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sasportal_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var sasportal_v1alpha1; +(function (sasportal_v1alpha1) { + /** + * SAS Portal API + * + * + * + * @example + * const {google} = require('googleapis'); + * const sasportal = google.sasportal('v1alpha1'); + * + * @namespace sasportal + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Sasportal + */ + class Sasportal { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.customers = new Resource$Customers(this.context); + this.installer = new Resource$Installer(this.context); + this.nodes = new Resource$Nodes(this.context); + this.policies = new Resource$Policies(this.context); + } + } + sasportal_v1alpha1.Sasportal = Sasportal; + class Resource$Customers { + constructor(context) { + this.context = context; + this.devices = new Resource$Customers$Devices(this.context); + this.nodes = new Resource$Customers$Nodes(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/customers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers = Resource$Customers; + class Resource$Customers$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Devices = Resource$Customers$Devices; + class Resource$Customers$Nodes { + constructor(context) { + this.context = context; + this.nodes = new Resource$Customers$Nodes$Nodes(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes = Resource$Customers$Nodes; + class Resource$Customers$Nodes$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Customers$Nodes$Nodes = Resource$Customers$Nodes$Nodes; + class Resource$Installer { + constructor(context) { + this.context = context; + } + generateSecret(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:generateSecret').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/installer:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Installer = Resource$Installer; + class Resource$Nodes { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes(this.context); + } + } + sasportal_v1alpha1.Resource$Nodes = Resource$Nodes; + class Resource$Nodes$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + signDevice(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:signDevice').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:updateSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Devices = Resource$Nodes$Devices; + class Resource$Nodes$Nodes { + constructor(context) { + this.context = context; + this.devices = new Resource$Nodes$Nodes$Devices(this.context); + this.nodes = new Resource$Nodes$Nodes$Nodes(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes = Resource$Nodes$Nodes; + class Resource$Nodes$Nodes$Devices { + constructor(context) { + this.context = context; + } + bulk(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:bulk').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + createSigned(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices:createSigned').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/devices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes$Devices = Resource$Nodes$Nodes$Devices; + class Resource$Nodes$Nodes$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Nodes$Nodes$Nodes = Resource$Nodes$Nodes$Nodes; + class Resource$Policies { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:get').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + test(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sasportal.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/policies:test').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sasportal_v1alpha1.Resource$Policies = Resource$Policies; +})(sasportal_v1alpha1 = exports.sasportal_v1alpha1 || (exports.sasportal_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 41268: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.script = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(28936); +exports.VERSIONS = { + v1: v1_1.script_v1.Script, +}; +function script(versionOrOptions) { + return googleapis_common_1.getAPI('script', versionOrOptions, exports.VERSIONS, this); +} +exports.script = script; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 28936: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.script_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var script_v1; +(function (script_v1) { + /** + * Apps Script API + * + * Manages and executes Google Apps Script projects. + * + * @example + * const {google} = require('googleapis'); + * const script = google.script('v1'); + * + * @namespace script + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Script + */ + class Script { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.processes = new Resource$Processes(this.context); + this.projects = new Resource$Projects(this.context); + this.scripts = new Resource$Scripts(this.context); + } + } + script_v1.Script = Script; + class Resource$Processes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/processes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listScriptProcesses(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/processes:listScriptProcesses').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + script_v1.Resource$Processes = Resource$Processes; + class Resource$Projects { + constructor(context) { + this.context = context; + this.deployments = new Resource$Projects$Deployments(this.context); + this.versions = new Resource$Projects$Versions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getMetrics(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/metrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateContent(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/content').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + script_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Deployments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/deployments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/deployments/{deploymentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['scriptId', 'deploymentId'], + pathParams: ['deploymentId', 'scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + script_v1.Resource$Projects$Deployments = Resource$Projects$Deployments; + class Resource$Projects$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/versions/{versionNumber}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId', 'versionNumber'], + pathParams: ['scriptId', 'versionNumber'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{scriptId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + script_v1.Resource$Projects$Versions = Resource$Projects$Versions; + class Resource$Scripts { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://script.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/scripts/{scriptId}:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['scriptId'], + pathParams: ['scriptId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + script_v1.Resource$Scripts = Resource$Scripts; +})(script_v1 = exports.script_v1 || (exports.script_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 73863: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.searchconsole = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(29564); +exports.VERSIONS = { + v1: v1_1.searchconsole_v1.Searchconsole, +}; +function searchconsole(versionOrOptions) { + return googleapis_common_1.getAPI('searchconsole', versionOrOptions, exports.VERSIONS, this); +} +exports.searchconsole = searchconsole; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 29564: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.searchconsole_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var searchconsole_v1; +(function (searchconsole_v1) { + /** + * Google Search Console URL Testing Tools API + * + * Provides tools for running validation tests against single URLs + * + * @example + * const {google} = require('googleapis'); + * const searchconsole = google.searchconsole('v1'); + * + * @namespace searchconsole + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Searchconsole + */ + class Searchconsole { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.urlTestingTools = new Resource$Urltestingtools(this.context); + } + } + searchconsole_v1.Searchconsole = Searchconsole; + class Resource$Urltestingtools { + constructor(context) { + this.context = context; + this.mobileFriendlyTest = new Resource$Urltestingtools$Mobilefriendlytest(this.context); + } + } + searchconsole_v1.Resource$Urltestingtools = Resource$Urltestingtools; + class Resource$Urltestingtools$Mobilefriendlytest { + constructor(context) { + this.context = context; + } + run(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://searchconsole.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/urlTestingTools/mobileFriendlyTest:run').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + searchconsole_v1.Resource$Urltestingtools$Mobilefriendlytest = Resource$Urltestingtools$Mobilefriendlytest; +})(searchconsole_v1 = exports.searchconsole_v1 || (exports.searchconsole_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 36147: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.secretmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(493); +const v1beta1_1 = __nccwpck_require__(94974); +exports.VERSIONS = { + v1: v1_1.secretmanager_v1.Secretmanager, + v1beta1: v1beta1_1.secretmanager_v1beta1.Secretmanager, +}; +function secretmanager(versionOrOptions) { + return googleapis_common_1.getAPI('secretmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.secretmanager = secretmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 493: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.secretmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var secretmanager_v1; +(function (secretmanager_v1) { + /** + * Secret Manager API + * + * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. + * + * @example + * const {google} = require('googleapis'); + * const secretmanager = google.secretmanager('v1'); + * + * @namespace secretmanager + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Secretmanager + */ + class Secretmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + secretmanager_v1.Secretmanager = Secretmanager; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.secrets = new Resource$Projects$Secrets(this.context); + } + } + secretmanager_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { + constructor(context) { + this.context = context; + this.versions = new Resource$Projects$Secrets$Versions(this.context); + } + addVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Secrets = Resource$Projects$Secrets; + class Resource$Projects$Secrets$Versions { + constructor(context) { + this.context = context; + } + access(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + destroy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1 = exports.secretmanager_v1 || (exports.secretmanager_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 94974: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.secretmanager_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var secretmanager_v1beta1; +(function (secretmanager_v1beta1) { + /** + * Secret Manager API + * + * Stores sensitive data such as API keys, passwords, and certificates. Provides convenience while improving security. + * + * @example + * const {google} = require('googleapis'); + * const secretmanager = google.secretmanager('v1beta1'); + * + * @namespace secretmanager + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Secretmanager + */ + class Secretmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + secretmanager_v1beta1.Secretmanager = Secretmanager; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + this.secrets = new Resource$Projects$Secrets(this.context); + } + } + secretmanager_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Secrets { + constructor(context) { + this.context = context; + this.versions = new Resource$Projects$Secrets$Versions(this.context); + } + addVersion(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}:addVersion').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/secrets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1beta1.Resource$Projects$Secrets = Resource$Projects$Secrets; + class Resource$Projects$Secrets$Versions { + constructor(context) { + this.context = context; + } + access(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:access').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + destroy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:destroy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://secretmanager.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + secretmanager_v1beta1.Resource$Projects$Secrets$Versions = Resource$Projects$Secrets$Versions; +})(secretmanager_v1beta1 = exports.secretmanager_v1beta1 || (exports.secretmanager_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 95498: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.securitycenter = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(61585); +const v1beta1_1 = __nccwpck_require__(16192); +const v1p1alpha1_1 = __nccwpck_require__(34240); +const v1p1beta1_1 = __nccwpck_require__(66465); +exports.VERSIONS = { + v1: v1_1.securitycenter_v1.Securitycenter, + v1beta1: v1beta1_1.securitycenter_v1beta1.Securitycenter, + v1p1alpha1: v1p1alpha1_1.securitycenter_v1p1alpha1.Securitycenter, + v1p1beta1: v1p1beta1_1.securitycenter_v1p1beta1.Securitycenter, +}; +function securitycenter(versionOrOptions) { + return googleapis_common_1.getAPI('securitycenter', versionOrOptions, exports.VERSIONS, this); +} +exports.securitycenter = securitycenter; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 61585: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.securitycenter_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var securitycenter_v1; +(function (securitycenter_v1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Notificationconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1 = exports.securitycenter_v1 || (exports.securitycenter_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 16192: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.securitycenter_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var securitycenter_v1beta1; +(function (securitycenter_v1beta1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1beta1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1beta1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1beta1 = exports.securitycenter_v1beta1 || (exports.securitycenter_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 34240: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.securitycenter_v1p1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var securitycenter_v1p1alpha1; +(function (securitycenter_v1p1alpha1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1p1alpha1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1p1alpha1 + * @variation v1p1alpha1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1p1alpha1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.operations = new Resource$Organizations$Operations(this.context); + } + } + securitycenter_v1p1alpha1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1alpha1.Resource$Organizations$Operations = Resource$Organizations$Operations; +})(securitycenter_v1p1alpha1 = exports.securitycenter_v1p1alpha1 || (exports.securitycenter_v1p1alpha1 = {})); +//# sourceMappingURL=v1p1alpha1.js.map + +/***/ }), + +/***/ 66465: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.securitycenter_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var securitycenter_v1p1beta1; +(function (securitycenter_v1p1beta1) { + /** + * Security Command Center API + * + * Security Command Center API provides access to temporal views of assets and findings within an organization. + * + * @example + * const {google} = require('googleapis'); + * const securitycenter = google.securitycenter('v1p1beta1'); + * + * @namespace securitycenter + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Securitycenter + */ + class Securitycenter { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.organizations = new Resource$Organizations(this.context); + } + } + securitycenter_v1p1beta1.Securitycenter = Securitycenter; + class Resource$Organizations { + constructor(context) { + this.context = context; + this.assets = new Resource$Organizations$Assets(this.context); + this.notificationConfigs = new Resource$Organizations$Notificationconfigs(this.context); + this.operations = new Resource$Organizations$Operations(this.context); + this.sources = new Resource$Organizations$Sources(this.context); + } + getOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateOrganizationSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations = Resource$Organizations; + class Resource$Organizations$Assets { + constructor(context) { + this.context = context; + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + runDiscovery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/assets:runDiscovery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Assets = Resource$Organizations$Assets; + class Resource$Organizations$Notificationconfigs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Notificationconfigs = Resource$Organizations$Notificationconfigs; + class Resource$Organizations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Operations = Resource$Organizations$Operations; + class Resource$Organizations$Sources { + constructor(context) { + this.context = context; + this.findings = new Resource$Organizations$Sources$Findings(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/sources').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Sources = Resource$Organizations$Sources; + class Resource$Organizations$Sources$Findings { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + group(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings:group').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setState(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}:setState').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateSecurityMarks(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://securitycenter.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + securitycenter_v1p1beta1.Resource$Organizations$Sources$Findings = Resource$Organizations$Sources$Findings; +})(securitycenter_v1p1beta1 = exports.securitycenter_v1p1beta1 || (exports.securitycenter_v1p1beta1 = {})); +//# sourceMappingURL=v1p1beta1.js.map + +/***/ }), + +/***/ 39919: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.serviceconsumermanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(65409); +const v1beta1_1 = __nccwpck_require__(12496); +exports.VERSIONS = { + v1: v1_1.serviceconsumermanagement_v1.Serviceconsumermanagement, + v1beta1: v1beta1_1.serviceconsumermanagement_v1beta1.Serviceconsumermanagement, +}; +function serviceconsumermanagement(versionOrOptions) { + return googleapis_common_1.getAPI('serviceconsumermanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.serviceconsumermanagement = serviceconsumermanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 65409: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serviceconsumermanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var serviceconsumermanagement_v1; +(function (serviceconsumermanagement_v1) { + /** + * Service Consumer Management API + * + * Manages the service consumers of a Service Infrastructure service. + * + * @example + * const {google} = require('googleapis'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1'); + * + * @namespace serviceconsumermanagement + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Serviceconsumermanagement + */ + class Serviceconsumermanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceconsumermanagement_v1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.tenancyUnits = new Resource$Services$Tenancyunits(this.context); + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Services = Resource$Services; + class Resource$Services$Tenancyunits { + constructor(context) { + this.context = context; + } + addProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:addProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + applyProjectConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:applyProjectConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + attachProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:attachProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + deleteProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:deleteProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tenancyUnits').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:removeProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undeleteProject(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:undeleteProject').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1.Resource$Services$Tenancyunits = Resource$Services$Tenancyunits; +})(serviceconsumermanagement_v1 = exports.serviceconsumermanagement_v1 || (exports.serviceconsumermanagement_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 12496: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serviceconsumermanagement_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var serviceconsumermanagement_v1beta1; +(function (serviceconsumermanagement_v1beta1) { + /** + * Service Consumer Management API + * + * Manages the service consumers of a Service Infrastructure service. + * + * @example + * const {google} = require('googleapis'); + * const serviceconsumermanagement = google.serviceconsumermanagement('v1beta1'); + * + * @namespace serviceconsumermanagement + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Serviceconsumermanagement + */ + class Serviceconsumermanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceconsumermanagement_v1beta1.Serviceconsumermanagement = Serviceconsumermanagement; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); + } + } + serviceconsumermanagement_v1beta1.Resource$Services = Resource$Services; + class Resource$Services$Consumerquotametrics { + constructor(context) { + this.context = context; + this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + importProducerOverrides(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1beta1/{+parent}/consumerQuotaMetrics:importProducerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; + class Resource$Services$Consumerquotametrics$Limits { + constructor(context) { + this.context = context; + this.producerOverrides = new Resource$Services$Consumerquotametrics$Limits$Produceroverrides(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Produceroverrides { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/producerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceconsumermanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceconsumermanagement_v1beta1.Resource$Services$Consumerquotametrics$Limits$Produceroverrides = Resource$Services$Consumerquotametrics$Limits$Produceroverrides; +})(serviceconsumermanagement_v1beta1 = exports.serviceconsumermanagement_v1beta1 || (exports.serviceconsumermanagement_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 7141: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.servicecontrol = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(85594); +exports.VERSIONS = { + v1: v1_1.servicecontrol_v1.Servicecontrol, +}; +function servicecontrol(versionOrOptions) { + return googleapis_common_1.getAPI('servicecontrol', versionOrOptions, exports.VERSIONS, this); +} +exports.servicecontrol = servicecontrol; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 85594: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicecontrol_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var servicecontrol_v1; +(function (servicecontrol_v1) { + /** + * Service Control API + * + * Provides control plane functionality to managed services, such as logging, monitoring, and status checks. + * + * @example + * const {google} = require('googleapis'); + * const servicecontrol = google.servicecontrol('v1'); + * + * @namespace servicecontrol + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Servicecontrol + */ + class Servicecontrol { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.services = new Resource$Services(this.context); + } + } + servicecontrol_v1.Servicecontrol = Servicecontrol; + class Resource$Services { + constructor(context) { + this.context = context; + } + allocateQuota(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:allocateQuota').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + check(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:check').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + report(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicecontrol.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:report').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicecontrol_v1.Resource$Services = Resource$Services; +})(servicecontrol_v1 = exports.servicecontrol_v1 || (exports.servicecontrol_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 65338: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.servicedirectory = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta1_1 = __nccwpck_require__(39660); +exports.VERSIONS = { + v1beta1: v1beta1_1.servicedirectory_v1beta1.Servicedirectory, +}; +function servicedirectory(versionOrOptions) { + return googleapis_common_1.getAPI('servicedirectory', versionOrOptions, exports.VERSIONS, this); +} +exports.servicedirectory = servicedirectory; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 39660: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicedirectory_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var servicedirectory_v1beta1; +(function (servicedirectory_v1beta1) { + /** + * Service Directory API + * + * Service Directory is a platform for discovering, publishing, and connecting services. + * + * @example + * const {google} = require('googleapis'); + * const servicedirectory = google.servicedirectory('v1beta1'); + * + * @namespace servicedirectory + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Servicedirectory + */ + class Servicedirectory { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + servicedirectory_v1beta1.Servicedirectory = Servicedirectory; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + servicedirectory_v1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.namespaces = new Resource$Projects$Locations$Namespaces(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicedirectory_v1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Namespaces { + constructor(context) { + this.context = context; + this.services = new Resource$Projects$Locations$Namespaces$Services(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/namespaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces = Resource$Projects$Locations$Namespaces; + class Resource$Projects$Locations$Namespaces$Services { + constructor(context) { + this.context = context; + this.endpoints = new Resource$Projects$Locations$Namespaces$Services$Endpoints(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resolve(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:resolve').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services = Resource$Projects$Locations$Namespaces$Services; + class Resource$Projects$Locations$Namespaces$Services$Endpoints { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/endpoints').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicedirectory.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicedirectory_v1beta1.Resource$Projects$Locations$Namespaces$Services$Endpoints = Resource$Projects$Locations$Namespaces$Services$Endpoints; +})(servicedirectory_v1beta1 = exports.servicedirectory_v1beta1 || (exports.servicedirectory_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 71081: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.servicemanagement = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(30458); +exports.VERSIONS = { + v1: v1_1.servicemanagement_v1.Servicemanagement, +}; +function servicemanagement(versionOrOptions) { + return googleapis_common_1.getAPI('servicemanagement', versionOrOptions, exports.VERSIONS, this); +} +exports.servicemanagement = servicemanagement; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 30458: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicemanagement_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var servicemanagement_v1; +(function (servicemanagement_v1) { + /** + * Service Management API + * + * Google Service Management allows service producers to publish their services on Google Cloud Platform so that they can be discovered and used by service consumers. + * + * @example + * const {google} = require('googleapis'); + * const servicemanagement = google.servicemanagement('v1'); + * + * @namespace servicemanagement + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Servicemanagement + */ + class Servicemanagement { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicemanagement_v1.Servicemanagement = Servicemanagement; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicemanagement_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.configs = new Resource$Services$Configs(this.context); + this.consumers = new Resource$Services$Consumers(this.context); + this.rollouts = new Resource$Services$Rollouts(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + generateConfigReport(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services:generateConfigReport').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicemanagement_v1.Resource$Services = Resource$Services; + class Resource$Services$Configs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs/{configId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName', 'configId'], + pathParams: ['configId', 'serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/configs:submit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Configs = Resource$Services$Configs; + class Resource$Services$Consumers { + constructor(context) { + this.context = context; + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Consumers = Resource$Services$Consumers; + class Resource$Services$Rollouts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts/{rolloutId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName', 'rolloutId'], + pathParams: ['rolloutId', 'serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicemanagement.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/services/{serviceName}/rollouts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['serviceName'], + pathParams: ['serviceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicemanagement_v1.Resource$Services$Rollouts = Resource$Services$Rollouts; +})(servicemanagement_v1 = exports.servicemanagement_v1 || (exports.servicemanagement_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 6337: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.servicenetworking = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(32900); +const v1beta_1 = __nccwpck_require__(81462); +exports.VERSIONS = { + v1: v1_1.servicenetworking_v1.Servicenetworking, + v1beta: v1beta_1.servicenetworking_v1beta.Servicenetworking, +}; +function servicenetworking(versionOrOptions) { + return googleapis_common_1.getAPI('servicenetworking', versionOrOptions, exports.VERSIONS, this); +} +exports.servicenetworking = servicenetworking; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 32900: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicenetworking_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var servicenetworking_v1; +(function (servicenetworking_v1) { + /** + * Service Networking API + * + * Provides automatic management of network configurations necessary for certain services. + * + * @example + * const {google} = require('googleapis'); + * const servicenetworking = google.servicenetworking('v1'); + * + * @namespace servicenetworking + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Servicenetworking + */ + class Servicenetworking { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicenetworking_v1.Servicenetworking = Servicenetworking; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.connections = new Resource$Services$Connections(this.context); + this.roles = new Resource$Services$Roles(this.context); + } + addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:disableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enableVpcServiceControls(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:enableVpcServiceControls').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + validate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}:validate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1.Resource$Services = Resource$Services; + class Resource$Services$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1.Resource$Services$Connections = Resource$Services$Connections; + class Resource$Services$Roles { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/roles:add').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1.Resource$Services$Roles = Resource$Services$Roles; +})(servicenetworking_v1 = exports.servicenetworking_v1 || (exports.servicenetworking_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 81462: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.servicenetworking_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var servicenetworking_v1beta; +(function (servicenetworking_v1beta) { + /** + * Service Networking API + * + * Provides automatic management of network configurations necessary for certain services. + * + * @example + * const {google} = require('googleapis'); + * const servicenetworking = google.servicenetworking('v1beta'); + * + * @namespace servicenetworking + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Servicenetworking + */ + class Servicenetworking { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + servicenetworking_v1beta.Servicenetworking = Servicenetworking; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1beta.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.connections = new Resource$Services$Connections(this.context); + } + addSubnetwork(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}:addSubnetwork').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + searchRange(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}:searchRange').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateConnections(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1beta.Resource$Services = Resource$Services; + class Resource$Services$Connections { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://servicenetworking.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/connections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + servicenetworking_v1beta.Resource$Services$Connections = Resource$Services$Connections; +})(servicenetworking_v1beta = exports.servicenetworking_v1beta || (exports.servicenetworking_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 47223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.serviceusage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(80271); +const v1beta1_1 = __nccwpck_require__(59072); +exports.VERSIONS = { + v1: v1_1.serviceusage_v1.Serviceusage, + v1beta1: v1beta1_1.serviceusage_v1beta1.Serviceusage, +}; +function serviceusage(versionOrOptions) { + return googleapis_common_1.getAPI('serviceusage', versionOrOptions, exports.VERSIONS, this); +} +exports.serviceusage = serviceusage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 80271: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serviceusage_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var serviceusage_v1; +(function (serviceusage_v1) { + /** + * Service Usage API + * + * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. + * + * @example + * const {google} = require('googleapis'); + * const serviceusage = google.serviceusage('v1'); + * + * @namespace serviceusage + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Serviceusage + */ + class Serviceusage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceusage_v1.Serviceusage = Serviceusage; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + } + batchEnable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1.Resource$Services = Resource$Services; +})(serviceusage_v1 = exports.serviceusage_v1 || (exports.serviceusage_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 59072: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.serviceusage_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var serviceusage_v1beta1; +(function (serviceusage_v1beta1) { + /** + * Service Usage API + * + * Enables services that service consumers want to use on Google Cloud Platform, lists the available or enabled services, or disables services that service consumers no longer use. + * + * @example + * const {google} = require('googleapis'); + * const serviceusage = google.serviceusage('v1beta1'); + * + * @namespace serviceusage + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Serviceusage + */ + class Serviceusage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.services = new Resource$Services(this.context); + } + } + serviceusage_v1beta1.Serviceusage = Serviceusage; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Operations = Resource$Operations; + class Resource$Services { + constructor(context) { + this.context = context; + this.consumerQuotaMetrics = new Resource$Services$Consumerquotametrics(this.context); + } + batchEnable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services:batchEnable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + disable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:disable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + enable(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}:enable').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/services').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Services = Resource$Services; + class Resource$Services$Consumerquotametrics { + constructor(context) { + this.context = context; + this.limits = new Resource$Services$Consumerquotametrics$Limits(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerQuotaMetrics').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Services$Consumerquotametrics = Resource$Services$Consumerquotametrics; + class Resource$Services$Consumerquotametrics$Limits { + constructor(context) { + this.context = context; + this.adminOverrides = new Resource$Services$Consumerquotametrics$Limits$Adminoverrides(this.context); + this.consumerOverrides = new Resource$Services$Consumerquotametrics$Limits$Consumeroverrides(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits = Resource$Services$Consumerquotametrics$Limits; + class Resource$Services$Consumerquotametrics$Limits$Adminoverrides { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/adminOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Adminoverrides = Resource$Services$Consumerquotametrics$Limits$Adminoverrides; + class Resource$Services$Consumerquotametrics$Limits$Consumeroverrides { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+parent}/consumerOverrides').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://serviceusage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + serviceusage_v1beta1.Resource$Services$Consumerquotametrics$Limits$Consumeroverrides = Resource$Services$Consumerquotametrics$Limits$Consumeroverrides; +})(serviceusage_v1beta1 = exports.serviceusage_v1beta1 || (exports.serviceusage_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 60073: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.sheets = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v4_1 = __nccwpck_require__(37895); +exports.VERSIONS = { + v4: v4_1.sheets_v4.Sheets, +}; +function sheets(versionOrOptions) { + return googleapis_common_1.getAPI('sheets', versionOrOptions, exports.VERSIONS, this); +} +exports.sheets = sheets; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 37895: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sheets_v4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var sheets_v4; +(function (sheets_v4) { + /** + * Google Sheets API + * + * Reads and writes Google Sheets. + * + * @example + * const {google} = require('googleapis'); + * const sheets = google.sheets('v4'); + * + * @namespace sheets + * @type {Function} + * @version v4 + * @variation v4 + * @param {object=} options Options for Sheets + */ + class Sheets { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.spreadsheets = new Resource$Spreadsheets(this.context); + } + } + sheets_v4.Sheets = Sheets; + class Resource$Spreadsheets { + constructor(context) { + this.context = context; + this.developerMetadata = new Resource$Spreadsheets$Developermetadata(this.context); + this.sheets = new Resource$Spreadsheets$Sheets(this.context); + this.values = new Resource$Spreadsheets$Values(this.context); + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}:getByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets = Resource$Spreadsheets; + class Resource$Spreadsheets$Developermetadata { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata/{metadataId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId', 'metadataId'], + pathParams: ['metadataId', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + search(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/developerMetadata:search').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Developermetadata = Resource$Spreadsheets$Developermetadata; + class Resource$Spreadsheets$Sheets { + constructor(context) { + this.context = context; + } + copyTo(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/sheets/{sheetId}:copyTo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'sheetId'], + pathParams: ['sheetId', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Sheets = Resource$Spreadsheets$Sheets; + class Resource$Spreadsheets$Values { + constructor(context) { + this.context = context; + } + append(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:append').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchClear(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchClear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchClearByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchClearByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchGetByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchGetByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdateByDataFilter(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v4/spreadsheets/{spreadsheetId}/values:batchUpdateByDataFilter').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId'], + pathParams: ['spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + clear(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}:clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sheets.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v4/spreadsheets/{spreadsheetId}/values/{range}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['spreadsheetId', 'range'], + pathParams: ['range', 'spreadsheetId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sheets_v4.Resource$Spreadsheets$Values = Resource$Spreadsheets$Values; +})(sheets_v4 = exports.sheets_v4 || (exports.sheets_v4 = {})); +//# sourceMappingURL=v4.js.map + +/***/ }), + +/***/ 72899: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.siteVerification = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(71597); +exports.VERSIONS = { + v1: v1_1.siteVerification_v1.Siteverification, +}; +function siteVerification(versionOrOptions) { + return googleapis_common_1.getAPI('siteVerification', versionOrOptions, exports.VERSIONS, this); +} +exports.siteVerification = siteVerification; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 71597: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.siteVerification_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var siteVerification_v1; +(function (siteVerification_v1) { + /** + * Google Site Verification API + * + * Verifies ownership of websites or domains with Google. + * + * @example + * const {google} = require('googleapis'); + * const siteVerification = google.siteVerification('v1'); + * + * @namespace siteVerification + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Siteverification + */ + class Siteverification { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.webResource = new Resource$Webresource(this.context); + } + } + siteVerification_v1.Siteverification = Siteverification; + class Resource$Webresource { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getToken(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/token').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['verificationMethod'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/siteVerification/v1/webResource/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + siteVerification_v1.Resource$Webresource = Resource$Webresource; +})(siteVerification_v1 = exports.siteVerification_v1 || (exports.siteVerification_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 62936: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.slides = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(22098); +exports.VERSIONS = { + v1: v1_1.slides_v1.Slides, +}; +function slides(versionOrOptions) { + return googleapis_common_1.getAPI('slides', versionOrOptions, exports.VERSIONS, this); +} +exports.slides = slides; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 22098: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.slides_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var slides_v1; +(function (slides_v1) { + /** + * Google Slides API + * + * Reads and writes Google Slides presentations. + * + * @example + * const {google} = require('googleapis'); + * const slides = google.slides('v1'); + * + * @namespace slides + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Slides + */ + class Slides { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.presentations = new Resource$Presentations(this.context); + } + } + slides_v1.Slides = Slides; + class Resource$Presentations { + constructor(context) { + this.context = context; + this.pages = new Resource$Presentations$Pages(this.context); + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/presentations/{presentationId}:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['presentationId'], + pathParams: ['presentationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/presentations').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/presentations/{+presentationId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['presentationId'], + pathParams: ['presentationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + slides_v1.Resource$Presentations = Resource$Presentations; + class Resource$Presentations$Pages { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/presentations/{presentationId}/pages/{pageObjectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getThumbnail(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://slides.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/presentations/{presentationId}/pages/{pageObjectId}/thumbnail').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['presentationId', 'pageObjectId'], + pathParams: ['pageObjectId', 'presentationId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + slides_v1.Resource$Presentations$Pages = Resource$Presentations$Pages; +})(slides_v1 = exports.slides_v1 || (exports.slides_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 77315: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.sourcerepo = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(77692); +exports.VERSIONS = { + v1: v1_1.sourcerepo_v1.Sourcerepo, +}; +function sourcerepo(versionOrOptions) { + return googleapis_common_1.getAPI('sourcerepo', versionOrOptions, exports.VERSIONS, this); +} +exports.sourcerepo = sourcerepo; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 77692: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sourcerepo_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var sourcerepo_v1; +(function (sourcerepo_v1) { + /** + * Cloud Source Repositories API + * + * Accesses source code repositories hosted by Google. + * + * @example + * const {google} = require('googleapis'); + * const sourcerepo = google.sourcerepo('v1'); + * + * @namespace sourcerepo + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Sourcerepo + */ + class Sourcerepo { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + sourcerepo_v1.Sourcerepo = Sourcerepo; + class Resource$Projects { + constructor(context) { + this.context = context; + this.repos = new Resource$Projects$Repos(this.context); + } + getConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/config').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sourcerepo_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Repos { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/repos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sourcerepo.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sourcerepo_v1.Resource$Projects$Repos = Resource$Projects$Repos; +})(sourcerepo_v1 = exports.sourcerepo_v1 || (exports.sourcerepo_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 34583: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.spanner = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(43404); +exports.VERSIONS = { + v1: v1_1.spanner_v1.Spanner, +}; +function spanner(versionOrOptions) { + return googleapis_common_1.getAPI('spanner', versionOrOptions, exports.VERSIONS, this); +} +exports.spanner = spanner; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 43404: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.spanner_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var spanner_v1; +(function (spanner_v1) { + /** + * Cloud Spanner API + * + * Cloud Spanner is a managed, mission-critical, globally consistent and scalable relational database service. + * + * @example + * const {google} = require('googleapis'); + * const spanner = google.spanner('v1'); + * + * @namespace spanner + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Spanner + */ + class Spanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + spanner_v1.Spanner = Spanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instanceConfigs = new Resource$Projects$Instanceconfigs(this.context); + this.instances = new Resource$Projects$Instances(this.context); + } + } + spanner_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Instanceconfigs { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instanceConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instanceconfigs = Resource$Projects$Instanceconfigs; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + this.backupOperations = new Resource$Projects$Instances$Backupoperations(this.context); + this.backups = new Resource$Projects$Instances$Backups(this.context); + this.databaseOperations = new Resource$Projects$Instances$Databaseoperations(this.context); + this.databases = new Resource$Projects$Instances$Databases(this.context); + this.operations = new Resource$Projects$Instances$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Projects$Instances$Backupoperations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backupOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Backupoperations = Resource$Projects$Instances$Backupoperations; + class Resource$Projects$Instances$Backups { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Instances$Backups$Operations(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/backups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Backups = Resource$Projects$Instances$Backups; + class Resource$Projects$Instances$Backups$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Backups$Operations = Resource$Projects$Instances$Backups$Operations; + class Resource$Projects$Instances$Databaseoperations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databaseOperations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Databaseoperations = Resource$Projects$Instances$Databaseoperations; + class Resource$Projects$Instances$Databases { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Instances$Databases$Operations(this.context); + this.sessions = new Resource$Projects$Instances$Databases$Sessions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + dropDatabase(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getDdl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:getIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/databases:restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:setIamPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+resource}:testIamPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['resource'], + pathParams: ['resource'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + updateDdl(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/ddl').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Databases = Resource$Projects$Instances$Databases; + class Resource$Projects$Instances$Databases$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Databases$Operations = Resource$Projects$Instances$Databases$Operations; + class Resource$Projects$Instances$Databases$Sessions { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/sessions:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + beginTransaction(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:beginTransaction').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + commit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:commit').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + executeBatchDml(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:executeBatchDml').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + executeSql(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:executeSql').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + executeStreamingSql(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:executeStreamingSql').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+database}/sessions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['database'], + pathParams: ['database'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + partitionQuery(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:partitionQuery').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + partitionRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:partitionRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + read(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:read').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rollback(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:rollback').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + streamingRead(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+session}:streamingRead').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['session'], + pathParams: ['session'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Databases$Sessions = Resource$Projects$Instances$Databases$Sessions; + class Resource$Projects$Instances$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://spanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + spanner_v1.Resource$Projects$Instances$Operations = Resource$Projects$Instances$Operations; +})(spanner_v1 = exports.spanner_v1 || (exports.spanner_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 30423: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.speech = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(79405); +const v1p1beta1_1 = __nccwpck_require__(9283); +const v2beta1_1 = __nccwpck_require__(8065); +exports.VERSIONS = { + v1: v1_1.speech_v1.Speech, + v1p1beta1: v1p1beta1_1.speech_v1p1beta1.Speech, + v2beta1: v2beta1_1.speech_v2beta1.Speech, +}; +function speech(versionOrOptions) { + return googleapis_common_1.getAPI('speech', versionOrOptions, exports.VERSIONS, this); +} +exports.speech = speech; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 79405: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.speech_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var speech_v1; +(function (speech_v1) { + /** + * Cloud Speech-to-Text API + * + * Converts audio to text by applying powerful neural network models. + * + * @example + * const {google} = require('googleapis'); + * const speech = google.speech('v1'); + * + * @namespace speech + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Speech + */ + class Speech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.speech = new Resource$Speech(this.context); + } + } + speech_v1.Speech = Speech; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + speech_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Speech { + constructor(context) { + this.context = context; + } + longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1.Resource$Speech = Resource$Speech; +})(speech_v1 = exports.speech_v1 || (exports.speech_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 9283: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.speech_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var speech_v1p1beta1; +(function (speech_v1p1beta1) { + /** + * Cloud Speech-to-Text API + * + * Converts audio to text by applying powerful neural network models. + * + * @example + * const {google} = require('googleapis'); + * const speech = google.speech('v1p1beta1'); + * + * @namespace speech + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Speech + */ + class Speech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.speech = new Resource$Speech(this.context); + } + } + speech_v1p1beta1.Speech = Speech; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1p1beta1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v1p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + speech_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1p1beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Speech { + constructor(context) { + this.context = context; + } + longrunningrecognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/speech:longrunningrecognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + recognize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/speech:recognize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v1p1beta1.Resource$Speech = Resource$Speech; +})(speech_v1p1beta1 = exports.speech_v1p1beta1 || (exports.speech_v1p1beta1 = {})); +//# sourceMappingURL=v1p1beta1.js.map + +/***/ }), + +/***/ 8065: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.speech_v2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var speech_v2beta1; +(function (speech_v2beta1) { + /** + * Cloud Speech-to-Text API + * + * Converts audio to text by applying powerful neural network models. + * + * @example + * const {google} = require('googleapis'); + * const speech = google.speech('v2beta1'); + * + * @namespace speech + * @type {Function} + * @version v2beta1 + * @variation v2beta1 + * @param {object=} options Options for Speech + */ + class Speech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + speech_v2beta1.Speech = Speech; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + speech_v2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + speech_v2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://speech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + speech_v2beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(speech_v2beta1 = exports.speech_v2beta1 || (exports.speech_v2beta1 = {})); +//# sourceMappingURL=v2beta1.js.map + +/***/ }), + +/***/ 28735: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.sql = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta4_1 = __nccwpck_require__(613); +exports.VERSIONS = { + v1beta4: v1beta4_1.sql_v1beta4.Sql, +}; +function sql(versionOrOptions) { + return googleapis_common_1.getAPI('sql', versionOrOptions, exports.VERSIONS, this); +} +exports.sql = sql; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 613: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.sql_v1beta4 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var sql_v1beta4; +(function (sql_v1beta4) { + /** + * Cloud SQL Admin API + * + * API for Cloud SQL database instance management + * + * @example + * const {google} = require('googleapis'); + * const sql = google.sql('v1beta4'); + * + * @namespace sql + * @type {Function} + * @version v1beta4 + * @variation v1beta4 + * @param {object=} options Options for Sql + */ + class Sql { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.backupRuns = new Resource$Backupruns(this.context); + this.databases = new Resource$Databases(this.context); + this.flags = new Resource$Flags(this.context); + this.instances = new Resource$Instances(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.sslCerts = new Resource$Sslcerts(this.context); + this.tiers = new Resource$Tiers(this.context); + this.users = new Resource$Users(this.context); + } + } + sql_v1beta4.Sql = Sql; + class Resource$Backupruns { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'id'], + pathParams: ['id', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/backupRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Backupruns = Resource$Backupruns; + class Resource$Databases { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/databases/{database}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance', 'database'], + pathParams: ['database', 'instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Databases = Resource$Databases; + class Resource$Flags { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/flags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Flags = Resource$Flags; + class Resource$Instances { + constructor(context) { + this.context = context; + } + addServerCa(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/addServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + clone(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/clone').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + demoteMaster(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/demoteMaster').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + export(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/export').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + failover(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/failover').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + listServerCas(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/listServerCas').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + promoteReplica(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resetSslConfig(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/resetSslConfig').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restart(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restart').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restoreBackup(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/restoreBackup').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rotateServerCa(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rotateServerCa').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startReplica(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stopReplica(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/stopReplica').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + truncateLog(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/truncateLog').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/instances/{instance}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Instances = Resource$Instances; + class Resource$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations/{operation}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'operation'], + pathParams: ['operation', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.instances = new Resource$Projects$Instances(this.context); + } + } + sql_v1beta4.Resource$Projects = Resource$Projects; + class Resource$Projects$Instances { + constructor(context) { + this.context = context; + } + rescheduleMaintenance(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/rescheduleMaintenance').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startExternalSync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verifyExternalSyncSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Projects$Instances = Resource$Projects$Instances; + class Resource$Sslcerts { + constructor(context) { + this.context = context; + } + createEphemeral(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/createEphemeral').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts/{sha1Fingerprint}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance', 'sha1Fingerprint'], + pathParams: ['instance', 'project', 'sha1Fingerprint'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/sslCerts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Sslcerts = Resource$Sslcerts; + class Resource$Tiers { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/sql/v1beta4/projects/{project}/tiers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: ['project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Tiers = Resource$Tiers; + class Resource$Users { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://sqladmin.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/sql/v1beta4/projects/{project}/instances/{instance}/users').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['project', 'instance'], + pathParams: ['instance', 'project'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + sql_v1beta4.Resource$Users = Resource$Users; +})(sql_v1beta4 = exports.sql_v1beta4 || (exports.sql_v1beta4 = {})); +//# sourceMappingURL=v1beta4.js.map + +/***/ }), + +/***/ 51255: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.storage = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(6331); +const v1beta2_1 = __nccwpck_require__(34970); +exports.VERSIONS = { + v1: v1_1.storage_v1.Storage, + v1beta2: v1beta2_1.storage_v1beta2.Storage, +}; +function storage(versionOrOptions) { + return googleapis_common_1.getAPI('storage', versionOrOptions, exports.VERSIONS, this); +} +exports.storage = storage; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 6331: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.storage_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var storage_v1; +(function (storage_v1) { + /** + * Cloud Storage JSON API + * + * Stores and retrieves potentially large, immutable data objects. + * + * @example + * const {google} = require('googleapis'); + * const storage = google.storage('v1'); + * + * @namespace storage + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Storage + */ + class Storage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); + this.buckets = new Resource$Buckets(this.context); + this.channels = new Resource$Channels(this.context); + this.defaultObjectAccessControls = new Resource$Defaultobjectaccesscontrols(this.context); + this.notifications = new Resource$Notifications(this.context); + this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); + this.objects = new Resource$Objects(this.context); + this.projects = new Resource$Projects(this.context); + } + } + storage_v1.Storage = Storage; + class Resource$Bucketaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; + class Resource$Buckets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + lockRetentionPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/lockRetentionPolicy').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket', 'ifMetagenerationMatch'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'permissions'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Buckets = Resource$Buckets; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Channels = Resource$Channels; + class Resource$Defaultobjectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; + class Resource$Notifications { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1/b/{bucket}/notificationConfigs/{notification}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'notification'], + pathParams: ['bucket', 'notification'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/notificationConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Notifications = Resource$Notifications; + class Resource$Objectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; + class Resource$Objects { + constructor(context) { + this.context = context; + } + compose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rewrite(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1/b/{sourceBucket}/o/{sourceObject}/rewriteTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setIamPolicy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + testIamPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}/iam/testPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object', 'permissions'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Objects = Resource$Objects; + class Resource$Projects { + constructor(context) { + this.context = context; + this.hmacKeys = new Resource$Projects$Hmackeys(this.context); + this.serviceAccount = new Resource$Projects$Serviceaccount(this.context); + } + } + storage_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Hmackeys { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'serviceAccountEmail'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/hmacKeys/{accessId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['projectId', 'accessId'], + pathParams: ['accessId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Projects$Hmackeys = Resource$Projects$Hmackeys; + class Resource$Projects$Serviceaccount { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1/projects/{projectId}/serviceAccount').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1.Resource$Projects$Serviceaccount = Resource$Projects$Serviceaccount; +})(storage_v1 = exports.storage_v1 || (exports.storage_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 34970: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.storage_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var storage_v1beta2; +(function (storage_v1beta2) { + /** + * Cloud Storage JSON API + * + * Lets you store and retrieve potentially-large, immutable data objects. + * + * @example + * const {google} = require('googleapis'); + * const storage = google.storage('v1beta2'); + * + * @namespace storage + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Storage + */ + class Storage { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.bucketAccessControls = new Resource$Bucketaccesscontrols(this.context); + this.buckets = new Resource$Buckets(this.context); + this.channels = new Resource$Channels(this.context); + this.defaultObjectAccessControls = new Resource$Defaultobjectaccesscontrols(this.context); + this.objectAccessControls = new Resource$Objectaccesscontrols(this.context); + this.objects = new Resource$Objects(this.context); + } + } + storage_v1beta2.Storage = Storage; + class Resource$Bucketaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Bucketaccesscontrols = Resource$Bucketaccesscontrols; + class Resource$Buckets { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['project'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['project'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Buckets = Resource$Buckets; + class Resource$Channels { + constructor(context) { + this.context = context; + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/channels/stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Channels = Resource$Channels; + class Resource$Defaultobjectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/defaultObjectAcl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'entity'], + pathParams: ['bucket', 'entity'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Defaultobjectaccesscontrols = Resource$Defaultobjectaccesscontrols; + class Resource$Objectaccesscontrols { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}/acl/{entity}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'object', 'entity'], + pathParams: ['bucket', 'entity', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Objectaccesscontrols = Resource$Objectaccesscontrols; + class Resource$Objects { + constructor(context) { + this.context = context; + } + compose(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1beta2/b/{destinationBucket}/o/{destinationObject}/compose').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['destinationBucket', 'destinationObject'], + pathParams: ['destinationBucket', 'destinationObject'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + copy(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/storage/v1beta2/b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'sourceBucket', + 'sourceObject', + 'destinationBucket', + 'destinationObject', + ], + pathParams: [ + 'destinationBucket', + 'destinationObject', + 'sourceBucket', + 'sourceObject', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/{object}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['bucket', 'object'], + pathParams: ['bucket', 'object'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + watchAll(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storage.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/storage/v1beta2/b/{bucket}/o/watch').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['bucket'], + pathParams: ['bucket'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storage_v1beta2.Resource$Objects = Resource$Objects; +})(storage_v1beta2 = exports.storage_v1beta2 || (exports.storage_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 45719: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.storagetransfer = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(94535); +exports.VERSIONS = { + v1: v1_1.storagetransfer_v1.Storagetransfer, +}; +function storagetransfer(versionOrOptions) { + return googleapis_common_1.getAPI('storagetransfer', versionOrOptions, exports.VERSIONS, this); +} +exports.storagetransfer = storagetransfer; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 94535: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.storagetransfer_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var storagetransfer_v1; +(function (storagetransfer_v1) { + /** + * Storage Transfer API + * + * Transfers data from external data sources to a Google Cloud Storage bucket or between Google Cloud Storage buckets. + * + * @example + * const {google} = require('googleapis'); + * const storagetransfer = google.storagetransfer('v1'); + * + * @namespace storagetransfer + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Storagetransfer + */ + class Storagetransfer { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.googleServiceAccounts = new Resource$Googleserviceaccounts(this.context); + this.transferJobs = new Resource$Transferjobs(this.context); + this.transferOperations = new Resource$Transferoperations(this.context); + } + } + storagetransfer_v1.Storagetransfer = Storagetransfer; + class Resource$Googleserviceaccounts { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/googleServiceAccounts/{projectId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storagetransfer_v1.Resource$Googleserviceaccounts = Resource$Googleserviceaccounts; + class Resource$Transferjobs { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobName'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/transferJobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+jobName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['jobName'], + pathParams: ['jobName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storagetransfer_v1.Resource$Transferjobs = Resource$Transferjobs; + class Resource$Transferoperations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + pause(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:pause').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resume(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://storagetransfer.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:resume').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + storagetransfer_v1.Resource$Transferoperations = Resource$Transferoperations; +})(storagetransfer_v1 = exports.storagetransfer_v1 || (exports.storagetransfer_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 89467: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.streetviewpublish = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(36493); +exports.VERSIONS = { + v1: v1_1.streetviewpublish_v1.Streetviewpublish, +}; +function streetviewpublish(versionOrOptions) { + return googleapis_common_1.getAPI('streetviewpublish', versionOrOptions, exports.VERSIONS, this); +} +exports.streetviewpublish = streetviewpublish; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 36493: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.streetviewpublish_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var streetviewpublish_v1; +(function (streetviewpublish_v1) { + /** + * Street View Publish API + * + * Publishes 360 photos to Google Maps, along with position, orientation, and connectivity metadata. Apps can offer an interface for positioning, connecting, and uploading user-generated Street View images. + * + * @example + * const {google} = require('googleapis'); + * const streetviewpublish = google.streetviewpublish('v1'); + * + * @namespace streetviewpublish + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Streetviewpublish + */ + class Streetviewpublish { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.photo = new Resource$Photo(this.context); + this.photos = new Resource$Photos(this.context); + } + } + streetviewpublish_v1.Streetviewpublish = Streetviewpublish; + class Resource$Photo { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['photoId'], + pathParams: ['photoId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{photoId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['photoId'], + pathParams: ['photoId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + startUpload(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo:startUpload').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photo/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + streetviewpublish_v1.Resource$Photo = Resource$Photo; + class Resource$Photos { + constructor(context) { + this.context = context; + } + batchDelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchDelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchGet(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchGet').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + batchUpdate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos:batchUpdate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://streetviewpublish.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/photos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + streetviewpublish_v1.Resource$Photos = Resource$Photos; +})(streetviewpublish_v1 = exports.streetviewpublish_v1 || (exports.streetviewpublish_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 25306: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.tagmanager = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(63227); +const v2_1 = __nccwpck_require__(46781); +exports.VERSIONS = { + v1: v1_1.tagmanager_v1.Tagmanager, + v2: v2_1.tagmanager_v2.Tagmanager, +}; +function tagmanager(versionOrOptions) { + return googleapis_common_1.getAPI('tagmanager', versionOrOptions, exports.VERSIONS, this); +} +exports.tagmanager = tagmanager; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 63227: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tagmanager_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var tagmanager_v1; +(function (tagmanager_v1) { + /** + * Tag Manager API + * + * This API allows clients to access and modify container and tag configuration. + * + * @example + * const {google} = require('googleapis'); + * const tagmanager = google.tagmanager('v1'); + * + * @namespace tagmanager + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Tagmanager + */ + class Tagmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + tagmanager_v1.Tagmanager = Tagmanager; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.containers = new Resource$Accounts$Containers(this.context); + this.permissions = new Resource$Accounts$Permissions(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Containers { + constructor(context) { + this.context = context; + this.environments = new Resource$Accounts$Containers$Environments(this.context); + this.folders = new Resource$Accounts$Containers$Folders(this.context); + this.move_folders = new Resource$Accounts$Containers$Move_folders(this.context); + this.reauthorize_environments = new Resource$Accounts$Containers$Reauthorize_environments(this.context); + this.tags = new Resource$Accounts$Containers$Tags(this.context); + this.triggers = new Resource$Accounts$Containers$Triggers(this.context); + this.variables = new Resource$Accounts$Containers$Variables(this.context); + this.versions = new Resource$Accounts$Containers$Versions(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers = Resource$Accounts$Containers; + class Resource$Accounts$Containers$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; + class Resource$Accounts$Containers$Folders { + constructor(context) { + this.context = context; + this.entities = new Resource$Accounts$Containers$Folders$Entities(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Folders = Resource$Accounts$Containers$Folders; + class Resource$Accounts$Containers$Folders$Entities { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/folders/{folderId}/entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Folders$Entities = Resource$Accounts$Containers$Folders$Entities; + class Resource$Accounts$Containers$Move_folders { + constructor(context) { + this.context = context; + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/move_folders/{folderId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'folderId'], + pathParams: ['accountId', 'containerId', 'folderId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Move_folders = Resource$Accounts$Containers$Move_folders; + class Resource$Accounts$Containers$Reauthorize_environments { + constructor(context) { + this.context = context; + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/reauthorize_environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'environmentId'], + pathParams: ['accountId', 'containerId', 'environmentId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Reauthorize_environments = Resource$Accounts$Containers$Reauthorize_environments; + class Resource$Accounts$Containers$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/tags/{tagId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'tagId'], + pathParams: ['accountId', 'containerId', 'tagId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Tags = Resource$Accounts$Containers$Tags; + class Resource$Accounts$Containers$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/triggers/{triggerId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'triggerId'], + pathParams: ['accountId', 'containerId', 'triggerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Triggers = Resource$Accounts$Containers$Triggers; + class Resource$Accounts$Containers$Variables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/variables/{variableId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'variableId'], + pathParams: ['accountId', 'containerId', 'variableId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Variables = Resource$Accounts$Containers$Variables; + class Resource$Accounts$Containers$Versions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'containerId'], + pathParams: ['accountId', 'containerId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + restore(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/restore').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}/undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/containers/{containerId}/versions/{containerVersionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'containerId', 'containerVersionId'], + pathParams: ['accountId', 'containerId', 'containerVersionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; + class Resource$Accounts$Permissions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v1/accounts/{accountId}/permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['accountId'], + pathParams: ['accountId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/tagmanager/v1/accounts/{accountId}/permissions/{permissionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['accountId', 'permissionId'], + pathParams: ['accountId', 'permissionId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v1.Resource$Accounts$Permissions = Resource$Accounts$Permissions; +})(tagmanager_v1 = exports.tagmanager_v1 || (exports.tagmanager_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 46781: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tagmanager_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var tagmanager_v2; +(function (tagmanager_v2) { + /** + * Tag Manager API + * + * This API allows clients to access and modify container and tag configuration. + * + * @example + * const {google} = require('googleapis'); + * const tagmanager = google.tagmanager('v2'); + * + * @namespace tagmanager + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Tagmanager + */ + class Tagmanager { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.accounts = new Resource$Accounts(this.context); + } + } + tagmanager_v2.Tagmanager = Tagmanager; + class Resource$Accounts { + constructor(context) { + this.context = context; + this.containers = new Resource$Accounts$Containers(this.context); + this.user_permissions = new Resource$Accounts$User_permissions(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts = Resource$Accounts; + class Resource$Accounts$Containers { + constructor(context) { + this.context = context; + this.environments = new Resource$Accounts$Containers$Environments(this.context); + this.versions = new Resource$Accounts$Containers$Versions(this.context); + this.version_headers = new Resource$Accounts$Containers$Version_headers(this.context); + this.workspaces = new Resource$Accounts$Containers$Workspaces(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/containers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers = Resource$Accounts$Containers; + class Resource$Accounts$Containers$Environments { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reauthorize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:reauthorize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Environments = Resource$Accounts$Containers$Environments; + class Resource$Accounts$Containers$Versions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + live(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/versions:live').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publish(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:publish').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + set_latest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:set_latest').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Versions = Resource$Accounts$Containers$Versions; + class Resource$Accounts$Containers$Version_headers { + constructor(context) { + this.context = context; + } + latest(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers:latest').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/version_headers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Version_headers = Resource$Accounts$Containers$Version_headers; + class Resource$Accounts$Containers$Workspaces { + constructor(context) { + this.context = context; + this.built_in_variables = new Resource$Accounts$Containers$Workspaces$Built_in_variables(this.context); + this.folders = new Resource$Accounts$Containers$Workspaces$Folders(this.context); + this.tags = new Resource$Accounts$Containers$Workspaces$Tags(this.context); + this.templates = new Resource$Accounts$Containers$Workspaces$Templates(this.context); + this.triggers = new Resource$Accounts$Containers$Workspaces$Triggers(this.context); + this.variables = new Resource$Accounts$Containers$Workspaces$Variables(this.context); + this.zones = new Resource$Accounts$Containers$Workspaces$Zones(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create_version(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:create_version').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}/status').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/workspaces').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + quick_preview(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:quick_preview').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + resolve_conflict(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:resolve_conflict').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + sync(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:sync').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces = Resource$Accounts$Containers$Workspaces; + class Resource$Accounts$Containers$Workspaces$Built_in_variables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/built_in_variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}/built_in_variables:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Built_in_variables = Resource$Accounts$Containers$Workspaces$Built_in_variables; + class Resource$Accounts$Containers$Workspaces$Folders { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + entities(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:entities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/folders').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move_entities_to_folder(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:move_entities_to_folder').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Folders = Resource$Accounts$Containers$Workspaces$Folders; + class Resource$Accounts$Containers$Workspaces$Tags { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/tags').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Tags = Resource$Accounts$Containers$Workspaces$Tags; + class Resource$Accounts$Containers$Workspaces$Templates { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/templates').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Templates = Resource$Accounts$Containers$Workspaces$Templates; + class Resource$Accounts$Containers$Workspaces$Triggers { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/triggers').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Triggers = Resource$Accounts$Containers$Workspaces$Triggers; + class Resource$Accounts$Containers$Workspaces$Variables { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/variables').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Variables = Resource$Accounts$Containers$Workspaces$Variables; + class Resource$Accounts$Containers$Workspaces$Zones { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/zones').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + revert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}:revert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$Containers$Workspaces$Zones = Resource$Accounts$Containers$Workspaces$Zones; + class Resource$Accounts$User_permissions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+parent}/user_permissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tagmanager/v2/{+path}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['path'], + pathParams: ['path'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tagmanager_v2.Resource$Accounts$User_permissions = Resource$Accounts$User_permissions; +})(tagmanager_v2 = exports.tagmanager_v2 || (exports.tagmanager_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 59781: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.tasks = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(20186); +exports.VERSIONS = { + v1: v1_1.tasks_v1.Tasks, +}; +function tasks(versionOrOptions) { + return googleapis_common_1.getAPI('tasks', versionOrOptions, exports.VERSIONS, this); +} +exports.tasks = tasks; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 20186: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tasks_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var tasks_v1; +(function (tasks_v1) { + /** + * Tasks API + * + * Manages your tasks and task lists. + * + * @example + * const {google} = require('googleapis'); + * const tasks = google.tasks('v1'); + * + * @namespace tasks + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Tasks + */ + class Tasks { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.tasklists = new Resource$Tasklists(this.context); + this.tasks = new Resource$Tasks(this.context); + } + } + tasks_v1.Tasks = Tasks; + class Resource$Tasklists { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/users/@me/lists/{tasklist}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tasks_v1.Resource$Tasklists = Resource$Tasklists; + class Resource$Tasks { + constructor(context) { + this.context = context; + } + clear(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/clear').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['tasklist'], + pathParams: ['tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + move(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}/move').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/tasks/v1/lists/{tasklist}/tasks/{task}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['tasklist', 'task'], + pathParams: ['task', 'tasklist'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tasks_v1.Resource$Tasks = Resource$Tasks; +})(tasks_v1 = exports.tasks_v1 || (exports.tasks_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 11091: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.testing = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(80434); +exports.VERSIONS = { + v1: v1_1.testing_v1.Testing, +}; +function testing(versionOrOptions) { + return googleapis_common_1.getAPI('testing', versionOrOptions, exports.VERSIONS, this); +} +exports.testing = testing; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 80434: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.testing_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var testing_v1; +(function (testing_v1) { + /** + * Cloud Testing API + * + * Allows developers to run automated tests for their mobile applications on Google infrastructure. + * + * @example + * const {google} = require('googleapis'); + * const testing = google.testing('v1'); + * + * @namespace testing + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Testing + */ + class Testing { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.applicationDetailService = new Resource$Applicationdetailservice(this.context); + this.projects = new Resource$Projects(this.context); + this.testEnvironmentCatalog = new Resource$Testenvironmentcatalog(this.context); + } + } + testing_v1.Testing = Testing; + class Resource$Applicationdetailservice { + constructor(context) { + this.context = context; + } + getApkDetails(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/applicationDetailService/getApkDetails').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + testing_v1.Resource$Applicationdetailservice = Resource$Applicationdetailservice; + class Resource$Projects { + constructor(context) { + this.context = context; + this.testMatrices = new Resource$Projects$Testmatrices(this.context); + } + } + testing_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Testmatrices { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/projects/{projectId}/testMatrices/{testMatrixId}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/testMatrices').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/projects/{projectId}/testMatrices/{testMatrixId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'testMatrixId'], + pathParams: ['projectId', 'testMatrixId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + testing_v1.Resource$Projects$Testmatrices = Resource$Projects$Testmatrices; + class Resource$Testenvironmentcatalog { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://testing.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/testEnvironmentCatalog/{environmentType}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['environmentType'], + pathParams: ['environmentType'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + testing_v1.Resource$Testenvironmentcatalog = Resource$Testenvironmentcatalog; +})(testing_v1 = exports.testing_v1 || (exports.testing_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 95059: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.texttospeech = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(69556); +const v1beta1_1 = __nccwpck_require__(13874); +exports.VERSIONS = { + v1: v1_1.texttospeech_v1.Texttospeech, + v1beta1: v1beta1_1.texttospeech_v1beta1.Texttospeech, +}; +function texttospeech(versionOrOptions) { + return googleapis_common_1.getAPI('texttospeech', versionOrOptions, exports.VERSIONS, this); +} +exports.texttospeech = texttospeech; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 69556: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.texttospeech_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var texttospeech_v1; +(function (texttospeech_v1) { + /** + * Cloud Text-to-Speech API + * + * Synthesizes natural-sounding speech by applying powerful neural network models. + * + * @example + * const {google} = require('googleapis'); + * const texttospeech = google.texttospeech('v1'); + * + * @namespace texttospeech + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Texttospeech + */ + class Texttospeech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.text = new Resource$Text(this.context); + this.voices = new Resource$Voices(this.context); + } + } + texttospeech_v1.Texttospeech = Texttospeech; + class Resource$Text { + constructor(context) { + this.context = context; + } + synthesize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + texttospeech_v1.Resource$Text = Resource$Text; + class Resource$Voices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + texttospeech_v1.Resource$Voices = Resource$Voices; +})(texttospeech_v1 = exports.texttospeech_v1 || (exports.texttospeech_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 13874: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.texttospeech_v1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var texttospeech_v1beta1; +(function (texttospeech_v1beta1) { + /** + * Cloud Text-to-Speech API + * + * Synthesizes natural-sounding speech by applying powerful neural network models. + * + * @example + * const {google} = require('googleapis'); + * const texttospeech = google.texttospeech('v1beta1'); + * + * @namespace texttospeech + * @type {Function} + * @version v1beta1 + * @variation v1beta1 + * @param {object=} options Options for Texttospeech + */ + class Texttospeech { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.text = new Resource$Text(this.context); + this.voices = new Resource$Voices(this.context); + } + } + texttospeech_v1beta1.Texttospeech = Texttospeech; + class Resource$Text { + constructor(context) { + this.context = context; + } + synthesize(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/text:synthesize').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + texttospeech_v1beta1.Resource$Text = Resource$Text; + class Resource$Voices { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://texttospeech.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta1/voices').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + texttospeech_v1beta1.Resource$Voices = Resource$Voices; +})(texttospeech_v1beta1 = exports.texttospeech_v1beta1 || (exports.texttospeech_v1beta1 = {})); +//# sourceMappingURL=v1beta1.js.map + +/***/ }), + +/***/ 4066: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.toolresults = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1beta3_1 = __nccwpck_require__(66802); +exports.VERSIONS = { + v1beta3: v1beta3_1.toolresults_v1beta3.Toolresults, +}; +function toolresults(versionOrOptions) { + return googleapis_common_1.getAPI('toolresults', versionOrOptions, exports.VERSIONS, this); +} +exports.toolresults = toolresults; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 66802: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.toolresults_v1beta3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var toolresults_v1beta3; +(function (toolresults_v1beta3) { + /** + * Cloud Tool Results API + * + * API to publish and access results from developer tools. + * + * @example + * const {google} = require('googleapis'); + * const toolresults = google.toolresults('v1beta3'); + * + * @namespace toolresults + * @type {Function} + * @version v1beta3 + * @variation v1beta3 + * @param {object=} options Options for Toolresults + */ + class Toolresults { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.clusters = new Resource$Clusters(this.context); + this.environments = new Resource$Environments(this.context); + this.executions = new Resource$Executions(this.context); + this.histories = new Resource$Histories(this.context); + this.perfMetricsSummary = new Resource$Perfmetricssummary(this.context); + this.perfSampleSeries = new Resource$Perfsampleseries(this.context); + this.projects = new Resource$Projects(this.context); + this.samples = new Resource$Samples(this.context); + this.steps = new Resource$Steps(this.context); + this.testCases = new Resource$Testcases(this.context); + this.thumbnails = new Resource$Thumbnails(this.context); + } + } + toolresults_v1beta3.Toolresults = Toolresults; + class Resource$Clusters { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters/{clusterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'clusterId'], + pathParams: ['clusterId', 'executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/clusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Clusters = Resource$Clusters; + class Resource$Environments { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments/{environmentId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'environmentId', + ], + pathParams: ['environmentId', 'executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/environments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Environments = Resource$Environments; + class Resource$Executions { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Executions = Resource$Executions; + class Resource$Histories { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId'], + pathParams: ['historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/histories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Histories = Resource$Histories; + class Resource$Perfmetricssummary { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Perfmetricssummary = Resource$Perfmetricssummary; + class Resource$Perfsampleseries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Perfsampleseries = Resource$Perfsampleseries; + class Resource$Projects { + constructor(context) { + this.context = context; + } + getSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/projects/{projectId}/settings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + initializeSettings(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}:initializeSettings').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId'], + pathParams: ['projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Projects = Resource$Projects; + class Resource$Samples { + constructor(context) { + this.context = context; + } + batchCreate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples:batchCreate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfSampleSeries/{sampleSeriesId}/samples').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'sampleSeriesId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'sampleSeriesId', + 'stepId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Samples = Resource$Samples; + class Resource$Steps { + constructor(context) { + this.context = context; + } + accessibilityClusters(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/toolresults/v1beta3/{+name}:accessibilityClusters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getPerfMetricsSummary(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/perfMetricsSummary').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId'], + pathParams: ['executionId', 'historyId', 'projectId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + publishXunitXmlFiles(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}:publishXunitXmlFiles').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Steps = Resource$Steps; + class Resource$Testcases { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases/{testCaseId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [ + 'projectId', + 'historyId', + 'executionId', + 'stepId', + 'testCaseId', + ], + pathParams: [ + 'executionId', + 'historyId', + 'projectId', + 'stepId', + 'testCaseId', + ], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/testCases').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Testcases = Resource$Testcases; + class Resource$Thumbnails { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/toolresults/v1beta3/projects/{projectId}/histories/{historyId}/executions/{executionId}/steps/{stepId}/thumbnails').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['projectId', 'historyId', 'executionId', 'stepId'], + pathParams: ['executionId', 'historyId', 'projectId', 'stepId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + toolresults_v1beta3.Resource$Thumbnails = Resource$Thumbnails; +})(toolresults_v1beta3 = exports.toolresults_v1beta3 || (exports.toolresults_v1beta3 = {})); +//# sourceMappingURL=v1beta3.js.map + +/***/ }), + +/***/ 55768: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.tpu = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(65575); +const v1alpha1_1 = __nccwpck_require__(58115); +exports.VERSIONS = { + v1: v1_1.tpu_v1.Tpu, + v1alpha1: v1alpha1_1.tpu_v1alpha1.Tpu, +}; +function tpu(versionOrOptions) { + return googleapis_common_1.getAPI('tpu', versionOrOptions, exports.VERSIONS, this); +} +exports.tpu = tpu; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 65575: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tpu_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var tpu_v1; +(function (tpu_v1) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * const {google} = require('googleapis'); + * const tpu = google.tpu('v1'); + * + * @namespace tpu + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Tpu + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + tpu_v1.Tpu = Tpu; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + tpu_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reimage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Tensorflowversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1 = exports.tpu_v1 || (exports.tpu_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 58115: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.tpu_v1alpha1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var tpu_v1alpha1; +(function (tpu_v1alpha1) { + /** + * Cloud TPU API + * + * TPU API provides customers with access to Google TPU technology. + * + * @example + * const {google} = require('googleapis'); + * const tpu = google.tpu('v1alpha1'); + * + * @namespace tpu + * @type {Function} + * @version v1alpha1 + * @variation v1alpha1 + * @param {object=} options Options for Tpu + */ + class Tpu { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + tpu_v1alpha1.Tpu = Tpu; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + tpu_v1alpha1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.acceleratorTypes = new Resource$Projects$Locations$Acceleratortypes(this.context); + this.nodes = new Resource$Projects$Locations$Nodes(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.tensorflowVersions = new Resource$Projects$Locations$Tensorflowversions(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Acceleratortypes { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/acceleratorTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Acceleratortypes = Resource$Projects$Locations$Acceleratortypes; + class Resource$Projects$Locations$Nodes { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/nodes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reimage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:reimage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Nodes = Resource$Projects$Locations$Nodes; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Tensorflowversions { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://tpu.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha1/{+parent}/tensorflowVersions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + tpu_v1alpha1.Resource$Projects$Locations$Tensorflowversions = Resource$Projects$Locations$Tensorflowversions; +})(tpu_v1alpha1 = exports.tpu_v1alpha1 || (exports.tpu_v1alpha1 = {})); +//# sourceMappingURL=v1alpha1.js.map + +/***/ }), + +/***/ 39652: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.translate = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v2_1 = __nccwpck_require__(8521); +const v3_1 = __nccwpck_require__(50412); +const v3beta1_1 = __nccwpck_require__(35251); +exports.VERSIONS = { + v2: v2_1.translate_v2.Translate, + v3: v3_1.translate_v3.Translate, + v3beta1: v3beta1_1.translate_v3beta1.Translate, +}; +function translate(versionOrOptions) { + return googleapis_common_1.getAPI('translate', versionOrOptions, exports.VERSIONS, this); +} +exports.translate = translate; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 8521: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.translate_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var translate_v2; +(function (translate_v2) { + /** + * Google Cloud Translation API + * + * The Google Cloud Translation API lets websites and programs integrate with Google Translate programmatically. + * + * @example + * const {google} = require('googleapis'); + * const translate = google.translate('v2'); + * + * @namespace translate + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Translate + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.detections = new Resource$Detections(this.context); + this.languages = new Resource$Languages(this.context); + this.translations = new Resource$Translations(this.context); + } + } + translate_v2.Translate = Translate; + class Resource$Detections { + constructor(context) { + this.context = context; + } + detect(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/detect').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v2.Resource$Detections = Resource$Detections; + class Resource$Languages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2/languages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v2.Resource$Languages = Resource$Languages; + class Resource$Translations { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['q', 'target'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + translate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/language/translate/v2').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v2.Resource$Translations = Resource$Translations; +})(translate_v2 = exports.translate_v2 || (exports.translate_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 50412: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.translate_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var translate_v3; +(function (translate_v3) { + /** + * Cloud Translation API + * + * Integrates text translation into your website or application. + * + * @example + * const {google} = require('googleapis'); + * const translate = google.translate('v3'); + * + * @namespace translate + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Translate + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + translate_v3.Translate = Translate; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Glossaries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3 = exports.translate_v3 || (exports.translate_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 35251: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.translate_v3beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var translate_v3beta1; +(function (translate_v3beta1) { + /** + * Cloud Translation API + * + * Integrates text translation into your website or application. + * + * @example + * const {google} = require('googleapis'); + * const translate = google.translate('v3beta1'); + * + * @namespace translate + * @type {Function} + * @version v3beta1 + * @variation v3beta1 + * @param {object=} options Options for Translate + */ + class Translate { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + translate_v3beta1.Translate = Translate; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.glossaries = new Resource$Projects$Locations$Glossaries(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + batchTranslateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}:batchTranslateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + detectLanguage(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}:detectLanguage').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getSupportedLanguages(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/supportedLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}/locations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + translateText(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}:translateText').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Glossaries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+parent}/glossaries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3beta1.Resource$Projects$Locations$Glossaries = Resource$Projects$Locations$Glossaries; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + wait(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://translation.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v3beta1/{+name}:wait').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + translate_v3beta1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; +})(translate_v3beta1 = exports.translate_v3beta1 || (exports.translate_v3beta1 = {})); +//# sourceMappingURL=v3beta1.js.map + +/***/ }), + +/***/ 72810: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.vault = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(25176); +exports.VERSIONS = { + v1: v1_1.vault_v1.Vault, +}; +function vault(versionOrOptions) { + return googleapis_common_1.getAPI('vault', versionOrOptions, exports.VERSIONS, this); +} +exports.vault = vault; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 25176: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.vault_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var vault_v1; +(function (vault_v1) { + /** + * G Suite Vault API + * + * Archiving and eDiscovery for G Suite. + * + * @example + * const {google} = require('googleapis'); + * const vault = google.vault('v1'); + * + * @namespace vault + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Vault + */ + class Vault { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.matters = new Resource$Matters(this.context); + this.operations = new Resource$Operations(this.context); + } + } + vault_v1.Vault = Vault; + class Resource$Matters { + constructor(context) { + this.context = context; + this.exports = new Resource$Matters$Exports(this.context); + this.holds = new Resource$Matters$Holds(this.context); + this.savedQueries = new Resource$Matters$Savedqueries(this.context); + } + addPermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}:addPermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + close(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}:close').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removePermissions(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}:removePermissions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reopen(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}:reopen').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + undelete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}:undelete').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Matters = Resource$Matters; + class Resource$Matters$Exports { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/exports/{exportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId', 'exportId'], + pathParams: ['exportId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/exports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Matters$Exports = Resource$Matters$Exports; + class Resource$Matters$Holds { + constructor(context) { + this.context = context; + this.accounts = new Resource$Matters$Holds$Accounts(this.context); + } + addHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}:addHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeHeldAccounts(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/matters/{matterId}/holds/{holdId}:removeHeldAccounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Matters$Holds = Resource$Matters$Holds; + class Resource$Matters$Holds$Accounts { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + + '/v1/matters/{matterId}/holds/{holdId}/accounts/{accountId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'holdId', 'accountId'], + pathParams: ['accountId', 'holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/holds/{holdId}/accounts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId', 'holdId'], + pathParams: ['holdId', 'matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Matters$Holds$Accounts = Resource$Matters$Holds$Accounts; + class Resource$Matters$Savedqueries { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/savedQueries/{savedQueryId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId', 'savedQueryId'], + pathParams: ['matterId', 'savedQueryId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/matters/{matterId}/savedQueries').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['matterId'], + pathParams: ['matterId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Matters$Savedqueries = Resource$Matters$Savedqueries; + class Resource$Operations { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vault.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vault_v1.Resource$Operations = Resource$Operations; +})(vault_v1 = exports.vault_v1 || (exports.vault_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 68211: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.verifiedaccess = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(60851); +exports.VERSIONS = { + v1: v1_1.verifiedaccess_v1.Verifiedaccess, +}; +function verifiedaccess(versionOrOptions) { + return googleapis_common_1.getAPI('verifiedaccess', versionOrOptions, exports.VERSIONS, this); +} +exports.verifiedaccess = verifiedaccess; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 60851: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.verifiedaccess_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var verifiedaccess_v1; +(function (verifiedaccess_v1) { + /** + * Verified Access API + * + * API for Verified Access chrome extension to provide credential verification for chrome devices connecting to an enterprise network + * + * @example + * const {google} = require('googleapis'); + * const verifiedaccess = google.verifiedaccess('v1'); + * + * @namespace verifiedaccess + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Verifiedaccess + */ + class Verifiedaccess { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.challenge = new Resource$Challenge(this.context); + } + } + verifiedaccess_v1.Verifiedaccess = Verifiedaccess; + class Resource$Challenge { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/challenge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + verify(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://verifiedaccess.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/challenge:verify').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + verifiedaccess_v1.Resource$Challenge = Resource$Challenge; +})(verifiedaccess_v1 = exports.verifiedaccess_v1 || (exports.verifiedaccess_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 94742: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.videointelligence = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(14280); +const v1beta2_1 = __nccwpck_require__(39724); +const v1p1beta1_1 = __nccwpck_require__(54223); +const v1p2beta1_1 = __nccwpck_require__(10940); +const v1p3beta1_1 = __nccwpck_require__(37587); +exports.VERSIONS = { + v1: v1_1.videointelligence_v1.Videointelligence, + v1beta2: v1beta2_1.videointelligence_v1beta2.Videointelligence, + v1p1beta1: v1p1beta1_1.videointelligence_v1p1beta1.Videointelligence, + v1p2beta1: v1p2beta1_1.videointelligence_v1p2beta1.Videointelligence, + v1p3beta1: v1p3beta1_1.videointelligence_v1p3beta1.Videointelligence, +}; +function videointelligence(versionOrOptions) { + return googleapis_common_1.getAPI('videointelligence', versionOrOptions, exports.VERSIONS, this); +} +exports.videointelligence = videointelligence; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 14280: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.videointelligence_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var videointelligence_v1; +(function (videointelligence_v1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1'); + * + * @namespace videointelligence + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Videointelligence + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1.Videointelligence = Videointelligence; + class Resource$Operations { + constructor(context) { + this.context = context; + this.projects = new Resource$Operations$Projects(this.context); + } + } + videointelligence_v1.Resource$Operations = Resource$Operations; + class Resource$Operations$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Operations$Projects$Locations(this.context); + } + } + videointelligence_v1.Resource$Operations$Projects = Resource$Operations$Projects; + class Resource$Operations$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Operations$Projects$Locations$Operations(this.context); + } + } + videointelligence_v1.Resource$Operations$Projects$Locations = Resource$Operations$Projects$Locations; + class Resource$Operations$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/operations/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1.Resource$Operations$Projects$Locations$Operations = Resource$Operations$Projects$Locations$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.locations = new Resource$Projects$Locations(this.context); + } + } + videointelligence_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Projects$Locations$Operations(this.context); + } + } + videointelligence_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/operations').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1.Resource$Videos = Resource$Videos; +})(videointelligence_v1 = exports.videointelligence_v1 || (exports.videointelligence_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 39724: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.videointelligence_v1beta2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var videointelligence_v1beta2; +(function (videointelligence_v1beta2) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1beta2'); + * + * @namespace videointelligence + * @type {Function} + * @version v1beta2 + * @variation v1beta2 + * @param {object=} options Options for Videointelligence + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1beta2.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta2/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1beta2.Resource$Videos = Resource$Videos; +})(videointelligence_v1beta2 = exports.videointelligence_v1beta2 || (exports.videointelligence_v1beta2 = {})); +//# sourceMappingURL=v1beta2.js.map + +/***/ }), + +/***/ 54223: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.videointelligence_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var videointelligence_v1p1beta1; +(function (videointelligence_v1p1beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p1beta1'); + * + * @namespace videointelligence + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Videointelligence + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p1beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1p1beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p1beta1 = exports.videointelligence_v1p1beta1 || (exports.videointelligence_v1p1beta1 = {})); +//# sourceMappingURL=v1p1beta1.js.map + +/***/ }), + +/***/ 10940: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.videointelligence_v1p2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var videointelligence_v1p2beta1; +(function (videointelligence_v1p2beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p2beta1'); + * + * @namespace videointelligence + * @type {Function} + * @version v1p2beta1 + * @variation v1p2beta1 + * @param {object=} options Options for Videointelligence + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p2beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1p2beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p2beta1 = exports.videointelligence_v1p2beta1 || (exports.videointelligence_v1p2beta1 = {})); +//# sourceMappingURL=v1p2beta1.js.map + +/***/ }), + +/***/ 37587: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.videointelligence_v1p3beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var videointelligence_v1p3beta1; +(function (videointelligence_v1p3beta1) { + /** + * Cloud Video Intelligence API + * + * Detects objects, explicit content, and scene changes in videos. It also specifies the region for annotation and transcribes speech to text. Supports both asynchronous API and streaming API. + * + * @example + * const {google} = require('googleapis'); + * const videointelligence = google.videointelligence('v1p3beta1'); + * + * @namespace videointelligence + * @type {Function} + * @version v1p3beta1 + * @variation v1p3beta1 + * @param {object=} options Options for Videointelligence + */ + class Videointelligence { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.videos = new Resource$Videos(this.context); + } + } + videointelligence_v1p3beta1.Videointelligence = Videointelligence; + class Resource$Videos { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://videointelligence.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p3beta1/videos:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + videointelligence_v1p3beta1.Resource$Videos = Resource$Videos; +})(videointelligence_v1p3beta1 = exports.videointelligence_v1p3beta1 || (exports.videointelligence_v1p3beta1 = {})); +//# sourceMappingURL=v1p3beta1.js.map + +/***/ }), + +/***/ 154: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.vision = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(92030); +const v1p1beta1_1 = __nccwpck_require__(6809); +const v1p2beta1_1 = __nccwpck_require__(62954); +exports.VERSIONS = { + v1: v1_1.vision_v1.Vision, + v1p1beta1: v1p1beta1_1.vision_v1p1beta1.Vision, + v1p2beta1: v1p2beta1_1.vision_v1p2beta1.Vision, +}; +function vision(versionOrOptions) { + return googleapis_common_1.getAPI('vision', versionOrOptions, exports.VERSIONS, this); +} +exports.vision = vision; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 92030: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.vision_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var vision_v1; +(function (vision_v1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * const {google} = require('googleapis'); + * const vision = google.vision('v1'); + * + * @namespace vision + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Vision + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.locations = new Resource$Locations(this.context); + this.operations = new Resource$Operations(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Images = Resource$Images; + class Resource$Locations { + constructor(context) { + this.context = context; + this.operations = new Resource$Locations$Operations(this.context); + } + } + vision_v1.Resource$Locations = Resource$Locations; + class Resource$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Locations$Operations = Resource$Locations$Operations; + class Resource$Operations { + constructor(context) { + this.context = context; + } + cancel(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:cancel').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Operations = Resource$Operations; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + this.operations = new Resource$Projects$Operations(this.context); + } + } + vision_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); + this.operations = new Resource$Projects$Locations$Operations(this.context); + this.products = new Resource$Projects$Locations$Products(this.context); + this.productSets = new Resource$Projects$Locations$Productsets(this.context); + } + } + vision_v1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; + class Resource$Projects$Locations$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Operations = Resource$Projects$Locations$Operations; + class Resource$Projects$Locations$Products { + constructor(context) { + this.context = context; + this.referenceImages = new Resource$Projects$Locations$Products$Referenceimages(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + purge(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/products:purge').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Products = Resource$Projects$Locations$Products; + class Resource$Projects$Locations$Products$Referenceimages { + constructor(context) { + this.context = context; + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/referenceImages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Products$Referenceimages = Resource$Projects$Locations$Products$Referenceimages; + class Resource$Projects$Locations$Productsets { + constructor(context) { + this.context = context; + this.products = new Resource$Projects$Locations$Productsets$Products(this.context); + } + addProduct(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:addProduct').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + import(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets:import').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/productSets').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + removeProduct(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:removeProduct').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Productsets = Resource$Projects$Locations$Productsets; + class Resource$Projects$Locations$Productsets$Products { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}/products').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Locations$Productsets$Products = Resource$Projects$Locations$Productsets$Products; + class Resource$Projects$Operations { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1.Resource$Projects$Operations = Resource$Projects$Operations; +})(vision_v1 = exports.vision_v1 || (exports.vision_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 6809: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.vision_v1p1beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var vision_v1p1beta1; +(function (vision_v1p1beta1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * const {google} = require('googleapis'); + * const vision = google.vision('v1p1beta1'); + * + * @namespace vision + * @type {Function} + * @version v1p1beta1 + * @variation v1p1beta1 + * @param {object=} options Options for Vision + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1p1beta1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Images = Resource$Images; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + vision_v1p1beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); + } + } + vision_v1p1beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p1beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p1beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p1beta1 = exports.vision_v1p1beta1 || (exports.vision_v1p1beta1 = {})); +//# sourceMappingURL=v1p1beta1.js.map + +/***/ }), + +/***/ 62954: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.vision_v1p2beta1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var vision_v1p2beta1; +(function (vision_v1p2beta1) { + /** + * Cloud Vision API + * + * Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications. + * + * @example + * const {google} = require('googleapis'); + * const vision = google.vision('v1p2beta1'); + * + * @namespace vision + * @type {Function} + * @version v1p2beta1 + * @variation v1p2beta1 + * @param {object=} options Options for Vision + */ + class Vision { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.files = new Resource$Files(this.context); + this.images = new Resource$Images(this.context); + this.projects = new Resource$Projects(this.context); + } + } + vision_v1p2beta1.Vision = Vision; + class Resource$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Files = Resource$Files; + class Resource$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Images = Resource$Images; + class Resource$Projects { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Files(this.context); + this.images = new Resource$Projects$Images(this.context); + this.locations = new Resource$Projects$Locations(this.context); + } + } + vision_v1p2beta1.Resource$Projects = Resource$Projects; + class Resource$Projects$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Files = Resource$Projects$Files; + class Resource$Projects$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Images = Resource$Projects$Images; + class Resource$Projects$Locations { + constructor(context) { + this.context = context; + this.files = new Resource$Projects$Locations$Files(this.context); + this.images = new Resource$Projects$Locations$Images(this.context); + } + } + vision_v1p2beta1.Resource$Projects$Locations = Resource$Projects$Locations; + class Resource$Projects$Locations$Files { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/files:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Locations$Files = Resource$Projects$Locations$Files; + class Resource$Projects$Locations$Images { + constructor(context) { + this.context = context; + } + annotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:annotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + asyncBatchAnnotate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://vision.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1p2beta1/{+parent}/images:asyncBatchAnnotate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + vision_v1p2beta1.Resource$Projects$Locations$Images = Resource$Projects$Locations$Images; +})(vision_v1p2beta1 = exports.vision_v1p2beta1 || (exports.vision_v1p2beta1 = {})); +//# sourceMappingURL=v1p2beta1.js.map + +/***/ }), + +/***/ 45680: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.webfonts = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(74525); +exports.VERSIONS = { + v1: v1_1.webfonts_v1.Webfonts, +}; +function webfonts(versionOrOptions) { + return googleapis_common_1.getAPI('webfonts', versionOrOptions, exports.VERSIONS, this); +} +exports.webfonts = webfonts; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 74525: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.webfonts_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var webfonts_v1; +(function (webfonts_v1) { + /** + * Google Fonts Developer API + * + * Accesses the metadata for all families served by Google Fonts, providing a list of families currently available (including available styles and a list of supported script subsets). + * + * @example + * const {google} = require('googleapis'); + * const webfonts = google.webfonts('v1'); + * + * @namespace webfonts + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Webfonts + */ + class Webfonts { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.webfonts = new Resource$Webfonts(this.context); + } + } + webfonts_v1.Webfonts = Webfonts; + class Resource$Webfonts { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webfonts/v1/webfonts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + webfonts_v1.Resource$Webfonts = Resource$Webfonts; +})(webfonts_v1 = exports.webfonts_v1 || (exports.webfonts_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 49100: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.webmasters = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(50746); +exports.VERSIONS = { + v3: v3_1.webmasters_v3.Webmasters, +}; +function webmasters(versionOrOptions) { + return googleapis_common_1.getAPI('webmasters', versionOrOptions, exports.VERSIONS, this); +} +exports.webmasters = webmasters; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 50746: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.webmasters_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var webmasters_v3; +(function (webmasters_v3) { + /** + * Search Console API + * + * View Google Search Console data for your verified sites. + * + * @example + * const {google} = require('googleapis'); + * const webmasters = google.webmasters('v3'); + * + * @namespace webmasters + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Webmasters + */ + class Webmasters { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.searchanalytics = new Resource$Searchanalytics(this.context); + this.sitemaps = new Resource$Sitemaps(this.context); + this.sites = new Resource$Sites(this.context); + } + } + webmasters_v3.Webmasters = Webmasters; + class Resource$Searchanalytics { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/searchAnalytics/query').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + webmasters_v3.Resource$Searchanalytics = Resource$Searchanalytics; + class Resource$Sitemaps { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + submit(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}/sitemaps/{feedpath}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['siteUrl', 'feedpath'], + pathParams: ['feedpath', 'siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + webmasters_v3.Resource$Sitemaps = Resource$Sitemaps; + class Resource$Sites { + constructor(context) { + this.context = context; + } + add(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites/{siteUrl}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['siteUrl'], + pathParams: ['siteUrl'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/webmasters/v3/sites').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + webmasters_v3.Resource$Sites = Resource$Sites; +})(webmasters_v3 = exports.webmasters_v3 || (exports.webmasters_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 56476: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.websecurityscanner = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(13509); +const v1alpha_1 = __nccwpck_require__(7307); +const v1beta_1 = __nccwpck_require__(59763); +exports.VERSIONS = { + v1: v1_1.websecurityscanner_v1.Websecurityscanner, + v1alpha: v1alpha_1.websecurityscanner_v1alpha.Websecurityscanner, + v1beta: v1beta_1.websecurityscanner_v1beta.Websecurityscanner, +}; +function websecurityscanner(versionOrOptions) { + return googleapis_common_1.getAPI('websecurityscanner', versionOrOptions, exports.VERSIONS, this); +} +exports.websecurityscanner = websecurityscanner; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 13509: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.websecurityscanner_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var websecurityscanner_v1; +(function (websecurityscanner_v1) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1'); + * + * @namespace websecurityscanner + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Websecurityscanner + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1 = exports.websecurityscanner_v1 || (exports.websecurityscanner_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 7307: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.websecurityscanner_v1alpha = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var websecurityscanner_v1alpha; +(function (websecurityscanner_v1alpha) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1alpha'); + * + * @namespace websecurityscanner + * @type {Function} + * @version v1alpha + * @variation v1alpha + * @param {object=} options Options for Websecurityscanner + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1alpha.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1alpha.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1alpha/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1alpha.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1alpha = exports.websecurityscanner_v1alpha || (exports.websecurityscanner_v1alpha = {})); +//# sourceMappingURL=v1alpha.js.map + +/***/ }), + +/***/ 59763: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.websecurityscanner_v1beta = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var websecurityscanner_v1beta; +(function (websecurityscanner_v1beta) { + /** + * Web Security Scanner API + * + * Scans your Compute and App Engine apps for common web vulnerabilities. + * + * @example + * const {google} = require('googleapis'); + * const websecurityscanner = google.websecurityscanner('v1beta'); + * + * @namespace websecurityscanner + * @type {Function} + * @version v1beta + * @variation v1beta + * @param {object=} options Options for Websecurityscanner + */ + class Websecurityscanner { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.projects = new Resource$Projects(this.context); + } + } + websecurityscanner_v1beta.Websecurityscanner = Websecurityscanner; + class Resource$Projects { + constructor(context) { + this.context = context; + this.scanConfigs = new Resource$Projects$Scanconfigs(this.context); + } + } + websecurityscanner_v1beta.Resource$Projects = Resource$Projects; + class Resource$Projects$Scanconfigs { + constructor(context) { + this.context = context; + this.scanRuns = new Resource$Projects$Scanconfigs$Scanruns(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanConfigs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + patch(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'PATCH', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + start(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:start').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs = Resource$Projects$Scanconfigs; + class Resource$Projects$Scanconfigs$Scanruns { + constructor(context) { + this.context = context; + this.crawledUrls = new Resource$Projects$Scanconfigs$Scanruns$Crawledurls(this.context); + this.findings = new Resource$Projects$Scanconfigs$Scanruns$Findings(this.context); + this.findingTypeStats = new Resource$Projects$Scanconfigs$Scanruns$Findingtypestats(this.context); + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/scanRuns').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + stop(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}:stop').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns = Resource$Projects$Scanconfigs$Scanruns; + class Resource$Projects$Scanconfigs$Scanruns$Crawledurls { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/crawledUrls').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Crawledurls = Resource$Projects$Scanconfigs$Scanruns$Crawledurls; + class Resource$Projects$Scanconfigs$Scanruns$Findings { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+name}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['name'], + pathParams: ['name'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/findings').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findings = Resource$Projects$Scanconfigs$Scanruns$Findings; + class Resource$Projects$Scanconfigs$Scanruns$Findingtypestats { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://websecurityscanner.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1beta/{+parent}/findingTypeStats').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['parent'], + pathParams: ['parent'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + websecurityscanner_v1beta.Resource$Projects$Scanconfigs$Scanruns$Findingtypestats = Resource$Projects$Scanconfigs$Scanruns$Findingtypestats; +})(websecurityscanner_v1beta = exports.websecurityscanner_v1beta || (exports.websecurityscanner_v1beta = {})); +//# sourceMappingURL=v1beta.js.map + +/***/ }), + +/***/ 31234: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.youtubeAnalytics = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(16142); +const v2_1 = __nccwpck_require__(72836); +exports.VERSIONS = { + v1: v1_1.youtubeAnalytics_v1.Youtubeanalytics, + v2: v2_1.youtubeAnalytics_v2.Youtubeanalytics, +}; +function youtubeAnalytics(versionOrOptions) { + return googleapis_common_1.getAPI('youtubeAnalytics', versionOrOptions, exports.VERSIONS, this); +} +exports.youtubeAnalytics = youtubeAnalytics; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16142: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.youtubeAnalytics_v1 = void 0; +var youtubeAnalytics_v1; +(function (youtubeAnalytics_v1) { + /** + * YouTube Analytics API + * + * Retrieves your YouTube Analytics data. + * + * @example + * const {google} = require('googleapis'); + * const youtubeAnalytics = google.youtubeAnalytics('v1'); + * + * @namespace youtubeAnalytics + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Youtubeanalytics + */ + class Youtubeanalytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + } + } + youtubeAnalytics_v1.Youtubeanalytics = Youtubeanalytics; +})(youtubeAnalytics_v1 = exports.youtubeAnalytics_v1 || (exports.youtubeAnalytics_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 72836: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.youtubeAnalytics_v2 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var youtubeAnalytics_v2; +(function (youtubeAnalytics_v2) { + /** + * YouTube Analytics API + * + * Retrieves your YouTube Analytics data. + * + * @example + * const {google} = require('googleapis'); + * const youtubeAnalytics = google.youtubeAnalytics('v2'); + * + * @namespace youtubeAnalytics + * @type {Function} + * @version v2 + * @variation v2 + * @param {object=} options Options for Youtubeanalytics + */ + class Youtubeanalytics { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.groupItems = new Resource$Groupitems(this.context); + this.groups = new Resource$Groups(this.context); + this.reports = new Resource$Reports(this.context); + } + } + youtubeAnalytics_v2.Youtubeanalytics = Youtubeanalytics; + class Resource$Groupitems { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groupItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Groupitems = Resource$Groupitems; + class Resource$Groups { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/groups').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Groups = Resource$Groups; + class Resource$Reports { + constructor(context) { + this.context = context; + } + query(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubeanalytics.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v2/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubeAnalytics_v2.Resource$Reports = Resource$Reports; +})(youtubeAnalytics_v2 = exports.youtubeAnalytics_v2 || (exports.youtubeAnalytics_v2 = {})); +//# sourceMappingURL=v2.js.map + +/***/ }), + +/***/ 70721: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.youtube = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v3_1 = __nccwpck_require__(98941); +exports.VERSIONS = { + v3: v3_1.youtube_v3.Youtube, +}; +function youtube(versionOrOptions) { + return googleapis_common_1.getAPI('youtube', versionOrOptions, exports.VERSIONS, this); +} +exports.youtube = youtube; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 98941: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.youtube_v3 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var youtube_v3; +(function (youtube_v3) { + /** + * YouTube Data API + * + * Supports core YouTube features, such as uploading videos, creating and managing playlists, searching for content, and much more. + * + * @example + * const {google} = require('googleapis'); + * const youtube = google.youtube('v3'); + * + * @namespace youtube + * @type {Function} + * @version v3 + * @variation v3 + * @param {object=} options Options for Youtube + */ + class Youtube { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.activities = new Resource$Activities(this.context); + this.captions = new Resource$Captions(this.context); + this.channelBanners = new Resource$Channelbanners(this.context); + this.channels = new Resource$Channels(this.context); + this.channelSections = new Resource$Channelsections(this.context); + this.comments = new Resource$Comments(this.context); + this.commentThreads = new Resource$Commentthreads(this.context); + this.guideCategories = new Resource$Guidecategories(this.context); + this.i18nLanguages = new Resource$I18nlanguages(this.context); + this.i18nRegions = new Resource$I18nregions(this.context); + this.liveBroadcasts = new Resource$Livebroadcasts(this.context); + this.liveChatBans = new Resource$Livechatbans(this.context); + this.liveChatMessages = new Resource$Livechatmessages(this.context); + this.liveChatModerators = new Resource$Livechatmoderators(this.context); + this.liveStreams = new Resource$Livestreams(this.context); + this.members = new Resource$Members(this.context); + this.membershipsLevels = new Resource$Membershipslevels(this.context); + this.playlistItems = new Resource$Playlistitems(this.context); + this.playlists = new Resource$Playlists(this.context); + this.search = new Resource$Search(this.context); + this.sponsors = new Resource$Sponsors(this.context); + this.subscriptions = new Resource$Subscriptions(this.context); + this.superChatEvents = new Resource$Superchatevents(this.context); + this.thumbnails = new Resource$Thumbnails(this.context); + this.videoAbuseReportReasons = new Resource$Videoabusereportreasons(this.context); + this.videoCategories = new Resource$Videocategories(this.context); + this.videos = new Resource$Videos(this.context); + this.watermarks = new Resource$Watermarks(this.context); + } + } + youtube_v3.Youtube = Youtube; + class Resource$Activities { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/activities').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Activities = Resource$Activities; + class Resource$Captions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions/{id}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: ['id'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part', 'videoId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/captions').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Captions = Resource$Captions; + class Resource$Channelbanners { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/channelBanners/insert').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Channelbanners = Resource$Channelbanners; + class Resource$Channels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channels').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Channels = Resource$Channels; + class Resource$Channelsections { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/channelSections').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Channelsections = Resource$Channelsections; + class Resource$Comments { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + markAsSpam(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments/markAsSpam').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + setModerationStatus(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments/setModerationStatus').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'moderationStatus'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/comments').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Comments = Resource$Comments; + class Resource$Commentthreads { + constructor(context) { + this.context = context; + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/commentThreads').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Commentthreads = Resource$Commentthreads; + class Resource$Guidecategories { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/guideCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Guidecategories = Resource$Guidecategories; + class Resource$I18nlanguages { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/i18nLanguages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$I18nlanguages = Resource$I18nlanguages; + class Resource$I18nregions { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/i18nRegions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$I18nregions = Resource$I18nregions; + class Resource$Livebroadcasts { + constructor(context) { + this.context = context; + } + bind(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/bind').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + control(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/control').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + transition(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts/transition').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['broadcastStatus', 'id', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveBroadcasts').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Livebroadcasts = Resource$Livebroadcasts; + class Resource$Livechatbans { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/bans').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Livechatbans = Resource$Livechatbans; + class Resource$Livechatmessages { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/messages').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['liveChatId', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Livechatmessages = Resource$Livechatmessages; + class Resource$Livechatmoderators { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveChat/moderators').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['liveChatId', 'part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Livechatmoderators = Resource$Livechatmoderators; + class Resource$Livestreams { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/liveStreams').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Livestreams = Resource$Livestreams; + class Resource$Members { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/members').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Members = Resource$Members; + class Resource$Membershipslevels { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/membershipsLevels').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Membershipslevels = Resource$Membershipslevels; + class Resource$Playlistitems { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlistItems').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Playlistitems = Resource$Playlistitems; + class Resource$Playlists { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/playlists').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Playlists = Resource$Playlists; + class Resource$Search { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/search').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Search = Resource$Search; + class Resource$Sponsors { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/sponsors').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Sponsors = Resource$Sponsors; + class Resource$Subscriptions { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/subscriptions').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Subscriptions = Resource$Subscriptions; + class Resource$Superchatevents { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/superChatEvents').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Superchatevents = Resource$Superchatevents; + class Resource$Thumbnails { + constructor(context) { + this.context = context; + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/thumbnails/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['videoId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Thumbnails = Resource$Thumbnails; + class Resource$Videoabusereportreasons { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videoAbuseReportReasons').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Videoabusereportreasons = Resource$Videoabusereportreasons; + class Resource$Videocategories { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videoCategories').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Videocategories = Resource$Videocategories; + class Resource$Videos { + constructor(context) { + this.context = context; + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + getRating(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/getRating').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['id'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + insert(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + rate(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/rate').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['id', 'rating'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + reportAbuse(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos/reportAbuse').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + update(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/videos').replace(/([^:]\/)\/+/g, '$1'), + method: 'PUT', + }, options), + params, + requiredParams: ['part'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Videos = Resource$Videos; + class Resource$Watermarks { + constructor(context) { + this.context = context; + } + set(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + mediaUrl: (rootUrl + '/upload/youtube/v3/watermarks/set').replace(/([^:]\/)\/+/g, '$1'), + requiredParams: ['channelId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + unset(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://www.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/youtube/v3/watermarks/unset').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: ['channelId'], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtube_v3.Resource$Watermarks = Resource$Watermarks; +})(youtube_v3 = exports.youtube_v3 || (exports.youtube_v3 = {})); +//# sourceMappingURL=v3.js.map + +/***/ }), + +/***/ 66336: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.auth = exports.youtubereporting = exports.VERSIONS = void 0; +/*! THIS FILE IS AUTO-GENERATED */ +const googleapis_common_1 = __nccwpck_require__(62525); +const v1_1 = __nccwpck_require__(43259); +exports.VERSIONS = { + v1: v1_1.youtubereporting_v1.Youtubereporting, +}; +function youtubereporting(versionOrOptions) { + return googleapis_common_1.getAPI('youtubereporting', versionOrOptions, exports.VERSIONS, this); +} +exports.youtubereporting = youtubereporting; +const auth = new googleapis_common_1.AuthPlus(); +exports.auth = auth; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 43259: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.youtubereporting_v1 = void 0; +/* eslint-disable @typescript-eslint/no-explicit-any */ +/* eslint-disable @typescript-eslint/class-name-casing */ +/* eslint-disable @typescript-eslint/no-unused-vars */ +/* eslint-disable @typescript-eslint/no-empty-interface */ +/* eslint-disable @typescript-eslint/no-namespace */ +/* eslint-disable no-irregular-whitespace */ +const googleapis_common_1 = __nccwpck_require__(62525); +var youtubereporting_v1; +(function (youtubereporting_v1) { + /** + * YouTube Reporting API + * + * Schedules reporting jobs containing your YouTube Analytics data and downloads the resulting bulk data reports in the form of CSV files. + * + * @example + * const {google} = require('googleapis'); + * const youtubereporting = google.youtubereporting('v1'); + * + * @namespace youtubereporting + * @type {Function} + * @version v1 + * @variation v1 + * @param {object=} options Options for Youtubereporting + */ + class Youtubereporting { + constructor(options, google) { + this.context = { + _options: options || {}, + google, + }; + this.jobs = new Resource$Jobs(this.context); + this.media = new Resource$Media(this.context); + this.reportTypes = new Resource$Reporttypes(this.context); + } + } + youtubereporting_v1.Youtubereporting = Youtubereporting; + class Resource$Jobs { + constructor(context) { + this.context = context; + this.reports = new Resource$Jobs$Reports(this.context); + } + create(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'POST', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + delete(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'DELETE', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubereporting_v1.Resource$Jobs = Resource$Jobs; + class Resource$Jobs$Reports { + constructor(context) { + this.context = context; + } + get(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}/reports/{reportId}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId', 'reportId'], + pathParams: ['jobId', 'reportId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || + {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/jobs/{jobId}/reports').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['jobId'], + pathParams: ['jobId'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubereporting_v1.Resource$Jobs$Reports = Resource$Jobs$Reports; + class Resource$Media { + constructor(context) { + this.context = context; + } + download(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/media/{+resourceName}').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: ['resourceName'], + pathParams: ['resourceName'], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubereporting_v1.Resource$Media = Resource$Media; + class Resource$Reporttypes { + constructor(context) { + this.context = context; + } + list(paramsOrCallback, optionsOrCallback, callback) { + let params = (paramsOrCallback || {}); + let options = (optionsOrCallback || {}); + if (typeof paramsOrCallback === 'function') { + callback = paramsOrCallback; + params = {}; + options = {}; + } + if (typeof optionsOrCallback === 'function') { + callback = optionsOrCallback; + options = {}; + } + const rootUrl = options.rootUrl || 'https://youtubereporting.googleapis.com/'; + const parameters = { + options: Object.assign({ + url: (rootUrl + '/v1/reportTypes').replace(/([^:]\/)\/+/g, '$1'), + method: 'GET', + }, options), + params, + requiredParams: [], + pathParams: [], + context: this.context, + }; + if (callback) { + googleapis_common_1.createAPIRequest(parameters, callback); + } + else { + return googleapis_common_1.createAPIRequest(parameters); + } + } + } + youtubereporting_v1.Resource$Reporttypes = Resource$Reporttypes; +})(youtubereporting_v1 = exports.youtubereporting_v1 || (exports.youtubereporting_v1 = {})); +//# sourceMappingURL=v1.js.map + +/***/ }), + +/***/ 57460: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2012 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleApis = exports.AuthPlus = void 0; +const apis = __nccwpck_require__(24653); +const googleapis_common_1 = __nccwpck_require__(62525); +Object.defineProperty(exports, "AuthPlus", ({ enumerable: true, get: function () { return googleapis_common_1.AuthPlus; } })); +class GoogleApis extends apis.GeneratedAPIs { + /** + * GoogleApis constructor. + * + * @example + * const GoogleApis = require('googleapis').GoogleApis; + * const google = new GoogleApis(); + * + * @class GoogleApis + * @param {Object} [options] Configuration options. + */ + constructor(options) { + super(); + this._discovery = new googleapis_common_1.Discovery({ debug: false, includePrivate: false }); + this.auth = new googleapis_common_1.AuthPlus(); + this._options = {}; + this.options(options); + } + /** + * Obtain a Map of supported APIs, along with included API versions. + */ + getSupportedAPIs() { + const apiMap = {}; + Object.keys(apis.APIS).forEach(a => { + apiMap[a] = Object.keys(apis.APIS[a]); + }); + return apiMap; + } + /** + * Set options. + * + * @param {Object} [options] Configuration options. + */ + options(options) { + this._options = options || {}; + } + /** + * Add APIs endpoints to googleapis object + * E.g. googleapis.drive and googleapis.datastore + * + * @name GoogleApis#addAPIs + * @method + * @param {Object} apis Apis to be added to this GoogleApis instance. + * @private + */ + addAPIs(apisToAdd) { + for (const apiName in apisToAdd) { + // eslint-disable-next-line no-prototype-builtins + if (apisToAdd.hasOwnProperty(apiName)) { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + this[apiName] = apisToAdd[apiName].bind(this); + } + } + } + discover(url, callback) { + if (callback) { + this.discoverAsync(url) + .then(() => callback()) + .catch(callback); + } + else { + return this.discoverAsync(url); + } + } + async discoverAsync(url) { + const allApis = await this._discovery.discoverAllAPIs(url); + this.addAPIs(allApis); + } + /** + * Dynamically generate an Endpoint object from a discovery doc. + * + * @param path Url or file path to discover doc for a single API. + * @param Options to configure the Endpoint object generated from the + * discovery doc. + * @returns A promise that resolves with the configured endpoint. + */ + async discoverAPI(apiPath, options = {}) { + const endpointCreator = await this._discovery.discoverAPI(apiPath); + const ep = endpointCreator(options, this); + ep.google = this; // for drive.google.transporter + return Object.freeze(ep); + } +} +exports.GoogleApis = GoogleApis; +//# sourceMappingURL=googleapis.js.map + +/***/ }), + +/***/ 12187: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +// Copyright 2020 Google LLC +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +/*! THIS FILE IS AUTO-GENERATED */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports.GoogleApis = exports.google = void 0; +const googleapis_1 = __nccwpck_require__(57460); +Object.defineProperty(exports, "GoogleApis", ({ enumerable: true, get: function () { return googleapis_1.GoogleApis; } })); +const google = new googleapis_1.GoogleApis(); +exports.google = google; +var v1_1 = __nccwpck_require__(55030); +Object.defineProperty(exports, "abusiveexperiencereport_v1", ({ enumerable: true, get: function () { return v1_1.abusiveexperiencereport_v1; } })); +var v1_2 = __nccwpck_require__(73334); +Object.defineProperty(exports, "acceleratedmobilepageurl_v1", ({ enumerable: true, get: function () { return v1_2.acceleratedmobilepageurl_v1; } })); +var v1_3 = __nccwpck_require__(59643); +Object.defineProperty(exports, "accessapproval_v1", ({ enumerable: true, get: function () { return v1_3.accessapproval_v1; } })); +var v1beta1_1 = __nccwpck_require__(47797); +Object.defineProperty(exports, "accessapproval_v1beta1", ({ enumerable: true, get: function () { return v1beta1_1.accessapproval_v1beta1; } })); +var v1_4 = __nccwpck_require__(81671); +Object.defineProperty(exports, "accesscontextmanager_v1", ({ enumerable: true, get: function () { return v1_4.accesscontextmanager_v1; } })); +var v1beta_1 = __nccwpck_require__(73306); +Object.defineProperty(exports, "accesscontextmanager_v1beta", ({ enumerable: true, get: function () { return v1beta_1.accesscontextmanager_v1beta; } })); +var v1_2_1 = __nccwpck_require__(88085); +Object.defineProperty(exports, "adexchangebuyer_v1_2", ({ enumerable: true, get: function () { return v1_2_1.adexchangebuyer_v1_2; } })); +var v1_3_1 = __nccwpck_require__(86861); +Object.defineProperty(exports, "adexchangebuyer_v1_3", ({ enumerable: true, get: function () { return v1_3_1.adexchangebuyer_v1_3; } })); +var v1_4_1 = __nccwpck_require__(78830); +Object.defineProperty(exports, "adexchangebuyer_v1_4", ({ enumerable: true, get: function () { return v1_4_1.adexchangebuyer_v1_4; } })); +var v2beta1_1 = __nccwpck_require__(57274); +Object.defineProperty(exports, "adexchangebuyer2_v2beta1", ({ enumerable: true, get: function () { return v2beta1_1.adexchangebuyer2_v2beta1; } })); +var v1_5 = __nccwpck_require__(37165); +Object.defineProperty(exports, "adexperiencereport_v1", ({ enumerable: true, get: function () { return v1_5.adexperiencereport_v1; } })); +var datatransfer_v1_1 = __nccwpck_require__(62711); +Object.defineProperty(exports, "admin_datatransfer_v1", ({ enumerable: true, get: function () { return datatransfer_v1_1.admin_datatransfer_v1; } })); +var directory_v1_1 = __nccwpck_require__(29426); +Object.defineProperty(exports, "admin_directory_v1", ({ enumerable: true, get: function () { return directory_v1_1.admin_directory_v1; } })); +var reports_v1_1 = __nccwpck_require__(99595); +Object.defineProperty(exports, "admin_reports_v1", ({ enumerable: true, get: function () { return reports_v1_1.admin_reports_v1; } })); +var v1_6 = __nccwpck_require__(34633); +Object.defineProperty(exports, "admob_v1", ({ enumerable: true, get: function () { return v1_6.admob_v1; } })); +var v1_4_2 = __nccwpck_require__(99309); +Object.defineProperty(exports, "adsense_v1_4", ({ enumerable: true, get: function () { return v1_4_2.adsense_v1_4; } })); +var v4_1_1 = __nccwpck_require__(18272); +Object.defineProperty(exports, "adsensehost_v4_1", ({ enumerable: true, get: function () { return v4_1_1.adsensehost_v4_1; } })); +var v1beta1_2 = __nccwpck_require__(92344); +Object.defineProperty(exports, "alertcenter_v1beta1", ({ enumerable: true, get: function () { return v1beta1_2.alertcenter_v1beta1; } })); +var v3_1 = __nccwpck_require__(69545); +Object.defineProperty(exports, "analytics_v3", ({ enumerable: true, get: function () { return v3_1.analytics_v3; } })); +var v4_1 = __nccwpck_require__(19975); +Object.defineProperty(exports, "analyticsreporting_v4", ({ enumerable: true, get: function () { return v4_1.analyticsreporting_v4; } })); +var v1_7 = __nccwpck_require__(5806); +Object.defineProperty(exports, "androiddeviceprovisioning_v1", ({ enumerable: true, get: function () { return v1_7.androiddeviceprovisioning_v1; } })); +var v1_8 = __nccwpck_require__(93603); +Object.defineProperty(exports, "androidenterprise_v1", ({ enumerable: true, get: function () { return v1_8.androidenterprise_v1; } })); +var v1_9 = __nccwpck_require__(23977); +Object.defineProperty(exports, "androidmanagement_v1", ({ enumerable: true, get: function () { return v1_9.androidmanagement_v1; } })); +var v1_1_1 = __nccwpck_require__(56291); +Object.defineProperty(exports, "androidpublisher_v1_1", ({ enumerable: true, get: function () { return v1_1_1.androidpublisher_v1_1; } })); +var v1_10 = __nccwpck_require__(95079); +Object.defineProperty(exports, "androidpublisher_v1", ({ enumerable: true, get: function () { return v1_10.androidpublisher_v1; } })); +var v2_1 = __nccwpck_require__(25758); +Object.defineProperty(exports, "androidpublisher_v2", ({ enumerable: true, get: function () { return v2_1.androidpublisher_v2; } })); +var v3_2 = __nccwpck_require__(44771); +Object.defineProperty(exports, "androidpublisher_v3", ({ enumerable: true, get: function () { return v3_2.androidpublisher_v3; } })); +var v1_11 = __nccwpck_require__(75846); +Object.defineProperty(exports, "appengine_v1", ({ enumerable: true, get: function () { return v1_11.appengine_v1; } })); +var v1alpha_1 = __nccwpck_require__(12034); +Object.defineProperty(exports, "appengine_v1alpha", ({ enumerable: true, get: function () { return v1alpha_1.appengine_v1alpha; } })); +var v1beta_2 = __nccwpck_require__(67831); +Object.defineProperty(exports, "appengine_v1beta", ({ enumerable: true, get: function () { return v1beta_2.appengine_v1beta; } })); +var v1_12 = __nccwpck_require__(68794); +Object.defineProperty(exports, "appsactivity_v1", ({ enumerable: true, get: function () { return v1_12.appsactivity_v1; } })); +var v2_2 = __nccwpck_require__(20701); +Object.defineProperty(exports, "bigquery_v2", ({ enumerable: true, get: function () { return v2_2.bigquery_v2; } })); +var v1beta1_3 = __nccwpck_require__(64454); +Object.defineProperty(exports, "bigqueryconnection_v1beta1", ({ enumerable: true, get: function () { return v1beta1_3.bigqueryconnection_v1beta1; } })); +var v1_13 = __nccwpck_require__(5089); +Object.defineProperty(exports, "bigquerydatatransfer_v1", ({ enumerable: true, get: function () { return v1_13.bigquerydatatransfer_v1; } })); +var v1_14 = __nccwpck_require__(94531); +Object.defineProperty(exports, "bigqueryreservation_v1", ({ enumerable: true, get: function () { return v1_14.bigqueryreservation_v1; } })); +var v1alpha2_1 = __nccwpck_require__(17328); +Object.defineProperty(exports, "bigqueryreservation_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_1.bigqueryreservation_v1alpha2; } })); +var v1beta1_4 = __nccwpck_require__(98285); +Object.defineProperty(exports, "bigqueryreservation_v1beta1", ({ enumerable: true, get: function () { return v1beta1_4.bigqueryreservation_v1beta1; } })); +var v1_15 = __nccwpck_require__(19795); +Object.defineProperty(exports, "bigtableadmin_v1", ({ enumerable: true, get: function () { return v1_15.bigtableadmin_v1; } })); +var v2_3 = __nccwpck_require__(58440); +Object.defineProperty(exports, "bigtableadmin_v2", ({ enumerable: true, get: function () { return v2_3.bigtableadmin_v2; } })); +var v1beta1_5 = __nccwpck_require__(86437); +Object.defineProperty(exports, "billingbudgets_v1beta1", ({ enumerable: true, get: function () { return v1beta1_5.billingbudgets_v1beta1; } })); +var v1_16 = __nccwpck_require__(29786); +Object.defineProperty(exports, "binaryauthorization_v1", ({ enumerable: true, get: function () { return v1_16.binaryauthorization_v1; } })); +var v1beta1_6 = __nccwpck_require__(2632); +Object.defineProperty(exports, "binaryauthorization_v1beta1", ({ enumerable: true, get: function () { return v1beta1_6.binaryauthorization_v1beta1; } })); +var v2_4 = __nccwpck_require__(92531); +Object.defineProperty(exports, "blogger_v2", ({ enumerable: true, get: function () { return v2_4.blogger_v2; } })); +var v3_3 = __nccwpck_require__(26675); +Object.defineProperty(exports, "blogger_v3", ({ enumerable: true, get: function () { return v3_3.blogger_v3; } })); +var v1_17 = __nccwpck_require__(59666); +Object.defineProperty(exports, "books_v1", ({ enumerable: true, get: function () { return v1_17.books_v1; } })); +var v3_4 = __nccwpck_require__(59181); +Object.defineProperty(exports, "calendar_v3", ({ enumerable: true, get: function () { return v3_4.calendar_v3; } })); +var v1_18 = __nccwpck_require__(92823); +Object.defineProperty(exports, "chat_v1", ({ enumerable: true, get: function () { return v1_18.chat_v1; } })); +var v2_5 = __nccwpck_require__(16309); +Object.defineProperty(exports, "civicinfo_v2", ({ enumerable: true, get: function () { return v2_5.civicinfo_v2; } })); +var v1_19 = __nccwpck_require__(66572); +Object.defineProperty(exports, "classroom_v1", ({ enumerable: true, get: function () { return v1_19.classroom_v1; } })); +var v1_20 = __nccwpck_require__(16938); +Object.defineProperty(exports, "cloudasset_v1", ({ enumerable: true, get: function () { return v1_20.cloudasset_v1; } })); +var v1beta1_7 = __nccwpck_require__(52545); +Object.defineProperty(exports, "cloudasset_v1beta1", ({ enumerable: true, get: function () { return v1beta1_7.cloudasset_v1beta1; } })); +var v1p1beta1_1 = __nccwpck_require__(40677); +Object.defineProperty(exports, "cloudasset_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_1.cloudasset_v1p1beta1; } })); +var v1p4beta1_1 = __nccwpck_require__(89936); +Object.defineProperty(exports, "cloudasset_v1p4beta1", ({ enumerable: true, get: function () { return v1p4beta1_1.cloudasset_v1p4beta1; } })); +var v1_21 = __nccwpck_require__(66659); +Object.defineProperty(exports, "cloudbilling_v1", ({ enumerable: true, get: function () { return v1_21.cloudbilling_v1; } })); +var v1_22 = __nccwpck_require__(88950); +Object.defineProperty(exports, "cloudbuild_v1", ({ enumerable: true, get: function () { return v1_22.cloudbuild_v1; } })); +var v1alpha1_1 = __nccwpck_require__(55957); +Object.defineProperty(exports, "cloudbuild_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_1.cloudbuild_v1alpha1; } })); +var v1alpha2_2 = __nccwpck_require__(51844); +Object.defineProperty(exports, "cloudbuild_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_2.cloudbuild_v1alpha2; } })); +var v2_6 = __nccwpck_require__(12755); +Object.defineProperty(exports, "clouddebugger_v2", ({ enumerable: true, get: function () { return v2_6.clouddebugger_v2; } })); +var v1beta1_8 = __nccwpck_require__(6269); +Object.defineProperty(exports, "clouderrorreporting_v1beta1", ({ enumerable: true, get: function () { return v1beta1_8.clouderrorreporting_v1beta1; } })); +var v1_23 = __nccwpck_require__(47308); +Object.defineProperty(exports, "cloudfunctions_v1", ({ enumerable: true, get: function () { return v1_23.cloudfunctions_v1; } })); +var v1beta2_1 = __nccwpck_require__(26084); +Object.defineProperty(exports, "cloudfunctions_v1beta2", ({ enumerable: true, get: function () { return v1beta2_1.cloudfunctions_v1beta2; } })); +var v1_24 = __nccwpck_require__(25457); +Object.defineProperty(exports, "cloudidentity_v1", ({ enumerable: true, get: function () { return v1_24.cloudidentity_v1; } })); +var v1beta1_9 = __nccwpck_require__(6339); +Object.defineProperty(exports, "cloudidentity_v1beta1", ({ enumerable: true, get: function () { return v1beta1_9.cloudidentity_v1beta1; } })); +var v1_25 = __nccwpck_require__(33221); +Object.defineProperty(exports, "cloudiot_v1", ({ enumerable: true, get: function () { return v1_25.cloudiot_v1; } })); +var v1_26 = __nccwpck_require__(29305); +Object.defineProperty(exports, "cloudkms_v1", ({ enumerable: true, get: function () { return v1_26.cloudkms_v1; } })); +var v2_7 = __nccwpck_require__(9991); +Object.defineProperty(exports, "cloudprofiler_v2", ({ enumerable: true, get: function () { return v2_7.cloudprofiler_v2; } })); +var v1_27 = __nccwpck_require__(71553); +Object.defineProperty(exports, "cloudresourcemanager_v1", ({ enumerable: true, get: function () { return v1_27.cloudresourcemanager_v1; } })); +var v1beta1_10 = __nccwpck_require__(37513); +Object.defineProperty(exports, "cloudresourcemanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_10.cloudresourcemanager_v1beta1; } })); +var v2_8 = __nccwpck_require__(22839); +Object.defineProperty(exports, "cloudresourcemanager_v2", ({ enumerable: true, get: function () { return v2_8.cloudresourcemanager_v2; } })); +var v2beta1_2 = __nccwpck_require__(74335); +Object.defineProperty(exports, "cloudresourcemanager_v2beta1", ({ enumerable: true, get: function () { return v2beta1_2.cloudresourcemanager_v2beta1; } })); +var v1_28 = __nccwpck_require__(55624); +Object.defineProperty(exports, "cloudscheduler_v1", ({ enumerable: true, get: function () { return v1_28.cloudscheduler_v1; } })); +var v1beta1_11 = __nccwpck_require__(55715); +Object.defineProperty(exports, "cloudscheduler_v1beta1", ({ enumerable: true, get: function () { return v1beta1_11.cloudscheduler_v1beta1; } })); +var v1_29 = __nccwpck_require__(76006); +Object.defineProperty(exports, "cloudsearch_v1", ({ enumerable: true, get: function () { return v1_29.cloudsearch_v1; } })); +var v1_30 = __nccwpck_require__(78337); +Object.defineProperty(exports, "cloudshell_v1", ({ enumerable: true, get: function () { return v1_30.cloudshell_v1; } })); +var v1alpha1_2 = __nccwpck_require__(7694); +Object.defineProperty(exports, "cloudshell_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_2.cloudshell_v1alpha1; } })); +var v2_9 = __nccwpck_require__(68349); +Object.defineProperty(exports, "cloudtasks_v2", ({ enumerable: true, get: function () { return v2_9.cloudtasks_v2; } })); +var v2beta2_1 = __nccwpck_require__(58434); +Object.defineProperty(exports, "cloudtasks_v2beta2", ({ enumerable: true, get: function () { return v2beta2_1.cloudtasks_v2beta2; } })); +var v2beta3_1 = __nccwpck_require__(1249); +Object.defineProperty(exports, "cloudtasks_v2beta3", ({ enumerable: true, get: function () { return v2beta3_1.cloudtasks_v2beta3; } })); +var v1_31 = __nccwpck_require__(87705); +Object.defineProperty(exports, "cloudtrace_v1", ({ enumerable: true, get: function () { return v1_31.cloudtrace_v1; } })); +var v2_10 = __nccwpck_require__(76060); +Object.defineProperty(exports, "cloudtrace_v2", ({ enumerable: true, get: function () { return v2_10.cloudtrace_v2; } })); +var v2beta1_3 = __nccwpck_require__(30442); +Object.defineProperty(exports, "cloudtrace_v2beta1", ({ enumerable: true, get: function () { return v2beta1_3.cloudtrace_v2beta1; } })); +var v1_32 = __nccwpck_require__(11127); +Object.defineProperty(exports, "composer_v1", ({ enumerable: true, get: function () { return v1_32.composer_v1; } })); +var v1beta1_12 = __nccwpck_require__(68076); +Object.defineProperty(exports, "composer_v1beta1", ({ enumerable: true, get: function () { return v1beta1_12.composer_v1beta1; } })); +var alpha_1 = __nccwpck_require__(60185); +Object.defineProperty(exports, "compute_alpha", ({ enumerable: true, get: function () { return alpha_1.compute_alpha; } })); +var beta_1 = __nccwpck_require__(14057); +Object.defineProperty(exports, "compute_beta", ({ enumerable: true, get: function () { return beta_1.compute_beta; } })); +var v1_33 = __nccwpck_require__(96616); +Object.defineProperty(exports, "compute_v1", ({ enumerable: true, get: function () { return v1_33.compute_v1; } })); +var v1_34 = __nccwpck_require__(39298); +Object.defineProperty(exports, "container_v1", ({ enumerable: true, get: function () { return v1_34.container_v1; } })); +var v1beta1_13 = __nccwpck_require__(56001); +Object.defineProperty(exports, "container_v1beta1", ({ enumerable: true, get: function () { return v1beta1_13.container_v1beta1; } })); +var v1alpha1_3 = __nccwpck_require__(4690); +Object.defineProperty(exports, "containeranalysis_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_3.containeranalysis_v1alpha1; } })); +var v1beta1_14 = __nccwpck_require__(4947); +Object.defineProperty(exports, "containeranalysis_v1beta1", ({ enumerable: true, get: function () { return v1beta1_14.containeranalysis_v1beta1; } })); +var v2_1_1 = __nccwpck_require__(16758); +Object.defineProperty(exports, "content_v2_1", ({ enumerable: true, get: function () { return v2_1_1.content_v2_1; } })); +var v2_11 = __nccwpck_require__(74882); +Object.defineProperty(exports, "content_v2", ({ enumerable: true, get: function () { return v2_11.content_v2; } })); +var v1_35 = __nccwpck_require__(35353); +Object.defineProperty(exports, "customsearch_v1", ({ enumerable: true, get: function () { return v1_35.customsearch_v1; } })); +var v1beta1_15 = __nccwpck_require__(21070); +Object.defineProperty(exports, "datacatalog_v1beta1", ({ enumerable: true, get: function () { return v1beta1_15.datacatalog_v1beta1; } })); +var v1b3_1 = __nccwpck_require__(65860); +Object.defineProperty(exports, "dataflow_v1b3", ({ enumerable: true, get: function () { return v1b3_1.dataflow_v1b3; } })); +var v1beta1_16 = __nccwpck_require__(39777); +Object.defineProperty(exports, "datafusion_v1beta1", ({ enumerable: true, get: function () { return v1beta1_16.datafusion_v1beta1; } })); +var v1_36 = __nccwpck_require__(18309); +Object.defineProperty(exports, "dataproc_v1", ({ enumerable: true, get: function () { return v1_36.dataproc_v1; } })); +var v1beta2_2 = __nccwpck_require__(69873); +Object.defineProperty(exports, "dataproc_v1beta2", ({ enumerable: true, get: function () { return v1beta2_2.dataproc_v1beta2; } })); +var v1_37 = __nccwpck_require__(61919); +Object.defineProperty(exports, "datastore_v1", ({ enumerable: true, get: function () { return v1_37.datastore_v1; } })); +var v1beta1_17 = __nccwpck_require__(63794); +Object.defineProperty(exports, "datastore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_17.datastore_v1beta1; } })); +var v1beta3_1 = __nccwpck_require__(90808); +Object.defineProperty(exports, "datastore_v1beta3", ({ enumerable: true, get: function () { return v1beta3_1.datastore_v1beta3; } })); +var alpha_2 = __nccwpck_require__(42637); +Object.defineProperty(exports, "deploymentmanager_alpha", ({ enumerable: true, get: function () { return alpha_2.deploymentmanager_alpha; } })); +var v2_12 = __nccwpck_require__(23219); +Object.defineProperty(exports, "deploymentmanager_v2", ({ enumerable: true, get: function () { return v2_12.deploymentmanager_v2; } })); +var v2beta_1 = __nccwpck_require__(42670); +Object.defineProperty(exports, "deploymentmanager_v2beta", ({ enumerable: true, get: function () { return v2beta_1.deploymentmanager_v2beta; } })); +var v3_3_1 = __nccwpck_require__(12722); +Object.defineProperty(exports, "dfareporting_v3_3", ({ enumerable: true, get: function () { return v3_3_1.dfareporting_v3_3; } })); +var v3_4_1 = __nccwpck_require__(78539); +Object.defineProperty(exports, "dfareporting_v3_4", ({ enumerable: true, get: function () { return v3_4_1.dfareporting_v3_4; } })); +var v2_13 = __nccwpck_require__(86200); +Object.defineProperty(exports, "dialogflow_v2", ({ enumerable: true, get: function () { return v2_13.dialogflow_v2; } })); +var v2beta1_4 = __nccwpck_require__(24769); +Object.defineProperty(exports, "dialogflow_v2beta1", ({ enumerable: true, get: function () { return v2beta1_4.dialogflow_v2beta1; } })); +var v1_38 = __nccwpck_require__(596); +Object.defineProperty(exports, "digitalassetlinks_v1", ({ enumerable: true, get: function () { return v1_38.digitalassetlinks_v1; } })); +var v1_39 = __nccwpck_require__(9762); +Object.defineProperty(exports, "discovery_v1", ({ enumerable: true, get: function () { return v1_39.discovery_v1; } })); +var v1_40 = __nccwpck_require__(39618); +Object.defineProperty(exports, "displayvideo_v1", ({ enumerable: true, get: function () { return v1_40.displayvideo_v1; } })); +var v2_14 = __nccwpck_require__(78831); +Object.defineProperty(exports, "dlp_v2", ({ enumerable: true, get: function () { return v2_14.dlp_v2; } })); +var v1_41 = __nccwpck_require__(66812); +Object.defineProperty(exports, "dns_v1", ({ enumerable: true, get: function () { return v1_41.dns_v1; } })); +var v1beta2_3 = __nccwpck_require__(98194); +Object.defineProperty(exports, "dns_v1beta2", ({ enumerable: true, get: function () { return v1beta2_3.dns_v1beta2; } })); +var v2beta1_5 = __nccwpck_require__(43894); +Object.defineProperty(exports, "dns_v2beta1", ({ enumerable: true, get: function () { return v2beta1_5.dns_v2beta1; } })); +var v1_42 = __nccwpck_require__(79902); +Object.defineProperty(exports, "docs_v1", ({ enumerable: true, get: function () { return v1_42.docs_v1; } })); +var v1_43 = __nccwpck_require__(55451); +Object.defineProperty(exports, "domainsrdap_v1", ({ enumerable: true, get: function () { return v1_43.domainsrdap_v1; } })); +var v1_1_2 = __nccwpck_require__(28946); +Object.defineProperty(exports, "doubleclickbidmanager_v1_1", ({ enumerable: true, get: function () { return v1_1_2.doubleclickbidmanager_v1_1; } })); +var v1_44 = __nccwpck_require__(67537); +Object.defineProperty(exports, "doubleclickbidmanager_v1", ({ enumerable: true, get: function () { return v1_44.doubleclickbidmanager_v1; } })); +var v2_15 = __nccwpck_require__(51344); +Object.defineProperty(exports, "doubleclicksearch_v2", ({ enumerable: true, get: function () { return v2_15.doubleclicksearch_v2; } })); +var v2_16 = __nccwpck_require__(26436); +Object.defineProperty(exports, "drive_v2", ({ enumerable: true, get: function () { return v2_16.drive_v2; } })); +var v3_5 = __nccwpck_require__(95863); +Object.defineProperty(exports, "drive_v3", ({ enumerable: true, get: function () { return v3_5.drive_v3; } })); +var v2_17 = __nccwpck_require__(93293); +Object.defineProperty(exports, "driveactivity_v2", ({ enumerable: true, get: function () { return v2_17.driveactivity_v2; } })); +var v1alpha1_4 = __nccwpck_require__(13058); +Object.defineProperty(exports, "factchecktools_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_4.factchecktools_v1alpha1; } })); +var v1_45 = __nccwpck_require__(77166); +Object.defineProperty(exports, "fcm_v1", ({ enumerable: true, get: function () { return v1_45.fcm_v1; } })); +var v1_46 = __nccwpck_require__(17439); +Object.defineProperty(exports, "file_v1", ({ enumerable: true, get: function () { return v1_46.file_v1; } })); +var v1beta1_18 = __nccwpck_require__(69350); +Object.defineProperty(exports, "file_v1beta1", ({ enumerable: true, get: function () { return v1beta1_18.file_v1beta1; } })); +var v1beta1_19 = __nccwpck_require__(92590); +Object.defineProperty(exports, "firebase_v1beta1", ({ enumerable: true, get: function () { return v1beta1_19.firebase_v1beta1; } })); +var v1_47 = __nccwpck_require__(26509); +Object.defineProperty(exports, "firebasedynamiclinks_v1", ({ enumerable: true, get: function () { return v1_47.firebasedynamiclinks_v1; } })); +var v1beta1_20 = __nccwpck_require__(15811); +Object.defineProperty(exports, "firebasehosting_v1beta1", ({ enumerable: true, get: function () { return v1beta1_20.firebasehosting_v1beta1; } })); +var v1beta2_4 = __nccwpck_require__(75272); +Object.defineProperty(exports, "firebaseml_v1beta2", ({ enumerable: true, get: function () { return v1beta2_4.firebaseml_v1beta2; } })); +var v1_48 = __nccwpck_require__(48907); +Object.defineProperty(exports, "firebaserules_v1", ({ enumerable: true, get: function () { return v1_48.firebaserules_v1; } })); +var v1_49 = __nccwpck_require__(61083); +Object.defineProperty(exports, "firestore_v1", ({ enumerable: true, get: function () { return v1_49.firestore_v1; } })); +var v1beta1_21 = __nccwpck_require__(93083); +Object.defineProperty(exports, "firestore_v1beta1", ({ enumerable: true, get: function () { return v1beta1_21.firestore_v1beta1; } })); +var v1beta2_5 = __nccwpck_require__(86640); +Object.defineProperty(exports, "firestore_v1beta2", ({ enumerable: true, get: function () { return v1beta2_5.firestore_v1beta2; } })); +var v1_50 = __nccwpck_require__(12030); +Object.defineProperty(exports, "fitness_v1", ({ enumerable: true, get: function () { return v1_50.fitness_v1; } })); +var v1_51 = __nccwpck_require__(23512); +Object.defineProperty(exports, "games_v1", ({ enumerable: true, get: function () { return v1_51.games_v1; } })); +var v1configuration_1 = __nccwpck_require__(10294); +Object.defineProperty(exports, "gamesConfiguration_v1configuration", ({ enumerable: true, get: function () { return v1configuration_1.gamesConfiguration_v1configuration; } })); +var v1management_1 = __nccwpck_require__(7364); +Object.defineProperty(exports, "gamesManagement_v1management", ({ enumerable: true, get: function () { return v1management_1.gamesManagement_v1management; } })); +var v1beta_3 = __nccwpck_require__(21675); +Object.defineProperty(exports, "gameservices_v1beta", ({ enumerable: true, get: function () { return v1beta_3.gameservices_v1beta; } })); +var v1_52 = __nccwpck_require__(91674); +Object.defineProperty(exports, "genomics_v1", ({ enumerable: true, get: function () { return v1_52.genomics_v1; } })); +var v1alpha2_3 = __nccwpck_require__(24800); +Object.defineProperty(exports, "genomics_v1alpha2", ({ enumerable: true, get: function () { return v1alpha2_3.genomics_v1alpha2; } })); +var v2alpha1_1 = __nccwpck_require__(33251); +Object.defineProperty(exports, "genomics_v2alpha1", ({ enumerable: true, get: function () { return v2alpha1_1.genomics_v2alpha1; } })); +var v1_53 = __nccwpck_require__(20989); +Object.defineProperty(exports, "gmail_v1", ({ enumerable: true, get: function () { return v1_53.gmail_v1; } })); +var v1_54 = __nccwpck_require__(95047); +Object.defineProperty(exports, "groupsmigration_v1", ({ enumerable: true, get: function () { return v1_54.groupsmigration_v1; } })); +var v1_55 = __nccwpck_require__(34153); +Object.defineProperty(exports, "groupssettings_v1", ({ enumerable: true, get: function () { return v1_55.groupssettings_v1; } })); +var v1_56 = __nccwpck_require__(85851); +Object.defineProperty(exports, "healthcare_v1", ({ enumerable: true, get: function () { return v1_56.healthcare_v1; } })); +var v1beta1_22 = __nccwpck_require__(60667); +Object.defineProperty(exports, "healthcare_v1beta1", ({ enumerable: true, get: function () { return v1beta1_22.healthcare_v1beta1; } })); +var v1_57 = __nccwpck_require__(6832); +Object.defineProperty(exports, "homegraph_v1", ({ enumerable: true, get: function () { return v1_57.homegraph_v1; } })); +var v1_58 = __nccwpck_require__(16402); +Object.defineProperty(exports, "iam_v1", ({ enumerable: true, get: function () { return v1_58.iam_v1; } })); +var v1_59 = __nccwpck_require__(62213); +Object.defineProperty(exports, "iamcredentials_v1", ({ enumerable: true, get: function () { return v1_59.iamcredentials_v1; } })); +var v1_60 = __nccwpck_require__(83238); +Object.defineProperty(exports, "iap_v1", ({ enumerable: true, get: function () { return v1_60.iap_v1; } })); +var v1beta1_23 = __nccwpck_require__(62180); +Object.defineProperty(exports, "iap_v1beta1", ({ enumerable: true, get: function () { return v1beta1_23.iap_v1beta1; } })); +var v3_6 = __nccwpck_require__(21179); +Object.defineProperty(exports, "identitytoolkit_v3", ({ enumerable: true, get: function () { return v3_6.identitytoolkit_v3; } })); +var v3_7 = __nccwpck_require__(31491); +Object.defineProperty(exports, "indexing_v3", ({ enumerable: true, get: function () { return v3_7.indexing_v3; } })); +var v2_18 = __nccwpck_require__(48921); +Object.defineProperty(exports, "jobs_v2", ({ enumerable: true, get: function () { return v2_18.jobs_v2; } })); +var v3_8 = __nccwpck_require__(8949); +Object.defineProperty(exports, "jobs_v3", ({ enumerable: true, get: function () { return v3_8.jobs_v3; } })); +var v3p1beta1_1 = __nccwpck_require__(28790); +Object.defineProperty(exports, "jobs_v3p1beta1", ({ enumerable: true, get: function () { return v3p1beta1_1.jobs_v3p1beta1; } })); +var v1_61 = __nccwpck_require__(63655); +Object.defineProperty(exports, "kgsearch_v1", ({ enumerable: true, get: function () { return v1_61.kgsearch_v1; } })); +var v1_62 = __nccwpck_require__(85095); +Object.defineProperty(exports, "language_v1", ({ enumerable: true, get: function () { return v1_62.language_v1; } })); +var v1beta1_24 = __nccwpck_require__(55348); +Object.defineProperty(exports, "language_v1beta1", ({ enumerable: true, get: function () { return v1beta1_24.language_v1beta1; } })); +var v1beta2_6 = __nccwpck_require__(19069); +Object.defineProperty(exports, "language_v1beta2", ({ enumerable: true, get: function () { return v1beta2_6.language_v1beta2; } })); +var v1_63 = __nccwpck_require__(17080); +Object.defineProperty(exports, "libraryagent_v1", ({ enumerable: true, get: function () { return v1_63.libraryagent_v1; } })); +var v1_64 = __nccwpck_require__(26983); +Object.defineProperty(exports, "licensing_v1", ({ enumerable: true, get: function () { return v1_64.licensing_v1; } })); +var v2beta_2 = __nccwpck_require__(33840); +Object.defineProperty(exports, "lifesciences_v2beta", ({ enumerable: true, get: function () { return v2beta_2.lifesciences_v2beta; } })); +var v2_19 = __nccwpck_require__(41752); +Object.defineProperty(exports, "logging_v2", ({ enumerable: true, get: function () { return v2_19.logging_v2; } })); +var v1_65 = __nccwpck_require__(42462); +Object.defineProperty(exports, "managedidentities_v1", ({ enumerable: true, get: function () { return v1_65.managedidentities_v1; } })); +var v1alpha1_5 = __nccwpck_require__(84396); +Object.defineProperty(exports, "managedidentities_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_5.managedidentities_v1alpha1; } })); +var v1beta1_25 = __nccwpck_require__(20947); +Object.defineProperty(exports, "managedidentities_v1beta1", ({ enumerable: true, get: function () { return v1beta1_25.managedidentities_v1beta1; } })); +var v1_66 = __nccwpck_require__(28583); +Object.defineProperty(exports, "manufacturers_v1", ({ enumerable: true, get: function () { return v1_66.manufacturers_v1; } })); +var v1beta2_7 = __nccwpck_require__(4833); +Object.defineProperty(exports, "memcache_v1beta2", ({ enumerable: true, get: function () { return v1beta2_7.memcache_v1beta2; } })); +var v1_67 = __nccwpck_require__(51921); +Object.defineProperty(exports, "ml_v1", ({ enumerable: true, get: function () { return v1_67.ml_v1; } })); +var v1_68 = __nccwpck_require__(25706); +Object.defineProperty(exports, "monitoring_v1", ({ enumerable: true, get: function () { return v1_68.monitoring_v1; } })); +var v3_9 = __nccwpck_require__(82249); +Object.defineProperty(exports, "monitoring_v3", ({ enumerable: true, get: function () { return v3_9.monitoring_v3; } })); +var v1beta1_26 = __nccwpck_require__(21076); +Object.defineProperty(exports, "networkmanagement_v1beta1", ({ enumerable: true, get: function () { return v1beta1_26.networkmanagement_v1beta1; } })); +var v2_20 = __nccwpck_require__(17744); +Object.defineProperty(exports, "oauth2_v2", ({ enumerable: true, get: function () { return v2_20.oauth2_v2; } })); +var v1_69 = __nccwpck_require__(862); +Object.defineProperty(exports, "osconfig_v1", ({ enumerable: true, get: function () { return v1_69.osconfig_v1; } })); +var v1beta_4 = __nccwpck_require__(18087); +Object.defineProperty(exports, "osconfig_v1beta", ({ enumerable: true, get: function () { return v1beta_4.osconfig_v1beta; } })); +var v1_70 = __nccwpck_require__(94424); +Object.defineProperty(exports, "oslogin_v1", ({ enumerable: true, get: function () { return v1_70.oslogin_v1; } })); +var v1alpha_2 = __nccwpck_require__(44272); +Object.defineProperty(exports, "oslogin_v1alpha", ({ enumerable: true, get: function () { return v1alpha_2.oslogin_v1alpha; } })); +var v1beta_5 = __nccwpck_require__(58402); +Object.defineProperty(exports, "oslogin_v1beta", ({ enumerable: true, get: function () { return v1beta_5.oslogin_v1beta; } })); +var v2_21 = __nccwpck_require__(33677); +Object.defineProperty(exports, "pagespeedonline_v2", ({ enumerable: true, get: function () { return v2_21.pagespeedonline_v2; } })); +var v4_2 = __nccwpck_require__(41257); +Object.defineProperty(exports, "pagespeedonline_v4", ({ enumerable: true, get: function () { return v4_2.pagespeedonline_v4; } })); +var v5_1 = __nccwpck_require__(62031); +Object.defineProperty(exports, "pagespeedonline_v5", ({ enumerable: true, get: function () { return v5_1.pagespeedonline_v5; } })); +var v1_71 = __nccwpck_require__(85246); +Object.defineProperty(exports, "people_v1", ({ enumerable: true, get: function () { return v1_71.people_v1; } })); +var v1_72 = __nccwpck_require__(46149); +Object.defineProperty(exports, "playcustomapp_v1", ({ enumerable: true, get: function () { return v1_72.playcustomapp_v1; } })); +var v1_73 = __nccwpck_require__(38263); +Object.defineProperty(exports, "plus_v1", ({ enumerable: true, get: function () { return v1_73.plus_v1; } })); +var v1_74 = __nccwpck_require__(56546); +Object.defineProperty(exports, "policytroubleshooter_v1", ({ enumerable: true, get: function () { return v1_74.policytroubleshooter_v1; } })); +var v1beta_6 = __nccwpck_require__(96545); +Object.defineProperty(exports, "policytroubleshooter_v1beta", ({ enumerable: true, get: function () { return v1beta_6.policytroubleshooter_v1beta; } })); +var v1_75 = __nccwpck_require__(65838); +Object.defineProperty(exports, "poly_v1", ({ enumerable: true, get: function () { return v1_75.poly_v1; } })); +var v1alpha1_6 = __nccwpck_require__(64154); +Object.defineProperty(exports, "prod_tt_sasportal_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_6.prod_tt_sasportal_v1alpha1; } })); +var v1_76 = __nccwpck_require__(62050); +Object.defineProperty(exports, "pubsub_v1", ({ enumerable: true, get: function () { return v1_76.pubsub_v1; } })); +var v1beta1a_1 = __nccwpck_require__(94305); +Object.defineProperty(exports, "pubsub_v1beta1a", ({ enumerable: true, get: function () { return v1beta1a_1.pubsub_v1beta1a; } })); +var v1beta2_8 = __nccwpck_require__(47256); +Object.defineProperty(exports, "pubsub_v1beta2", ({ enumerable: true, get: function () { return v1beta2_8.pubsub_v1beta2; } })); +var v1beta1_27 = __nccwpck_require__(82545); +Object.defineProperty(exports, "recommender_v1beta1", ({ enumerable: true, get: function () { return v1beta1_27.recommender_v1beta1; } })); +var v1_77 = __nccwpck_require__(75177); +Object.defineProperty(exports, "redis_v1", ({ enumerable: true, get: function () { return v1_77.redis_v1; } })); +var v1beta1_28 = __nccwpck_require__(80891); +Object.defineProperty(exports, "redis_v1beta1", ({ enumerable: true, get: function () { return v1beta1_28.redis_v1beta1; } })); +var v1_78 = __nccwpck_require__(26530); +Object.defineProperty(exports, "remotebuildexecution_v1", ({ enumerable: true, get: function () { return v1_78.remotebuildexecution_v1; } })); +var v1alpha_3 = __nccwpck_require__(28414); +Object.defineProperty(exports, "remotebuildexecution_v1alpha", ({ enumerable: true, get: function () { return v1alpha_3.remotebuildexecution_v1alpha; } })); +var v2_22 = __nccwpck_require__(48189); +Object.defineProperty(exports, "remotebuildexecution_v2", ({ enumerable: true, get: function () { return v2_22.remotebuildexecution_v2; } })); +var v1_79 = __nccwpck_require__(69798); +Object.defineProperty(exports, "reseller_v1", ({ enumerable: true, get: function () { return v1_79.reseller_v1; } })); +var v1_80 = __nccwpck_require__(58579); +Object.defineProperty(exports, "run_v1", ({ enumerable: true, get: function () { return v1_80.run_v1; } })); +var v1alpha1_7 = __nccwpck_require__(5522); +Object.defineProperty(exports, "run_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_7.run_v1alpha1; } })); +var v1beta1_29 = __nccwpck_require__(70121); +Object.defineProperty(exports, "run_v1beta1", ({ enumerable: true, get: function () { return v1beta1_29.run_v1beta1; } })); +var v1_81 = __nccwpck_require__(75440); +Object.defineProperty(exports, "runtimeconfig_v1", ({ enumerable: true, get: function () { return v1_81.runtimeconfig_v1; } })); +var v1beta1_30 = __nccwpck_require__(35876); +Object.defineProperty(exports, "runtimeconfig_v1beta1", ({ enumerable: true, get: function () { return v1beta1_30.runtimeconfig_v1beta1; } })); +var v4_3 = __nccwpck_require__(48432); +Object.defineProperty(exports, "safebrowsing_v4", ({ enumerable: true, get: function () { return v4_3.safebrowsing_v4; } })); +var v1alpha1_8 = __nccwpck_require__(32724); +Object.defineProperty(exports, "sasportal_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_8.sasportal_v1alpha1; } })); +var v1_82 = __nccwpck_require__(28936); +Object.defineProperty(exports, "script_v1", ({ enumerable: true, get: function () { return v1_82.script_v1; } })); +var v1_83 = __nccwpck_require__(29564); +Object.defineProperty(exports, "searchconsole_v1", ({ enumerable: true, get: function () { return v1_83.searchconsole_v1; } })); +var v1_84 = __nccwpck_require__(493); +Object.defineProperty(exports, "secretmanager_v1", ({ enumerable: true, get: function () { return v1_84.secretmanager_v1; } })); +var v1beta1_31 = __nccwpck_require__(94974); +Object.defineProperty(exports, "secretmanager_v1beta1", ({ enumerable: true, get: function () { return v1beta1_31.secretmanager_v1beta1; } })); +var v1_85 = __nccwpck_require__(61585); +Object.defineProperty(exports, "securitycenter_v1", ({ enumerable: true, get: function () { return v1_85.securitycenter_v1; } })); +var v1beta1_32 = __nccwpck_require__(16192); +Object.defineProperty(exports, "securitycenter_v1beta1", ({ enumerable: true, get: function () { return v1beta1_32.securitycenter_v1beta1; } })); +var v1p1alpha1_1 = __nccwpck_require__(34240); +Object.defineProperty(exports, "securitycenter_v1p1alpha1", ({ enumerable: true, get: function () { return v1p1alpha1_1.securitycenter_v1p1alpha1; } })); +var v1p1beta1_2 = __nccwpck_require__(66465); +Object.defineProperty(exports, "securitycenter_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_2.securitycenter_v1p1beta1; } })); +var v1_86 = __nccwpck_require__(65409); +Object.defineProperty(exports, "serviceconsumermanagement_v1", ({ enumerable: true, get: function () { return v1_86.serviceconsumermanagement_v1; } })); +var v1beta1_33 = __nccwpck_require__(12496); +Object.defineProperty(exports, "serviceconsumermanagement_v1beta1", ({ enumerable: true, get: function () { return v1beta1_33.serviceconsumermanagement_v1beta1; } })); +var v1_87 = __nccwpck_require__(85594); +Object.defineProperty(exports, "servicecontrol_v1", ({ enumerable: true, get: function () { return v1_87.servicecontrol_v1; } })); +var v1beta1_34 = __nccwpck_require__(39660); +Object.defineProperty(exports, "servicedirectory_v1beta1", ({ enumerable: true, get: function () { return v1beta1_34.servicedirectory_v1beta1; } })); +var v1_88 = __nccwpck_require__(30458); +Object.defineProperty(exports, "servicemanagement_v1", ({ enumerable: true, get: function () { return v1_88.servicemanagement_v1; } })); +var v1_89 = __nccwpck_require__(32900); +Object.defineProperty(exports, "servicenetworking_v1", ({ enumerable: true, get: function () { return v1_89.servicenetworking_v1; } })); +var v1beta_7 = __nccwpck_require__(81462); +Object.defineProperty(exports, "servicenetworking_v1beta", ({ enumerable: true, get: function () { return v1beta_7.servicenetworking_v1beta; } })); +var v1_90 = __nccwpck_require__(80271); +Object.defineProperty(exports, "serviceusage_v1", ({ enumerable: true, get: function () { return v1_90.serviceusage_v1; } })); +var v1beta1_35 = __nccwpck_require__(59072); +Object.defineProperty(exports, "serviceusage_v1beta1", ({ enumerable: true, get: function () { return v1beta1_35.serviceusage_v1beta1; } })); +var v4_4 = __nccwpck_require__(37895); +Object.defineProperty(exports, "sheets_v4", ({ enumerable: true, get: function () { return v4_4.sheets_v4; } })); +var v1_91 = __nccwpck_require__(71597); +Object.defineProperty(exports, "siteVerification_v1", ({ enumerable: true, get: function () { return v1_91.siteVerification_v1; } })); +var v1_92 = __nccwpck_require__(22098); +Object.defineProperty(exports, "slides_v1", ({ enumerable: true, get: function () { return v1_92.slides_v1; } })); +var v1_93 = __nccwpck_require__(77692); +Object.defineProperty(exports, "sourcerepo_v1", ({ enumerable: true, get: function () { return v1_93.sourcerepo_v1; } })); +var v1_94 = __nccwpck_require__(43404); +Object.defineProperty(exports, "spanner_v1", ({ enumerable: true, get: function () { return v1_94.spanner_v1; } })); +var v1_95 = __nccwpck_require__(79405); +Object.defineProperty(exports, "speech_v1", ({ enumerable: true, get: function () { return v1_95.speech_v1; } })); +var v1p1beta1_3 = __nccwpck_require__(9283); +Object.defineProperty(exports, "speech_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_3.speech_v1p1beta1; } })); +var v2beta1_6 = __nccwpck_require__(8065); +Object.defineProperty(exports, "speech_v2beta1", ({ enumerable: true, get: function () { return v2beta1_6.speech_v2beta1; } })); +var v1beta4_1 = __nccwpck_require__(613); +Object.defineProperty(exports, "sql_v1beta4", ({ enumerable: true, get: function () { return v1beta4_1.sql_v1beta4; } })); +var v1_96 = __nccwpck_require__(6331); +Object.defineProperty(exports, "storage_v1", ({ enumerable: true, get: function () { return v1_96.storage_v1; } })); +var v1beta2_9 = __nccwpck_require__(34970); +Object.defineProperty(exports, "storage_v1beta2", ({ enumerable: true, get: function () { return v1beta2_9.storage_v1beta2; } })); +var v1_97 = __nccwpck_require__(94535); +Object.defineProperty(exports, "storagetransfer_v1", ({ enumerable: true, get: function () { return v1_97.storagetransfer_v1; } })); +var v1_98 = __nccwpck_require__(36493); +Object.defineProperty(exports, "streetviewpublish_v1", ({ enumerable: true, get: function () { return v1_98.streetviewpublish_v1; } })); +var v1_99 = __nccwpck_require__(63227); +Object.defineProperty(exports, "tagmanager_v1", ({ enumerable: true, get: function () { return v1_99.tagmanager_v1; } })); +var v2_23 = __nccwpck_require__(46781); +Object.defineProperty(exports, "tagmanager_v2", ({ enumerable: true, get: function () { return v2_23.tagmanager_v2; } })); +var v1_100 = __nccwpck_require__(20186); +Object.defineProperty(exports, "tasks_v1", ({ enumerable: true, get: function () { return v1_100.tasks_v1; } })); +var v1_101 = __nccwpck_require__(80434); +Object.defineProperty(exports, "testing_v1", ({ enumerable: true, get: function () { return v1_101.testing_v1; } })); +var v1_102 = __nccwpck_require__(69556); +Object.defineProperty(exports, "texttospeech_v1", ({ enumerable: true, get: function () { return v1_102.texttospeech_v1; } })); +var v1beta1_36 = __nccwpck_require__(13874); +Object.defineProperty(exports, "texttospeech_v1beta1", ({ enumerable: true, get: function () { return v1beta1_36.texttospeech_v1beta1; } })); +var v1beta3_2 = __nccwpck_require__(66802); +Object.defineProperty(exports, "toolresults_v1beta3", ({ enumerable: true, get: function () { return v1beta3_2.toolresults_v1beta3; } })); +var v1_103 = __nccwpck_require__(65575); +Object.defineProperty(exports, "tpu_v1", ({ enumerable: true, get: function () { return v1_103.tpu_v1; } })); +var v1alpha1_9 = __nccwpck_require__(58115); +Object.defineProperty(exports, "tpu_v1alpha1", ({ enumerable: true, get: function () { return v1alpha1_9.tpu_v1alpha1; } })); +var v2_24 = __nccwpck_require__(8521); +Object.defineProperty(exports, "translate_v2", ({ enumerable: true, get: function () { return v2_24.translate_v2; } })); +var v3_10 = __nccwpck_require__(50412); +Object.defineProperty(exports, "translate_v3", ({ enumerable: true, get: function () { return v3_10.translate_v3; } })); +var v3beta1_1 = __nccwpck_require__(35251); +Object.defineProperty(exports, "translate_v3beta1", ({ enumerable: true, get: function () { return v3beta1_1.translate_v3beta1; } })); +var v1_104 = __nccwpck_require__(25176); +Object.defineProperty(exports, "vault_v1", ({ enumerable: true, get: function () { return v1_104.vault_v1; } })); +var v1_105 = __nccwpck_require__(60851); +Object.defineProperty(exports, "verifiedaccess_v1", ({ enumerable: true, get: function () { return v1_105.verifiedaccess_v1; } })); +var v1_106 = __nccwpck_require__(14280); +Object.defineProperty(exports, "videointelligence_v1", ({ enumerable: true, get: function () { return v1_106.videointelligence_v1; } })); +var v1beta2_10 = __nccwpck_require__(39724); +Object.defineProperty(exports, "videointelligence_v1beta2", ({ enumerable: true, get: function () { return v1beta2_10.videointelligence_v1beta2; } })); +var v1p1beta1_4 = __nccwpck_require__(54223); +Object.defineProperty(exports, "videointelligence_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_4.videointelligence_v1p1beta1; } })); +var v1p2beta1_1 = __nccwpck_require__(10940); +Object.defineProperty(exports, "videointelligence_v1p2beta1", ({ enumerable: true, get: function () { return v1p2beta1_1.videointelligence_v1p2beta1; } })); +var v1p3beta1_1 = __nccwpck_require__(37587); +Object.defineProperty(exports, "videointelligence_v1p3beta1", ({ enumerable: true, get: function () { return v1p3beta1_1.videointelligence_v1p3beta1; } })); +var v1_107 = __nccwpck_require__(92030); +Object.defineProperty(exports, "vision_v1", ({ enumerable: true, get: function () { return v1_107.vision_v1; } })); +var v1p1beta1_5 = __nccwpck_require__(6809); +Object.defineProperty(exports, "vision_v1p1beta1", ({ enumerable: true, get: function () { return v1p1beta1_5.vision_v1p1beta1; } })); +var v1p2beta1_2 = __nccwpck_require__(62954); +Object.defineProperty(exports, "vision_v1p2beta1", ({ enumerable: true, get: function () { return v1p2beta1_2.vision_v1p2beta1; } })); +var v1_108 = __nccwpck_require__(74525); +Object.defineProperty(exports, "webfonts_v1", ({ enumerable: true, get: function () { return v1_108.webfonts_v1; } })); +var v3_11 = __nccwpck_require__(50746); +Object.defineProperty(exports, "webmasters_v3", ({ enumerable: true, get: function () { return v3_11.webmasters_v3; } })); +var v1_109 = __nccwpck_require__(13509); +Object.defineProperty(exports, "websecurityscanner_v1", ({ enumerable: true, get: function () { return v1_109.websecurityscanner_v1; } })); +var v1alpha_4 = __nccwpck_require__(7307); +Object.defineProperty(exports, "websecurityscanner_v1alpha", ({ enumerable: true, get: function () { return v1alpha_4.websecurityscanner_v1alpha; } })); +var v1beta_8 = __nccwpck_require__(59763); +Object.defineProperty(exports, "websecurityscanner_v1beta", ({ enumerable: true, get: function () { return v1beta_8.websecurityscanner_v1beta; } })); +var v3_12 = __nccwpck_require__(98941); +Object.defineProperty(exports, "youtube_v3", ({ enumerable: true, get: function () { return v3_12.youtube_v3; } })); +var v1_110 = __nccwpck_require__(16142); +Object.defineProperty(exports, "youtubeAnalytics_v1", ({ enumerable: true, get: function () { return v1_110.youtubeAnalytics_v1; } })); +var v2_25 = __nccwpck_require__(72836); +Object.defineProperty(exports, "youtubeAnalytics_v2", ({ enumerable: true, get: function () { return v2_25.youtubeAnalytics_v2; } })); +var v1_111 = __nccwpck_require__(43259); +Object.defineProperty(exports, "youtubereporting_v1", ({ enumerable: true, get: function () { return v1_111.youtubereporting_v1; } })); +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 16457: +/***/ ((module) => { + +"use strict"; + + +module.exports = clone + +function clone (obj) { + if (obj === null || typeof obj !== 'object') + return obj + + if (obj instanceof Object) + var copy = { __proto__: obj.__proto__ } + else + var copy = Object.create(null) + + Object.getOwnPropertyNames(obj).forEach(function (key) { + Object.defineProperty(copy, key, Object.getOwnPropertyDescriptor(obj, key)) + }) + + return copy +} + + +/***/ }), + +/***/ 54215: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var fs = __nccwpck_require__(57147) +var polyfills = __nccwpck_require__(85730) +var legacy = __nccwpck_require__(92093) +var clone = __nccwpck_require__(16457) + +var util = __nccwpck_require__(73837) + +/* istanbul ignore next - node 0.x polyfill */ +var gracefulQueue +var previousSymbol + +/* istanbul ignore else - node 0.x polyfill */ +if (typeof Symbol === 'function' && typeof Symbol.for === 'function') { + gracefulQueue = Symbol.for('graceful-fs.queue') + // This is used in testing by future versions + previousSymbol = Symbol.for('graceful-fs.previous') +} else { + gracefulQueue = '___graceful-fs.queue' + previousSymbol = '___graceful-fs.previous' +} + +function noop () {} + +function publishQueue(context, queue) { + Object.defineProperty(context, gracefulQueue, { + get: function() { + return queue + } + }) +} + +var debug = noop +if (util.debuglog) + debug = util.debuglog('gfs4') +else if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) + debug = function() { + var m = util.format.apply(util, arguments) + m = 'GFS4: ' + m.split(/\n/).join('\nGFS4: ') + console.error(m) + } + +// Once time initialization +if (!fs[gracefulQueue]) { + // This queue can be shared by multiple loaded instances + var queue = global[gracefulQueue] || [] + publishQueue(fs, queue) + + // Patch fs.close/closeSync to shared queue version, because we need + // to retry() whenever a close happens *anywhere* in the program. + // This is essential when multiple graceful-fs instances are + // in play at the same time. + fs.close = (function (fs$close) { + function close (fd, cb) { + return fs$close.call(fs, fd, function (err) { + // This function uses the graceful-fs shared queue + if (!err) { + retry() + } + + if (typeof cb === 'function') + cb.apply(this, arguments) + }) + } + + Object.defineProperty(close, previousSymbol, { + value: fs$close + }) + return close + })(fs.close) + + fs.closeSync = (function (fs$closeSync) { + function closeSync (fd) { + // This function uses the graceful-fs shared queue + fs$closeSync.apply(fs, arguments) + retry() + } + + Object.defineProperty(closeSync, previousSymbol, { + value: fs$closeSync + }) + return closeSync + })(fs.closeSync) + + if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || '')) { + process.on('exit', function() { + debug(fs[gracefulQueue]) + __nccwpck_require__(39491).equal(fs[gracefulQueue].length, 0) + }) + } +} + +if (!global[gracefulQueue]) { + publishQueue(global, fs[gracefulQueue]); +} + +module.exports = patch(clone(fs)) +if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs.__patched) { + module.exports = patch(fs) + fs.__patched = true; +} + +function patch (fs) { + // Everything that references the open() function needs to be in here + polyfills(fs) + fs.gracefulify = patch + + fs.createReadStream = createReadStream + fs.createWriteStream = createWriteStream + var fs$readFile = fs.readFile + fs.readFile = readFile + function readFile (path, options, cb) { + if (typeof options === 'function') + cb = options, options = null + + return go$readFile(path, options, cb) + + function go$readFile (path, options, cb) { + return fs$readFile(path, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$readFile, [path, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } + + var fs$writeFile = fs.writeFile + fs.writeFile = writeFile + function writeFile (path, data, options, cb) { + if (typeof options === 'function') + cb = options, options = null + + return go$writeFile(path, data, options, cb) + + function go$writeFile (path, data, options, cb) { + return fs$writeFile(path, data, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$writeFile, [path, data, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } + + var fs$appendFile = fs.appendFile + if (fs$appendFile) + fs.appendFile = appendFile + function appendFile (path, data, options, cb) { + if (typeof options === 'function') + cb = options, options = null + + return go$appendFile(path, data, options, cb) + + function go$appendFile (path, data, options, cb) { + return fs$appendFile(path, data, options, function (err) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$appendFile, [path, data, options, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } + + var fs$readdir = fs.readdir + fs.readdir = readdir + function readdir (path, options, cb) { + var args = [path] + if (typeof options !== 'function') { + args.push(options) + } else { + cb = options + } + args.push(go$readdir$cb) + + return go$readdir(args) + + function go$readdir$cb (err, files) { + if (files && files.sort) + files.sort() + + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$readdir, [args]]) + + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + } + } + + function go$readdir (args) { + return fs$readdir.apply(fs, args) + } + + if (process.version.substr(0, 4) === 'v0.8') { + var legStreams = legacy(fs) + ReadStream = legStreams.ReadStream + WriteStream = legStreams.WriteStream + } + + var fs$ReadStream = fs.ReadStream + if (fs$ReadStream) { + ReadStream.prototype = Object.create(fs$ReadStream.prototype) + ReadStream.prototype.open = ReadStream$open + } + + var fs$WriteStream = fs.WriteStream + if (fs$WriteStream) { + WriteStream.prototype = Object.create(fs$WriteStream.prototype) + WriteStream.prototype.open = WriteStream$open + } + + Object.defineProperty(fs, 'ReadStream', { + get: function () { + return ReadStream + }, + set: function (val) { + ReadStream = val + }, + enumerable: true, + configurable: true + }) + Object.defineProperty(fs, 'WriteStream', { + get: function () { + return WriteStream + }, + set: function (val) { + WriteStream = val + }, + enumerable: true, + configurable: true + }) + + // legacy names + var FileReadStream = ReadStream + Object.defineProperty(fs, 'FileReadStream', { + get: function () { + return FileReadStream + }, + set: function (val) { + FileReadStream = val + }, + enumerable: true, + configurable: true + }) + var FileWriteStream = WriteStream + Object.defineProperty(fs, 'FileWriteStream', { + get: function () { + return FileWriteStream + }, + set: function (val) { + FileWriteStream = val + }, + enumerable: true, + configurable: true + }) + + function ReadStream (path, options) { + if (this instanceof ReadStream) + return fs$ReadStream.apply(this, arguments), this + else + return ReadStream.apply(Object.create(ReadStream.prototype), arguments) + } + + function ReadStream$open () { + var that = this + open(that.path, that.flags, that.mode, function (err, fd) { + if (err) { + if (that.autoClose) + that.destroy() + + that.emit('error', err) + } else { + that.fd = fd + that.emit('open', fd) + that.read() + } + }) + } + + function WriteStream (path, options) { + if (this instanceof WriteStream) + return fs$WriteStream.apply(this, arguments), this + else + return WriteStream.apply(Object.create(WriteStream.prototype), arguments) + } + + function WriteStream$open () { + var that = this + open(that.path, that.flags, that.mode, function (err, fd) { + if (err) { + that.destroy() + that.emit('error', err) + } else { + that.fd = fd + that.emit('open', fd) + } + }) + } + + function createReadStream (path, options) { + return new fs.ReadStream(path, options) + } + + function createWriteStream (path, options) { + return new fs.WriteStream(path, options) + } + + var fs$open = fs.open + fs.open = open + function open (path, flags, mode, cb) { + if (typeof mode === 'function') + cb = mode, mode = null + + return go$open(path, flags, mode, cb) + + function go$open (path, flags, mode, cb) { + return fs$open(path, flags, mode, function (err, fd) { + if (err && (err.code === 'EMFILE' || err.code === 'ENFILE')) + enqueue([go$open, [path, flags, mode, cb]]) + else { + if (typeof cb === 'function') + cb.apply(this, arguments) + retry() + } + }) + } + } + + return fs +} + +function enqueue (elem) { + debug('ENQUEUE', elem[0].name, elem[1]) + fs[gracefulQueue].push(elem) +} + +function retry () { + var elem = fs[gracefulQueue].shift() + if (elem) { + debug('RETRY', elem[0].name, elem[1]) + elem[0].apply(null, elem[1]) + } +} + + +/***/ }), + +/***/ 92093: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var Stream = (__nccwpck_require__(12781).Stream) + +module.exports = legacy + +function legacy (fs) { + return { + ReadStream: ReadStream, + WriteStream: WriteStream + } + + function ReadStream (path, options) { + if (!(this instanceof ReadStream)) return new ReadStream(path, options); + + Stream.call(this); + + var self = this; + + this.path = path; + this.fd = null; + this.readable = true; + this.paused = false; + + this.flags = 'r'; + this.mode = 438; /*=0666*/ + this.bufferSize = 64 * 1024; + + options = options || {}; + + // Mixin options into this + var keys = Object.keys(options); + for (var index = 0, length = keys.length; index < length; index++) { + var key = keys[index]; + this[key] = options[key]; + } + + if (this.encoding) this.setEncoding(this.encoding); + + if (this.start !== undefined) { + if ('number' !== typeof this.start) { + throw TypeError('start must be a Number'); + } + if (this.end === undefined) { + this.end = Infinity; + } else if ('number' !== typeof this.end) { + throw TypeError('end must be a Number'); + } + + if (this.start > this.end) { + throw new Error('start must be <= end'); + } + + this.pos = this.start; + } + + if (this.fd !== null) { + process.nextTick(function() { + self._read(); + }); + return; + } + + fs.open(this.path, this.flags, this.mode, function (err, fd) { + if (err) { + self.emit('error', err); + self.readable = false; + return; + } + + self.fd = fd; + self.emit('open', fd); + self._read(); + }) + } + + function WriteStream (path, options) { + if (!(this instanceof WriteStream)) return new WriteStream(path, options); + + Stream.call(this); + + this.path = path; + this.fd = null; + this.writable = true; + + this.flags = 'w'; + this.encoding = 'binary'; + this.mode = 438; /*=0666*/ + this.bytesWritten = 0; + + options = options || {}; + + // Mixin options into this + var keys = Object.keys(options); + for (var index = 0, length = keys.length; index < length; index++) { + var key = keys[index]; + this[key] = options[key]; + } + + if (this.start !== undefined) { + if ('number' !== typeof this.start) { + throw TypeError('start must be a Number'); + } + if (this.start < 0) { + throw new Error('start must be >= zero'); + } + + this.pos = this.start; + } + + this.busy = false; + this._queue = []; + + if (this.fd === null) { + this._open = fs.open; + this._queue.push([this._open, this.path, this.flags, this.mode, undefined]); + this.flush(); + } + } +} + + +/***/ }), + +/***/ 85730: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var constants = __nccwpck_require__(22057) + +var origCwd = process.cwd +var cwd = null + +var platform = process.env.GRACEFUL_FS_PLATFORM || process.platform + +process.cwd = function() { + if (!cwd) + cwd = origCwd.call(process) + return cwd +} +try { + process.cwd() +} catch (er) {} + +var chdir = process.chdir +process.chdir = function(d) { + cwd = null + chdir.call(process, d) +} + +module.exports = patch + +function patch (fs) { + // (re-)implement some things that are known busted or missing. + + // lchmod, broken prior to 0.6.2 + // back-port the fix here. + if (constants.hasOwnProperty('O_SYMLINK') && + process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) { + patchLchmod(fs) + } + + // lutimes implementation, or no-op + if (!fs.lutimes) { + patchLutimes(fs) + } + + // https://github.com/isaacs/node-graceful-fs/issues/4 + // Chown should not fail on einval or eperm if non-root. + // It should not fail on enosys ever, as this just indicates + // that a fs doesn't support the intended operation. + + fs.chown = chownFix(fs.chown) + fs.fchown = chownFix(fs.fchown) + fs.lchown = chownFix(fs.lchown) + + fs.chmod = chmodFix(fs.chmod) + fs.fchmod = chmodFix(fs.fchmod) + fs.lchmod = chmodFix(fs.lchmod) + + fs.chownSync = chownFixSync(fs.chownSync) + fs.fchownSync = chownFixSync(fs.fchownSync) + fs.lchownSync = chownFixSync(fs.lchownSync) + + fs.chmodSync = chmodFixSync(fs.chmodSync) + fs.fchmodSync = chmodFixSync(fs.fchmodSync) + fs.lchmodSync = chmodFixSync(fs.lchmodSync) + + fs.stat = statFix(fs.stat) + fs.fstat = statFix(fs.fstat) + fs.lstat = statFix(fs.lstat) + + fs.statSync = statFixSync(fs.statSync) + fs.fstatSync = statFixSync(fs.fstatSync) + fs.lstatSync = statFixSync(fs.lstatSync) + + // if lchmod/lchown do not exist, then make them no-ops + if (!fs.lchmod) { + fs.lchmod = function (path, mode, cb) { + if (cb) process.nextTick(cb) + } + fs.lchmodSync = function () {} + } + if (!fs.lchown) { + fs.lchown = function (path, uid, gid, cb) { + if (cb) process.nextTick(cb) + } + fs.lchownSync = function () {} + } + + // on Windows, A/V software can lock the directory, causing this + // to fail with an EACCES or EPERM if the directory contains newly + // created files. Try again on failure, for up to 60 seconds. + + // Set the timeout this long because some Windows Anti-Virus, such as Parity + // bit9, may lock files for up to a minute, causing npm package install + // failures. Also, take care to yield the scheduler. Windows scheduling gives + // CPU to a busy looping process, which can cause the program causing the lock + // contention to be starved of CPU by node, so the contention doesn't resolve. + if (platform === "win32") { + fs.rename = (function (fs$rename) { return function (from, to, cb) { + var start = Date.now() + var backoff = 0; + fs$rename(from, to, function CB (er) { + if (er + && (er.code === "EACCES" || er.code === "EPERM") + && Date.now() - start < 60000) { + setTimeout(function() { + fs.stat(to, function (stater, st) { + if (stater && stater.code === "ENOENT") + fs$rename(from, to, CB); + else + cb(er) + }) + }, backoff) + if (backoff < 100) + backoff += 10; + return; + } + if (cb) cb(er) + }) + }})(fs.rename) + } + + // if read() returns EAGAIN, then just try it again. + fs.read = (function (fs$read) { + function read (fd, buffer, offset, length, position, callback_) { + var callback + if (callback_ && typeof callback_ === 'function') { + var eagCounter = 0 + callback = function (er, _, __) { + if (er && er.code === 'EAGAIN' && eagCounter < 10) { + eagCounter ++ + return fs$read.call(fs, fd, buffer, offset, length, position, callback) + } + callback_.apply(this, arguments) + } + } + return fs$read.call(fs, fd, buffer, offset, length, position, callback) + } + + // This ensures `util.promisify` works as it does for native `fs.read`. + read.__proto__ = fs$read + return read + })(fs.read) + + fs.readSync = (function (fs$readSync) { return function (fd, buffer, offset, length, position) { + var eagCounter = 0 + while (true) { + try { + return fs$readSync.call(fs, fd, buffer, offset, length, position) + } catch (er) { + if (er.code === 'EAGAIN' && eagCounter < 10) { + eagCounter ++ + continue + } + throw er + } + } + }})(fs.readSync) + + function patchLchmod (fs) { + fs.lchmod = function (path, mode, callback) { + fs.open( path + , constants.O_WRONLY | constants.O_SYMLINK + , mode + , function (err, fd) { + if (err) { + if (callback) callback(err) + return + } + // prefer to return the chmod error, if one occurs, + // but still try to close, and report closing errors if they occur. + fs.fchmod(fd, mode, function (err) { + fs.close(fd, function(err2) { + if (callback) callback(err || err2) + }) + }) + }) + } + + fs.lchmodSync = function (path, mode) { + var fd = fs.openSync(path, constants.O_WRONLY | constants.O_SYMLINK, mode) + + // prefer to return the chmod error, if one occurs, + // but still try to close, and report closing errors if they occur. + var threw = true + var ret + try { + ret = fs.fchmodSync(fd, mode) + threw = false + } finally { + if (threw) { + try { + fs.closeSync(fd) + } catch (er) {} + } else { + fs.closeSync(fd) + } + } + return ret + } + } + + function patchLutimes (fs) { + if (constants.hasOwnProperty("O_SYMLINK")) { + fs.lutimes = function (path, at, mt, cb) { + fs.open(path, constants.O_SYMLINK, function (er, fd) { + if (er) { + if (cb) cb(er) + return + } + fs.futimes(fd, at, mt, function (er) { + fs.close(fd, function (er2) { + if (cb) cb(er || er2) + }) + }) + }) + } + + fs.lutimesSync = function (path, at, mt) { + var fd = fs.openSync(path, constants.O_SYMLINK) + var ret + var threw = true + try { + ret = fs.futimesSync(fd, at, mt) + threw = false + } finally { + if (threw) { + try { + fs.closeSync(fd) + } catch (er) {} + } else { + fs.closeSync(fd) + } + } + return ret + } + + } else { + fs.lutimes = function (_a, _b, _c, cb) { if (cb) process.nextTick(cb) } + fs.lutimesSync = function () {} + } + } + + function chmodFix (orig) { + if (!orig) return orig + return function (target, mode, cb) { + return orig.call(fs, target, mode, function (er) { + if (chownErOk(er)) er = null + if (cb) cb.apply(this, arguments) + }) + } + } + + function chmodFixSync (orig) { + if (!orig) return orig + return function (target, mode) { + try { + return orig.call(fs, target, mode) + } catch (er) { + if (!chownErOk(er)) throw er + } + } + } + + + function chownFix (orig) { + if (!orig) return orig + return function (target, uid, gid, cb) { + return orig.call(fs, target, uid, gid, function (er) { + if (chownErOk(er)) er = null + if (cb) cb.apply(this, arguments) + }) + } + } + + function chownFixSync (orig) { + if (!orig) return orig + return function (target, uid, gid) { + try { + return orig.call(fs, target, uid, gid) + } catch (er) { + if (!chownErOk(er)) throw er + } + } + } + + function statFix (orig) { + if (!orig) return orig + // Older versions of Node erroneously returned signed integers for + // uid + gid. + return function (target, options, cb) { + if (typeof options === 'function') { + cb = options + options = null + } + function callback (er, stats) { + if (stats) { + if (stats.uid < 0) stats.uid += 0x100000000 + if (stats.gid < 0) stats.gid += 0x100000000 + } + if (cb) cb.apply(this, arguments) + } + return options ? orig.call(fs, target, options, callback) + : orig.call(fs, target, callback) + } + } + + function statFixSync (orig) { + if (!orig) return orig + // Older versions of Node erroneously returned signed integers for + // uid + gid. + return function (target, options) { + var stats = options ? orig.call(fs, target, options) + : orig.call(fs, target) + if (stats.uid < 0) stats.uid += 0x100000000 + if (stats.gid < 0) stats.gid += 0x100000000 + return stats; + } + } + + // ENOSYS means that the fs doesn't support the op. Just ignore + // that, because it doesn't matter. + // + // if there's no getuid, or if getuid() is something other + // than 0, and the error is EINVAL or EPERM, then just ignore + // it. + // + // This specific case is a silent failure in cp, install, tar, + // and most other unix tools that manage permissions. + // + // When running as root, or if other types of errors are + // encountered, then it's strict. + function chownErOk (er) { + if (!er) + return true + + if (er.code === "ENOSYS") + return true + + var nonroot = !process.getuid || process.getuid() !== 0 + if (nonroot) { + if (er.code === "EINVAL" || er.code === "EPERM") + return true + } + + return false + } +} + + +/***/ }), + +/***/ 93245: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + +/** + * Copyright 2018 Google LLC + * + * Distributed under MIT license. + * See file LICENSE for detail or copy at https://opensource.org/licenses/MIT + */ +Object.defineProperty(exports, "__esModule", ({ value: true })); +const fs = __nccwpck_require__(57147); +const gaxios_1 = __nccwpck_require__(8113); +const jws = __nccwpck_require__(73297); +const mime = __nccwpck_require__(47277); +const util_1 = __nccwpck_require__(73837); +const readFile = fs.readFile + ? util_1.promisify(fs.readFile) + : async () => { + // if running in the web-browser, fs.readFile may not have been shimmed. + throw new ErrorWithCode('use key rather than keyFile.', 'MISSING_CREDENTIALS'); + }; +const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; +const GOOGLE_REVOKE_TOKEN_URL = 'https://accounts.google.com/o/oauth2/revoke?token='; +class ErrorWithCode extends Error { + constructor(message, code) { + super(message); + this.code = code; + } +} +let getPem; +class GoogleToken { + /** + * Create a GoogleToken. + * + * @param options Configuration object. + */ + constructor(options) { + this.configure(options); + } + get accessToken() { + return this.rawToken ? this.rawToken.access_token : undefined; + } + get idToken() { + return this.rawToken ? this.rawToken.id_token : undefined; + } + get tokenType() { + return this.rawToken ? this.rawToken.token_type : undefined; + } + get refreshToken() { + return this.rawToken ? this.rawToken.refresh_token : undefined; + } + /** + * Returns whether the token has expired. + * + * @return true if the token has expired, false otherwise. + */ + hasExpired() { + const now = new Date().getTime(); + if (this.rawToken && this.expiresAt) { + return now >= this.expiresAt; + } + else { + return true; + } + } + getToken(callback, opts = {}) { + if (typeof callback === 'object') { + opts = callback; + callback = undefined; + } + opts = Object.assign({ + forceRefresh: false, + }, opts); + if (callback) { + const cb = callback; + this.getTokenAsync(opts).then(t => cb(null, t), callback); + return; + } + return this.getTokenAsync(opts); + } + /** + * Given a keyFile, extract the key and client email if available + * @param keyFile Path to a json, pem, or p12 file that contains the key. + * @returns an object with privateKey and clientEmail properties + */ + async getCredentials(keyFile) { + const mimeType = mime.getType(keyFile); + switch (mimeType) { + case 'application/json': { + // *.json file + const key = await readFile(keyFile, 'utf8'); + const body = JSON.parse(key); + const privateKey = body.private_key; + const clientEmail = body.client_email; + if (!privateKey || !clientEmail) { + throw new ErrorWithCode('private_key and client_email are required.', 'MISSING_CREDENTIALS'); + } + return { privateKey, clientEmail }; + } + case 'application/x-x509-ca-cert': { + // *.pem file + const privateKey = await readFile(keyFile, 'utf8'); + return { privateKey }; + } + case 'application/x-pkcs12': { + // *.p12 file + // NOTE: The loading of `google-p12-pem` is deferred for performance + // reasons. The `node-forge` npm module in `google-p12-pem` adds a fair + // bit time to overall module loading, and is likely not frequently + // used. In a future release, p12 support will be entirely removed. + if (!getPem) { + getPem = (await Promise.resolve().then(() => __nccwpck_require__(10435))).getPem; + } + const privateKey = await getPem(keyFile); + return { privateKey }; + } + default: + throw new ErrorWithCode('Unknown certificate type. Type is determined based on file extension. ' + + 'Current supported extensions are *.json, *.pem, and *.p12.', 'UNKNOWN_CERTIFICATE_TYPE'); + } + } + async getTokenAsync(opts) { + if (this.hasExpired() === false && opts.forceRefresh === false) { + return Promise.resolve(this.rawToken); + } + if (!this.key && !this.keyFile) { + throw new Error('No key or keyFile set.'); + } + if (!this.key && this.keyFile) { + const creds = await this.getCredentials(this.keyFile); + this.key = creds.privateKey; + this.iss = creds.clientEmail || this.iss; + if (!creds.clientEmail) { + this.ensureEmail(); + } + } + return this.requestToken(); + } + ensureEmail() { + if (!this.iss) { + throw new ErrorWithCode('email is required.', 'MISSING_CREDENTIALS'); + } + } + revokeToken(callback) { + if (callback) { + this.revokeTokenAsync().then(() => callback(), callback); + return; + } + return this.revokeTokenAsync(); + } + async revokeTokenAsync() { + if (!this.accessToken) { + throw new Error('No token to revoke.'); + } + const url = GOOGLE_REVOKE_TOKEN_URL + this.accessToken; + await gaxios_1.request({ url }); + this.configure({ + email: this.iss, + sub: this.sub, + key: this.key, + keyFile: this.keyFile, + scope: this.scope, + additionalClaims: this.additionalClaims, + }); + } + /** + * Configure the GoogleToken for re-use. + * @param {object} options Configuration object. + */ + configure(options = {}) { + this.keyFile = options.keyFile; + this.key = options.key; + this.rawToken = undefined; + this.iss = options.email || options.iss; + this.sub = options.sub; + this.additionalClaims = options.additionalClaims; + if (typeof options.scope === 'object') { + this.scope = options.scope.join(' '); + } + else { + this.scope = options.scope; + } + } + /** + * Request the token from Google. + */ + async requestToken() { + const iat = Math.floor(new Date().getTime() / 1000); + const additionalClaims = this.additionalClaims || {}; + const payload = Object.assign({ + iss: this.iss, + scope: this.scope, + aud: GOOGLE_TOKEN_URL, + exp: iat + 3600, + iat, + sub: this.sub, + }, additionalClaims); + const signedJWT = jws.sign({ + header: { alg: 'RS256' }, + payload, + secret: this.key, + }); + try { + const r = await gaxios_1.request({ + method: 'POST', + url: GOOGLE_TOKEN_URL, + data: { + grant_type: 'urn:ietf:params:oauth:grant-type:jwt-bearer', + assertion: signedJWT, + }, + headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, + responseType: 'json', + }); + this.rawToken = r.data; + this.expiresAt = + r.data.expires_in === null || r.data.expires_in === undefined + ? undefined + : (iat + r.data.expires_in) * 1000; + return this.rawToken; + } + catch (e) { + this.rawToken = undefined; + this.tokenExpires = undefined; + const body = e.response && e.response.data ? e.response.data : {}; + if (body.error) { + const desc = body.error_description + ? `: ${body.error_description}` + : ''; + e.message = `${body.error}${desc}`; + } + throw e; + } + } +} +exports.GoogleToken = GoogleToken; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 10148: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { + function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } + return new (P || (P = Promise))(function (resolve, reject) { + function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } + function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } + function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } + step((generator = generator.apply(thisArg, _arguments || [])).next()); + }); +}; +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +const net_1 = __importDefault(__nccwpck_require__(41808)); +const tls_1 = __importDefault(__nccwpck_require__(24404)); +const url_1 = __importDefault(__nccwpck_require__(57310)); +const assert_1 = __importDefault(__nccwpck_require__(39491)); +const debug_1 = __importDefault(__nccwpck_require__(5969)); +const agent_base_1 = __nccwpck_require__(69649); +const parse_proxy_response_1 = __importDefault(__nccwpck_require__(17062)); +const debug = debug_1.default('https-proxy-agent:agent'); +/** + * The `HttpsProxyAgent` implements an HTTP Agent subclass that connects to + * the specified "HTTP(s) proxy server" in order to proxy HTTPS requests. + * + * Outgoing HTTP requests are first tunneled through the proxy server using the + * `CONNECT` HTTP request method to establish a connection to the proxy server, + * and then the proxy server connects to the destination target and issues the + * HTTP request from the proxy server. + * + * `https:` requests have their socket connection upgraded to TLS once + * the connection to the proxy server has been established. + * + * @api public + */ +class HttpsProxyAgent extends agent_base_1.Agent { + constructor(_opts) { + let opts; + if (typeof _opts === 'string') { + opts = url_1.default.parse(_opts); + } + else { + opts = _opts; + } + if (!opts) { + throw new Error('an HTTP(S) proxy server `host` and `port` must be specified!'); + } + debug('creating new HttpsProxyAgent instance: %o', opts); + super(opts); + const proxy = Object.assign({}, opts); + // If `true`, then connect to the proxy server over TLS. + // Defaults to `false`. + this.secureProxy = opts.secureProxy || isHTTPS(proxy.protocol); + // Prefer `hostname` over `host`, and set the `port` if needed. + proxy.host = proxy.hostname || proxy.host; + if (typeof proxy.port === 'string') { + proxy.port = parseInt(proxy.port, 10); + } + if (!proxy.port && proxy.host) { + proxy.port = this.secureProxy ? 443 : 80; + } + // ALPN is supported by Node.js >= v5. + // attempt to negotiate http/1.1 for proxy servers that support http/2 + if (this.secureProxy && !('ALPNProtocols' in proxy)) { + proxy.ALPNProtocols = ['http 1.1']; + } + if (proxy.host && proxy.path) { + // If both a `host` and `path` are specified then it's most likely + // the result of a `url.parse()` call... we need to remove the + // `path` portion so that `net.connect()` doesn't attempt to open + // that as a Unix socket file. + delete proxy.path; + delete proxy.pathname; + } + this.proxy = proxy; + } + /** + * Called when the node-core HTTP client library is creating a + * new HTTP request. + * + * @api protected + */ + callback(req, opts) { + return __awaiter(this, void 0, void 0, function* () { + const { proxy, secureProxy } = this; + // Create a socket connection to the proxy server. + let socket; + if (secureProxy) { + debug('Creating `tls.Socket`: %o', proxy); + socket = tls_1.default.connect(proxy); + } + else { + debug('Creating `net.Socket`: %o', proxy); + socket = net_1.default.connect(proxy); + } + const headers = Object.assign({}, proxy.headers); + const hostname = `${opts.host}:${opts.port}`; + let payload = `CONNECT ${hostname} HTTP/1.1\r\n`; + // Inject the `Proxy-Authorization` header if necessary. + if (proxy.auth) { + headers['Proxy-Authorization'] = `Basic ${Buffer.from(proxy.auth).toString('base64')}`; + } + // The `Host` header should only include the port + // number when it is not the default port. + let { host, port, secureEndpoint } = opts; + if (!isDefaultPort(port, secureEndpoint)) { + host += `:${port}`; + } + headers.Host = host; + headers.Connection = 'close'; + for (const name of Object.keys(headers)) { + payload += `${name}: ${headers[name]}\r\n`; + } + const proxyResponsePromise = parse_proxy_response_1.default(socket); + socket.write(`${payload}\r\n`); + const { statusCode, buffered } = yield proxyResponsePromise; + if (statusCode === 200) { + req.once('socket', resume); + if (opts.secureEndpoint) { + const servername = opts.servername || opts.host; + if (!servername) { + throw new Error('Could not determine "servername"'); + } + // The proxy is connecting to a TLS server, so upgrade + // this socket connection to a TLS connection. + debug('Upgrading socket connection to TLS'); + return tls_1.default.connect(Object.assign(Object.assign({}, omit(opts, 'host', 'hostname', 'path', 'port')), { socket, + servername })); + } + return socket; + } + // Some other status code that's not 200... need to re-play the HTTP + // header "data" events onto the socket once the HTTP machinery is + // attached so that the node core `http` can parse and handle the + // error status code. + // Close the original socket, and a new "fake" socket is returned + // instead, so that the proxy doesn't get the HTTP request + // written to it (which may contain `Authorization` headers or other + // sensitive data). + // + // See: https://hackerone.com/reports/541502 + socket.destroy(); + const fakeSocket = new net_1.default.Socket(); + fakeSocket.readable = true; + // Need to wait for the "socket" event to re-play the "data" events. + req.once('socket', (s) => { + debug('replaying proxy buffer for failed request'); + assert_1.default(s.listenerCount('data') > 0); + // Replay the "buffered" Buffer onto the fake `socket`, since at + // this point the HTTP module machinery has been hooked up for + // the user. + s.push(buffered); + s.push(null); + }); + return fakeSocket; + }); + } +} +exports["default"] = HttpsProxyAgent; +function resume(socket) { + socket.resume(); +} +function isDefaultPort(port, secure) { + return Boolean((!secure && port === 80) || (secure && port === 443)); +} +function isHTTPS(protocol) { + return typeof protocol === 'string' ? /^https:?$/i.test(protocol) : false; +} +function omit(obj, ...keys) { + const ret = {}; + let key; + for (key in obj) { + if (!keys.includes(key)) { + ret[key] = obj[key]; + } + } + return ret; +} +//# sourceMappingURL=agent.js.map + +/***/ }), + +/***/ 64915: +/***/ (function(module, __unused_webpack_exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +const agent_1 = __importDefault(__nccwpck_require__(10148)); +function createHttpsProxyAgent(opts) { + return new agent_1.default(opts); +} +(function (createHttpsProxyAgent) { + createHttpsProxyAgent.HttpsProxyAgent = agent_1.default; + createHttpsProxyAgent.prototype = agent_1.default.prototype; +})(createHttpsProxyAgent || (createHttpsProxyAgent = {})); +module.exports = createHttpsProxyAgent; +//# sourceMappingURL=index.js.map + +/***/ }), + +/***/ 17062: +/***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { + +"use strict"; + +var __importDefault = (this && this.__importDefault) || function (mod) { + return (mod && mod.__esModule) ? mod : { "default": mod }; +}; +Object.defineProperty(exports, "__esModule", ({ value: true })); +const debug_1 = __importDefault(__nccwpck_require__(5969)); +const debug = debug_1.default('https-proxy-agent:parse-proxy-response'); +function parseProxyResponse(socket) { + return new Promise((resolve, reject) => { + // we need to buffer any HTTP traffic that happens with the proxy before we get + // the CONNECT response, so that if the response is anything other than an "200" + // response code, then we can re-play the "data" events on the socket once the + // HTTP parser is hooked up... + let buffersLength = 0; + const buffers = []; + function read() { + const b = socket.read(); + if (b) + ondata(b); + else + socket.once('readable', read); + } + function cleanup() { + socket.removeListener('end', onend); + socket.removeListener('error', onerror); + socket.removeListener('close', onclose); + socket.removeListener('readable', read); + } + function onclose(err) { + debug('onclose had error %o', err); + } + function onend() { + debug('onend'); + } + function onerror(err) { + cleanup(); + debug('onerror %o', err); + reject(err); + } + function ondata(b) { + buffers.push(b); + buffersLength += b.length; + const buffered = Buffer.concat(buffers, buffersLength); + const endOfHeaders = buffered.indexOf('\r\n\r\n'); + if (endOfHeaders === -1) { + // keep buffering + debug('have not received end of HTTP headers yet...'); + read(); + return; + } + const firstLine = buffered.toString('ascii', 0, buffered.indexOf('\r\n')); + const statusCode = +firstLine.split(' ')[1]; + debug('got proxy server response: %o', firstLine); + resolve({ + statusCode, + buffered + }); + } + socket.on('error', onerror); + socket.on('close', onclose); + socket.on('end', onend); + read(); + }); +} +exports["default"] = parseProxyResponse; +//# sourceMappingURL=parse-proxy-response.js.map + +/***/ }), + +/***/ 55185: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-env browser */ + +/** + * This is the web browser implementation of `debug()`. + */ + +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; +exports.storage = localstorage(); + +/** + * Colors. + */ + +exports.colors = [ + '#0000CC', + '#0000FF', + '#0033CC', + '#0033FF', + '#0066CC', + '#0066FF', + '#0099CC', + '#0099FF', + '#00CC00', + '#00CC33', + '#00CC66', + '#00CC99', + '#00CCCC', + '#00CCFF', + '#3300CC', + '#3300FF', + '#3333CC', + '#3333FF', + '#3366CC', + '#3366FF', + '#3399CC', + '#3399FF', + '#33CC00', + '#33CC33', + '#33CC66', + '#33CC99', + '#33CCCC', + '#33CCFF', + '#6600CC', + '#6600FF', + '#6633CC', + '#6633FF', + '#66CC00', + '#66CC33', + '#9900CC', + '#9900FF', + '#9933CC', + '#9933FF', + '#99CC00', + '#99CC33', + '#CC0000', + '#CC0033', + '#CC0066', + '#CC0099', + '#CC00CC', + '#CC00FF', + '#CC3300', + '#CC3333', + '#CC3366', + '#CC3399', + '#CC33CC', + '#CC33FF', + '#CC6600', + '#CC6633', + '#CC9900', + '#CC9933', + '#CCCC00', + '#CCCC33', + '#FF0000', + '#FF0033', + '#FF0066', + '#FF0099', + '#FF00CC', + '#FF00FF', + '#FF3300', + '#FF3333', + '#FF3366', + '#FF3399', + '#FF33CC', + '#FF33FF', + '#FF6600', + '#FF6633', + '#FF9900', + '#FF9933', + '#FFCC00', + '#FFCC33' +]; + +/** + * Currently only WebKit-based Web Inspectors, Firefox >= v31, + * and the Firebug extension (any Firefox version) are known + * to support "%c" CSS customizations. + * + * TODO: add a `localStorage` variable to explicitly enable/disable colors + */ + +// eslint-disable-next-line complexity +function useColors() { + // NB: In an Electron preload script, document will be defined but not fully + // initialized. Since we know we're in Chrome, we'll just detect this case + // explicitly + if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { + return true; + } + + // Internet Explorer and Edge do not support colors. + if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { + return false; + } + + // Is webkit? http://stackoverflow.com/a/16459606/376773 + // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 + return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || + // Is firebug? http://stackoverflow.com/a/398120/376773 + (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || + // Is firefox >= v31? + // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || + // Double check webkit in userAgent just in case we are in a worker + (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); +} + +/** + * Colorize log arguments if enabled. + * + * @api public + */ + +function formatArgs(args) { + args[0] = (this.useColors ? '%c' : '') + + this.namespace + + (this.useColors ? ' %c' : ' ') + + args[0] + + (this.useColors ? '%c ' : ' ') + + '+' + module.exports.humanize(this.diff); + + if (!this.useColors) { + return; + } + + const c = 'color: ' + this.color; + args.splice(1, 0, c, 'color: inherit'); + + // The final "%c" is somewhat tricky, because there could be other + // arguments passed either before or after the %c, so we need to + // figure out the correct index to insert the CSS into + let index = 0; + let lastC = 0; + args[0].replace(/%[a-zA-Z%]/g, match => { + if (match === '%%') { + return; + } + index++; + if (match === '%c') { + // We only are interested in the *last* %c + // (the user may have provided their own) + lastC = index; + } + }); + + args.splice(lastC, 0, c); +} + +/** + * Invokes `console.log()` when available. + * No-op when `console.log` is not a "function". + * + * @api public + */ +function log(...args) { + // This hackery is required for IE8/9, where + // the `console.log` function doesn't have 'apply' + return typeof console === 'object' && + console.log && + console.log(...args); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + try { + if (namespaces) { + exports.storage.setItem('debug', namespaces); + } else { + exports.storage.removeItem('debug'); + } + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ +function load() { + let r; + try { + r = exports.storage.getItem('debug'); + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } + + // If debug isn't set in LS, and we're in Electron, try to load $DEBUG + if (!r && typeof process !== 'undefined' && 'env' in process) { + r = process.env.DEBUG; + } + + return r; +} + +/** + * Localstorage attempts to return the localstorage. + * + * This is necessary because safari throws + * when a user disables cookies/localstorage + * and you attempt to access it. + * + * @return {LocalStorage} + * @api private + */ + +function localstorage() { + try { + // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context + // The Browser also has localStorage in the global context. + return localStorage; + } catch (error) { + // Swallow + // XXX (@Qix-) should we be logging these? + } +} + +module.exports = __nccwpck_require__(91307)(exports); + +const {formatters} = module.exports; + +/** + * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. + */ + +formatters.j = function (v) { + try { + return JSON.stringify(v); + } catch (error) { + return '[UnexpectedJSONParseError]: ' + error.message; + } +}; + + +/***/ }), + +/***/ 91307: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + + +/** + * This is the common logic for both the Node.js and web browser + * implementations of `debug()`. + */ + +function setup(env) { + createDebug.debug = createDebug; + createDebug.default = createDebug; + createDebug.coerce = coerce; + createDebug.disable = disable; + createDebug.enable = enable; + createDebug.enabled = enabled; + createDebug.humanize = __nccwpck_require__(43679); + + Object.keys(env).forEach(key => { + createDebug[key] = env[key]; + }); + + /** + * Active `debug` instances. + */ + createDebug.instances = []; + + /** + * The currently active debug mode names, and names to skip. + */ + + createDebug.names = []; + createDebug.skips = []; + + /** + * Map of special "%n" handling functions, for the debug "format" argument. + * + * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". + */ + createDebug.formatters = {}; + + /** + * Selects a color for a debug namespace + * @param {String} namespace The namespace string for the for the debug instance to be colored + * @return {Number|String} An ANSI color code for the given namespace + * @api private + */ + function selectColor(namespace) { + let hash = 0; + + for (let i = 0; i < namespace.length; i++) { + hash = ((hash << 5) - hash) + namespace.charCodeAt(i); + hash |= 0; // Convert to 32bit integer + } + + return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; + } + createDebug.selectColor = selectColor; + + /** + * Create a debugger with the given `namespace`. + * + * @param {String} namespace + * @return {Function} + * @api public + */ + function createDebug(namespace) { + let prevTime; + + function debug(...args) { + // Disabled? + if (!debug.enabled) { + return; + } + + const self = debug; + + // Set `diff` timestamp + const curr = Number(new Date()); + const ms = curr - (prevTime || curr); + self.diff = ms; + self.prev = prevTime; + self.curr = curr; + prevTime = curr; + + args[0] = createDebug.coerce(args[0]); + + if (typeof args[0] !== 'string') { + // Anything else let's inspect with %O + args.unshift('%O'); + } + + // Apply any `formatters` transformations + let index = 0; + args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { + // If we encounter an escaped % then don't increase the array index + if (match === '%%') { + return match; + } + index++; + const formatter = createDebug.formatters[format]; + if (typeof formatter === 'function') { + const val = args[index]; + match = formatter.call(self, val); + + // Now we need to remove `args[index]` since it's inlined in the `format` + args.splice(index, 1); + index--; + } + return match; + }); + + // Apply env-specific formatting (colors, etc.) + createDebug.formatArgs.call(self, args); + + const logFn = self.log || createDebug.log; + logFn.apply(self, args); + } + + debug.namespace = namespace; + debug.enabled = createDebug.enabled(namespace); + debug.useColors = createDebug.useColors(); + debug.color = selectColor(namespace); + debug.destroy = destroy; + debug.extend = extend; + // Debug.formatArgs = formatArgs; + // debug.rawLog = rawLog; + + // env-specific initialization logic for debug instances + if (typeof createDebug.init === 'function') { + createDebug.init(debug); + } + + createDebug.instances.push(debug); + + return debug; + } + + function destroy() { + const index = createDebug.instances.indexOf(this); + if (index !== -1) { + createDebug.instances.splice(index, 1); + return true; + } + return false; + } + + function extend(namespace, delimiter) { + const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); + newDebug.log = this.log; + return newDebug; + } + + /** + * Enables a debug mode by namespaces. This can include modes + * separated by a colon and wildcards. + * + * @param {String} namespaces + * @api public + */ + function enable(namespaces) { + createDebug.save(namespaces); + + createDebug.names = []; + createDebug.skips = []; + + let i; + const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); + const len = split.length; + + for (i = 0; i < len; i++) { + if (!split[i]) { + // ignore empty strings + continue; + } + + namespaces = split[i].replace(/\*/g, '.*?'); + + if (namespaces[0] === '-') { + createDebug.skips.push(new RegExp('^' + namespaces.substr(1) + '$')); + } else { + createDebug.names.push(new RegExp('^' + namespaces + '$')); + } + } + + for (i = 0; i < createDebug.instances.length; i++) { + const instance = createDebug.instances[i]; + instance.enabled = createDebug.enabled(instance.namespace); + } + } + + /** + * Disable debug output. + * + * @return {String} namespaces + * @api public + */ + function disable() { + const namespaces = [ + ...createDebug.names.map(toNamespace), + ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) + ].join(','); + createDebug.enable(''); + return namespaces; + } + + /** + * Returns true if the given mode name is enabled, false otherwise. + * + * @param {String} name + * @return {Boolean} + * @api public + */ + function enabled(name) { + if (name[name.length - 1] === '*') { + return true; + } + + let i; + let len; + + for (i = 0, len = createDebug.skips.length; i < len; i++) { + if (createDebug.skips[i].test(name)) { + return false; + } + } + + for (i = 0, len = createDebug.names.length; i < len; i++) { + if (createDebug.names[i].test(name)) { + return true; + } + } + + return false; + } + + /** + * Convert regexp to namespace + * + * @param {RegExp} regxep + * @return {String} namespace + * @api private + */ + function toNamespace(regexp) { + return regexp.toString() + .substring(2, regexp.toString().length - 2) + .replace(/\.\*\?$/, '*'); + } + + /** + * Coerce `val`. + * + * @param {Mixed} val + * @return {Mixed} + * @api private + */ + function coerce(val) { + if (val instanceof Error) { + return val.stack || val.message; + } + return val; + } + + createDebug.enable(createDebug.load()); + + return createDebug; +} + +module.exports = setup; + + +/***/ }), + +/***/ 5969: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Detect Electron renderer / nwjs process, which is node, but we should + * treat as a browser. + */ + +if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { + module.exports = __nccwpck_require__(55185); +} else { + module.exports = __nccwpck_require__(58309); +} + + +/***/ }), + +/***/ 58309: +/***/ ((module, exports, __nccwpck_require__) => { + +/** + * Module dependencies. + */ + +const tty = __nccwpck_require__(76224); +const util = __nccwpck_require__(73837); + +/** + * This is the Node.js implementation of `debug()`. + */ + +exports.init = init; +exports.log = log; +exports.formatArgs = formatArgs; +exports.save = save; +exports.load = load; +exports.useColors = useColors; + +/** + * Colors. + */ + +exports.colors = [6, 2, 3, 4, 5, 1]; + +try { + // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) + // eslint-disable-next-line import/no-extraneous-dependencies + const supportsColor = __nccwpck_require__(13259); + + if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { + exports.colors = [ + 20, + 21, + 26, + 27, + 32, + 33, + 38, + 39, + 40, + 41, + 42, + 43, + 44, + 45, + 56, + 57, + 62, + 63, + 68, + 69, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 92, + 93, + 98, + 99, + 112, + 113, + 128, + 129, + 134, + 135, + 148, + 149, + 160, + 161, + 162, + 163, + 164, + 165, + 166, + 167, + 168, + 169, + 170, + 171, + 172, + 173, + 178, + 179, + 184, + 185, + 196, + 197, + 198, + 199, + 200, + 201, + 202, + 203, + 204, + 205, + 206, + 207, + 208, + 209, + 214, + 215, + 220, + 221 + ]; + } +} catch (error) { + // Swallow - we only care if `supports-color` is available; it doesn't have to be. +} + +/** + * Build up the default `inspectOpts` object from the environment variables. + * + * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js + */ + +exports.inspectOpts = Object.keys(process.env).filter(key => { + return /^debug_/i.test(key); +}).reduce((obj, key) => { + // Camel-case + const prop = key + .substring(6) + .toLowerCase() + .replace(/_([a-z])/g, (_, k) => { + return k.toUpperCase(); + }); + + // Coerce string value into JS value + let val = process.env[key]; + if (/^(yes|on|true|enabled)$/i.test(val)) { + val = true; + } else if (/^(no|off|false|disabled)$/i.test(val)) { + val = false; + } else if (val === 'null') { + val = null; + } else { + val = Number(val); + } + + obj[prop] = val; + return obj; +}, {}); + +/** + * Is stdout a TTY? Colored output is enabled when `true`. + */ + +function useColors() { + return 'colors' in exports.inspectOpts ? + Boolean(exports.inspectOpts.colors) : + tty.isatty(process.stderr.fd); +} + +/** + * Adds ANSI color escape codes if enabled. + * + * @api public + */ + +function formatArgs(args) { + const {namespace: name, useColors} = this; + + if (useColors) { + const c = this.color; + const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); + const prefix = ` ${colorCode};1m${name} \u001B[0m`; + + args[0] = prefix + args[0].split('\n').join('\n' + prefix); + args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); + } else { + args[0] = getDate() + name + ' ' + args[0]; + } +} + +function getDate() { + if (exports.inspectOpts.hideDate) { + return ''; + } + return new Date().toISOString() + ' '; +} + +/** + * Invokes `util.format()` with the specified arguments and writes to stderr. + */ + +function log(...args) { + return process.stderr.write(util.format(...args) + '\n'); +} + +/** + * Save `namespaces`. + * + * @param {String} namespaces + * @api private + */ +function save(namespaces) { + if (namespaces) { + process.env.DEBUG = namespaces; + } else { + // If you set a process.env field to null or undefined, it gets cast to the + // string 'null' or 'undefined'. Just delete instead. + delete process.env.DEBUG; + } +} + +/** + * Load `namespaces`. + * + * @return {String} returns the previously persisted debug modes + * @api private + */ + +function load() { + return process.env.DEBUG; +} + +/** + * Init logic for `debug` instances. + * + * Create a new `inspectOpts` object in case `useColors` is set + * differently for a particular `debug` instance. + */ + +function init(debug) { + debug.inspectOpts = {}; + + const keys = Object.keys(exports.inspectOpts); + for (let i = 0; i < keys.length; i++) { + debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; + } +} + +module.exports = __nccwpck_require__(91307)(exports); + +const {formatters} = module.exports; + +/** + * Map %o to `util.inspect()`, all on a single line. + */ + +formatters.o = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts) + .replace(/\s*\n\s*/g, ' '); +}; + +/** + * Map %O to `util.inspect()`, allowing multiple lines if needed. + */ + +formatters.O = function (v) { + this.inspectOpts.colors = this.useColors; + return util.inspect(v, this.inspectOpts); +}; + + +/***/ }), + +/***/ 84962: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var wrappy = __nccwpck_require__(87509) +var reqs = Object.create(null) +var once = __nccwpck_require__(15287) + +module.exports = wrappy(inflight) + +function inflight (key, cb) { + if (reqs[key]) { + reqs[key].push(cb) + return null + } else { + reqs[key] = [cb] + return makeres(key) + } +} + +function makeres (key) { + return once(function RES () { + var cbs = reqs[key] + var len = cbs.length + var args = slice(arguments) + + // XXX It's somewhat ambiguous whether a new callback added in this + // pass should be queued for later execution if something in the + // list of callbacks throws, or if it should just be discarded. + // However, it's such an edge case that it hardly matters, and either + // choice is likely as surprising as the other. + // As it happens, we do go ahead and schedule it for later execution. + try { + for (var i = 0; i < len; i++) { + cbs[i].apply(null, args) + } + } finally { + if (cbs.length > len) { + // added more in the interim. + // de-zalgo, just in case, but don't call again. + cbs.splice(0, len) + process.nextTick(function () { + RES.apply(null, args) + }) + } else { + delete reqs[key] + } + } + }) +} + +function slice (args) { + var length = args.length + var array = [] + + for (var i = 0; i < length; i++) array[i] = args[i] + return array +} + + +/***/ }), + +/***/ 25333: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +try { + var util = __nccwpck_require__(73837); + /* istanbul ignore next */ + if (typeof util.inherits !== 'function') throw ''; + module.exports = util.inherits; +} catch (e) { + /* istanbul ignore next */ + module.exports = __nccwpck_require__(31893); +} + + +/***/ }), + +/***/ 31893: +/***/ ((module) => { + +if (typeof Object.create === 'function') { + // implementation from standard node.js 'util' module + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + ctor.prototype = Object.create(superCtor.prototype, { + constructor: { + value: ctor, + enumerable: false, + writable: true, + configurable: true + } + }) + } + }; +} else { + // old school shim for old browsers + module.exports = function inherits(ctor, superCtor) { + if (superCtor) { + ctor.super_ = superCtor + var TempCtor = function () {} + TempCtor.prototype = superCtor.prototype + ctor.prototype = new TempCtor() + ctor.prototype.constructor = ctor + } + } +} + + +/***/ }), + +/***/ 59106: +/***/ ((module) => { + +"use strict"; + + +const isStream = stream => + stream !== null && + typeof stream === 'object' && + typeof stream.pipe === 'function'; + +isStream.writable = stream => + isStream(stream) && + stream.writable !== false && + typeof stream._write === 'function' && + typeof stream._writableState === 'object'; + +isStream.readable = stream => + isStream(stream) && + stream.readable !== false && + typeof stream._read === 'function' && + typeof stream._readableState === 'object'; + +isStream.duplex = stream => + isStream.writable(stream) && + isStream.readable(stream); + +isStream.transform = stream => + isStream.duplex(stream) && + typeof stream._transform === 'function' && + typeof stream._transformState === 'object'; + +module.exports = isStream; + + +/***/ }), + +/***/ 78320: +/***/ ((module) => { + +var toString = {}.toString; + +module.exports = Array.isArray || function (arr) { + return toString.call(arr) == '[object Array]'; +}; + + +/***/ }), + +/***/ 53357: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var json_stringify = (__nccwpck_require__(88207).stringify); +var json_parse = __nccwpck_require__(63251); + +module.exports = function(options) { + return { + parse: json_parse(options), + stringify: json_stringify + } +}; +//create the default method members with no options applied for backwards compatibility +module.exports.parse = json_parse(); +module.exports.stringify = json_stringify; + + +/***/ }), + +/***/ 63251: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var BigNumber = null; +/* + json_parse.js + 2012-06-20 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + This file creates a json_parse function. + During create you can (optionally) specify some behavioural switches + + require('json-bigint')(options) + + The optional options parameter holds switches that drive certain + aspects of the parsing process: + * options.strict = true will warn about duplicate-key usage in the json. + The default (strict = false) will silently ignore those and overwrite + values for keys that are in duplicate use. + + The resulting function follows this signature: + json_parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = json_parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + This is a reference implementation. You are free to copy, modify, or + redistribute. + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. +*/ + +/*members "", "\"", "\/", "\\", at, b, call, charAt, f, fromCharCode, + hasOwnProperty, message, n, name, prototype, push, r, t, text +*/ + +var json_parse = function (options) { + "use strict"; + +// This is a function that can parse a JSON text, producing a JavaScript +// data structure. It is a simple, recursive descent parser. It does not use +// eval or regular expressions, so it can be used as a model for implementing +// a JSON parser in other languages. + +// We are defining the function inside of another function to avoid creating +// global variables. + + +// Default options one can override by passing options to the parse() + var _options = { + "strict": false, // not being strict means do not generate syntax errors for "duplicate key" + "storeAsString": false // toggles whether the values should be stored as BigNumber (default) or a string + }; + + +// If there are options, then use them to override the default _options + if (options !== undefined && options !== null) { + if (options.strict === true) { + _options.strict = true; + } + if (options.storeAsString === true) { + _options.storeAsString = true; + } + } + + + var at, // The index of the current character + ch, // The current character + escapee = { + '"': '"', + '\\': '\\', + '/': '/', + b: '\b', + f: '\f', + n: '\n', + r: '\r', + t: '\t' + }, + text, + + error = function (m) { + +// Call error when something is wrong. + + throw { + name: 'SyntaxError', + message: m, + at: at, + text: text + }; + }, + + next = function (c) { + +// If a c parameter is provided, verify that it matches the current character. + + if (c && c !== ch) { + error("Expected '" + c + "' instead of '" + ch + "'"); + } + +// Get the next character. When there are no more characters, +// return the empty string. + + ch = text.charAt(at); + at += 1; + return ch; + }, + + number = function () { +// Parse a number value. + + var number, + string = ''; + + if (ch === '-') { + string = '-'; + next('-'); + } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + if (ch === '.') { + string += '.'; + while (next() && ch >= '0' && ch <= '9') { + string += ch; + } + } + if (ch === 'e' || ch === 'E') { + string += ch; + next(); + if (ch === '-' || ch === '+') { + string += ch; + next(); + } + while (ch >= '0' && ch <= '9') { + string += ch; + next(); + } + } + number = +string; + if (!isFinite(number)) { + error("Bad number"); + } else { + if (BigNumber == null) + BigNumber = __nccwpck_require__(59833); + //if (number > 9007199254740992 || number < -9007199254740992) + // Bignumber has stricter check: everything with length > 15 digits disallowed + if (string.length > 15) + return (_options.storeAsString === true) ? string : new BigNumber(string); + return number; + } + }, + + string = function () { + +// Parse a string value. + + var hex, + i, + string = '', + uffff; + +// When parsing for string values, we must look for " and \ characters. + + if (ch === '"') { + while (next()) { + if (ch === '"') { + next(); + return string; + } + if (ch === '\\') { + next(); + if (ch === 'u') { + uffff = 0; + for (i = 0; i < 4; i += 1) { + hex = parseInt(next(), 16); + if (!isFinite(hex)) { + break; + } + uffff = uffff * 16 + hex; + } + string += String.fromCharCode(uffff); + } else if (typeof escapee[ch] === 'string') { + string += escapee[ch]; + } else { + break; + } + } else { + string += ch; + } + } + } + error("Bad string"); + }, + + white = function () { + +// Skip whitespace. + + while (ch && ch <= ' ') { + next(); + } + }, + + word = function () { + +// true, false, or null. + + switch (ch) { + case 't': + next('t'); + next('r'); + next('u'); + next('e'); + return true; + case 'f': + next('f'); + next('a'); + next('l'); + next('s'); + next('e'); + return false; + case 'n': + next('n'); + next('u'); + next('l'); + next('l'); + return null; + } + error("Unexpected '" + ch + "'"); + }, + + value, // Place holder for the value function. + + array = function () { + +// Parse an array value. + + var array = []; + + if (ch === '[') { + next('['); + white(); + if (ch === ']') { + next(']'); + return array; // empty array + } + while (ch) { + array.push(value()); + white(); + if (ch === ']') { + next(']'); + return array; + } + next(','); + white(); + } + } + error("Bad array"); + }, + + object = function () { + +// Parse an object value. + + var key, + object = {}; + + if (ch === '{') { + next('{'); + white(); + if (ch === '}') { + next('}'); + return object; // empty object + } + while (ch) { + key = string(); + white(); + next(':'); + if (_options.strict === true && Object.hasOwnProperty.call(object, key)) { + error('Duplicate key "' + key + '"'); + } + object[key] = value(); + white(); + if (ch === '}') { + next('}'); + return object; + } + next(','); + white(); + } + } + error("Bad object"); + }; + + value = function () { + +// Parse a JSON value. It could be an object, an array, a string, a number, +// or a word. + + white(); + switch (ch) { + case '{': + return object(); + case '[': + return array(); + case '"': + return string(); + case '-': + return number(); + default: + return ch >= '0' && ch <= '9' ? number() : word(); + } + }; + +// Return the json_parse function. It will have access to all of the above +// functions and variables. + + return function (source, reviver) { + var result; + + text = source + ''; + at = 0; + ch = ' '; + result = value(); + white(); + if (ch) { + error("Syntax error"); + } + +// If there is a reviver function, we recursively walk the new structure, +// passing each name/value pair to the reviver function for possible +// transformation, starting with a temporary root object that holds the result +// in an empty key. If there is not a reviver function, we simply return the +// result. + + return typeof reviver === 'function' + ? (function walk(holder, key) { + var k, v, value = holder[key]; + if (value && typeof value === 'object') { + Object.keys(value).forEach(function(k) { + v = walk(value, k); + if (v !== undefined) { + value[k] = v; + } else { + delete value[k]; + } + }); + } + return reviver.call(holder, key, value); + }({'': result}, '')) + : result; + }; +} + +module.exports = json_parse; + + +/***/ }), + +/***/ 88207: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var BigNumber = __nccwpck_require__(59833); + +/* + json2.js + 2013-05-26 + + Public Domain. + + NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. + + See http://www.JSON.org/js.html + + + This code should be minified before deployment. + See http://javascript.crockford.com/jsmin.html + + USE YOUR OWN COPY. IT IS EXTREMELY UNWISE TO LOAD CODE FROM SERVERS YOU DO + NOT CONTROL. + + + This file creates a global JSON object containing two methods: stringify + and parse. + + JSON.stringify(value, replacer, space) + value any JavaScript value, usually an object or array. + + replacer an optional parameter that determines how object + values are stringified for objects. It can be a + function or an array of strings. + + space an optional parameter that specifies the indentation + of nested structures. If it is omitted, the text will + be packed without extra whitespace. If it is a number, + it will specify the number of spaces to indent at each + level. If it is a string (such as '\t' or ' '), + it contains the characters used to indent at each level. + + This method produces a JSON text from a JavaScript value. + + When an object value is found, if the object contains a toJSON + method, its toJSON method will be called and the result will be + stringified. A toJSON method does not serialize: it returns the + value represented by the name/value pair that should be serialized, + or undefined if nothing should be serialized. The toJSON method + will be passed the key associated with the value, and this will be + bound to the value + + For example, this would serialize Dates as ISO strings. + + Date.prototype.toJSON = function (key) { + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + return this.getUTCFullYear() + '-' + + f(this.getUTCMonth() + 1) + '-' + + f(this.getUTCDate()) + 'T' + + f(this.getUTCHours()) + ':' + + f(this.getUTCMinutes()) + ':' + + f(this.getUTCSeconds()) + 'Z'; + }; + + You can provide an optional replacer method. It will be passed the + key and value of each member, with this bound to the containing + object. The value that is returned from your method will be + serialized. If your method returns undefined, then the member will + be excluded from the serialization. + + If the replacer parameter is an array of strings, then it will be + used to select the members to be serialized. It filters the results + such that only members with keys listed in the replacer array are + stringified. + + Values that do not have JSON representations, such as undefined or + functions, will not be serialized. Such values in objects will be + dropped; in arrays they will be replaced with null. You can use + a replacer function to replace those with JSON values. + JSON.stringify(undefined) returns undefined. + + The optional space parameter produces a stringification of the + value that is filled with line breaks and indentation to make it + easier to read. + + If the space parameter is a non-empty string, then that string will + be used for indentation. If the space parameter is a number, then + the indentation will be that many spaces. + + Example: + + text = JSON.stringify(['e', {pluribus: 'unum'}]); + // text is '["e",{"pluribus":"unum"}]' + + + text = JSON.stringify(['e', {pluribus: 'unum'}], null, '\t'); + // text is '[\n\t"e",\n\t{\n\t\t"pluribus": "unum"\n\t}\n]' + + text = JSON.stringify([new Date()], function (key, value) { + return this[key] instanceof Date ? + 'Date(' + this[key] + ')' : value; + }); + // text is '["Date(---current time---)"]' + + + JSON.parse(text, reviver) + This method parses a JSON text to produce an object or array. + It can throw a SyntaxError exception. + + The optional reviver parameter is a function that can filter and + transform the results. It receives each of the keys and values, + and its return value is used instead of the original value. + If it returns what it received, then the structure is not modified. + If it returns undefined then the member is deleted. + + Example: + + // Parse the text. Values that look like ISO date strings will + // be converted to Date objects. + + myData = JSON.parse(text, function (key, value) { + var a; + if (typeof value === 'string') { + a = +/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}(?:\.\d*)?)Z$/.exec(value); + if (a) { + return new Date(Date.UTC(+a[1], +a[2] - 1, +a[3], +a[4], + +a[5], +a[6])); + } + } + return value; + }); + + myData = JSON.parse('["Date(09/09/2001)"]', function (key, value) { + var d; + if (typeof value === 'string' && + value.slice(0, 5) === 'Date(' && + value.slice(-1) === ')') { + d = new Date(value.slice(5, -1)); + if (d) { + return d; + } + } + return value; + }); + + + This is a reference implementation. You are free to copy, modify, or + redistribute. +*/ + +/*jslint evil: true, regexp: true */ + +/*members "", "\b", "\t", "\n", "\f", "\r", "\"", JSON, "\\", apply, + call, charCodeAt, getUTCDate, getUTCFullYear, getUTCHours, + getUTCMinutes, getUTCMonth, getUTCSeconds, hasOwnProperty, join, + lastIndex, length, parse, prototype, push, replace, slice, stringify, + test, toJSON, toString, valueOf +*/ + + +// Create a JSON object only if one does not already exist. We create the +// methods in a closure to avoid creating global variables. + +var JSON = module.exports; + +(function () { + 'use strict'; + + function f(n) { + // Format integers to have at least two digits. + return n < 10 ? '0' + n : n; + } + + var cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + escapable = /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, + gap, + indent, + meta = { // table of character substitutions + '\b': '\\b', + '\t': '\\t', + '\n': '\\n', + '\f': '\\f', + '\r': '\\r', + '"' : '\\"', + '\\': '\\\\' + }, + rep; + + + function quote(string) { + +// If the string contains no control characters, no quote characters, and no +// backslash characters, then we can safely slap some quotes around it. +// Otherwise we must also replace the offending characters with safe escape +// sequences. + + escapable.lastIndex = 0; + return escapable.test(string) ? '"' + string.replace(escapable, function (a) { + var c = meta[a]; + return typeof c === 'string' + ? c + : '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4); + }) + '"' : '"' + string + '"'; + } + + + function str(key, holder) { + +// Produce a string from holder[key]. + + var i, // The loop counter. + k, // The member key. + v, // The member value. + length, + mind = gap, + partial, + value = holder[key], + isBigNumber = value != null && (value instanceof BigNumber || BigNumber.isBigNumber(value)); + +// If the value has a toJSON method, call it to obtain a replacement value. + + if (value && typeof value === 'object' && + typeof value.toJSON === 'function') { + value = value.toJSON(key); + } + +// If we were called with a replacer function, then call the replacer to +// obtain a replacement value. + + if (typeof rep === 'function') { + value = rep.call(holder, key, value); + } + +// What happens next depends on the value's type. + + switch (typeof value) { + case 'string': + if (isBigNumber) { + return value; + } else { + return quote(value); + } + + case 'number': + +// JSON numbers must be finite. Encode non-finite numbers as null. + + return isFinite(value) ? String(value) : 'null'; + + case 'boolean': + case 'null': + +// If the value is a boolean or null, convert it to a string. Note: +// typeof null does not produce 'null'. The case is included here in +// the remote chance that this gets fixed someday. + + return String(value); + +// If the type is 'object', we might be dealing with an object or an array or +// null. + + case 'object': + +// Due to a specification blunder in ECMAScript, typeof null is 'object', +// so watch out for that case. + + if (!value) { + return 'null'; + } + +// Make an array to hold the partial results of stringifying this object value. + + gap += indent; + partial = []; + +// Is the value an array? + + if (Object.prototype.toString.apply(value) === '[object Array]') { + +// The value is an array. Stringify every element. Use null as a placeholder +// for non-JSON values. + + length = value.length; + for (i = 0; i < length; i += 1) { + partial[i] = str(i, value) || 'null'; + } + +// Join all of the elements together, separated with commas, and wrap them in +// brackets. + + v = partial.length === 0 + ? '[]' + : gap + ? '[\n' + gap + partial.join(',\n' + gap) + '\n' + mind + ']' + : '[' + partial.join(',') + ']'; + gap = mind; + return v; + } + +// If the replacer is an array, use it to select the members to be stringified. + + if (rep && typeof rep === 'object') { + length = rep.length; + for (i = 0; i < length; i += 1) { + if (typeof rep[i] === 'string') { + k = rep[i]; + v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + } + } + } else { + +// Otherwise, iterate through all of the keys in the object. + + Object.keys(value).forEach(function(k) { + var v = str(k, value); + if (v) { + partial.push(quote(k) + (gap ? ': ' : ':') + v); + } + }); + } + +// Join all of the member texts together, separated with commas, +// and wrap them in braces. + + v = partial.length === 0 + ? '{}' + : gap + ? '{\n' + gap + partial.join(',\n' + gap) + '\n' + mind + '}' + : '{' + partial.join(',') + '}'; + gap = mind; + return v; + } + } + +// If the JSON object does not yet have a stringify method, give it one. + + if (typeof JSON.stringify !== 'function') { + JSON.stringify = function (value, replacer, space) { + +// The stringify method takes a value and an optional replacer, and an optional +// space parameter, and returns a JSON text. The replacer can be a function +// that can replace values, or an array of strings that will select the keys. +// A default replacer method can be provided. Use of the space parameter can +// produce text that is more easily readable. + + var i; + gap = ''; + indent = ''; + +// If the space parameter is a number, make an indent string containing that +// many spaces. + + if (typeof space === 'number') { + for (i = 0; i < space; i += 1) { + indent += ' '; + } + +// If the space parameter is a string, it will be used as the indent string. + + } else if (typeof space === 'string') { + indent = space; + } + +// If there is a replacer, it must be a function or an array. +// Otherwise, throw an error. + + rep = replacer; + if (replacer && typeof replacer !== 'function' && + (typeof replacer !== 'object' || + typeof replacer.length !== 'number')) { + throw new Error('JSON.stringify'); + } + +// Make a fake root object containing our value under the key of ''. +// Return the result of stringifying the value. + + return str('', {'': value}); + }; + } +}()); + + +/***/ }), + +/***/ 80409: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var bufferEqual = __nccwpck_require__(56452); +var Buffer = (__nccwpck_require__(92307).Buffer); +var crypto = __nccwpck_require__(6113); +var formatEcdsa = __nccwpck_require__(75847); +var util = __nccwpck_require__(73837); + +var MSG_INVALID_ALGORITHM = '"%s" is not a valid algorithm.\n Supported algorithms are:\n "HS256", "HS384", "HS512", "RS256", "RS384", "RS512", "PS256", "PS384", "PS512", "ES256", "ES384", "ES512" and "none".' +var MSG_INVALID_SECRET = 'secret must be a string or buffer'; +var MSG_INVALID_VERIFIER_KEY = 'key must be a string or a buffer'; +var MSG_INVALID_SIGNER_KEY = 'key must be a string, a buffer or an object'; + +var supportsKeyObjects = typeof crypto.createPublicKey === 'function'; +if (supportsKeyObjects) { + MSG_INVALID_VERIFIER_KEY += ' or a KeyObject'; + MSG_INVALID_SECRET += 'or a KeyObject'; +} + +function checkIsPublicKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.type !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.asymmetricKeyType !== 'string') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_VERIFIER_KEY); + } +}; + +function checkIsPrivateKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return; + } + + if (typeof key === 'object') { + return; + } + + throw typeError(MSG_INVALID_SIGNER_KEY); +}; + +function checkIsSecretKey(key) { + if (Buffer.isBuffer(key)) { + return; + } + + if (typeof key === 'string') { + return key; + } + + if (!supportsKeyObjects) { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key !== 'object') { + throw typeError(MSG_INVALID_SECRET); + } + + if (key.type !== 'secret') { + throw typeError(MSG_INVALID_SECRET); + } + + if (typeof key.export !== 'function') { + throw typeError(MSG_INVALID_SECRET); + } +} + +function fromBase64(base64) { + return base64 + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function toBase64(base64url) { + base64url = base64url.toString(); + + var padding = 4 - base64url.length % 4; + if (padding !== 4) { + for (var i = 0; i < padding; ++i) { + base64url += '='; + } + } + + return base64url + .replace(/\-/g, '+') + .replace(/_/g, '/'); +} + +function typeError(template) { + var args = [].slice.call(arguments, 1); + var errMsg = util.format.bind(util, template).apply(null, args); + return new TypeError(errMsg); +} + +function bufferOrString(obj) { + return Buffer.isBuffer(obj) || typeof obj === 'string'; +} + +function normalizeInput(thing) { + if (!bufferOrString(thing)) + thing = JSON.stringify(thing); + return thing; +} + +function createHmacSigner(bits) { + return function sign(thing, secret) { + checkIsSecretKey(secret); + thing = normalizeInput(thing); + var hmac = crypto.createHmac('sha' + bits, secret); + var sig = (hmac.update(thing), hmac.digest('base64')) + return fromBase64(sig); + } +} + +function createHmacVerifier(bits) { + return function verify(thing, signature, secret) { + var computedSig = createHmacSigner(bits)(thing, secret); + return bufferEqual(Buffer.from(signature), Buffer.from(computedSig)); + } +} + +function createKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + // Even though we are specifying "RSA" here, this works with ECDSA + // keys as well. + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign(privateKey, 'base64')); + return fromBase64(sig); + } +} + +function createKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify(publicKey, signature, 'base64'); + } +} + +function createPSSKeySigner(bits) { + return function sign(thing, privateKey) { + checkIsPrivateKey(privateKey); + thing = normalizeInput(thing); + var signer = crypto.createSign('RSA-SHA' + bits); + var sig = (signer.update(thing), signer.sign({ + key: privateKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, 'base64')); + return fromBase64(sig); + } +} + +function createPSSKeyVerifier(bits) { + return function verify(thing, signature, publicKey) { + checkIsPublicKey(publicKey); + thing = normalizeInput(thing); + signature = toBase64(signature); + var verifier = crypto.createVerify('RSA-SHA' + bits); + verifier.update(thing); + return verifier.verify({ + key: publicKey, + padding: crypto.constants.RSA_PKCS1_PSS_PADDING, + saltLength: crypto.constants.RSA_PSS_SALTLEN_DIGEST + }, signature, 'base64'); + } +} + +function createECDSASigner(bits) { + var inner = createKeySigner(bits); + return function sign() { + var signature = inner.apply(null, arguments); + signature = formatEcdsa.derToJose(signature, 'ES' + bits); + return signature; + }; +} + +function createECDSAVerifer(bits) { + var inner = createKeyVerifier(bits); + return function verify(thing, signature, publicKey) { + signature = formatEcdsa.joseToDer(signature, 'ES' + bits).toString('base64'); + var result = inner(thing, signature, publicKey); + return result; + }; +} + +function createNoneSigner() { + return function sign() { + return ''; + } +} + +function createNoneVerifier() { + return function verify(thing, signature) { + return signature === ''; + } +} + +module.exports = function jwa(algorithm) { + var signerFactories = { + hs: createHmacSigner, + rs: createKeySigner, + ps: createPSSKeySigner, + es: createECDSASigner, + none: createNoneSigner, + } + var verifierFactories = { + hs: createHmacVerifier, + rs: createKeyVerifier, + ps: createPSSKeyVerifier, + es: createECDSAVerifer, + none: createNoneVerifier, + } + var match = algorithm.match(/^(RS|PS|ES|HS)(256|384|512)$|^(none)$/); + if (!match) + throw typeError(MSG_INVALID_ALGORITHM, algorithm); + var algo = (match[1] || match[3]).toLowerCase(); + var bits = match[2]; + + return { + sign: signerFactories[algo](bits), + verify: verifierFactories[algo](bits), + } +}; + + +/***/ }), + +/***/ 73297: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/*global exports*/ +var SignStream = __nccwpck_require__(53161); +var VerifyStream = __nccwpck_require__(74051); + +var ALGORITHMS = [ + 'HS256', 'HS384', 'HS512', + 'RS256', 'RS384', 'RS512', + 'PS256', 'PS384', 'PS512', + 'ES256', 'ES384', 'ES512' +]; + +exports.ALGORITHMS = ALGORITHMS; +exports.sign = SignStream.sign; +exports.verify = VerifyStream.verify; +exports.decode = VerifyStream.decode; +exports.isValid = VerifyStream.isValid; +exports.createSign = function createSign(opts) { + return new SignStream(opts); +}; +exports.createVerify = function createVerify(opts) { + return new VerifyStream(opts); +}; + + +/***/ }), + +/***/ 84382: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module, process*/ +var Buffer = (__nccwpck_require__(92307).Buffer); +var Stream = __nccwpck_require__(12781); +var util = __nccwpck_require__(73837); + +function DataStream(data) { + this.buffer = null; + this.writable = true; + this.readable = true; + + // No input + if (!data) { + this.buffer = Buffer.alloc(0); + return this; + } + + // Stream + if (typeof data.pipe === 'function') { + this.buffer = Buffer.alloc(0); + data.pipe(this); + return this; + } + + // Buffer or String + // or Object (assumedly a passworded key) + if (data.length || typeof data === 'object') { + this.buffer = data; + this.writable = false; + process.nextTick(function () { + this.emit('end', data); + this.readable = false; + this.emit('close'); + }.bind(this)); + return this; + } + + throw new TypeError('Unexpected data type ('+ typeof data + ')'); +} +util.inherits(DataStream, Stream); + +DataStream.prototype.write = function write(data) { + this.buffer = Buffer.concat([this.buffer, Buffer.from(data)]); + this.emit('data', data); +}; + +DataStream.prototype.end = function end(data) { + if (data) + this.write(data); + this.emit('end', data); + this.emit('close'); + this.writable = false; + this.readable = false; +}; + +module.exports = DataStream; + + +/***/ }), + +/***/ 53161: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(92307).Buffer); +var DataStream = __nccwpck_require__(84382); +var jwa = __nccwpck_require__(80409); +var Stream = __nccwpck_require__(12781); +var toString = __nccwpck_require__(92050); +var util = __nccwpck_require__(73837); + +function base64url(string, encoding) { + return Buffer + .from(string, encoding) + .toString('base64') + .replace(/=/g, '') + .replace(/\+/g, '-') + .replace(/\//g, '_'); +} + +function jwsSecuredInput(header, payload, encoding) { + encoding = encoding || 'utf8'; + var encodedHeader = base64url(toString(header), 'binary'); + var encodedPayload = base64url(toString(payload), encoding); + return util.format('%s.%s', encodedHeader, encodedPayload); +} + +function jwsSign(opts) { + var header = opts.header; + var payload = opts.payload; + var secretOrKey = opts.secret || opts.privateKey; + var encoding = opts.encoding; + var algo = jwa(header.alg); + var securedInput = jwsSecuredInput(header, payload, encoding); + var signature = algo.sign(securedInput, secretOrKey); + return util.format('%s.%s', securedInput, signature); +} + +function SignStream(opts) { + var secret = opts.secret||opts.privateKey||opts.key; + var secretStream = new DataStream(secret); + this.readable = true; + this.header = opts.header; + this.encoding = opts.encoding; + this.secret = this.privateKey = this.key = secretStream; + this.payload = new DataStream(opts.payload); + this.secret.once('close', function () { + if (!this.payload.writable && this.readable) + this.sign(); + }.bind(this)); + + this.payload.once('close', function () { + if (!this.secret.writable && this.readable) + this.sign(); + }.bind(this)); +} +util.inherits(SignStream, Stream); + +SignStream.prototype.sign = function sign() { + try { + var signature = jwsSign({ + header: this.header, + payload: this.payload.buffer, + secret: this.secret.buffer, + encoding: this.encoding + }); + this.emit('done', signature); + this.emit('data', signature); + this.emit('end'); + this.readable = false; + return signature; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; + +SignStream.sign = jwsSign; + +module.exports = SignStream; + + +/***/ }), + +/***/ 92050: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(14300).Buffer); + +module.exports = function toString(obj) { + if (typeof obj === 'string') + return obj; + if (typeof obj === 'number' || Buffer.isBuffer(obj)) + return obj.toString(); + return JSON.stringify(obj); +}; + + +/***/ }), + +/***/ 74051: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/*global module*/ +var Buffer = (__nccwpck_require__(92307).Buffer); +var DataStream = __nccwpck_require__(84382); +var jwa = __nccwpck_require__(80409); +var Stream = __nccwpck_require__(12781); +var toString = __nccwpck_require__(92050); +var util = __nccwpck_require__(73837); +var JWS_REGEX = /^[a-zA-Z0-9\-_]+?\.[a-zA-Z0-9\-_]+?\.([a-zA-Z0-9\-_]+)?$/; + +function isObject(thing) { + return Object.prototype.toString.call(thing) === '[object Object]'; +} + +function safeJsonParse(thing) { + if (isObject(thing)) + return thing; + try { return JSON.parse(thing); } + catch (e) { return undefined; } +} + +function headerFromJWS(jwsSig) { + var encodedHeader = jwsSig.split('.', 1)[0]; + return safeJsonParse(Buffer.from(encodedHeader, 'base64').toString('binary')); +} + +function securedInputFromJWS(jwsSig) { + return jwsSig.split('.', 2).join('.'); +} + +function signatureFromJWS(jwsSig) { + return jwsSig.split('.')[2]; +} + +function payloadFromJWS(jwsSig, encoding) { + encoding = encoding || 'utf8'; + var payload = jwsSig.split('.')[1]; + return Buffer.from(payload, 'base64').toString(encoding); +} + +function isValidJws(string) { + return JWS_REGEX.test(string) && !!headerFromJWS(string); +} + +function jwsVerify(jwsSig, algorithm, secretOrKey) { + if (!algorithm) { + var err = new Error("Missing algorithm parameter for jws.verify"); + err.code = "MISSING_ALGORITHM"; + throw err; + } + jwsSig = toString(jwsSig); + var signature = signatureFromJWS(jwsSig); + var securedInput = securedInputFromJWS(jwsSig); + var algo = jwa(algorithm); + return algo.verify(securedInput, signature, secretOrKey); +} + +function jwsDecode(jwsSig, opts) { + opts = opts || {}; + jwsSig = toString(jwsSig); + + if (!isValidJws(jwsSig)) + return null; + + var header = headerFromJWS(jwsSig); + + if (!header) + return null; + + var payload = payloadFromJWS(jwsSig); + if (header.typ === 'JWT' || opts.json) + payload = JSON.parse(payload, opts.encoding); + + return { + header: header, + payload: payload, + signature: signatureFromJWS(jwsSig) + }; +} + +function VerifyStream(opts) { + opts = opts || {}; + var secretOrKey = opts.secret||opts.publicKey||opts.key; + var secretStream = new DataStream(secretOrKey); + this.readable = true; + this.algorithm = opts.algorithm; + this.encoding = opts.encoding; + this.secret = this.publicKey = this.key = secretStream; + this.signature = new DataStream(opts.signature); + this.secret.once('close', function () { + if (!this.signature.writable && this.readable) + this.verify(); + }.bind(this)); + + this.signature.once('close', function () { + if (!this.secret.writable && this.readable) + this.verify(); + }.bind(this)); +} +util.inherits(VerifyStream, Stream); +VerifyStream.prototype.verify = function verify() { + try { + var valid = jwsVerify(this.signature.buffer, this.algorithm, this.key.buffer); + var obj = jwsDecode(this.signature.buffer, this.encoding); + this.emit('done', valid, obj); + this.emit('data', valid); + this.emit('end'); + this.readable = false; + return valid; + } catch (e) { + this.readable = false; + this.emit('error', e); + this.emit('close'); + } +}; + +VerifyStream.decode = jwsDecode; +VerifyStream.isValid = isValidJws; +VerifyStream.verify = jwsVerify; + +module.exports = VerifyStream; + + +/***/ }), + +/***/ 50362: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var util = __nccwpck_require__(73837); +var PassThrough = __nccwpck_require__(84279); + +module.exports = { + Readable: Readable, + Writable: Writable +}; + +util.inherits(Readable, PassThrough); +util.inherits(Writable, PassThrough); + +// Patch the given method of instance so that the callback +// is executed once, before the actual method is called the +// first time. +function beforeFirstCall(instance, method, callback) { + instance[method] = function() { + delete instance[method]; + callback.apply(this, arguments); + return this[method].apply(this, arguments); + }; +} + +function Readable(fn, options) { + if (!(this instanceof Readable)) + return new Readable(fn, options); + + PassThrough.call(this, options); + + beforeFirstCall(this, '_read', function() { + var source = fn.call(this, options); + var emit = this.emit.bind(this, 'error'); + source.on('error', emit); + source.pipe(this); + }); + + this.emit('readable'); +} + +function Writable(fn, options) { + if (!(this instanceof Writable)) + return new Writable(fn, options); + + PassThrough.call(this, options); + + beforeFirstCall(this, '_write', function() { + var destination = fn.call(this, options); + var emit = this.emit.bind(this, 'error'); + destination.on('error', emit); + this.pipe(destination); + }); + + this.emit('writable'); +} + + + +/***/ }), + +/***/ 53918: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +/**/ +var objectKeys = Object.keys || function (obj) { + var keys = []; + for (var key in obj) { + keys.push(key); + }return keys; +}; +/**/ + +module.exports = Duplex; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +var Readable = __nccwpck_require__(74221); +var Writable = __nccwpck_require__(72458); + +util.inherits(Duplex, Readable); + +{ + // avoid scope creep, the keys array can then be collected + var keys = objectKeys(Writable.prototype); + for (var v = 0; v < keys.length; v++) { + var method = keys[v]; + if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + } +} + +function Duplex(options) { + if (!(this instanceof Duplex)) return new Duplex(options); + + Readable.call(this, options); + Writable.call(this, options); + + if (options && options.readable === false) this.readable = false; + + if (options && options.writable === false) this.writable = false; + + this.allowHalfOpen = true; + if (options && options.allowHalfOpen === false) this.allowHalfOpen = false; + + this.once('end', onend); +} + +Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// the no-half-open enforcer +function onend() { + // if we allow half-open state, or if the writable side ended, + // then we're ok. + if (this.allowHalfOpen || this._writableState.ended) return; + + // no more data can be written. + // But allow more writes to happen in this tick. + pna.nextTick(onEndNT, this); +} + +function onEndNT(self) { + self.end(); +} + +Object.defineProperty(Duplex.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined || this._writableState === undefined) { + return false; + } + return this._readableState.destroyed && this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (this._readableState === undefined || this._writableState === undefined) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + this._writableState.destroyed = value; + } +}); + +Duplex.prototype._destroy = function (err, cb) { + this.push(null); + this.end(); + + pna.nextTick(cb, err); +}; + +/***/ }), + +/***/ 72908: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a passthrough stream. +// basically just the most minimal sort of Transform stream. +// Every written chunk gets output as-is. + + + +module.exports = PassThrough; + +var Transform = __nccwpck_require__(12189); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(PassThrough, Transform); + +function PassThrough(options) { + if (!(this instanceof PassThrough)) return new PassThrough(options); + + Transform.call(this, options); +} + +PassThrough.prototype._transform = function (chunk, encoding, cb) { + cb(null, chunk); +}; + +/***/ }), + +/***/ 74221: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Readable; + +/**/ +var isArray = __nccwpck_require__(78320); +/**/ + +/**/ +var Duplex; +/**/ + +Readable.ReadableState = ReadableState; + +/**/ +var EE = (__nccwpck_require__(82361).EventEmitter); + +var EElistenerCount = function (emitter, type) { + return emitter.listeners(type).length; +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(4860); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(92653).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var debugUtil = __nccwpck_require__(73837); +var debug = void 0; +if (debugUtil && debugUtil.debuglog) { + debug = debugUtil.debuglog('stream'); +} else { + debug = function () {}; +} +/**/ + +var BufferList = __nccwpck_require__(50354); +var destroyImpl = __nccwpck_require__(53021); +var StringDecoder; + +util.inherits(Readable, Stream); + +var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; + +function prependListener(emitter, event, fn) { + // Sadly this is not cacheable as some libraries bundle their own + // event emitter implementation with them. + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); + + // This is a hack to make sure that our error handler is attached before any + // userland ones. NEVER DO THIS. This is here only because this code needs + // to continue to work with older versions of Node.js that do not include + // the prependListener() method. The goal is to eventually remove this hack. + if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; +} + +function ReadableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(53918); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; + + // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + var hwm = options.highWaterMark; + var readableHwm = options.readableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (readableHwm || readableHwm === 0)) this.highWaterMark = readableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // A linked list is used to store data chunks instead of an array because the + // linked list can remove elements from the beginning faster than + // array.shift() + this.buffer = new BufferList(); + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; + + // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. + this.sync = true; + + // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + this.resumeScheduled = false; + + // has it been destroyed + this.destroyed = false; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // the number of writers that are awaiting a drain event in .pipe()s + this.awaitDrain = 0; + + // if true, a maybeReadMore has been scheduled + this.readingMore = false; + + this.decoder = null; + this.encoding = null; + if (options.encoding) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } +} + +function Readable(options) { + Duplex = Duplex || __nccwpck_require__(53918); + + if (!(this instanceof Readable)) return new Readable(options); + + this._readableState = new ReadableState(options, this); + + // legacy + this.readable = true; + + if (options) { + if (typeof options.read === 'function') this._read = options.read; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + } + + Stream.call(this); +} + +Object.defineProperty(Readable.prototype, 'destroyed', { + get: function () { + if (this._readableState === undefined) { + return false; + } + return this._readableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._readableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._readableState.destroyed = value; + } +}); + +Readable.prototype.destroy = destroyImpl.destroy; +Readable.prototype._undestroy = destroyImpl.undestroy; +Readable.prototype._destroy = function (err, cb) { + this.push(null); + cb(err); +}; + +// Manually shove something into the read() buffer. +// This returns true if the highWaterMark has not been hit yet, +// similar to how Writable.write() returns true if you should +// write() some more. +Readable.prototype.push = function (chunk, encoding) { + var state = this._readableState; + var skipChunkCheck; + + if (!state.objectMode) { + if (typeof chunk === 'string') { + encoding = encoding || state.defaultEncoding; + if (encoding !== state.encoding) { + chunk = Buffer.from(chunk, encoding); + encoding = ''; + } + skipChunkCheck = true; + } + } else { + skipChunkCheck = true; + } + + return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); +}; + +// Unshift should *always* be something directly out of read() +Readable.prototype.unshift = function (chunk) { + return readableAddChunk(this, chunk, null, true, false); +}; + +function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { + var state = stream._readableState; + if (chunk === null) { + state.reading = false; + onEofChunk(stream, state); + } else { + var er; + if (!skipChunkCheck) er = chunkInvalid(state, chunk); + if (er) { + stream.emit('error', er); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (addToFront) { + if (state.endEmitted) stream.emit('error', new Error('stream.unshift() after end event'));else addChunk(stream, state, chunk, true); + } else if (state.ended) { + stream.emit('error', new Error('stream.push() after EOF')); + } else { + state.reading = false; + if (state.decoder && !encoding) { + chunk = state.decoder.write(chunk); + if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); + } else { + addChunk(stream, state, chunk, false); + } + } + } else if (!addToFront) { + state.reading = false; + } + } + + return needMoreData(state); +} + +function addChunk(stream, state, chunk, addToFront) { + if (state.flowing && state.length === 0 && !state.sync) { + stream.emit('data', chunk); + stream.read(0); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + + if (state.needReadable) emitReadable(stream); + } + maybeReadMore(stream, state); +} + +function chunkInvalid(state, chunk) { + var er; + if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + return er; +} + +// if it's past the high water mark, we can push in some more. +// Also, if we have no data yet, we can stand some +// more bytes. This is to work around cases where hwm=0, +// such as the repl. Also, if the push() triggered a +// readable event, and the user called read(largeNumber) such that +// needReadable was set, then we ought to push more, so that another +// 'readable' event will be triggered. +function needMoreData(state) { + return !state.ended && (state.needReadable || state.length < state.highWaterMark || state.length === 0); +} + +Readable.prototype.isPaused = function () { + return this._readableState.flowing === false; +}; + +// backwards compatibility. +Readable.prototype.setEncoding = function (enc) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this._readableState.decoder = new StringDecoder(enc); + this._readableState.encoding = enc; + return this; +}; + +// Don't raise the hwm > 8MB +var MAX_HWM = 0x800000; +function computeNewHighWaterMark(n) { + if (n >= MAX_HWM) { + n = MAX_HWM; + } else { + // Get the next highest power of 2 to prevent increasing hwm excessively in + // tiny amounts + n--; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n++; + } + return n; +} + +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function howMuchToRead(n, state) { + if (n <= 0 || state.length === 0 && state.ended) return 0; + if (state.objectMode) return 1; + if (n !== n) { + // Only flow one buffer at a time + if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; + } + // If we're asking for more than the current hwm, then raise the hwm. + if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n <= state.length) return n; + // Don't have enough + if (!state.ended) { + state.needReadable = true; + return 0; + } + return state.length; +} + +// you can override either this method, or the async _read(n) below. +Readable.prototype.read = function (n) { + debug('read', n); + n = parseInt(n, 10); + var state = this._readableState; + var nOrig = n; + + if (n !== 0) state.emittedReadable = false; + + // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + if (n === 0 && state.needReadable && (state.length >= state.highWaterMark || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + return null; + } + + n = howMuchToRead(n, state); + + // if we've ended, and we're now clear, then finish it up. + if (n === 0 && state.ended) { + if (state.length === 0) endReadable(this); + return null; + } + + // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + + // if we need a readable event, then we need to do some reading. + var doRead = state.needReadable; + debug('need readable', doRead); + + // if we currently have less than the highWaterMark, then also read some + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } + + // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } else if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; + // if the length is currently zero, then we *need* a readable event. + if (state.length === 0) state.needReadable = true; + // call internal read method + this._read(state.highWaterMark); + state.sync = false; + // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + if (!state.reading) n = howMuchToRead(nOrig, state); + } + + var ret; + if (n > 0) ret = fromList(n, state);else ret = null; + + if (ret === null) { + state.needReadable = true; + n = 0; + } else { + state.length -= n; + } + + if (state.length === 0) { + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (!state.ended) state.needReadable = true; + + // If we tried to read() past the EOF, then emit end on the next tick. + if (nOrig !== n && state.ended) endReadable(this); + } + + if (ret !== null) this.emit('data', ret); + + return ret; +}; + +function onEofChunk(stream, state) { + if (state.ended) return; + if (state.decoder) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + state.ended = true; + + // emit 'readable' now to make sure it gets picked up. + emitReadable(stream); +} + +// Don't emit readable right away in sync mode, because this can trigger +// another read() call => stack overflow. This way, it might trigger +// a nextTick recursion warning, but that's not so bad. +function emitReadable(stream) { + var state = stream._readableState; + state.needReadable = false; + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + if (state.sync) pna.nextTick(emitReadable_, stream);else emitReadable_(stream); + } +} + +function emitReadable_(stream) { + debug('emit readable'); + stream.emit('readable'); + flow(stream); +} + +// at this point, the user has presumably seen the 'readable' event, +// and called read() to consume some data. that may have triggered +// in turn another _read(n) call, in which case reading = true if +// it's in progress. +// However, if we're not ended, or reading, and the length < hwm, +// then go ahead and try to read some more preemptively. +function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + pna.nextTick(maybeReadMore_, stream, state); + } +} + +function maybeReadMore_(stream, state) { + var len = state.length; + while (!state.reading && !state.flowing && !state.ended && state.length < state.highWaterMark) { + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) + // didn't get any data, stop spinning. + break;else len = state.length; + } + state.readingMore = false; +} + +// abstract method. to be overridden in specific implementation classes. +// call cb(er, data) where data is <= n in length. +// for virtual (non-string, non-buffer) streams, "length" is somewhat +// arbitrary, and perhaps not very meaningful. +Readable.prototype._read = function (n) { + this.emit('error', new Error('_read() is not implemented')); +}; + +Readable.prototype.pipe = function (dest, pipeOpts) { + var src = this; + var state = this._readableState; + + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + case 1: + state.pipes = [state.pipes, dest]; + break; + default: + state.pipes.push(dest); + break; + } + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + + var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + + var endFn = doEnd ? onend : unpipe; + if (state.endEmitted) pna.nextTick(endFn);else src.once('end', endFn); + + dest.on('unpipe', onunpipe); + function onunpipe(readable, unpipeInfo) { + debug('onunpipe'); + if (readable === src) { + if (unpipeInfo && unpipeInfo.hasUnpiped === false) { + unpipeInfo.hasUnpiped = true; + cleanup(); + } + } + } + + function onend() { + debug('onend'); + dest.end(); + } + + // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + + var cleanedUp = false; + function cleanup() { + debug('cleanup'); + // cleanup event handlers once the pipe is broken + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', unpipe); + src.removeListener('data', ondata); + + cleanedUp = true; + + // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + } + + // If the user pushes more data while we're writing to dest then we'll end up + // in ondata again. However, we only want to increase awaitDrain once because + // dest will only emit one 'drain' event for the multiple writes. + // => Introduce a guard on increasing awaitDrain. + var increasedAwaitDrain = false; + src.on('data', ondata); + function ondata(chunk) { + debug('ondata'); + increasedAwaitDrain = false; + var ret = dest.write(chunk); + if (false === ret && !increasedAwaitDrain) { + // If the user unpiped during `dest.write()`, it is possible + // to get stuck in a permanently paused state if that write + // also returned false. + // => Check whether `dest` is still a piping destination. + if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { + debug('false write response, pause', src._readableState.awaitDrain); + src._readableState.awaitDrain++; + increasedAwaitDrain = true; + } + src.pause(); + } + } + + // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EElistenerCount(dest, 'error') === 0) dest.emit('error', er); + } + + // Make sure our error handler is attached before userland ones. + prependListener(dest, 'error', onerror); + + // Both close and finish should trigger unpipe, but only once. + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + dest.once('close', onclose); + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + dest.once('finish', onfinish); + + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } + + // tell the dest that it's being piped to + dest.emit('pipe', src); + + // start the flow if it hasn't been started already. + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + + return dest; +}; + +function pipeOnDrain(src) { + return function () { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) state.awaitDrain--; + if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; +} + +Readable.prototype.unpipe = function (dest) { + var state = this._readableState; + var unpipeInfo = { hasUnpiped: false }; + + // if we're not piping anywhere, then do nothing. + if (state.pipesCount === 0) return this; + + // just one destination. most common case. + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) return this; + + if (!dest) dest = state.pipes; + + // got a match. + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) dest.emit('unpipe', this, unpipeInfo); + return this; + } + + // slow case. multiple pipe destinations. + + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + + for (var i = 0; i < len; i++) { + dests[i].emit('unpipe', this, unpipeInfo); + }return this; + } + + // try to find the right one. + var index = indexOf(state.pipes, dest); + if (index === -1) return this; + + state.pipes.splice(index, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) state.pipes = state.pipes[0]; + + dest.emit('unpipe', this, unpipeInfo); + + return this; +}; + +// set up data events if they are asked for +// Ensure readable listeners eventually get something +Readable.prototype.on = function (ev, fn) { + var res = Stream.prototype.on.call(this, ev, fn); + + if (ev === 'data') { + // Start flowing on next tick if stream isn't explicitly paused + if (this._readableState.flowing !== false) this.resume(); + } else if (ev === 'readable') { + var state = this._readableState; + if (!state.endEmitted && !state.readableListening) { + state.readableListening = state.needReadable = true; + state.emittedReadable = false; + if (!state.reading) { + pna.nextTick(nReadingNextTick, this); + } else if (state.length) { + emitReadable(this); + } + } + } + + return res; +}; +Readable.prototype.addListener = Readable.prototype.on; + +function nReadingNextTick(self) { + debug('readable nexttick read 0'); + self.read(0); +} + +// pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. +Readable.prototype.resume = function () { + var state = this._readableState; + if (!state.flowing) { + debug('resume'); + state.flowing = true; + resume(this, state); + } + return this; +}; + +function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + pna.nextTick(resume_, stream, state); + } +} + +function resume_(stream, state) { + if (!state.reading) { + debug('resume read 0'); + stream.read(0); + } + + state.resumeScheduled = false; + state.awaitDrain = 0; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) stream.read(0); +} + +Readable.prototype.pause = function () { + debug('call pause flowing=%j', this._readableState.flowing); + if (false !== this._readableState.flowing) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + return this; +}; + +function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + while (state.flowing && stream.read() !== null) {} +} + +// wrap an old-style stream as the async data source. +// This is *not* part of the readable stream interface. +// It is an ugly unfortunate mess of history. +Readable.prototype.wrap = function (stream) { + var _this = this; + + var state = this._readableState; + var paused = false; + + stream.on('end', function () { + debug('wrapped end'); + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) _this.push(chunk); + } + + _this.push(null); + }); + + stream.on('data', function (chunk) { + debug('wrapped data'); + if (state.decoder) chunk = state.decoder.write(chunk); + + // don't skip over falsy values in objectMode + if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + + var ret = _this.push(chunk); + if (!ret) { + paused = true; + stream.pause(); + } + }); + + // proxy all the other methods. + // important when wrapping filters and duplexes. + for (var i in stream) { + if (this[i] === undefined && typeof stream[i] === 'function') { + this[i] = function (method) { + return function () { + return stream[method].apply(stream, arguments); + }; + }(i); + } + } + + // proxy certain important events. + for (var n = 0; n < kProxyEvents.length; n++) { + stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); + } + + // when we try to consume some more bytes, simply unpause the + // underlying stream. + this._read = function (n) { + debug('wrapped _read', n); + if (paused) { + paused = false; + stream.resume(); + } + }; + + return this; +}; + +Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._readableState.highWaterMark; + } +}); + +// exposed for testing purposes only. +Readable._fromList = fromList; + +// Pluck off n bytes from an array of buffers. +// Length is the combined lengths of all the buffers in the list. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromList(n, state) { + // nothing buffered + if (state.length === 0) return null; + + var ret; + if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { + // read it all, truncate the list + if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.head.data;else ret = state.buffer.concat(state.length); + state.buffer.clear(); + } else { + // read part of list + ret = fromListPartial(n, state.buffer, state.decoder); + } + + return ret; +} + +// Extracts only enough buffered data to satisfy the amount requested. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function fromListPartial(n, list, hasStrings) { + var ret; + if (n < list.head.data.length) { + // slice is the same for buffers and strings + ret = list.head.data.slice(0, n); + list.head.data = list.head.data.slice(n); + } else if (n === list.head.data.length) { + // first chunk is a perfect match + ret = list.shift(); + } else { + // result spans more than one buffer + ret = hasStrings ? copyFromBufferString(n, list) : copyFromBuffer(n, list); + } + return ret; +} + +// Copies a specified amount of characters from the list of buffered data +// chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBufferString(n, list) { + var p = list.head; + var c = 1; + var ret = p.data; + n -= ret.length; + while (p = p.next) { + var str = p.data; + var nb = n > str.length ? str.length : n; + if (nb === str.length) ret += str;else ret += str.slice(0, n); + n -= nb; + if (n === 0) { + if (nb === str.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = str.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +// Copies a specified amount of bytes from the list of buffered data chunks. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. +function copyFromBuffer(n, list) { + var ret = Buffer.allocUnsafe(n); + var p = list.head; + var c = 1; + p.data.copy(ret); + n -= p.data.length; + while (p = p.next) { + var buf = p.data; + var nb = n > buf.length ? buf.length : n; + buf.copy(ret, ret.length - n, 0, nb); + n -= nb; + if (n === 0) { + if (nb === buf.length) { + ++c; + if (p.next) list.head = p.next;else list.head = list.tail = null; + } else { + list.head = p; + p.data = buf.slice(nb); + } + break; + } + ++c; + } + list.length -= c; + return ret; +} + +function endReadable(stream) { + var state = stream._readableState; + + // If we get here before consuming all the bytes, then that is a + // bug in node. Should never happen. + if (state.length > 0) throw new Error('"endReadable()" called on non-empty stream'); + + if (!state.endEmitted) { + state.ended = true; + pna.nextTick(endReadableNT, state, stream); + } +} + +function endReadableNT(state, stream) { + // Check that we didn't get one last unshift. + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + } +} + +function indexOf(xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) return i; + } + return -1; +} + +/***/ }), + +/***/ 12189: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// a transform stream is a readable/writable stream where you do +// something with the data. Sometimes it's called a "filter", +// but that's not a great name for it, since that implies a thing where +// some bits pass through, and others are simply ignored. (That would +// be a valid example of a transform, of course.) +// +// While the output is causally related to the input, it's not a +// necessarily symmetric or synchronous transformation. For example, +// a zlib stream might take multiple plain-text writes(), and then +// emit a single compressed chunk some time in the future. +// +// Here's how this works: +// +// The Transform stream has all the aspects of the readable and writable +// stream classes. When you write(chunk), that calls _write(chunk,cb) +// internally, and returns false if there's a lot of pending writes +// buffered up. When you call read(), that calls _read(n) until +// there's enough pending readable data buffered up. +// +// In a transform stream, the written data is placed in a buffer. When +// _read(n) is called, it transforms the queued up data, calling the +// buffered _write cb's as it consumes chunks. If consuming a single +// written chunk would result in multiple output chunks, then the first +// outputted bit calls the readcb, and subsequent chunks just go into +// the read buffer, and will cause it to emit 'readable' if necessary. +// +// This way, back-pressure is actually determined by the reading side, +// since _read has to be called to start processing a new chunk. However, +// a pathological inflate type of transform can cause excessive buffering +// here. For example, imagine a stream where every byte of input is +// interpreted as an integer from 0-255, and then results in that many +// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in +// 1kb of data being output. In this case, you could write a very small +// amount of input, and end up with a very large amount of output. In +// such a pathological inflating mechanism, there'd be no way to tell +// the system to stop doing the transform. A single 4MB write could +// cause the system to run out of memory. +// +// However, even in such a pathological case, only a single written chunk +// would be consumed, and then the rest would wait (un-transformed) until +// the results of the previous transformed chunk were consumed. + + + +module.exports = Transform; + +var Duplex = __nccwpck_require__(53918); + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +util.inherits(Transform, Duplex); + +function afterTransform(er, data) { + var ts = this._transformState; + ts.transforming = false; + + var cb = ts.writecb; + + if (!cb) { + return this.emit('error', new Error('write callback called multiple times')); + } + + ts.writechunk = null; + ts.writecb = null; + + if (data != null) // single equals check for both `null` and `undefined` + this.push(data); + + cb(er); + + var rs = this._readableState; + rs.reading = false; + if (rs.needReadable || rs.length < rs.highWaterMark) { + this._read(rs.highWaterMark); + } +} + +function Transform(options) { + if (!(this instanceof Transform)) return new Transform(options); + + Duplex.call(this, options); + + this._transformState = { + afterTransform: afterTransform.bind(this), + needTransform: false, + transforming: false, + writecb: null, + writechunk: null, + writeencoding: null + }; + + // start out asking for a readable event once data is transformed. + this._readableState.needReadable = true; + + // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + this._readableState.sync = false; + + if (options) { + if (typeof options.transform === 'function') this._transform = options.transform; + + if (typeof options.flush === 'function') this._flush = options.flush; + } + + // When the writable side finishes, then flush out anything remaining. + this.on('prefinish', prefinish); +} + +function prefinish() { + var _this = this; + + if (typeof this._flush === 'function') { + this._flush(function (er, data) { + done(_this, er, data); + }); + } else { + done(this, null, null); + } +} + +Transform.prototype.push = function (chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); +}; + +// This is the part where you do stuff! +// override this function in implementation classes. +// 'chunk' is an input chunk. +// +// Call `push(newChunk)` to pass along transformed output +// to the readable side. You may call 'push' zero or more times. +// +// Call `cb(err)` when you are done with this chunk. If you pass +// an error, then that'll put the hurt on the whole operation. If you +// never call cb(), then you'll never get another chunk. +Transform.prototype._transform = function (chunk, encoding, cb) { + throw new Error('_transform() is not implemented'); +}; + +Transform.prototype._write = function (chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + } +}; + +// Doesn't matter what the args are here. +// _transform does all the work. +// That we got here means that the readable side wants more data. +Transform.prototype._read = function (n) { + var ts = this._transformState; + + if (ts.writechunk !== null && ts.writecb && !ts.transforming) { + ts.transforming = true; + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } +}; + +Transform.prototype._destroy = function (err, cb) { + var _this2 = this; + + Duplex.prototype._destroy.call(this, err, function (err2) { + cb(err2); + _this2.emit('close'); + }); +}; + +function done(stream, er, data) { + if (er) return stream.emit('error', er); + + if (data != null) // single equals check for both `null` and `undefined` + stream.push(data); + + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + if (stream._writableState.length) throw new Error('Calling transform done when ws.length != 0'); + + if (stream._transformState.transforming) throw new Error('Calling transform done when still transforming'); + + return stream.push(null); +} + +/***/ }), + +/***/ 72458: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + +// A bit simpler than readable streams. +// Implement an async ._write(chunk, encoding, cb), and it'll handle all +// the drain event emission and buffering. + + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +module.exports = Writable; + +/* */ +function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + this.next = null; +} + +// It seems a linked list but it is not +// there will be only 2 of these for each stream +function CorkedRequest(state) { + var _this = this; + + this.next = null; + this.entry = null; + this.finish = function () { + onCorkedFinish(_this, state); + }; +} +/* */ + +/**/ +var asyncWrite = !process.browser && ['v0.10', 'v0.9.'].indexOf(process.version.slice(0, 5)) > -1 ? setImmediate : pna.nextTick; +/**/ + +/**/ +var Duplex; +/**/ + +Writable.WritableState = WritableState; + +/**/ +var util = Object.create(__nccwpck_require__(44578)); +util.inherits = __nccwpck_require__(25333); +/**/ + +/**/ +var internalUtil = { + deprecate: __nccwpck_require__(31674) +}; +/**/ + +/**/ +var Stream = __nccwpck_require__(4860); +/**/ + +/**/ + +var Buffer = (__nccwpck_require__(92653).Buffer); +var OurUint8Array = global.Uint8Array || function () {}; +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +/**/ + +var destroyImpl = __nccwpck_require__(53021); + +util.inherits(Writable, Stream); + +function nop() {} + +function WritableState(options, stream) { + Duplex = Duplex || __nccwpck_require__(53918); + + options = options || {}; + + // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + var isDuplex = stream instanceof Duplex; + + // object stream flag to indicate whether or not this stream + // contains buffers or objects. + this.objectMode = !!options.objectMode; + + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; + + // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + var hwm = options.highWaterMark; + var writableHwm = options.writableHighWaterMark; + var defaultHwm = this.objectMode ? 16 : 16 * 1024; + + if (hwm || hwm === 0) this.highWaterMark = hwm;else if (isDuplex && (writableHwm || writableHwm === 0)) this.highWaterMark = writableHwm;else this.highWaterMark = defaultHwm; + + // cast to ints. + this.highWaterMark = Math.floor(this.highWaterMark); + + // if _final has been called + this.finalCalled = false; + + // drain event flag. + this.needDrain = false; + // at the start of calling end() + this.ending = false; + // when end() has been called, and returned + this.ended = false; + // when 'finish' is emitted + this.finished = false; + + // has it been destroyed + this.destroyed = false; + + // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; + + // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + this.defaultEncoding = options.defaultEncoding || 'utf8'; + + // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + this.length = 0; + + // a flag to see when we're in the middle of a write. + this.writing = false; + + // when true all writes will be buffered until .uncork() call + this.corked = 0; + + // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + this.sync = true; + + // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + this.bufferProcessing = false; + + // the callback that's passed to _write(chunk,cb) + this.onwrite = function (er) { + onwrite(stream, er); + }; + + // the callback that the user supplies to write(chunk,encoding,cb) + this.writecb = null; + + // the amount that is being written when _write is called. + this.writelen = 0; + + this.bufferedRequest = null; + this.lastBufferedRequest = null; + + // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + this.pendingcb = 0; + + // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + this.prefinished = false; + + // True if the error was already emitted and should not be thrown again + this.errorEmitted = false; + + // count buffered requests + this.bufferedRequestCount = 0; + + // allocate the first CorkedRequest, there is always + // one allocated and free to use, and we maintain at most two + this.corkedRequestsFree = new CorkedRequest(this); +} + +WritableState.prototype.getBuffer = function getBuffer() { + var current = this.bufferedRequest; + var out = []; + while (current) { + out.push(current); + current = current.next; + } + return out; +}; + +(function () { + try { + Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function () { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') + }); + } catch (_) {} +})(); + +// Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. +var realHasInstance; +if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { + realHasInstance = Function.prototype[Symbol.hasInstance]; + Object.defineProperty(Writable, Symbol.hasInstance, { + value: function (object) { + if (realHasInstance.call(this, object)) return true; + if (this !== Writable) return false; + + return object && object._writableState instanceof WritableState; + } + }); +} else { + realHasInstance = function (object) { + return object instanceof this; + }; +} + +function Writable(options) { + Duplex = Duplex || __nccwpck_require__(53918); + + // Writable ctor is applied to Duplexes, too. + // `realHasInstance` is necessary because using plain `instanceof` + // would return false, as no `_writableState` property is attached. + + // Trying to use the custom `instanceof` for Writable here will also break the + // Node.js LazyTransform implementation, which has a non-trivial getter for + // `_writableState` that would lead to infinite recursion. + if (!realHasInstance.call(Writable, this) && !(this instanceof Duplex)) { + return new Writable(options); + } + + this._writableState = new WritableState(options, this); + + // legacy. + this.writable = true; + + if (options) { + if (typeof options.write === 'function') this._write = options.write; + + if (typeof options.writev === 'function') this._writev = options.writev; + + if (typeof options.destroy === 'function') this._destroy = options.destroy; + + if (typeof options.final === 'function') this._final = options.final; + } + + Stream.call(this); +} + +// Otherwise people can pipe Writable streams, which is just wrong. +Writable.prototype.pipe = function () { + this.emit('error', new Error('Cannot pipe, not readable')); +}; + +function writeAfterEnd(stream, cb) { + var er = new Error('write after end'); + // TODO: defer error events consistently everywhere, not just the cb + stream.emit('error', er); + pna.nextTick(cb, er); +} + +// Checks that a user-supplied chunk is valid, especially for the particular +// mode the stream is in. Currently this means that `null` is never accepted +// and undefined/non-string values are only allowed in object mode. +function validChunk(stream, state, chunk, cb) { + var valid = true; + var er = false; + + if (chunk === null) { + er = new TypeError('May not write null values to stream'); + } else if (typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new TypeError('Invalid non-string/buffer chunk'); + } + if (er) { + stream.emit('error', er); + pna.nextTick(cb, er); + valid = false; + } + return valid; +} + +Writable.prototype.write = function (chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + var isBuf = !state.objectMode && _isUint8Array(chunk); + + if (isBuf && !Buffer.isBuffer(chunk)) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + + if (typeof cb !== 'function') cb = nop; + + if (state.ended) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); + } + + return ret; +}; + +Writable.prototype.cork = function () { + var state = this._writableState; + + state.corked++; +}; + +Writable.prototype.uncork = function () { + var state = this._writableState; + + if (state.corked) { + state.corked--; + + if (!state.writing && !state.corked && !state.finished && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + } +}; + +Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { + // node::ParseEncoding() requires lower case. + if (typeof encoding === 'string') encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new TypeError('Unknown encoding: ' + encoding); + this._writableState.defaultEncoding = encoding; + return this; +}; + +function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + chunk = Buffer.from(chunk, encoding); + } + return chunk; +} + +Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function () { + return this._writableState.highWaterMark; + } +}); + +// if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. +function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { + if (!isBuf) { + var newChunk = decodeChunk(state, chunk, encoding); + if (chunk !== newChunk) { + isBuf = true; + encoding = 'buffer'; + chunk = newChunk; + } + } + var len = state.objectMode ? 1 : chunk.length; + + state.length += len; + + var ret = state.length < state.highWaterMark; + // we must ensure that previous needDrain will not be reset to false. + if (!ret) state.needDrain = true; + + if (state.writing || state.corked) { + var last = state.lastBufferedRequest; + state.lastBufferedRequest = { + chunk: chunk, + encoding: encoding, + isBuf: isBuf, + callback: cb, + next: null + }; + if (last) { + last.next = state.lastBufferedRequest; + } else { + state.bufferedRequest = state.lastBufferedRequest; + } + state.bufferedRequestCount += 1; + } else { + doWrite(stream, state, false, len, chunk, encoding, cb); + } + + return ret; +} + +function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + state.sync = false; +} + +function onwriteError(stream, state, sync, er, cb) { + --state.pendingcb; + + if (sync) { + // defer the callback if we are being called synchronously + // to avoid piling up things on the stack + pna.nextTick(cb, er); + // this can emit finish, and it will always happen + // after error + pna.nextTick(finishMaybe, stream, state); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + } else { + // the caller expect this to happen before if + // it is async + cb(er); + stream._writableState.errorEmitted = true; + stream.emit('error', er); + // this can emit finish, but finish must + // always follow error + finishMaybe(stream, state); + } +} + +function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; +} + +function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + + onwriteStateUpdate(state); + + if (er) onwriteError(stream, state, sync, er, cb);else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(state); + + if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + clearBuffer(stream, state); + } + + if (sync) { + /**/ + asyncWrite(afterWrite, stream, state, finished, cb); + /**/ + } else { + afterWrite(stream, state, finished, cb); + } + } +} + +function afterWrite(stream, state, finished, cb) { + if (!finished) onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); +} + +// Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. +function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } +} + +// if there's something in the buffer waiting, then process it +function clearBuffer(stream, state) { + state.bufferProcessing = true; + var entry = state.bufferedRequest; + + if (stream._writev && entry && entry.next) { + // Fast case, write everything using _writev() + var l = state.bufferedRequestCount; + var buffer = new Array(l); + var holder = state.corkedRequestsFree; + holder.entry = entry; + + var count = 0; + var allBuffers = true; + while (entry) { + buffer[count] = entry; + if (!entry.isBuf) allBuffers = false; + entry = entry.next; + count += 1; + } + buffer.allBuffers = allBuffers; + + doWrite(stream, state, true, state.length, buffer, '', holder.finish); + + // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite + state.pendingcb++; + state.lastBufferedRequest = null; + if (holder.next) { + state.corkedRequestsFree = holder.next; + holder.next = null; + } else { + state.corkedRequestsFree = new CorkedRequest(state); + } + state.bufferedRequestCount = 0; + } else { + // Slow case, write chunks one-by-one + while (entry) { + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + + doWrite(stream, state, false, len, chunk, encoding, cb); + entry = entry.next; + state.bufferedRequestCount--; + // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + if (state.writing) { + break; + } + } + + if (entry === null) state.lastBufferedRequest = null; + } + + state.bufferedRequest = entry; + state.bufferProcessing = false; +} + +Writable.prototype._write = function (chunk, encoding, cb) { + cb(new Error('_write() is not implemented')); +}; + +Writable.prototype._writev = null; + +Writable.prototype.end = function (chunk, encoding, cb) { + var state = this._writableState; + + if (typeof chunk === 'function') { + cb = chunk; + chunk = null; + encoding = null; + } else if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); + + // .end() fully uncorks + if (state.corked) { + state.corked = 1; + this.uncork(); + } + + // ignore unnecessary end() calls. + if (!state.ending && !state.finished) endWritable(this, state, cb); +}; + +function needFinish(state) { + return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; +} +function callFinal(stream, state) { + stream._final(function (err) { + state.pendingcb--; + if (err) { + stream.emit('error', err); + } + state.prefinished = true; + stream.emit('prefinish'); + finishMaybe(stream, state); + }); +} +function prefinish(stream, state) { + if (!state.prefinished && !state.finalCalled) { + if (typeof stream._final === 'function') { + state.pendingcb++; + state.finalCalled = true; + pna.nextTick(callFinal, stream, state); + } else { + state.prefinished = true; + stream.emit('prefinish'); + } + } +} + +function finishMaybe(stream, state) { + var need = needFinish(state); + if (need) { + prefinish(stream, state); + if (state.pendingcb === 0) { + state.finished = true; + stream.emit('finish'); + } + } + return need; +} + +function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + if (cb) { + if (state.finished) pna.nextTick(cb);else stream.once('finish', cb); + } + state.ended = true; + stream.writable = false; +} + +function onCorkedFinish(corkReq, state, err) { + var entry = corkReq.entry; + corkReq.entry = null; + while (entry) { + var cb = entry.callback; + state.pendingcb--; + cb(err); + entry = entry.next; + } + if (state.corkedRequestsFree) { + state.corkedRequestsFree.next = corkReq; + } else { + state.corkedRequestsFree = corkReq; + } +} + +Object.defineProperty(Writable.prototype, 'destroyed', { + get: function () { + if (this._writableState === undefined) { + return false; + } + return this._writableState.destroyed; + }, + set: function (value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._writableState) { + return; + } + + // backward compatibility, the user is explicitly + // managing destroyed + this._writableState.destroyed = value; + } +}); + +Writable.prototype.destroy = destroyImpl.destroy; +Writable.prototype._undestroy = destroyImpl.undestroy; +Writable.prototype._destroy = function (err, cb) { + this.end(); + cb(err); +}; + +/***/ }), + +/***/ 50354: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +var Buffer = (__nccwpck_require__(92653).Buffer); +var util = __nccwpck_require__(73837); + +function copyBuffer(src, target, offset) { + src.copy(target, offset); +} + +module.exports = function () { + function BufferList() { + _classCallCheck(this, BufferList); + + this.head = null; + this.tail = null; + this.length = 0; + } + + BufferList.prototype.push = function push(v) { + var entry = { data: v, next: null }; + if (this.length > 0) this.tail.next = entry;else this.head = entry; + this.tail = entry; + ++this.length; + }; + + BufferList.prototype.unshift = function unshift(v) { + var entry = { data: v, next: this.head }; + if (this.length === 0) this.tail = entry; + this.head = entry; + ++this.length; + }; + + BufferList.prototype.shift = function shift() { + if (this.length === 0) return; + var ret = this.head.data; + if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; + --this.length; + return ret; + }; + + BufferList.prototype.clear = function clear() { + this.head = this.tail = null; + this.length = 0; + }; + + BufferList.prototype.join = function join(s) { + if (this.length === 0) return ''; + var p = this.head; + var ret = '' + p.data; + while (p = p.next) { + ret += s + p.data; + }return ret; + }; + + BufferList.prototype.concat = function concat(n) { + if (this.length === 0) return Buffer.alloc(0); + if (this.length === 1) return this.head.data; + var ret = Buffer.allocUnsafe(n >>> 0); + var p = this.head; + var i = 0; + while (p) { + copyBuffer(p.data, ret, i); + i += p.data.length; + p = p.next; + } + return ret; + }; + + return BufferList; +}(); + +if (util && util.inspect && util.inspect.custom) { + module.exports.prototype[util.inspect.custom] = function () { + var obj = util.inspect({ length: this.length }); + return this.constructor.name + ' ' + obj; + }; +} + +/***/ }), + +/***/ 53021: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +/**/ + +var pna = __nccwpck_require__(43533); +/**/ + +// undocumented cb() API, needed for core, not for public API +function destroy(err, cb) { + var _this = this; + + var readableDestroyed = this._readableState && this._readableState.destroyed; + var writableDestroyed = this._writableState && this._writableState.destroyed; + + if (readableDestroyed || writableDestroyed) { + if (cb) { + cb(err); + } else if (err && (!this._writableState || !this._writableState.errorEmitted)) { + pna.nextTick(emitErrorNT, this, err); + } + return this; + } + + // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks + + if (this._readableState) { + this._readableState.destroyed = true; + } + + // if this is a duplex stream mark the writable part as destroyed as well + if (this._writableState) { + this._writableState.destroyed = true; + } + + this._destroy(err || null, function (err) { + if (!cb && err) { + pna.nextTick(emitErrorNT, _this, err); + if (_this._writableState) { + _this._writableState.errorEmitted = true; + } + } else if (cb) { + cb(err); + } + }); + + return this; +} + +function undestroy() { + if (this._readableState) { + this._readableState.destroyed = false; + this._readableState.reading = false; + this._readableState.ended = false; + this._readableState.endEmitted = false; + } + + if (this._writableState) { + this._writableState.destroyed = false; + this._writableState.ended = false; + this._writableState.ending = false; + this._writableState.finished = false; + this._writableState.errorEmitted = false; + } +} + +function emitErrorNT(self, err) { + self.emit('error', err); +} + +module.exports = { + destroy: destroy, + undestroy: undestroy +}; + +/***/ }), + +/***/ 4860: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(12781); + + +/***/ }), + +/***/ 84279: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(16676).PassThrough + + +/***/ }), + +/***/ 16676: +/***/ ((module, exports, __nccwpck_require__) => { + +var Stream = __nccwpck_require__(12781); +if (process.env.READABLE_STREAM === 'disable' && Stream) { + module.exports = Stream; + exports = module.exports = Stream.Readable; + exports.Readable = Stream.Readable; + exports.Writable = Stream.Writable; + exports.Duplex = Stream.Duplex; + exports.Transform = Stream.Transform; + exports.PassThrough = Stream.PassThrough; + exports.Stream = Stream; +} else { + exports = module.exports = __nccwpck_require__(74221); + exports.Stream = Stream || exports; + exports.Readable = exports; + exports.Writable = __nccwpck_require__(72458); + exports.Duplex = __nccwpck_require__(53918); + exports.Transform = __nccwpck_require__(12189); + exports.PassThrough = __nccwpck_require__(72908); +} + + +/***/ }), + +/***/ 92653: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 97006: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; + +/** Used to detect unsigned integer values. */ +var reIsUint = /^(?:0|[1-9]\d*)$/; + +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +/** + * The base implementation of `_.times` without support for iteratee shorthands + * or max array length checks. + * + * @private + * @param {number} n The number of times to invoke `iteratee`. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the array of results. + */ +function baseTimes(n, iteratee) { + var index = -1, + result = Array(n); + + while (++index < n) { + result[index] = iteratee(index); + } + return result; +} + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var propertyIsEnumerable = objectProto.propertyIsEnumerable; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/** + * Creates an array of the enumerable property names of the array-like `value`. + * + * @private + * @param {*} value The value to query. + * @param {boolean} inherited Specify returning inherited property names. + * @returns {Array} Returns the array of property names. + */ +function arrayLikeKeys(value, inherited) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + // Safari 9 makes `arguments.length` enumerable in strict mode. + var result = (isArray(value) || isArguments(value)) + ? baseTimes(value.length, String) + : []; + + var length = result.length, + skipIndexes = !!length; + + for (var key in value) { + if ((inherited || hasOwnProperty.call(value, key)) && + !(skipIndexes && (key == 'length' || isIndex(key, length)))) { + result.push(key); + } + } + return result; +} + +/** + * Used by `_.defaults` to customize its `_.assignIn` use. + * + * @private + * @param {*} objValue The destination value. + * @param {*} srcValue The source value. + * @param {string} key The key of the property to assign. + * @param {Object} object The parent object of `objValue`. + * @returns {*} Returns the value to assign. + */ +function assignInDefaults(objValue, srcValue, key, object) { + if (objValue === undefined || + (eq(objValue, objectProto[key]) && !hasOwnProperty.call(object, key))) { + return srcValue; + } + return objValue; +} + +/** + * Assigns `value` to `key` of `object` if the existing value is not equivalent + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @private + * @param {Object} object The object to modify. + * @param {string} key The key of the property to assign. + * @param {*} value The value to assign. + */ +function assignValue(object, key, value) { + var objValue = object[key]; + if (!(hasOwnProperty.call(object, key) && eq(objValue, value)) || + (value === undefined && !(key in object))) { + object[key] = value; + } +} + +/** + * The base implementation of `_.keysIn` which doesn't treat sparse arrays as dense. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function baseKeysIn(object) { + if (!isObject(object)) { + return nativeKeysIn(object); + } + var isProto = isPrototype(object), + result = []; + + for (var key in object) { + if (!(key == 'constructor' && (isProto || !hasOwnProperty.call(object, key)))) { + result.push(key); + } + } + return result; +} + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = array; + return apply(func, this, otherArgs); + }; +} + +/** + * Copies properties of `source` to `object`. + * + * @private + * @param {Object} source The object to copy properties from. + * @param {Array} props The property identifiers to copy. + * @param {Object} [object={}] The object to copy properties to. + * @param {Function} [customizer] The function to customize copied values. + * @returns {Object} Returns `object`. + */ +function copyObject(source, props, object, customizer) { + object || (object = {}); + + var index = -1, + length = props.length; + + while (++index < length) { + var key = props[index]; + + var newValue = customizer + ? customizer(object[key], source[key], key, object, source) + : undefined; + + assignValue(object, key, newValue === undefined ? source[key] : newValue); + } + return object; +} + +/** + * Creates a function like `_.assign`. + * + * @private + * @param {Function} assigner The function to assign values. + * @returns {Function} Returns the new assigner function. + */ +function createAssigner(assigner) { + return baseRest(function(object, sources) { + var index = -1, + length = sources.length, + customizer = length > 1 ? sources[length - 1] : undefined, + guard = length > 2 ? sources[2] : undefined; + + customizer = (assigner.length > 3 && typeof customizer == 'function') + ? (length--, customizer) + : undefined; + + if (guard && isIterateeCall(sources[0], sources[1], guard)) { + customizer = length < 3 ? undefined : customizer; + length = 1; + } + object = Object(object); + while (++index < length) { + var source = sources[index]; + if (source) { + assigner(object, source, index, customizer); + } + } + return object; + }); +} + +/** + * Checks if `value` is a valid array-like index. + * + * @private + * @param {*} value The value to check. + * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index. + * @returns {boolean} Returns `true` if `value` is a valid index, else `false`. + */ +function isIndex(value, length) { + length = length == null ? MAX_SAFE_INTEGER : length; + return !!length && + (typeof value == 'number' || reIsUint.test(value)) && + (value > -1 && value % 1 == 0 && value < length); +} + +/** + * Checks if the given arguments are from an iteratee call. + * + * @private + * @param {*} value The potential iteratee value argument. + * @param {*} index The potential iteratee index or key argument. + * @param {*} object The potential iteratee object argument. + * @returns {boolean} Returns `true` if the arguments are from an iteratee call, + * else `false`. + */ +function isIterateeCall(value, index, object) { + if (!isObject(object)) { + return false; + } + var type = typeof index; + if (type == 'number' + ? (isArrayLike(object) && isIndex(index, object.length)) + : (type == 'string' && index in object) + ) { + return eq(object[index], value); + } + return false; +} + +/** + * Checks if `value` is likely a prototype object. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a prototype, else `false`. + */ +function isPrototype(value) { + var Ctor = value && value.constructor, + proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto; + + return value === proto; +} + +/** + * This function is like + * [`Object.keys`](http://ecma-international.org/ecma-262/7.0/#sec-object.keys) + * except that it includes inherited enumerable properties. + * + * @private + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + */ +function nativeKeysIn(object) { + var result = []; + if (object != null) { + for (var key in Object(object)) { + result.push(key); + } + } + return result; +} + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +function isArguments(value) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * This method is like `_.assignIn` except that it accepts `customizer` + * which is invoked to produce the assigned values. If `customizer` returns + * `undefined`, assignment is handled by the method instead. The `customizer` + * is invoked with five arguments: (objValue, srcValue, key, object, source). + * + * **Note:** This method mutates `object`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @alias extendWith + * @category Object + * @param {Object} object The destination object. + * @param {...Object} sources The source objects. + * @param {Function} [customizer] The function to customize assigned values. + * @returns {Object} Returns `object`. + * @see _.assignWith + * @example + * + * function customizer(objValue, srcValue) { + * return _.isUndefined(objValue) ? srcValue : objValue; + * } + * + * var defaults = _.partialRight(_.assignInWith, customizer); + * + * defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var assignInWith = createAssigner(function(object, source, srcIndex, customizer) { + copyObject(source, keysIn(source), object, customizer); +}); + +/** + * Assigns own and inherited enumerable string keyed properties of source + * objects to the destination object for all destination properties that + * resolve to `undefined`. Source objects are applied from left to right. + * Once a property is set, additional values of the same property are ignored. + * + * **Note:** This method mutates `object`. + * + * @static + * @since 0.1.0 + * @memberOf _ + * @category Object + * @param {Object} object The destination object. + * @param {...Object} [sources] The source objects. + * @returns {Object} Returns `object`. + * @see _.defaultsDeep + * @example + * + * _.defaults({ 'a': 1 }, { 'b': 2 }, { 'a': 3 }); + * // => { 'a': 1, 'b': 2 } + */ +var defaults = baseRest(function(args) { + args.push(undefined, assignInDefaults); + return apply(assignInWith, undefined, args); +}); + +/** + * Creates an array of the own and inherited enumerable property names of `object`. + * + * **Note:** Non-object values are coerced to objects. + * + * @static + * @memberOf _ + * @since 3.0.0 + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the array of property names. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.keysIn(new Foo); + * // => ['a', 'b', 'c'] (iteration order is not guaranteed) + */ +function keysIn(object) { + return isArrayLike(object) ? arrayLikeKeys(object, true) : baseKeysIn(object); +} + +module.exports = defaults; + + +/***/ }), + +/***/ 18206: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array ? array.length : 0; + return !!length && baseIndexOf(array, value, 0) > -1; +} + +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array ? array.length : 0; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} + +/** + * A specialized version of `_.map` for arrays without support for iteratee + * shorthands. + * + * @private + * @param {Array} [array] The array to iterate over. + * @param {Function} iteratee The function invoked per iteration. + * @returns {Array} Returns the new mapped array. + */ +function arrayMap(array, iteratee) { + var index = -1, + length = array ? array.length : 0, + result = Array(length); + + while (++index < length) { + result[index] = iteratee(array[index], index, array); + } + return result; +} + +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return baseFindIndex(array, baseIsNaN, fromIndex); + } + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +/** + * The base implementation of `_.unary` without support for storing metadata. + * + * @private + * @param {Function} func The function to cap arguments for. + * @returns {Function} Returns the new capped function. + */ +function baseUnary(func) { + return function(value) { + return func(value); + }; +} + +/** + * Checks if a cache value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} + +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** Built-in value references. */ +var Symbol = root.Symbol, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + splice = arrayProto.splice, + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'), + nativeCreate = getNative(Object, 'create'); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; +} + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; +} + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; +} + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); +} + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; +} + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; +} + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); +} + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values ? values.length : 0; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +/** + * The base implementation of methods like `_.difference` without support + * for excluding multiple arrays or iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Array} values The values to exclude. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new array of filtered values. + */ +function baseDifference(array, values, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + isCommon = true, + length = array.length, + result = [], + valuesLength = values.length; + + if (!length) { + return result; + } + if (iteratee) { + values = arrayMap(values, baseUnary(iteratee)); + } + if (comparator) { + includes = arrayIncludesWith; + isCommon = false; + } + else if (values.length >= LARGE_ARRAY_SIZE) { + includes = cacheHas; + isCommon = false; + values = new SetCache(values); + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var valuesIndex = valuesLength; + while (valuesIndex--) { + if (values[valuesIndex] === computed) { + continue outer; + } + } + result.push(value); + } + else if (!includes(values, computed, comparator)) { + result.push(value); + } + } + return result; +} + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = array; + return apply(func, this, otherArgs); + }; +} + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +/** + * Creates an array of `array` values not included in the other given arrays + * using [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. The order of result values is determined by the + * order they occur in the first array. + * + * **Note:** Unlike `_.pullAll`, this method returns a new array. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to inspect. + * @param {...Array} [values] The values to exclude. + * @returns {Array} Returns the new array of filtered values. + * @see _.without, _.xor + * @example + * + * _.difference([2, 1], [2, 3]); + * // => [1] + */ +var difference = baseRest(function(array, values) { + return isArrayLikeObject(array) + ? baseDifference(array, baseFlatten(values, 1, isArrayLikeObject, true)) + : []; +}); + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +function isArguments(value) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +module.exports = difference; + + +/***/ }), + +/***/ 39063: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as references for various `Number` constants. */ +var MAX_SAFE_INTEGER = 9007199254740991; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +/** Used for built-in method references. */ +var objectProto = Object.prototype; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var Symbol = root.Symbol, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +/** + * Flattens `array` a single level deep. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {Array} array The array to flatten. + * @returns {Array} Returns the new flattened array. + * @example + * + * _.flatten([1, [2, [3, [4]], 5]]); + * // => [1, 2, [3, [4]], 5] + */ +function flatten(array) { + var length = array ? array.length : 0; + return length ? baseFlatten(array, 1) : []; +} + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +function isArguments(value) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +module.exports = flatten; + + +/***/ }), + +/***/ 7539: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** `Object#toString` result references. */ +var objectTag = '[object Object]'; + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} + +/** + * Creates a unary function that invokes `func` with its argument transformed. + * + * @private + * @param {Function} func The function to wrap. + * @param {Function} transform The argument transform. + * @returns {Function} Returns the new function. + */ +function overArg(func, transform) { + return function(arg) { + return func(transform(arg)); + }; +} + +/** Used for built-in method references. */ +var funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** Used to infer the `Object` constructor. */ +var objectCtorString = funcToString.call(Object); + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Built-in value references. */ +var getPrototype = overArg(Object.getPrototypeOf, Object); + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * Checks if `value` is a plain object, that is, an object created by the + * `Object` constructor or one with a `[[Prototype]]` of `null`. + * + * @static + * @memberOf _ + * @since 0.8.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a plain object, else `false`. + * @example + * + * function Foo() { + * this.a = 1; + * } + * + * _.isPlainObject(new Foo); + * // => false + * + * _.isPlainObject([1, 2, 3]); + * // => false + * + * _.isPlainObject({ 'x': 0, 'y': 0 }); + * // => true + * + * _.isPlainObject(Object.create(null)); + * // => true + */ +function isPlainObject(value) { + if (!isObjectLike(value) || + objectToString.call(value) != objectTag || isHostObject(value)) { + return false; + } + var proto = getPrototype(value); + if (proto === null) { + return true; + } + var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor; + return (typeof Ctor == 'function' && + Ctor instanceof Ctor && funcToString.call(Ctor) == objectCtorString); +} + +module.exports = isPlainObject; + + +/***/ }), + +/***/ 3807: +/***/ ((module) => { + +/** + * lodash (Custom Build) + * Build: `lodash modularize exports="npm" -o ./` + * Copyright jQuery Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */ + +/** Used as the size to enable large array optimizations. */ +var LARGE_ARRAY_SIZE = 200; + +/** Used to stand-in for `undefined` hash values. */ +var HASH_UNDEFINED = '__lodash_hash_undefined__'; + +/** Used as references for various `Number` constants. */ +var INFINITY = 1 / 0, + MAX_SAFE_INTEGER = 9007199254740991; + +/** `Object#toString` result references. */ +var argsTag = '[object Arguments]', + funcTag = '[object Function]', + genTag = '[object GeneratorFunction]'; + +/** + * Used to match `RegExp` + * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). + */ +var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; + +/** Used to detect host constructors (Safari). */ +var reIsHostCtor = /^\[object .+?Constructor\]$/; + +/** Detect free variable `global` from Node.js. */ +var freeGlobal = typeof global == 'object' && global && global.Object === Object && global; + +/** Detect free variable `self`. */ +var freeSelf = typeof self == 'object' && self && self.Object === Object && self; + +/** Used as a reference to the global object. */ +var root = freeGlobal || freeSelf || Function('return this')(); + +/** + * A faster alternative to `Function#apply`, this function invokes `func` + * with the `this` binding of `thisArg` and the arguments of `args`. + * + * @private + * @param {Function} func The function to invoke. + * @param {*} thisArg The `this` binding of `func`. + * @param {Array} args The arguments to invoke `func` with. + * @returns {*} Returns the result of `func`. + */ +function apply(func, thisArg, args) { + switch (args.length) { + case 0: return func.call(thisArg); + case 1: return func.call(thisArg, args[0]); + case 2: return func.call(thisArg, args[0], args[1]); + case 3: return func.call(thisArg, args[0], args[1], args[2]); + } + return func.apply(thisArg, args); +} + +/** + * A specialized version of `_.includes` for arrays without support for + * specifying an index to search from. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludes(array, value) { + var length = array ? array.length : 0; + return !!length && baseIndexOf(array, value, 0) > -1; +} + +/** + * This function is like `arrayIncludes` except that it accepts a comparator. + * + * @private + * @param {Array} [array] The array to inspect. + * @param {*} target The value to search for. + * @param {Function} comparator The comparator invoked per element. + * @returns {boolean} Returns `true` if `target` is found, else `false`. + */ +function arrayIncludesWith(array, value, comparator) { + var index = -1, + length = array ? array.length : 0; + + while (++index < length) { + if (comparator(value, array[index])) { + return true; + } + } + return false; +} + +/** + * Appends the elements of `values` to `array`. + * + * @private + * @param {Array} array The array to modify. + * @param {Array} values The values to append. + * @returns {Array} Returns `array`. + */ +function arrayPush(array, values) { + var index = -1, + length = values.length, + offset = array.length; + + while (++index < length) { + array[offset + index] = values[index]; + } + return array; +} + +/** + * The base implementation of `_.findIndex` and `_.findLastIndex` without + * support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} predicate The function invoked per iteration. + * @param {number} fromIndex The index to search from. + * @param {boolean} [fromRight] Specify iterating from right to left. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseFindIndex(array, predicate, fromIndex, fromRight) { + var length = array.length, + index = fromIndex + (fromRight ? 1 : -1); + + while ((fromRight ? index-- : ++index < length)) { + if (predicate(array[index], index, array)) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.indexOf` without `fromIndex` bounds checks. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} value The value to search for. + * @param {number} fromIndex The index to search from. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function baseIndexOf(array, value, fromIndex) { + if (value !== value) { + return baseFindIndex(array, baseIsNaN, fromIndex); + } + var index = fromIndex - 1, + length = array.length; + + while (++index < length) { + if (array[index] === value) { + return index; + } + } + return -1; +} + +/** + * The base implementation of `_.isNaN` without support for number objects. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`. + */ +function baseIsNaN(value) { + return value !== value; +} + +/** + * Checks if a cache value for `key` exists. + * + * @private + * @param {Object} cache The cache to query. + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function cacheHas(cache, key) { + return cache.has(key); +} + +/** + * Gets the value at `key` of `object`. + * + * @private + * @param {Object} [object] The object to query. + * @param {string} key The key of the property to get. + * @returns {*} Returns the property value. + */ +function getValue(object, key) { + return object == null ? undefined : object[key]; +} + +/** + * Checks if `value` is a host object in IE < 9. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a host object, else `false`. + */ +function isHostObject(value) { + // Many host objects are `Object` objects that can coerce to strings + // despite having improperly defined `toString` methods. + var result = false; + if (value != null && typeof value.toString != 'function') { + try { + result = !!(value + ''); + } catch (e) {} + } + return result; +} + +/** + * Converts `set` to an array of its values. + * + * @private + * @param {Object} set The set to convert. + * @returns {Array} Returns the values. + */ +function setToArray(set) { + var index = -1, + result = Array(set.size); + + set.forEach(function(value) { + result[++index] = value; + }); + return result; +} + +/** Used for built-in method references. */ +var arrayProto = Array.prototype, + funcProto = Function.prototype, + objectProto = Object.prototype; + +/** Used to detect overreaching core-js shims. */ +var coreJsData = root['__core-js_shared__']; + +/** Used to detect methods masquerading as native. */ +var maskSrcKey = (function() { + var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ''); + return uid ? ('Symbol(src)_1.' + uid) : ''; +}()); + +/** Used to resolve the decompiled source of functions. */ +var funcToString = funcProto.toString; + +/** Used to check objects for own properties. */ +var hasOwnProperty = objectProto.hasOwnProperty; + +/** + * Used to resolve the + * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) + * of values. + */ +var objectToString = objectProto.toString; + +/** Used to detect if a method is native. */ +var reIsNative = RegExp('^' + + funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\$&') + .replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, '$1.*?') + '$' +); + +/** Built-in value references. */ +var Symbol = root.Symbol, + propertyIsEnumerable = objectProto.propertyIsEnumerable, + splice = arrayProto.splice, + spreadableSymbol = Symbol ? Symbol.isConcatSpreadable : undefined; + +/* Built-in method references for those with the same name as other `lodash` methods. */ +var nativeMax = Math.max; + +/* Built-in method references that are verified to be native. */ +var Map = getNative(root, 'Map'), + Set = getNative(root, 'Set'), + nativeCreate = getNative(Object, 'create'); + +/** + * Creates a hash object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function Hash(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the hash. + * + * @private + * @name clear + * @memberOf Hash + */ +function hashClear() { + this.__data__ = nativeCreate ? nativeCreate(null) : {}; +} + +/** + * Removes `key` and its value from the hash. + * + * @private + * @name delete + * @memberOf Hash + * @param {Object} hash The hash to modify. + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function hashDelete(key) { + return this.has(key) && delete this.__data__[key]; +} + +/** + * Gets the hash value for `key`. + * + * @private + * @name get + * @memberOf Hash + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function hashGet(key) { + var data = this.__data__; + if (nativeCreate) { + var result = data[key]; + return result === HASH_UNDEFINED ? undefined : result; + } + return hasOwnProperty.call(data, key) ? data[key] : undefined; +} + +/** + * Checks if a hash value for `key` exists. + * + * @private + * @name has + * @memberOf Hash + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function hashHas(key) { + var data = this.__data__; + return nativeCreate ? data[key] !== undefined : hasOwnProperty.call(data, key); +} + +/** + * Sets the hash `key` to `value`. + * + * @private + * @name set + * @memberOf Hash + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the hash instance. + */ +function hashSet(key, value) { + var data = this.__data__; + data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value; + return this; +} + +// Add methods to `Hash`. +Hash.prototype.clear = hashClear; +Hash.prototype['delete'] = hashDelete; +Hash.prototype.get = hashGet; +Hash.prototype.has = hashHas; +Hash.prototype.set = hashSet; + +/** + * Creates an list cache object. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function ListCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the list cache. + * + * @private + * @name clear + * @memberOf ListCache + */ +function listCacheClear() { + this.__data__ = []; +} + +/** + * Removes `key` and its value from the list cache. + * + * @private + * @name delete + * @memberOf ListCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function listCacheDelete(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + return false; + } + var lastIndex = data.length - 1; + if (index == lastIndex) { + data.pop(); + } else { + splice.call(data, index, 1); + } + return true; +} + +/** + * Gets the list cache value for `key`. + * + * @private + * @name get + * @memberOf ListCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function listCacheGet(key) { + var data = this.__data__, + index = assocIndexOf(data, key); + + return index < 0 ? undefined : data[index][1]; +} + +/** + * Checks if a list cache value for `key` exists. + * + * @private + * @name has + * @memberOf ListCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function listCacheHas(key) { + return assocIndexOf(this.__data__, key) > -1; +} + +/** + * Sets the list cache `key` to `value`. + * + * @private + * @name set + * @memberOf ListCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the list cache instance. + */ +function listCacheSet(key, value) { + var data = this.__data__, + index = assocIndexOf(data, key); + + if (index < 0) { + data.push([key, value]); + } else { + data[index][1] = value; + } + return this; +} + +// Add methods to `ListCache`. +ListCache.prototype.clear = listCacheClear; +ListCache.prototype['delete'] = listCacheDelete; +ListCache.prototype.get = listCacheGet; +ListCache.prototype.has = listCacheHas; +ListCache.prototype.set = listCacheSet; + +/** + * Creates a map cache object to store key-value pairs. + * + * @private + * @constructor + * @param {Array} [entries] The key-value pairs to cache. + */ +function MapCache(entries) { + var index = -1, + length = entries ? entries.length : 0; + + this.clear(); + while (++index < length) { + var entry = entries[index]; + this.set(entry[0], entry[1]); + } +} + +/** + * Removes all key-value entries from the map. + * + * @private + * @name clear + * @memberOf MapCache + */ +function mapCacheClear() { + this.__data__ = { + 'hash': new Hash, + 'map': new (Map || ListCache), + 'string': new Hash + }; +} + +/** + * Removes `key` and its value from the map. + * + * @private + * @name delete + * @memberOf MapCache + * @param {string} key The key of the value to remove. + * @returns {boolean} Returns `true` if the entry was removed, else `false`. + */ +function mapCacheDelete(key) { + return getMapData(this, key)['delete'](key); +} + +/** + * Gets the map value for `key`. + * + * @private + * @name get + * @memberOf MapCache + * @param {string} key The key of the value to get. + * @returns {*} Returns the entry value. + */ +function mapCacheGet(key) { + return getMapData(this, key).get(key); +} + +/** + * Checks if a map value for `key` exists. + * + * @private + * @name has + * @memberOf MapCache + * @param {string} key The key of the entry to check. + * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. + */ +function mapCacheHas(key) { + return getMapData(this, key).has(key); +} + +/** + * Sets the map `key` to `value`. + * + * @private + * @name set + * @memberOf MapCache + * @param {string} key The key of the value to set. + * @param {*} value The value to set. + * @returns {Object} Returns the map cache instance. + */ +function mapCacheSet(key, value) { + getMapData(this, key).set(key, value); + return this; +} + +// Add methods to `MapCache`. +MapCache.prototype.clear = mapCacheClear; +MapCache.prototype['delete'] = mapCacheDelete; +MapCache.prototype.get = mapCacheGet; +MapCache.prototype.has = mapCacheHas; +MapCache.prototype.set = mapCacheSet; + +/** + * + * Creates an array cache object to store unique values. + * + * @private + * @constructor + * @param {Array} [values] The values to cache. + */ +function SetCache(values) { + var index = -1, + length = values ? values.length : 0; + + this.__data__ = new MapCache; + while (++index < length) { + this.add(values[index]); + } +} + +/** + * Adds `value` to the array cache. + * + * @private + * @name add + * @memberOf SetCache + * @alias push + * @param {*} value The value to cache. + * @returns {Object} Returns the cache instance. + */ +function setCacheAdd(value) { + this.__data__.set(value, HASH_UNDEFINED); + return this; +} + +/** + * Checks if `value` is in the array cache. + * + * @private + * @name has + * @memberOf SetCache + * @param {*} value The value to search for. + * @returns {number} Returns `true` if `value` is found, else `false`. + */ +function setCacheHas(value) { + return this.__data__.has(value); +} + +// Add methods to `SetCache`. +SetCache.prototype.add = SetCache.prototype.push = setCacheAdd; +SetCache.prototype.has = setCacheHas; + +/** + * Gets the index at which the `key` is found in `array` of key-value pairs. + * + * @private + * @param {Array} array The array to inspect. + * @param {*} key The key to search for. + * @returns {number} Returns the index of the matched value, else `-1`. + */ +function assocIndexOf(array, key) { + var length = array.length; + while (length--) { + if (eq(array[length][0], key)) { + return length; + } + } + return -1; +} + +/** + * The base implementation of `_.flatten` with support for restricting flattening. + * + * @private + * @param {Array} array The array to flatten. + * @param {number} depth The maximum recursion depth. + * @param {boolean} [predicate=isFlattenable] The function invoked per iteration. + * @param {boolean} [isStrict] Restrict to values that pass `predicate` checks. + * @param {Array} [result=[]] The initial result value. + * @returns {Array} Returns the new flattened array. + */ +function baseFlatten(array, depth, predicate, isStrict, result) { + var index = -1, + length = array.length; + + predicate || (predicate = isFlattenable); + result || (result = []); + + while (++index < length) { + var value = array[index]; + if (depth > 0 && predicate(value)) { + if (depth > 1) { + // Recursively flatten arrays (susceptible to call stack limits). + baseFlatten(value, depth - 1, predicate, isStrict, result); + } else { + arrayPush(result, value); + } + } else if (!isStrict) { + result[result.length] = value; + } + } + return result; +} + +/** + * The base implementation of `_.isNative` without bad shim checks. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a native function, + * else `false`. + */ +function baseIsNative(value) { + if (!isObject(value) || isMasked(value)) { + return false; + } + var pattern = (isFunction(value) || isHostObject(value)) ? reIsNative : reIsHostCtor; + return pattern.test(toSource(value)); +} + +/** + * The base implementation of `_.rest` which doesn't validate or coerce arguments. + * + * @private + * @param {Function} func The function to apply a rest parameter to. + * @param {number} [start=func.length-1] The start position of the rest parameter. + * @returns {Function} Returns the new function. + */ +function baseRest(func, start) { + start = nativeMax(start === undefined ? (func.length - 1) : start, 0); + return function() { + var args = arguments, + index = -1, + length = nativeMax(args.length - start, 0), + array = Array(length); + + while (++index < length) { + array[index] = args[start + index]; + } + index = -1; + var otherArgs = Array(start + 1); + while (++index < start) { + otherArgs[index] = args[index]; + } + otherArgs[start] = array; + return apply(func, this, otherArgs); + }; +} + +/** + * The base implementation of `_.uniqBy` without support for iteratee shorthands. + * + * @private + * @param {Array} array The array to inspect. + * @param {Function} [iteratee] The iteratee invoked per element. + * @param {Function} [comparator] The comparator invoked per element. + * @returns {Array} Returns the new duplicate free array. + */ +function baseUniq(array, iteratee, comparator) { + var index = -1, + includes = arrayIncludes, + length = array.length, + isCommon = true, + result = [], + seen = result; + + if (comparator) { + isCommon = false; + includes = arrayIncludesWith; + } + else if (length >= LARGE_ARRAY_SIZE) { + var set = iteratee ? null : createSet(array); + if (set) { + return setToArray(set); + } + isCommon = false; + includes = cacheHas; + seen = new SetCache; + } + else { + seen = iteratee ? [] : result; + } + outer: + while (++index < length) { + var value = array[index], + computed = iteratee ? iteratee(value) : value; + + value = (comparator || value !== 0) ? value : 0; + if (isCommon && computed === computed) { + var seenIndex = seen.length; + while (seenIndex--) { + if (seen[seenIndex] === computed) { + continue outer; + } + } + if (iteratee) { + seen.push(computed); + } + result.push(value); + } + else if (!includes(seen, computed, comparator)) { + if (seen !== result) { + seen.push(computed); + } + result.push(value); + } + } + return result; +} + +/** + * Creates a set object of `values`. + * + * @private + * @param {Array} values The values to add to the set. + * @returns {Object} Returns the new set. + */ +var createSet = !(Set && (1 / setToArray(new Set([,-0]))[1]) == INFINITY) ? noop : function(values) { + return new Set(values); +}; + +/** + * Gets the data for `map`. + * + * @private + * @param {Object} map The map to query. + * @param {string} key The reference key. + * @returns {*} Returns the map data. + */ +function getMapData(map, key) { + var data = map.__data__; + return isKeyable(key) + ? data[typeof key == 'string' ? 'string' : 'hash'] + : data.map; +} + +/** + * Gets the native function at `key` of `object`. + * + * @private + * @param {Object} object The object to query. + * @param {string} key The key of the method to get. + * @returns {*} Returns the function if it's native, else `undefined`. + */ +function getNative(object, key) { + var value = getValue(object, key); + return baseIsNative(value) ? value : undefined; +} + +/** + * Checks if `value` is a flattenable `arguments` object or array. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is flattenable, else `false`. + */ +function isFlattenable(value) { + return isArray(value) || isArguments(value) || + !!(spreadableSymbol && value && value[spreadableSymbol]); +} + +/** + * Checks if `value` is suitable for use as unique object key. + * + * @private + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is suitable, else `false`. + */ +function isKeyable(value) { + var type = typeof value; + return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean') + ? (value !== '__proto__') + : (value === null); +} + +/** + * Checks if `func` has its source masked. + * + * @private + * @param {Function} func The function to check. + * @returns {boolean} Returns `true` if `func` is masked, else `false`. + */ +function isMasked(func) { + return !!maskSrcKey && (maskSrcKey in func); +} + +/** + * Converts `func` to its source code. + * + * @private + * @param {Function} func The function to process. + * @returns {string} Returns the source code. + */ +function toSource(func) { + if (func != null) { + try { + return funcToString.call(func); + } catch (e) {} + try { + return (func + ''); + } catch (e) {} + } + return ''; +} + +/** + * Creates an array of unique values, in order, from all given arrays using + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * for equality comparisons. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Array + * @param {...Array} [arrays] The arrays to inspect. + * @returns {Array} Returns the new array of combined values. + * @example + * + * _.union([2], [1, 2]); + * // => [2, 1] + */ +var union = baseRest(function(arrays) { + return baseUniq(baseFlatten(arrays, 1, isArrayLikeObject, true)); +}); + +/** + * Performs a + * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) + * comparison between two values to determine if they are equivalent. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to compare. + * @param {*} other The other value to compare. + * @returns {boolean} Returns `true` if the values are equivalent, else `false`. + * @example + * + * var object = { 'a': 1 }; + * var other = { 'a': 1 }; + * + * _.eq(object, object); + * // => true + * + * _.eq(object, other); + * // => false + * + * _.eq('a', 'a'); + * // => true + * + * _.eq('a', Object('a')); + * // => false + * + * _.eq(NaN, NaN); + * // => true + */ +function eq(value, other) { + return value === other || (value !== value && other !== other); +} + +/** + * Checks if `value` is likely an `arguments` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an `arguments` object, + * else `false`. + * @example + * + * _.isArguments(function() { return arguments; }()); + * // => true + * + * _.isArguments([1, 2, 3]); + * // => false + */ +function isArguments(value) { + // Safari 8.1 makes `arguments.callee` enumerable in strict mode. + return isArrayLikeObject(value) && hasOwnProperty.call(value, 'callee') && + (!propertyIsEnumerable.call(value, 'callee') || objectToString.call(value) == argsTag); +} + +/** + * Checks if `value` is classified as an `Array` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array, else `false`. + * @example + * + * _.isArray([1, 2, 3]); + * // => true + * + * _.isArray(document.body.children); + * // => false + * + * _.isArray('abc'); + * // => false + * + * _.isArray(_.noop); + * // => false + */ +var isArray = Array.isArray; + +/** + * Checks if `value` is array-like. A value is considered array-like if it's + * not a function and has a `value.length` that's an integer greater than or + * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is array-like, else `false`. + * @example + * + * _.isArrayLike([1, 2, 3]); + * // => true + * + * _.isArrayLike(document.body.children); + * // => true + * + * _.isArrayLike('abc'); + * // => true + * + * _.isArrayLike(_.noop); + * // => false + */ +function isArrayLike(value) { + return value != null && isLength(value.length) && !isFunction(value); +} + +/** + * This method is like `_.isArrayLike` except that it also checks if `value` + * is an object. + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an array-like object, + * else `false`. + * @example + * + * _.isArrayLikeObject([1, 2, 3]); + * // => true + * + * _.isArrayLikeObject(document.body.children); + * // => true + * + * _.isArrayLikeObject('abc'); + * // => false + * + * _.isArrayLikeObject(_.noop); + * // => false + */ +function isArrayLikeObject(value) { + return isObjectLike(value) && isArrayLike(value); +} + +/** + * Checks if `value` is classified as a `Function` object. + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a function, else `false`. + * @example + * + * _.isFunction(_); + * // => true + * + * _.isFunction(/abc/); + * // => false + */ +function isFunction(value) { + // The use of `Object#toString` avoids issues with the `typeof` operator + // in Safari 8-9 which returns 'object' for typed array and other constructors. + var tag = isObject(value) ? objectToString.call(value) : ''; + return tag == funcTag || tag == genTag; +} + +/** + * Checks if `value` is a valid array-like length. + * + * **Note:** This method is loosely based on + * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength). + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is a valid length, else `false`. + * @example + * + * _.isLength(3); + * // => true + * + * _.isLength(Number.MIN_VALUE); + * // => false + * + * _.isLength(Infinity); + * // => false + * + * _.isLength('3'); + * // => false + */ +function isLength(value) { + return typeof value == 'number' && + value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER; +} + +/** + * Checks if `value` is the + * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) + * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) + * + * @static + * @memberOf _ + * @since 0.1.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is an object, else `false`. + * @example + * + * _.isObject({}); + * // => true + * + * _.isObject([1, 2, 3]); + * // => true + * + * _.isObject(_.noop); + * // => true + * + * _.isObject(null); + * // => false + */ +function isObject(value) { + var type = typeof value; + return !!value && (type == 'object' || type == 'function'); +} + +/** + * Checks if `value` is object-like. A value is object-like if it's not `null` + * and has a `typeof` result of "object". + * + * @static + * @memberOf _ + * @since 4.0.0 + * @category Lang + * @param {*} value The value to check. + * @returns {boolean} Returns `true` if `value` is object-like, else `false`. + * @example + * + * _.isObjectLike({}); + * // => true + * + * _.isObjectLike([1, 2, 3]); + * // => true + * + * _.isObjectLike(_.noop); + * // => false + * + * _.isObjectLike(null); + * // => false + */ +function isObjectLike(value) { + return !!value && typeof value == 'object'; +} + +/** + * This method returns `undefined`. + * + * @static + * @memberOf _ + * @since 2.3.0 + * @category Util + * @example + * + * _.times(2, _.noop); + * // => [undefined, undefined] + */ +function noop() { + // No operation performed. +} + +module.exports = union; + + +/***/ }), + +/***/ 10863: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +// A linked list to keep track of recently-used-ness +const Yallist = __nccwpck_require__(69678) + +const MAX = Symbol('max') +const LENGTH = Symbol('length') +const LENGTH_CALCULATOR = Symbol('lengthCalculator') +const ALLOW_STALE = Symbol('allowStale') +const MAX_AGE = Symbol('maxAge') +const DISPOSE = Symbol('dispose') +const NO_DISPOSE_ON_SET = Symbol('noDisposeOnSet') +const LRU_LIST = Symbol('lruList') +const CACHE = Symbol('cache') +const UPDATE_AGE_ON_GET = Symbol('updateAgeOnGet') + +const naiveLength = () => 1 + +// lruList is a yallist where the head is the youngest +// item, and the tail is the oldest. the list contains the Hit +// objects as the entries. +// Each Hit object has a reference to its Yallist.Node. This +// never changes. +// +// cache is a Map (or PseudoMap) that matches the keys to +// the Yallist.Node object. +class LRUCache { + constructor (options) { + if (typeof options === 'number') + options = { max: options } + + if (!options) + options = {} + + if (options.max && (typeof options.max !== 'number' || options.max < 0)) + throw new TypeError('max must be a non-negative number') + // Kind of weird to have a default max of Infinity, but oh well. + const max = this[MAX] = options.max || Infinity + + const lc = options.length || naiveLength + this[LENGTH_CALCULATOR] = (typeof lc !== 'function') ? naiveLength : lc + this[ALLOW_STALE] = options.stale || false + if (options.maxAge && typeof options.maxAge !== 'number') + throw new TypeError('maxAge must be a number') + this[MAX_AGE] = options.maxAge || 0 + this[DISPOSE] = options.dispose + this[NO_DISPOSE_ON_SET] = options.noDisposeOnSet || false + this[UPDATE_AGE_ON_GET] = options.updateAgeOnGet || false + this.reset() + } + + // resize the cache when the max changes. + set max (mL) { + if (typeof mL !== 'number' || mL < 0) + throw new TypeError('max must be a non-negative number') + + this[MAX] = mL || Infinity + trim(this) + } + get max () { + return this[MAX] + } + + set allowStale (allowStale) { + this[ALLOW_STALE] = !!allowStale + } + get allowStale () { + return this[ALLOW_STALE] + } + + set maxAge (mA) { + if (typeof mA !== 'number') + throw new TypeError('maxAge must be a non-negative number') + + this[MAX_AGE] = mA + trim(this) + } + get maxAge () { + return this[MAX_AGE] + } + + // resize the cache when the lengthCalculator changes. + set lengthCalculator (lC) { + if (typeof lC !== 'function') + lC = naiveLength + + if (lC !== this[LENGTH_CALCULATOR]) { + this[LENGTH_CALCULATOR] = lC + this[LENGTH] = 0 + this[LRU_LIST].forEach(hit => { + hit.length = this[LENGTH_CALCULATOR](hit.value, hit.key) + this[LENGTH] += hit.length + }) + } + trim(this) + } + get lengthCalculator () { return this[LENGTH_CALCULATOR] } + + get length () { return this[LENGTH] } + get itemCount () { return this[LRU_LIST].length } + + rforEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].tail; walker !== null;) { + const prev = walker.prev + forEachStep(this, fn, walker, thisp) + walker = prev + } + } + + forEach (fn, thisp) { + thisp = thisp || this + for (let walker = this[LRU_LIST].head; walker !== null;) { + const next = walker.next + forEachStep(this, fn, walker, thisp) + walker = next + } + } + + keys () { + return this[LRU_LIST].toArray().map(k => k.key) + } + + values () { + return this[LRU_LIST].toArray().map(k => k.value) + } + + reset () { + if (this[DISPOSE] && + this[LRU_LIST] && + this[LRU_LIST].length) { + this[LRU_LIST].forEach(hit => this[DISPOSE](hit.key, hit.value)) + } + + this[CACHE] = new Map() // hash of items by key + this[LRU_LIST] = new Yallist() // list of items in order of use recency + this[LENGTH] = 0 // length of items in the list + } + + dump () { + return this[LRU_LIST].map(hit => + isStale(this, hit) ? false : { + k: hit.key, + v: hit.value, + e: hit.now + (hit.maxAge || 0) + }).toArray().filter(h => h) + } + + dumpLru () { + return this[LRU_LIST] + } + + set (key, value, maxAge) { + maxAge = maxAge || this[MAX_AGE] + + if (maxAge && typeof maxAge !== 'number') + throw new TypeError('maxAge must be a number') + + const now = maxAge ? Date.now() : 0 + const len = this[LENGTH_CALCULATOR](value, key) + + if (this[CACHE].has(key)) { + if (len > this[MAX]) { + del(this, this[CACHE].get(key)) + return false + } + + const node = this[CACHE].get(key) + const item = node.value + + // dispose of the old one before overwriting + // split out into 2 ifs for better coverage tracking + if (this[DISPOSE]) { + if (!this[NO_DISPOSE_ON_SET]) + this[DISPOSE](key, item.value) + } + + item.now = now + item.maxAge = maxAge + item.value = value + this[LENGTH] += len - item.length + item.length = len + this.get(key) + trim(this) + return true + } + + const hit = new Entry(key, value, len, now, maxAge) + + // oversized objects fall out of cache automatically. + if (hit.length > this[MAX]) { + if (this[DISPOSE]) + this[DISPOSE](key, value) + + return false + } + + this[LENGTH] += hit.length + this[LRU_LIST].unshift(hit) + this[CACHE].set(key, this[LRU_LIST].head) + trim(this) + return true + } + + has (key) { + if (!this[CACHE].has(key)) return false + const hit = this[CACHE].get(key).value + return !isStale(this, hit) + } + + get (key) { + return get(this, key, true) + } + + peek (key) { + return get(this, key, false) + } + + pop () { + const node = this[LRU_LIST].tail + if (!node) + return null + + del(this, node) + return node.value + } + + del (key) { + del(this, this[CACHE].get(key)) + } + + load (arr) { + // reset the cache + this.reset() + + const now = Date.now() + // A previous serialized cache has the most recent items first + for (let l = arr.length - 1; l >= 0; l--) { + const hit = arr[l] + const expiresAt = hit.e || 0 + if (expiresAt === 0) + // the item was created without expiration in a non aged cache + this.set(hit.k, hit.v) + else { + const maxAge = expiresAt - now + // dont add already expired items + if (maxAge > 0) { + this.set(hit.k, hit.v, maxAge) + } + } + } + } + + prune () { + this[CACHE].forEach((value, key) => get(this, key, false)) + } +} + +const get = (self, key, doUse) => { + const node = self[CACHE].get(key) + if (node) { + const hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + return undefined + } else { + if (doUse) { + if (self[UPDATE_AGE_ON_GET]) + node.value.now = Date.now() + self[LRU_LIST].unshiftNode(node) + } + } + return hit.value + } +} + +const isStale = (self, hit) => { + if (!hit || (!hit.maxAge && !self[MAX_AGE])) + return false + + const diff = Date.now() - hit.now + return hit.maxAge ? diff > hit.maxAge + : self[MAX_AGE] && (diff > self[MAX_AGE]) +} + +const trim = self => { + if (self[LENGTH] > self[MAX]) { + for (let walker = self[LRU_LIST].tail; + self[LENGTH] > self[MAX] && walker !== null;) { + // We know that we're about to delete this one, and also + // what the next least recently used key will be, so just + // go ahead and set it now. + const prev = walker.prev + del(self, walker) + walker = prev + } + } +} + +const del = (self, node) => { + if (node) { + const hit = node.value + if (self[DISPOSE]) + self[DISPOSE](hit.key, hit.value) + + self[LENGTH] -= hit.length + self[CACHE].delete(hit.key) + self[LRU_LIST].removeNode(node) + } +} + +class Entry { + constructor (key, value, length, now, maxAge) { + this.key = key + this.value = value + this.length = length + this.now = now + this.maxAge = maxAge || 0 + } +} + +const forEachStep = (self, fn, node, thisp) => { + let hit = node.value + if (isStale(self, hit)) { + del(self, node) + if (!self[ALLOW_STALE]) + hit = undefined + } + if (hit) + fn.call(thisp, hit.value, hit.key, self) +} + +module.exports = LRUCache + + +/***/ }), + +/***/ 35225: +/***/ ((module) => { + +"use strict"; + + +/** + * @param typeMap [Object] Map of MIME type -> Array[extensions] + * @param ... + */ +function Mime() { + this._types = Object.create(null); + this._extensions = Object.create(null); + + for (var i = 0; i < arguments.length; i++) { + this.define(arguments[i]); + } + + this.define = this.define.bind(this); + this.getType = this.getType.bind(this); + this.getExtension = this.getExtension.bind(this); +} + +/** + * Define mimetype -> extension mappings. Each key is a mime-type that maps + * to an array of extensions associated with the type. The first extension is + * used as the default extension for the type. + * + * e.g. mime.define({'audio/ogg', ['oga', 'ogg', 'spx']}); + * + * If a type declares an extension that has already been defined, an error will + * be thrown. To suppress this error and force the extension to be associated + * with the new type, pass `force`=true. Alternatively, you may prefix the + * extension with "*" to map the type to extension, without mapping the + * extension to the type. + * + * e.g. mime.define({'audio/wav', ['wav']}, {'audio/x-wav', ['*wav']}); + * + * + * @param map (Object) type definitions + * @param force (Boolean) if true, force overriding of existing definitions + */ +Mime.prototype.define = function(typeMap, force) { + for (var type in typeMap) { + var extensions = typeMap[type].map(function(t) {return t.toLowerCase()}); + type = type.toLowerCase(); + + for (var i = 0; i < extensions.length; i++) { + var ext = extensions[i]; + + // '*' prefix = not the preferred type for this extension. So fixup the + // extension, and skip it. + if (ext[0] == '*') { + continue; + } + + if (!force && (ext in this._types)) { + throw new Error( + 'Attempt to change mapping for "' + ext + + '" extension from "' + this._types[ext] + '" to "' + type + + '". Pass `force=true` to allow this, otherwise remove "' + ext + + '" from the list of extensions for "' + type + '".' + ); + } + + this._types[ext] = type; + } + + // Use first extension as default + if (force || !this._extensions[type]) { + var ext = extensions[0]; + this._extensions[type] = (ext[0] != '*') ? ext : ext.substr(1) + } + } +}; + +/** + * Lookup a mime type based on extension + */ +Mime.prototype.getType = function(path) { + path = String(path); + var last = path.replace(/^.*[/\\]/, '').toLowerCase(); + var ext = last.replace(/^.*\./, '').toLowerCase(); + + var hasPath = last.length < path.length; + var hasDot = ext.length < last.length - 1; + + return (hasDot || !hasPath) && this._types[ext] || null; +}; + +/** + * Return file extension associated with a mime type + */ +Mime.prototype.getExtension = function(type) { + type = /^\s*([^;\s]*)/.test(type) && RegExp.$1; + return type && this._extensions[type.toLowerCase()] || null; +}; + +module.exports = Mime; + + +/***/ }), + +/***/ 47277: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var Mime = __nccwpck_require__(35225); +module.exports = new Mime(__nccwpck_require__(70645), __nccwpck_require__(75702)); + + +/***/ }), + +/***/ 75702: +/***/ ((module) => { + +module.exports = {"application/prs.cww":["cww"],"application/vnd.1000minds.decision-model+xml":["1km"],"application/vnd.3gpp.pic-bw-large":["plb"],"application/vnd.3gpp.pic-bw-small":["psb"],"application/vnd.3gpp.pic-bw-var":["pvb"],"application/vnd.3gpp2.tcap":["tcap"],"application/vnd.3m.post-it-notes":["pwn"],"application/vnd.accpac.simply.aso":["aso"],"application/vnd.accpac.simply.imp":["imp"],"application/vnd.acucobol":["acu"],"application/vnd.acucorp":["atc","acutc"],"application/vnd.adobe.air-application-installer-package+zip":["air"],"application/vnd.adobe.formscentral.fcdt":["fcdt"],"application/vnd.adobe.fxp":["fxp","fxpl"],"application/vnd.adobe.xdp+xml":["xdp"],"application/vnd.adobe.xfdf":["xfdf"],"application/vnd.ahead.space":["ahead"],"application/vnd.airzip.filesecure.azf":["azf"],"application/vnd.airzip.filesecure.azs":["azs"],"application/vnd.amazon.ebook":["azw"],"application/vnd.americandynamics.acc":["acc"],"application/vnd.amiga.ami":["ami"],"application/vnd.android.package-archive":["apk"],"application/vnd.anser-web-certificate-issue-initiation":["cii"],"application/vnd.anser-web-funds-transfer-initiation":["fti"],"application/vnd.antix.game-component":["atx"],"application/vnd.apple.installer+xml":["mpkg"],"application/vnd.apple.keynote":["keynote"],"application/vnd.apple.mpegurl":["m3u8"],"application/vnd.apple.numbers":["numbers"],"application/vnd.apple.pages":["pages"],"application/vnd.apple.pkpass":["pkpass"],"application/vnd.aristanetworks.swi":["swi"],"application/vnd.astraea-software.iota":["iota"],"application/vnd.audiograph":["aep"],"application/vnd.balsamiq.bmml+xml":["bmml"],"application/vnd.blueice.multipass":["mpm"],"application/vnd.bmi":["bmi"],"application/vnd.businessobjects":["rep"],"application/vnd.chemdraw+xml":["cdxml"],"application/vnd.chipnuts.karaoke-mmd":["mmd"],"application/vnd.cinderella":["cdy"],"application/vnd.citationstyles.style+xml":["csl"],"application/vnd.claymore":["cla"],"application/vnd.cloanto.rp9":["rp9"],"application/vnd.clonk.c4group":["c4g","c4d","c4f","c4p","c4u"],"application/vnd.cluetrust.cartomobile-config":["c11amc"],"application/vnd.cluetrust.cartomobile-config-pkg":["c11amz"],"application/vnd.commonspace":["csp"],"application/vnd.contact.cmsg":["cdbcmsg"],"application/vnd.cosmocaller":["cmc"],"application/vnd.crick.clicker":["clkx"],"application/vnd.crick.clicker.keyboard":["clkk"],"application/vnd.crick.clicker.palette":["clkp"],"application/vnd.crick.clicker.template":["clkt"],"application/vnd.crick.clicker.wordbank":["clkw"],"application/vnd.criticaltools.wbs+xml":["wbs"],"application/vnd.ctc-posml":["pml"],"application/vnd.cups-ppd":["ppd"],"application/vnd.curl.car":["car"],"application/vnd.curl.pcurl":["pcurl"],"application/vnd.dart":["dart"],"application/vnd.data-vision.rdz":["rdz"],"application/vnd.dece.data":["uvf","uvvf","uvd","uvvd"],"application/vnd.dece.ttml+xml":["uvt","uvvt"],"application/vnd.dece.unspecified":["uvx","uvvx"],"application/vnd.dece.zip":["uvz","uvvz"],"application/vnd.denovo.fcselayout-link":["fe_launch"],"application/vnd.dna":["dna"],"application/vnd.dolby.mlp":["mlp"],"application/vnd.dpgraph":["dpg"],"application/vnd.dreamfactory":["dfac"],"application/vnd.ds-keypoint":["kpxx"],"application/vnd.dvb.ait":["ait"],"application/vnd.dvb.service":["svc"],"application/vnd.dynageo":["geo"],"application/vnd.ecowin.chart":["mag"],"application/vnd.enliven":["nml"],"application/vnd.epson.esf":["esf"],"application/vnd.epson.msf":["msf"],"application/vnd.epson.quickanime":["qam"],"application/vnd.epson.salt":["slt"],"application/vnd.epson.ssf":["ssf"],"application/vnd.eszigno3+xml":["es3","et3"],"application/vnd.ezpix-album":["ez2"],"application/vnd.ezpix-package":["ez3"],"application/vnd.fdf":["fdf"],"application/vnd.fdsn.mseed":["mseed"],"application/vnd.fdsn.seed":["seed","dataless"],"application/vnd.flographit":["gph"],"application/vnd.fluxtime.clip":["ftc"],"application/vnd.framemaker":["fm","frame","maker","book"],"application/vnd.frogans.fnc":["fnc"],"application/vnd.frogans.ltf":["ltf"],"application/vnd.fsc.weblaunch":["fsc"],"application/vnd.fujitsu.oasys":["oas"],"application/vnd.fujitsu.oasys2":["oa2"],"application/vnd.fujitsu.oasys3":["oa3"],"application/vnd.fujitsu.oasysgp":["fg5"],"application/vnd.fujitsu.oasysprs":["bh2"],"application/vnd.fujixerox.ddd":["ddd"],"application/vnd.fujixerox.docuworks":["xdw"],"application/vnd.fujixerox.docuworks.binder":["xbd"],"application/vnd.fuzzysheet":["fzs"],"application/vnd.genomatix.tuxedo":["txd"],"application/vnd.geogebra.file":["ggb"],"application/vnd.geogebra.tool":["ggt"],"application/vnd.geometry-explorer":["gex","gre"],"application/vnd.geonext":["gxt"],"application/vnd.geoplan":["g2w"],"application/vnd.geospace":["g3w"],"application/vnd.gmx":["gmx"],"application/vnd.google-apps.document":["gdoc"],"application/vnd.google-apps.presentation":["gslides"],"application/vnd.google-apps.spreadsheet":["gsheet"],"application/vnd.google-earth.kml+xml":["kml"],"application/vnd.google-earth.kmz":["kmz"],"application/vnd.grafeq":["gqf","gqs"],"application/vnd.groove-account":["gac"],"application/vnd.groove-help":["ghf"],"application/vnd.groove-identity-message":["gim"],"application/vnd.groove-injector":["grv"],"application/vnd.groove-tool-message":["gtm"],"application/vnd.groove-tool-template":["tpl"],"application/vnd.groove-vcard":["vcg"],"application/vnd.hal+xml":["hal"],"application/vnd.handheld-entertainment+xml":["zmm"],"application/vnd.hbci":["hbci"],"application/vnd.hhe.lesson-player":["les"],"application/vnd.hp-hpgl":["hpgl"],"application/vnd.hp-hpid":["hpid"],"application/vnd.hp-hps":["hps"],"application/vnd.hp-jlyt":["jlt"],"application/vnd.hp-pcl":["pcl"],"application/vnd.hp-pclxl":["pclxl"],"application/vnd.hydrostatix.sof-data":["sfd-hdstx"],"application/vnd.ibm.minipay":["mpy"],"application/vnd.ibm.modcap":["afp","listafp","list3820"],"application/vnd.ibm.rights-management":["irm"],"application/vnd.ibm.secure-container":["sc"],"application/vnd.iccprofile":["icc","icm"],"application/vnd.igloader":["igl"],"application/vnd.immervision-ivp":["ivp"],"application/vnd.immervision-ivu":["ivu"],"application/vnd.insors.igm":["igm"],"application/vnd.intercon.formnet":["xpw","xpx"],"application/vnd.intergeo":["i2g"],"application/vnd.intu.qbo":["qbo"],"application/vnd.intu.qfx":["qfx"],"application/vnd.ipunplugged.rcprofile":["rcprofile"],"application/vnd.irepository.package+xml":["irp"],"application/vnd.is-xpr":["xpr"],"application/vnd.isac.fcs":["fcs"],"application/vnd.jam":["jam"],"application/vnd.jcp.javame.midlet-rms":["rms"],"application/vnd.jisp":["jisp"],"application/vnd.joost.joda-archive":["joda"],"application/vnd.kahootz":["ktz","ktr"],"application/vnd.kde.karbon":["karbon"],"application/vnd.kde.kchart":["chrt"],"application/vnd.kde.kformula":["kfo"],"application/vnd.kde.kivio":["flw"],"application/vnd.kde.kontour":["kon"],"application/vnd.kde.kpresenter":["kpr","kpt"],"application/vnd.kde.kspread":["ksp"],"application/vnd.kde.kword":["kwd","kwt"],"application/vnd.kenameaapp":["htke"],"application/vnd.kidspiration":["kia"],"application/vnd.kinar":["kne","knp"],"application/vnd.koan":["skp","skd","skt","skm"],"application/vnd.kodak-descriptor":["sse"],"application/vnd.las.las+xml":["lasxml"],"application/vnd.llamagraphics.life-balance.desktop":["lbd"],"application/vnd.llamagraphics.life-balance.exchange+xml":["lbe"],"application/vnd.lotus-1-2-3":["123"],"application/vnd.lotus-approach":["apr"],"application/vnd.lotus-freelance":["pre"],"application/vnd.lotus-notes":["nsf"],"application/vnd.lotus-organizer":["org"],"application/vnd.lotus-screencam":["scm"],"application/vnd.lotus-wordpro":["lwp"],"application/vnd.macports.portpkg":["portpkg"],"application/vnd.mcd":["mcd"],"application/vnd.medcalcdata":["mc1"],"application/vnd.mediastation.cdkey":["cdkey"],"application/vnd.mfer":["mwf"],"application/vnd.mfmp":["mfm"],"application/vnd.micrografx.flo":["flo"],"application/vnd.micrografx.igx":["igx"],"application/vnd.mif":["mif"],"application/vnd.mobius.daf":["daf"],"application/vnd.mobius.dis":["dis"],"application/vnd.mobius.mbk":["mbk"],"application/vnd.mobius.mqy":["mqy"],"application/vnd.mobius.msl":["msl"],"application/vnd.mobius.plc":["plc"],"application/vnd.mobius.txf":["txf"],"application/vnd.mophun.application":["mpn"],"application/vnd.mophun.certificate":["mpc"],"application/vnd.mozilla.xul+xml":["xul"],"application/vnd.ms-artgalry":["cil"],"application/vnd.ms-cab-compressed":["cab"],"application/vnd.ms-excel":["xls","xlm","xla","xlc","xlt","xlw"],"application/vnd.ms-excel.addin.macroenabled.12":["xlam"],"application/vnd.ms-excel.sheet.binary.macroenabled.12":["xlsb"],"application/vnd.ms-excel.sheet.macroenabled.12":["xlsm"],"application/vnd.ms-excel.template.macroenabled.12":["xltm"],"application/vnd.ms-fontobject":["eot"],"application/vnd.ms-htmlhelp":["chm"],"application/vnd.ms-ims":["ims"],"application/vnd.ms-lrm":["lrm"],"application/vnd.ms-officetheme":["thmx"],"application/vnd.ms-outlook":["msg"],"application/vnd.ms-pki.seccat":["cat"],"application/vnd.ms-pki.stl":["*stl"],"application/vnd.ms-powerpoint":["ppt","pps","pot"],"application/vnd.ms-powerpoint.addin.macroenabled.12":["ppam"],"application/vnd.ms-powerpoint.presentation.macroenabled.12":["pptm"],"application/vnd.ms-powerpoint.slide.macroenabled.12":["sldm"],"application/vnd.ms-powerpoint.slideshow.macroenabled.12":["ppsm"],"application/vnd.ms-powerpoint.template.macroenabled.12":["potm"],"application/vnd.ms-project":["mpp","mpt"],"application/vnd.ms-word.document.macroenabled.12":["docm"],"application/vnd.ms-word.template.macroenabled.12":["dotm"],"application/vnd.ms-works":["wps","wks","wcm","wdb"],"application/vnd.ms-wpl":["wpl"],"application/vnd.ms-xpsdocument":["xps"],"application/vnd.mseq":["mseq"],"application/vnd.musician":["mus"],"application/vnd.muvee.style":["msty"],"application/vnd.mynfc":["taglet"],"application/vnd.neurolanguage.nlu":["nlu"],"application/vnd.nitf":["ntf","nitf"],"application/vnd.noblenet-directory":["nnd"],"application/vnd.noblenet-sealer":["nns"],"application/vnd.noblenet-web":["nnw"],"application/vnd.nokia.n-gage.ac+xml":["*ac"],"application/vnd.nokia.n-gage.data":["ngdat"],"application/vnd.nokia.n-gage.symbian.install":["n-gage"],"application/vnd.nokia.radio-preset":["rpst"],"application/vnd.nokia.radio-presets":["rpss"],"application/vnd.novadigm.edm":["edm"],"application/vnd.novadigm.edx":["edx"],"application/vnd.novadigm.ext":["ext"],"application/vnd.oasis.opendocument.chart":["odc"],"application/vnd.oasis.opendocument.chart-template":["otc"],"application/vnd.oasis.opendocument.database":["odb"],"application/vnd.oasis.opendocument.formula":["odf"],"application/vnd.oasis.opendocument.formula-template":["odft"],"application/vnd.oasis.opendocument.graphics":["odg"],"application/vnd.oasis.opendocument.graphics-template":["otg"],"application/vnd.oasis.opendocument.image":["odi"],"application/vnd.oasis.opendocument.image-template":["oti"],"application/vnd.oasis.opendocument.presentation":["odp"],"application/vnd.oasis.opendocument.presentation-template":["otp"],"application/vnd.oasis.opendocument.spreadsheet":["ods"],"application/vnd.oasis.opendocument.spreadsheet-template":["ots"],"application/vnd.oasis.opendocument.text":["odt"],"application/vnd.oasis.opendocument.text-master":["odm"],"application/vnd.oasis.opendocument.text-template":["ott"],"application/vnd.oasis.opendocument.text-web":["oth"],"application/vnd.olpc-sugar":["xo"],"application/vnd.oma.dd2+xml":["dd2"],"application/vnd.openblox.game+xml":["obgx"],"application/vnd.openofficeorg.extension":["oxt"],"application/vnd.openstreetmap.data+xml":["osm"],"application/vnd.openxmlformats-officedocument.presentationml.presentation":["pptx"],"application/vnd.openxmlformats-officedocument.presentationml.slide":["sldx"],"application/vnd.openxmlformats-officedocument.presentationml.slideshow":["ppsx"],"application/vnd.openxmlformats-officedocument.presentationml.template":["potx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":["xlsx"],"application/vnd.openxmlformats-officedocument.spreadsheetml.template":["xltx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":["docx"],"application/vnd.openxmlformats-officedocument.wordprocessingml.template":["dotx"],"application/vnd.osgeo.mapguide.package":["mgp"],"application/vnd.osgi.dp":["dp"],"application/vnd.osgi.subsystem":["esa"],"application/vnd.palm":["pdb","pqa","oprc"],"application/vnd.pawaafile":["paw"],"application/vnd.pg.format":["str"],"application/vnd.pg.osasli":["ei6"],"application/vnd.picsel":["efif"],"application/vnd.pmi.widget":["wg"],"application/vnd.pocketlearn":["plf"],"application/vnd.powerbuilder6":["pbd"],"application/vnd.previewsystems.box":["box"],"application/vnd.proteus.magazine":["mgz"],"application/vnd.publishare-delta-tree":["qps"],"application/vnd.pvi.ptid1":["ptid"],"application/vnd.quark.quarkxpress":["qxd","qxt","qwd","qwt","qxl","qxb"],"application/vnd.realvnc.bed":["bed"],"application/vnd.recordare.musicxml":["mxl"],"application/vnd.recordare.musicxml+xml":["musicxml"],"application/vnd.rig.cryptonote":["cryptonote"],"application/vnd.rim.cod":["cod"],"application/vnd.rn-realmedia":["rm"],"application/vnd.rn-realmedia-vbr":["rmvb"],"application/vnd.route66.link66+xml":["link66"],"application/vnd.sailingtracker.track":["st"],"application/vnd.seemail":["see"],"application/vnd.sema":["sema"],"application/vnd.semd":["semd"],"application/vnd.semf":["semf"],"application/vnd.shana.informed.formdata":["ifm"],"application/vnd.shana.informed.formtemplate":["itp"],"application/vnd.shana.informed.interchange":["iif"],"application/vnd.shana.informed.package":["ipk"],"application/vnd.simtech-mindmapper":["twd","twds"],"application/vnd.smaf":["mmf"],"application/vnd.smart.teacher":["teacher"],"application/vnd.software602.filler.form+xml":["fo"],"application/vnd.solent.sdkm+xml":["sdkm","sdkd"],"application/vnd.spotfire.dxp":["dxp"],"application/vnd.spotfire.sfs":["sfs"],"application/vnd.stardivision.calc":["sdc"],"application/vnd.stardivision.draw":["sda"],"application/vnd.stardivision.impress":["sdd"],"application/vnd.stardivision.math":["smf"],"application/vnd.stardivision.writer":["sdw","vor"],"application/vnd.stardivision.writer-global":["sgl"],"application/vnd.stepmania.package":["smzip"],"application/vnd.stepmania.stepchart":["sm"],"application/vnd.sun.wadl+xml":["wadl"],"application/vnd.sun.xml.calc":["sxc"],"application/vnd.sun.xml.calc.template":["stc"],"application/vnd.sun.xml.draw":["sxd"],"application/vnd.sun.xml.draw.template":["std"],"application/vnd.sun.xml.impress":["sxi"],"application/vnd.sun.xml.impress.template":["sti"],"application/vnd.sun.xml.math":["sxm"],"application/vnd.sun.xml.writer":["sxw"],"application/vnd.sun.xml.writer.global":["sxg"],"application/vnd.sun.xml.writer.template":["stw"],"application/vnd.sus-calendar":["sus","susp"],"application/vnd.svd":["svd"],"application/vnd.symbian.install":["sis","sisx"],"application/vnd.syncml+xml":["xsm"],"application/vnd.syncml.dm+wbxml":["bdm"],"application/vnd.syncml.dm+xml":["xdm"],"application/vnd.syncml.dmddf+xml":["ddf"],"application/vnd.tao.intent-module-archive":["tao"],"application/vnd.tcpdump.pcap":["pcap","cap","dmp"],"application/vnd.tmobile-livetv":["tmo"],"application/vnd.trid.tpt":["tpt"],"application/vnd.triscape.mxs":["mxs"],"application/vnd.trueapp":["tra"],"application/vnd.ufdl":["ufd","ufdl"],"application/vnd.uiq.theme":["utz"],"application/vnd.umajin":["umj"],"application/vnd.unity":["unityweb"],"application/vnd.uoml+xml":["uoml"],"application/vnd.vcx":["vcx"],"application/vnd.visio":["vsd","vst","vss","vsw"],"application/vnd.visionary":["vis"],"application/vnd.vsf":["vsf"],"application/vnd.wap.wbxml":["wbxml"],"application/vnd.wap.wmlc":["wmlc"],"application/vnd.wap.wmlscriptc":["wmlsc"],"application/vnd.webturbo":["wtb"],"application/vnd.wolfram.player":["nbp"],"application/vnd.wordperfect":["wpd"],"application/vnd.wqd":["wqd"],"application/vnd.wt.stf":["stf"],"application/vnd.xara":["xar"],"application/vnd.xfdl":["xfdl"],"application/vnd.yamaha.hv-dic":["hvd"],"application/vnd.yamaha.hv-script":["hvs"],"application/vnd.yamaha.hv-voice":["hvp"],"application/vnd.yamaha.openscoreformat":["osf"],"application/vnd.yamaha.openscoreformat.osfpvg+xml":["osfpvg"],"application/vnd.yamaha.smaf-audio":["saf"],"application/vnd.yamaha.smaf-phrase":["spf"],"application/vnd.yellowriver-custom-menu":["cmp"],"application/vnd.zul":["zir","zirz"],"application/vnd.zzazz.deck+xml":["zaz"],"application/x-7z-compressed":["7z"],"application/x-abiword":["abw"],"application/x-ace-compressed":["ace"],"application/x-apple-diskimage":["*dmg"],"application/x-arj":["arj"],"application/x-authorware-bin":["aab","x32","u32","vox"],"application/x-authorware-map":["aam"],"application/x-authorware-seg":["aas"],"application/x-bcpio":["bcpio"],"application/x-bdoc":["*bdoc"],"application/x-bittorrent":["torrent"],"application/x-blorb":["blb","blorb"],"application/x-bzip":["bz"],"application/x-bzip2":["bz2","boz"],"application/x-cbr":["cbr","cba","cbt","cbz","cb7"],"application/x-cdlink":["vcd"],"application/x-cfs-compressed":["cfs"],"application/x-chat":["chat"],"application/x-chess-pgn":["pgn"],"application/x-chrome-extension":["crx"],"application/x-cocoa":["cco"],"application/x-conference":["nsc"],"application/x-cpio":["cpio"],"application/x-csh":["csh"],"application/x-debian-package":["*deb","udeb"],"application/x-dgc-compressed":["dgc"],"application/x-director":["dir","dcr","dxr","cst","cct","cxt","w3d","fgd","swa"],"application/x-doom":["wad"],"application/x-dtbncx+xml":["ncx"],"application/x-dtbook+xml":["dtb"],"application/x-dtbresource+xml":["res"],"application/x-dvi":["dvi"],"application/x-envoy":["evy"],"application/x-eva":["eva"],"application/x-font-bdf":["bdf"],"application/x-font-ghostscript":["gsf"],"application/x-font-linux-psf":["psf"],"application/x-font-pcf":["pcf"],"application/x-font-snf":["snf"],"application/x-font-type1":["pfa","pfb","pfm","afm"],"application/x-freearc":["arc"],"application/x-futuresplash":["spl"],"application/x-gca-compressed":["gca"],"application/x-glulx":["ulx"],"application/x-gnumeric":["gnumeric"],"application/x-gramps-xml":["gramps"],"application/x-gtar":["gtar"],"application/x-hdf":["hdf"],"application/x-httpd-php":["php"],"application/x-install-instructions":["install"],"application/x-iso9660-image":["*iso"],"application/x-java-archive-diff":["jardiff"],"application/x-java-jnlp-file":["jnlp"],"application/x-keepass2":["kdbx"],"application/x-latex":["latex"],"application/x-lua-bytecode":["luac"],"application/x-lzh-compressed":["lzh","lha"],"application/x-makeself":["run"],"application/x-mie":["mie"],"application/x-mobipocket-ebook":["prc","mobi"],"application/x-ms-application":["application"],"application/x-ms-shortcut":["lnk"],"application/x-ms-wmd":["wmd"],"application/x-ms-wmz":["wmz"],"application/x-ms-xbap":["xbap"],"application/x-msaccess":["mdb"],"application/x-msbinder":["obd"],"application/x-mscardfile":["crd"],"application/x-msclip":["clp"],"application/x-msdos-program":["*exe"],"application/x-msdownload":["*exe","*dll","com","bat","*msi"],"application/x-msmediaview":["mvb","m13","m14"],"application/x-msmetafile":["*wmf","*wmz","*emf","emz"],"application/x-msmoney":["mny"],"application/x-mspublisher":["pub"],"application/x-msschedule":["scd"],"application/x-msterminal":["trm"],"application/x-mswrite":["wri"],"application/x-netcdf":["nc","cdf"],"application/x-ns-proxy-autoconfig":["pac"],"application/x-nzb":["nzb"],"application/x-perl":["pl","pm"],"application/x-pilot":["*prc","*pdb"],"application/x-pkcs12":["p12","pfx"],"application/x-pkcs7-certificates":["p7b","spc"],"application/x-pkcs7-certreqresp":["p7r"],"application/x-rar-compressed":["rar"],"application/x-redhat-package-manager":["rpm"],"application/x-research-info-systems":["ris"],"application/x-sea":["sea"],"application/x-sh":["sh"],"application/x-shar":["shar"],"application/x-shockwave-flash":["swf"],"application/x-silverlight-app":["xap"],"application/x-sql":["sql"],"application/x-stuffit":["sit"],"application/x-stuffitx":["sitx"],"application/x-subrip":["srt"],"application/x-sv4cpio":["sv4cpio"],"application/x-sv4crc":["sv4crc"],"application/x-t3vm-image":["t3"],"application/x-tads":["gam"],"application/x-tar":["tar"],"application/x-tcl":["tcl","tk"],"application/x-tex":["tex"],"application/x-tex-tfm":["tfm"],"application/x-texinfo":["texinfo","texi"],"application/x-tgif":["*obj"],"application/x-ustar":["ustar"],"application/x-virtualbox-hdd":["hdd"],"application/x-virtualbox-ova":["ova"],"application/x-virtualbox-ovf":["ovf"],"application/x-virtualbox-vbox":["vbox"],"application/x-virtualbox-vbox-extpack":["vbox-extpack"],"application/x-virtualbox-vdi":["vdi"],"application/x-virtualbox-vhd":["vhd"],"application/x-virtualbox-vmdk":["vmdk"],"application/x-wais-source":["src"],"application/x-web-app-manifest+json":["webapp"],"application/x-x509-ca-cert":["der","crt","pem"],"application/x-xfig":["fig"],"application/x-xliff+xml":["*xlf"],"application/x-xpinstall":["xpi"],"application/x-xz":["xz"],"application/x-zmachine":["z1","z2","z3","z4","z5","z6","z7","z8"],"audio/vnd.dece.audio":["uva","uvva"],"audio/vnd.digital-winds":["eol"],"audio/vnd.dra":["dra"],"audio/vnd.dts":["dts"],"audio/vnd.dts.hd":["dtshd"],"audio/vnd.lucent.voice":["lvp"],"audio/vnd.ms-playready.media.pya":["pya"],"audio/vnd.nuera.ecelp4800":["ecelp4800"],"audio/vnd.nuera.ecelp7470":["ecelp7470"],"audio/vnd.nuera.ecelp9600":["ecelp9600"],"audio/vnd.rip":["rip"],"audio/x-aac":["aac"],"audio/x-aiff":["aif","aiff","aifc"],"audio/x-caf":["caf"],"audio/x-flac":["flac"],"audio/x-m4a":["*m4a"],"audio/x-matroska":["mka"],"audio/x-mpegurl":["m3u"],"audio/x-ms-wax":["wax"],"audio/x-ms-wma":["wma"],"audio/x-pn-realaudio":["ram","ra"],"audio/x-pn-realaudio-plugin":["rmp"],"audio/x-realaudio":["*ra"],"audio/x-wav":["*wav"],"chemical/x-cdx":["cdx"],"chemical/x-cif":["cif"],"chemical/x-cmdf":["cmdf"],"chemical/x-cml":["cml"],"chemical/x-csml":["csml"],"chemical/x-xyz":["xyz"],"image/prs.btif":["btif"],"image/prs.pti":["pti"],"image/vnd.adobe.photoshop":["psd"],"image/vnd.airzip.accelerator.azv":["azv"],"image/vnd.dece.graphic":["uvi","uvvi","uvg","uvvg"],"image/vnd.djvu":["djvu","djv"],"image/vnd.dvb.subtitle":["*sub"],"image/vnd.dwg":["dwg"],"image/vnd.dxf":["dxf"],"image/vnd.fastbidsheet":["fbs"],"image/vnd.fpx":["fpx"],"image/vnd.fst":["fst"],"image/vnd.fujixerox.edmics-mmr":["mmr"],"image/vnd.fujixerox.edmics-rlc":["rlc"],"image/vnd.microsoft.icon":["ico"],"image/vnd.ms-dds":["dds"],"image/vnd.ms-modi":["mdi"],"image/vnd.ms-photo":["wdp"],"image/vnd.net-fpx":["npx"],"image/vnd.tencent.tap":["tap"],"image/vnd.valve.source.texture":["vtf"],"image/vnd.wap.wbmp":["wbmp"],"image/vnd.xiff":["xif"],"image/vnd.zbrush.pcx":["pcx"],"image/x-3ds":["3ds"],"image/x-cmu-raster":["ras"],"image/x-cmx":["cmx"],"image/x-freehand":["fh","fhc","fh4","fh5","fh7"],"image/x-icon":["*ico"],"image/x-jng":["jng"],"image/x-mrsid-image":["sid"],"image/x-ms-bmp":["*bmp"],"image/x-pcx":["*pcx"],"image/x-pict":["pic","pct"],"image/x-portable-anymap":["pnm"],"image/x-portable-bitmap":["pbm"],"image/x-portable-graymap":["pgm"],"image/x-portable-pixmap":["ppm"],"image/x-rgb":["rgb"],"image/x-tga":["tga"],"image/x-xbitmap":["xbm"],"image/x-xpixmap":["xpm"],"image/x-xwindowdump":["xwd"],"message/vnd.wfa.wsc":["wsc"],"model/vnd.collada+xml":["dae"],"model/vnd.dwf":["dwf"],"model/vnd.gdl":["gdl"],"model/vnd.gtw":["gtw"],"model/vnd.mts":["mts"],"model/vnd.opengex":["ogex"],"model/vnd.parasolid.transmit.binary":["x_b"],"model/vnd.parasolid.transmit.text":["x_t"],"model/vnd.usdz+zip":["usdz"],"model/vnd.valve.source.compiled-map":["bsp"],"model/vnd.vtu":["vtu"],"text/prs.lines.tag":["dsc"],"text/vnd.curl":["curl"],"text/vnd.curl.dcurl":["dcurl"],"text/vnd.curl.mcurl":["mcurl"],"text/vnd.curl.scurl":["scurl"],"text/vnd.dvb.subtitle":["sub"],"text/vnd.fly":["fly"],"text/vnd.fmi.flexstor":["flx"],"text/vnd.graphviz":["gv"],"text/vnd.in3d.3dml":["3dml"],"text/vnd.in3d.spot":["spot"],"text/vnd.sun.j2me.app-descriptor":["jad"],"text/vnd.wap.wml":["wml"],"text/vnd.wap.wmlscript":["wmls"],"text/x-asm":["s","asm"],"text/x-c":["c","cc","cxx","cpp","h","hh","dic"],"text/x-component":["htc"],"text/x-fortran":["f","for","f77","f90"],"text/x-handlebars-template":["hbs"],"text/x-java-source":["java"],"text/x-lua":["lua"],"text/x-markdown":["mkd"],"text/x-nfo":["nfo"],"text/x-opml":["opml"],"text/x-org":["*org"],"text/x-pascal":["p","pas"],"text/x-processing":["pde"],"text/x-sass":["sass"],"text/x-scss":["scss"],"text/x-setext":["etx"],"text/x-sfv":["sfv"],"text/x-suse-ymp":["ymp"],"text/x-uuencode":["uu"],"text/x-vcalendar":["vcs"],"text/x-vcard":["vcf"],"video/vnd.dece.hd":["uvh","uvvh"],"video/vnd.dece.mobile":["uvm","uvvm"],"video/vnd.dece.pd":["uvp","uvvp"],"video/vnd.dece.sd":["uvs","uvvs"],"video/vnd.dece.video":["uvv","uvvv"],"video/vnd.dvb.file":["dvb"],"video/vnd.fvt":["fvt"],"video/vnd.mpegurl":["mxu","m4u"],"video/vnd.ms-playready.media.pyv":["pyv"],"video/vnd.uvvu.mp4":["uvu","uvvu"],"video/vnd.vivo":["viv"],"video/x-f4v":["f4v"],"video/x-fli":["fli"],"video/x-flv":["flv"],"video/x-m4v":["m4v"],"video/x-matroska":["mkv","mk3d","mks"],"video/x-mng":["mng"],"video/x-ms-asf":["asf","asx"],"video/x-ms-vob":["vob"],"video/x-ms-wm":["wm"],"video/x-ms-wmv":["wmv"],"video/x-ms-wmx":["wmx"],"video/x-ms-wvx":["wvx"],"video/x-msvideo":["avi"],"video/x-sgi-movie":["movie"],"video/x-smv":["smv"],"x-conference/x-cooltalk":["ice"]}; + +/***/ }), + +/***/ 70645: +/***/ ((module) => { + +module.exports = {"application/andrew-inset":["ez"],"application/applixware":["aw"],"application/atom+xml":["atom"],"application/atomcat+xml":["atomcat"],"application/atomdeleted+xml":["atomdeleted"],"application/atomsvc+xml":["atomsvc"],"application/atsc-dwd+xml":["dwd"],"application/atsc-held+xml":["held"],"application/atsc-rsat+xml":["rsat"],"application/bdoc":["bdoc"],"application/calendar+xml":["xcs"],"application/ccxml+xml":["ccxml"],"application/cdfx+xml":["cdfx"],"application/cdmi-capability":["cdmia"],"application/cdmi-container":["cdmic"],"application/cdmi-domain":["cdmid"],"application/cdmi-object":["cdmio"],"application/cdmi-queue":["cdmiq"],"application/cu-seeme":["cu"],"application/dash+xml":["mpd"],"application/davmount+xml":["davmount"],"application/docbook+xml":["dbk"],"application/dssc+der":["dssc"],"application/dssc+xml":["xdssc"],"application/ecmascript":["ecma","es"],"application/emma+xml":["emma"],"application/emotionml+xml":["emotionml"],"application/epub+zip":["epub"],"application/exi":["exi"],"application/fdt+xml":["fdt"],"application/font-tdpfr":["pfr"],"application/geo+json":["geojson"],"application/gml+xml":["gml"],"application/gpx+xml":["gpx"],"application/gxf":["gxf"],"application/gzip":["gz"],"application/hjson":["hjson"],"application/hyperstudio":["stk"],"application/inkml+xml":["ink","inkml"],"application/ipfix":["ipfix"],"application/its+xml":["its"],"application/java-archive":["jar","war","ear"],"application/java-serialized-object":["ser"],"application/java-vm":["class"],"application/javascript":["js","mjs"],"application/json":["json","map"],"application/json5":["json5"],"application/jsonml+json":["jsonml"],"application/ld+json":["jsonld"],"application/lgr+xml":["lgr"],"application/lost+xml":["lostxml"],"application/mac-binhex40":["hqx"],"application/mac-compactpro":["cpt"],"application/mads+xml":["mads"],"application/manifest+json":["webmanifest"],"application/marc":["mrc"],"application/marcxml+xml":["mrcx"],"application/mathematica":["ma","nb","mb"],"application/mathml+xml":["mathml"],"application/mbox":["mbox"],"application/mediaservercontrol+xml":["mscml"],"application/metalink+xml":["metalink"],"application/metalink4+xml":["meta4"],"application/mets+xml":["mets"],"application/mmt-aei+xml":["maei"],"application/mmt-usd+xml":["musd"],"application/mods+xml":["mods"],"application/mp21":["m21","mp21"],"application/mp4":["mp4s","m4p"],"application/mrb-consumer+xml":["*xdf"],"application/mrb-publish+xml":["*xdf"],"application/msword":["doc","dot"],"application/mxf":["mxf"],"application/n-quads":["nq"],"application/n-triples":["nt"],"application/node":["cjs"],"application/octet-stream":["bin","dms","lrf","mar","so","dist","distz","pkg","bpk","dump","elc","deploy","exe","dll","deb","dmg","iso","img","msi","msp","msm","buffer"],"application/oda":["oda"],"application/oebps-package+xml":["opf"],"application/ogg":["ogx"],"application/omdoc+xml":["omdoc"],"application/onenote":["onetoc","onetoc2","onetmp","onepkg"],"application/oxps":["oxps"],"application/p2p-overlay+xml":["relo"],"application/patch-ops-error+xml":["*xer"],"application/pdf":["pdf"],"application/pgp-encrypted":["pgp"],"application/pgp-signature":["asc","sig"],"application/pics-rules":["prf"],"application/pkcs10":["p10"],"application/pkcs7-mime":["p7m","p7c"],"application/pkcs7-signature":["p7s"],"application/pkcs8":["p8"],"application/pkix-attr-cert":["ac"],"application/pkix-cert":["cer"],"application/pkix-crl":["crl"],"application/pkix-pkipath":["pkipath"],"application/pkixcmp":["pki"],"application/pls+xml":["pls"],"application/postscript":["ai","eps","ps"],"application/provenance+xml":["provx"],"application/pskc+xml":["pskcxml"],"application/raml+yaml":["raml"],"application/rdf+xml":["rdf","owl"],"application/reginfo+xml":["rif"],"application/relax-ng-compact-syntax":["rnc"],"application/resource-lists+xml":["rl"],"application/resource-lists-diff+xml":["rld"],"application/rls-services+xml":["rs"],"application/route-apd+xml":["rapd"],"application/route-s-tsid+xml":["sls"],"application/route-usd+xml":["rusd"],"application/rpki-ghostbusters":["gbr"],"application/rpki-manifest":["mft"],"application/rpki-roa":["roa"],"application/rsd+xml":["rsd"],"application/rss+xml":["rss"],"application/rtf":["rtf"],"application/sbml+xml":["sbml"],"application/scvp-cv-request":["scq"],"application/scvp-cv-response":["scs"],"application/scvp-vp-request":["spq"],"application/scvp-vp-response":["spp"],"application/sdp":["sdp"],"application/senml+xml":["senmlx"],"application/sensml+xml":["sensmlx"],"application/set-payment-initiation":["setpay"],"application/set-registration-initiation":["setreg"],"application/shf+xml":["shf"],"application/sieve":["siv","sieve"],"application/smil+xml":["smi","smil"],"application/sparql-query":["rq"],"application/sparql-results+xml":["srx"],"application/srgs":["gram"],"application/srgs+xml":["grxml"],"application/sru+xml":["sru"],"application/ssdl+xml":["ssdl"],"application/ssml+xml":["ssml"],"application/swid+xml":["swidtag"],"application/tei+xml":["tei","teicorpus"],"application/thraud+xml":["tfi"],"application/timestamped-data":["tsd"],"application/toml":["toml"],"application/ttml+xml":["ttml"],"application/urc-ressheet+xml":["rsheet"],"application/voicexml+xml":["vxml"],"application/wasm":["wasm"],"application/widget":["wgt"],"application/winhlp":["hlp"],"application/wsdl+xml":["wsdl"],"application/wspolicy+xml":["wspolicy"],"application/xaml+xml":["xaml"],"application/xcap-att+xml":["xav"],"application/xcap-caps+xml":["xca"],"application/xcap-diff+xml":["xdf"],"application/xcap-el+xml":["xel"],"application/xcap-error+xml":["xer"],"application/xcap-ns+xml":["xns"],"application/xenc+xml":["xenc"],"application/xhtml+xml":["xhtml","xht"],"application/xliff+xml":["xlf"],"application/xml":["xml","xsl","xsd","rng"],"application/xml-dtd":["dtd"],"application/xop+xml":["xop"],"application/xproc+xml":["xpl"],"application/xslt+xml":["xslt"],"application/xspf+xml":["xspf"],"application/xv+xml":["mxml","xhvml","xvml","xvm"],"application/yang":["yang"],"application/yin+xml":["yin"],"application/zip":["zip"],"audio/3gpp":["*3gpp"],"audio/adpcm":["adp"],"audio/basic":["au","snd"],"audio/midi":["mid","midi","kar","rmi"],"audio/mobile-xmf":["mxmf"],"audio/mp3":["*mp3"],"audio/mp4":["m4a","mp4a"],"audio/mpeg":["mpga","mp2","mp2a","mp3","m2a","m3a"],"audio/ogg":["oga","ogg","spx"],"audio/s3m":["s3m"],"audio/silk":["sil"],"audio/wav":["wav"],"audio/wave":["*wav"],"audio/webm":["weba"],"audio/xm":["xm"],"font/collection":["ttc"],"font/otf":["otf"],"font/ttf":["ttf"],"font/woff":["woff"],"font/woff2":["woff2"],"image/aces":["exr"],"image/apng":["apng"],"image/bmp":["bmp"],"image/cgm":["cgm"],"image/dicom-rle":["drle"],"image/emf":["emf"],"image/fits":["fits"],"image/g3fax":["g3"],"image/gif":["gif"],"image/heic":["heic"],"image/heic-sequence":["heics"],"image/heif":["heif"],"image/heif-sequence":["heifs"],"image/hej2k":["hej2"],"image/hsj2":["hsj2"],"image/ief":["ief"],"image/jls":["jls"],"image/jp2":["jp2","jpg2"],"image/jpeg":["jpeg","jpg","jpe"],"image/jph":["jph"],"image/jphc":["jhc"],"image/jpm":["jpm"],"image/jpx":["jpx","jpf"],"image/jxr":["jxr"],"image/jxra":["jxra"],"image/jxrs":["jxrs"],"image/jxs":["jxs"],"image/jxsc":["jxsc"],"image/jxsi":["jxsi"],"image/jxss":["jxss"],"image/ktx":["ktx"],"image/png":["png"],"image/sgi":["sgi"],"image/svg+xml":["svg","svgz"],"image/t38":["t38"],"image/tiff":["tif","tiff"],"image/tiff-fx":["tfx"],"image/webp":["webp"],"image/wmf":["wmf"],"message/disposition-notification":["disposition-notification"],"message/global":["u8msg"],"message/global-delivery-status":["u8dsn"],"message/global-disposition-notification":["u8mdn"],"message/global-headers":["u8hdr"],"message/rfc822":["eml","mime"],"model/3mf":["3mf"],"model/gltf+json":["gltf"],"model/gltf-binary":["glb"],"model/iges":["igs","iges"],"model/mesh":["msh","mesh","silo"],"model/mtl":["mtl"],"model/obj":["obj"],"model/stl":["stl"],"model/vrml":["wrl","vrml"],"model/x3d+binary":["*x3db","x3dbz"],"model/x3d+fastinfoset":["x3db"],"model/x3d+vrml":["*x3dv","x3dvz"],"model/x3d+xml":["x3d","x3dz"],"model/x3d-vrml":["x3dv"],"text/cache-manifest":["appcache","manifest"],"text/calendar":["ics","ifb"],"text/coffeescript":["coffee","litcoffee"],"text/css":["css"],"text/csv":["csv"],"text/html":["html","htm","shtml"],"text/jade":["jade"],"text/jsx":["jsx"],"text/less":["less"],"text/markdown":["markdown","md"],"text/mathml":["mml"],"text/mdx":["mdx"],"text/n3":["n3"],"text/plain":["txt","text","conf","def","list","log","in","ini"],"text/richtext":["rtx"],"text/rtf":["*rtf"],"text/sgml":["sgml","sgm"],"text/shex":["shex"],"text/slim":["slim","slm"],"text/stylus":["stylus","styl"],"text/tab-separated-values":["tsv"],"text/troff":["t","tr","roff","man","me","ms"],"text/turtle":["ttl"],"text/uri-list":["uri","uris","urls"],"text/vcard":["vcard"],"text/vtt":["vtt"],"text/xml":["*xml"],"text/yaml":["yaml","yml"],"video/3gpp":["3gp","3gpp"],"video/3gpp2":["3g2"],"video/h261":["h261"],"video/h263":["h263"],"video/h264":["h264"],"video/jpeg":["jpgv"],"video/jpm":["*jpm","jpgm"],"video/mj2":["mj2","mjp2"],"video/mp2t":["ts"],"video/mp4":["mp4","mp4v","mpg4"],"video/mpeg":["mpeg","mpg","mpe","m1v","m2v"],"video/ogg":["ogv"],"video/quicktime":["qt","mov"],"video/webm":["webm"]}; + +/***/ }), + +/***/ 78068: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = minimatch +minimatch.Minimatch = Minimatch + +var path = { sep: '/' } +try { + path = __nccwpck_require__(71017) +} catch (er) {} + +var GLOBSTAR = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {} +var expand = __nccwpck_require__(85034) + +var plTypes = { + '!': { open: '(?:(?!(?:', close: '))[^/]*?)'}, + '?': { open: '(?:', close: ')?' }, + '+': { open: '(?:', close: ')+' }, + '*': { open: '(?:', close: ')*' }, + '@': { open: '(?:', close: ')' } +} + +// any single thing other than / +// don't need to escape / when using new RegExp() +var qmark = '[^/]' + +// * => any number of characters +var star = qmark + '*?' + +// ** when dots are allowed. Anything goes, except .. and . +// not (^ or / followed by one or two dots followed by $ or /), +// followed by anything, any number of times. +var twoStarDot = '(?:(?!(?:\\\/|^)(?:\\.{1,2})($|\\\/)).)*?' + +// not a ^ or / followed by a dot, +// followed by anything, any number of times. +var twoStarNoDot = '(?:(?!(?:\\\/|^)\\.).)*?' + +// characters that need to be escaped in RegExp. +var reSpecials = charSet('().*{}+?[]^$\\!') + +// "abc" -> { a:true, b:true, c:true } +function charSet (s) { + return s.split('').reduce(function (set, c) { + set[c] = true + return set + }, {}) +} + +// normalizes slashes. +var slashSplit = /\/+/ + +minimatch.filter = filter +function filter (pattern, options) { + options = options || {} + return function (p, i, list) { + return minimatch(p, pattern, options) + } +} + +function ext (a, b) { + a = a || {} + b = b || {} + var t = {} + Object.keys(b).forEach(function (k) { + t[k] = b[k] + }) + Object.keys(a).forEach(function (k) { + t[k] = a[k] + }) + return t +} + +minimatch.defaults = function (def) { + if (!def || !Object.keys(def).length) return minimatch + + var orig = minimatch + + var m = function minimatch (p, pattern, options) { + return orig.minimatch(p, pattern, ext(def, options)) + } + + m.Minimatch = function Minimatch (pattern, options) { + return new orig.Minimatch(pattern, ext(def, options)) + } + + return m +} + +Minimatch.defaults = function (def) { + if (!def || !Object.keys(def).length) return Minimatch + return minimatch.defaults(def).Minimatch +} + +function minimatch (p, pattern, options) { + if (typeof pattern !== 'string') { + throw new TypeError('glob pattern string required') + } + + if (!options) options = {} + + // shortcut: comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + return false + } + + // "" only matches "" + if (pattern.trim() === '') return p === '' + + return new Minimatch(pattern, options).match(p) +} + +function Minimatch (pattern, options) { + if (!(this instanceof Minimatch)) { + return new Minimatch(pattern, options) + } + + if (typeof pattern !== 'string') { + throw new TypeError('glob pattern string required') + } + + if (!options) options = {} + pattern = pattern.trim() + + // windows support: need to use /, not \ + if (path.sep !== '/') { + pattern = pattern.split(path.sep).join('/') + } + + this.options = options + this.set = [] + this.pattern = pattern + this.regexp = null + this.negate = false + this.comment = false + this.empty = false + + // make the set of regexps etc. + this.make() +} + +Minimatch.prototype.debug = function () {} + +Minimatch.prototype.make = make +function make () { + // don't do it more than once. + if (this._made) return + + var pattern = this.pattern + var options = this.options + + // empty patterns and comments match nothing. + if (!options.nocomment && pattern.charAt(0) === '#') { + this.comment = true + return + } + if (!pattern) { + this.empty = true + return + } + + // step 1: figure out negation, etc. + this.parseNegate() + + // step 2: expand braces + var set = this.globSet = this.braceExpand() + + if (options.debug) this.debug = console.error + + this.debug(this.pattern, set) + + // step 3: now we have a set, so turn each one into a series of path-portion + // matching patterns. + // These will be regexps, except in the case of "**", which is + // set to the GLOBSTAR object for globstar behavior, + // and will not contain any / characters + set = this.globParts = set.map(function (s) { + return s.split(slashSplit) + }) + + this.debug(this.pattern, set) + + // glob --> regexps + set = set.map(function (s, si, set) { + return s.map(this.parse, this) + }, this) + + this.debug(this.pattern, set) + + // filter out everything that didn't compile properly. + set = set.filter(function (s) { + return s.indexOf(false) === -1 + }) + + this.debug(this.pattern, set) + + this.set = set +} + +Minimatch.prototype.parseNegate = parseNegate +function parseNegate () { + var pattern = this.pattern + var negate = false + var options = this.options + var negateOffset = 0 + + if (options.nonegate) return + + for (var i = 0, l = pattern.length + ; i < l && pattern.charAt(i) === '!' + ; i++) { + negate = !negate + negateOffset++ + } + + if (negateOffset) this.pattern = pattern.substr(negateOffset) + this.negate = negate +} + +// Brace expansion: +// a{b,c}d -> abd acd +// a{b,}c -> abc ac +// a{0..3}d -> a0d a1d a2d a3d +// a{b,c{d,e}f}g -> abg acdfg acefg +// a{b,c}d{e,f}g -> abdeg acdeg abdeg abdfg +// +// Invalid sets are not expanded. +// a{2..}b -> a{2..}b +// a{b}c -> a{b}c +minimatch.braceExpand = function (pattern, options) { + return braceExpand(pattern, options) +} + +Minimatch.prototype.braceExpand = braceExpand + +function braceExpand (pattern, options) { + if (!options) { + if (this instanceof Minimatch) { + options = this.options + } else { + options = {} + } + } + + pattern = typeof pattern === 'undefined' + ? this.pattern : pattern + + if (typeof pattern === 'undefined') { + throw new TypeError('undefined pattern') + } + + if (options.nobrace || + !pattern.match(/\{.*\}/)) { + // shortcut. no need to expand. + return [pattern] + } + + return expand(pattern) +} + +// parse a component of the expanded set. +// At this point, no pattern may contain "/" in it +// so we're going to return a 2d array, where each entry is the full +// pattern, split on '/', and then turned into a regular expression. +// A regexp is made at the end which joins each array with an +// escaped /, and another full one which joins each regexp with |. +// +// Following the lead of Bash 4.1, note that "**" only has special meaning +// when it is the *only* thing in a path portion. Otherwise, any series +// of * is equivalent to a single *. Globstar behavior is enabled by +// default, and can be disabled by setting options.noglobstar. +Minimatch.prototype.parse = parse +var SUBPARSE = {} +function parse (pattern, isSub) { + if (pattern.length > 1024 * 64) { + throw new TypeError('pattern is too long') + } + + var options = this.options + + // shortcuts + if (!options.noglobstar && pattern === '**') return GLOBSTAR + if (pattern === '') return '' + + var re = '' + var hasMagic = !!options.nocase + var escaping = false + // ? => one single character + var patternListStack = [] + var negativeLists = [] + var stateChar + var inClass = false + var reClassStart = -1 + var classStart = -1 + // . and .. never match anything that doesn't start with ., + // even when options.dot is set. + var patternStart = pattern.charAt(0) === '.' ? '' // anything + // not (start or / followed by . or .. followed by / or end) + : options.dot ? '(?!(?:^|\\\/)\\.{1,2}(?:$|\\\/))' + : '(?!\\.)' + var self = this + + function clearStateChar () { + if (stateChar) { + // we had some state-tracking character + // that wasn't consumed by this pass. + switch (stateChar) { + case '*': + re += star + hasMagic = true + break + case '?': + re += qmark + hasMagic = true + break + default: + re += '\\' + stateChar + break + } + self.debug('clearStateChar %j %j', stateChar, re) + stateChar = false + } + } + + for (var i = 0, len = pattern.length, c + ; (i < len) && (c = pattern.charAt(i)) + ; i++) { + this.debug('%s\t%s %s %j', pattern, i, re, c) + + // skip over any that are escaped. + if (escaping && reSpecials[c]) { + re += '\\' + c + escaping = false + continue + } + + switch (c) { + case '/': + // completely not allowed, even escaped. + // Should already be path-split by now. + return false + + case '\\': + clearStateChar() + escaping = true + continue + + // the various stateChar values + // for the "extglob" stuff. + case '?': + case '*': + case '+': + case '@': + case '!': + this.debug('%s\t%s %s %j <-- stateChar', pattern, i, re, c) + + // all of those are literals inside a class, except that + // the glob [!a] means [^a] in regexp + if (inClass) { + this.debug(' in class') + if (c === '!' && i === classStart + 1) c = '^' + re += c + continue + } + + // if we already have a stateChar, then it means + // that there was something like ** or +? in there. + // Handle the stateChar, then proceed with this one. + self.debug('call clearStateChar %j', stateChar) + clearStateChar() + stateChar = c + // if extglob is disabled, then +(asdf|foo) isn't a thing. + // just clear the statechar *now*, rather than even diving into + // the patternList stuff. + if (options.noext) clearStateChar() + continue + + case '(': + if (inClass) { + re += '(' + continue + } + + if (!stateChar) { + re += '\\(' + continue + } + + patternListStack.push({ + type: stateChar, + start: i - 1, + reStart: re.length, + open: plTypes[stateChar].open, + close: plTypes[stateChar].close + }) + // negation is (?:(?!js)[^/]*) + re += stateChar === '!' ? '(?:(?!(?:' : '(?:' + this.debug('plType %j %j', stateChar, re) + stateChar = false + continue + + case ')': + if (inClass || !patternListStack.length) { + re += '\\)' + continue + } + + clearStateChar() + hasMagic = true + var pl = patternListStack.pop() + // negation is (?:(?!js)[^/]*) + // The others are (?:) + re += pl.close + if (pl.type === '!') { + negativeLists.push(pl) + } + pl.reEnd = re.length + continue + + case '|': + if (inClass || !patternListStack.length || escaping) { + re += '\\|' + escaping = false + continue + } + + clearStateChar() + re += '|' + continue + + // these are mostly the same in regexp and glob + case '[': + // swallow any state-tracking char before the [ + clearStateChar() + + if (inClass) { + re += '\\' + c + continue + } + + inClass = true + classStart = i + reClassStart = re.length + re += c + continue + + case ']': + // a right bracket shall lose its special + // meaning and represent itself in + // a bracket expression if it occurs + // first in the list. -- POSIX.2 2.8.3.2 + if (i === classStart + 1 || !inClass) { + re += '\\' + c + escaping = false + continue + } + + // handle the case where we left a class open. + // "[z-a]" is valid, equivalent to "\[z-a\]" + if (inClass) { + // split where the last [ was, make sure we don't have + // an invalid re. if so, re-walk the contents of the + // would-be class to re-translate any characters that + // were passed through as-is + // TODO: It would probably be faster to determine this + // without a try/catch and a new RegExp, but it's tricky + // to do safely. For now, this is safe and works. + var cs = pattern.substring(classStart + 1, i) + try { + RegExp('[' + cs + ']') + } catch (er) { + // not a valid class! + var sp = this.parse(cs, SUBPARSE) + re = re.substr(0, reClassStart) + '\\[' + sp[0] + '\\]' + hasMagic = hasMagic || sp[1] + inClass = false + continue + } + } + + // finish up the class. + hasMagic = true + inClass = false + re += c + continue + + default: + // swallow any state char that wasn't consumed + clearStateChar() + + if (escaping) { + // no need + escaping = false + } else if (reSpecials[c] + && !(c === '^' && inClass)) { + re += '\\' + } + + re += c + + } // switch + } // for + + // handle the case where we left a class open. + // "[abc" is valid, equivalent to "\[abc" + if (inClass) { + // split where the last [ was, and escape it + // this is a huge pita. We now have to re-walk + // the contents of the would-be class to re-translate + // any characters that were passed through as-is + cs = pattern.substr(classStart + 1) + sp = this.parse(cs, SUBPARSE) + re = re.substr(0, reClassStart) + '\\[' + sp[0] + hasMagic = hasMagic || sp[1] + } + + // handle the case where we had a +( thing at the *end* + // of the pattern. + // each pattern list stack adds 3 chars, and we need to go through + // and escape any | chars that were passed through as-is for the regexp. + // Go through and escape them, taking care not to double-escape any + // | chars that were already escaped. + for (pl = patternListStack.pop(); pl; pl = patternListStack.pop()) { + var tail = re.slice(pl.reStart + pl.open.length) + this.debug('setting tail', re, pl) + // maybe some even number of \, then maybe 1 \, followed by a | + tail = tail.replace(/((?:\\{2}){0,64})(\\?)\|/g, function (_, $1, $2) { + if (!$2) { + // the | isn't already escaped, so escape it. + $2 = '\\' + } + + // need to escape all those slashes *again*, without escaping the + // one that we need for escaping the | character. As it works out, + // escaping an even number of slashes can be done by simply repeating + // it exactly after itself. That's why this trick works. + // + // I am sorry that you have to see this. + return $1 + $1 + $2 + '|' + }) + + this.debug('tail=%j\n %s', tail, tail, pl, re) + var t = pl.type === '*' ? star + : pl.type === '?' ? qmark + : '\\' + pl.type + + hasMagic = true + re = re.slice(0, pl.reStart) + t + '\\(' + tail + } + + // handle trailing things that only matter at the very end. + clearStateChar() + if (escaping) { + // trailing \\ + re += '\\\\' + } + + // only need to apply the nodot start if the re starts with + // something that could conceivably capture a dot + var addPatternStart = false + switch (re.charAt(0)) { + case '.': + case '[': + case '(': addPatternStart = true + } + + // Hack to work around lack of negative lookbehind in JS + // A pattern like: *.!(x).!(y|z) needs to ensure that a name + // like 'a.xyz.yz' doesn't match. So, the first negative + // lookahead, has to look ALL the way ahead, to the end of + // the pattern. + for (var n = negativeLists.length - 1; n > -1; n--) { + var nl = negativeLists[n] + + var nlBefore = re.slice(0, nl.reStart) + var nlFirst = re.slice(nl.reStart, nl.reEnd - 8) + var nlLast = re.slice(nl.reEnd - 8, nl.reEnd) + var nlAfter = re.slice(nl.reEnd) + + nlLast += nlAfter + + // Handle nested stuff like *(*.js|!(*.json)), where open parens + // mean that we should *not* include the ) in the bit that is considered + // "after" the negated section. + var openParensBefore = nlBefore.split('(').length - 1 + var cleanAfter = nlAfter + for (i = 0; i < openParensBefore; i++) { + cleanAfter = cleanAfter.replace(/\)[+*?]?/, '') + } + nlAfter = cleanAfter + + var dollar = '' + if (nlAfter === '' && isSub !== SUBPARSE) { + dollar = '$' + } + var newRe = nlBefore + nlFirst + nlAfter + dollar + nlLast + re = newRe + } + + // if the re is not "" at this point, then we need to make sure + // it doesn't match against an empty path part. + // Otherwise a/* will match a/, which it should not. + if (re !== '' && hasMagic) { + re = '(?=.)' + re + } + + if (addPatternStart) { + re = patternStart + re + } + + // parsing just a piece of a larger pattern. + if (isSub === SUBPARSE) { + return [re, hasMagic] + } + + // skip the regexp for non-magical patterns + // unescape anything in it, though, so that it'll be + // an exact match against a file etc. + if (!hasMagic) { + return globUnescape(pattern) + } + + var flags = options.nocase ? 'i' : '' + try { + var regExp = new RegExp('^' + re + '$', flags) + } catch (er) { + // If it was an invalid regular expression, then it can't match + // anything. This trick looks for a character after the end of + // the string, which is of course impossible, except in multi-line + // mode, but it's not a /m regex. + return new RegExp('$.') + } + + regExp._glob = pattern + regExp._src = re + + return regExp +} + +minimatch.makeRe = function (pattern, options) { + return new Minimatch(pattern, options || {}).makeRe() +} + +Minimatch.prototype.makeRe = makeRe +function makeRe () { + if (this.regexp || this.regexp === false) return this.regexp + + // at this point, this.set is a 2d array of partial + // pattern strings, or "**". + // + // It's better to use .match(). This function shouldn't + // be used, really, but it's pretty convenient sometimes, + // when you just want to work with a regex. + var set = this.set + + if (!set.length) { + this.regexp = false + return this.regexp + } + var options = this.options + + var twoStar = options.noglobstar ? star + : options.dot ? twoStarDot + : twoStarNoDot + var flags = options.nocase ? 'i' : '' + + var re = set.map(function (pattern) { + return pattern.map(function (p) { + return (p === GLOBSTAR) ? twoStar + : (typeof p === 'string') ? regExpEscape(p) + : p._src + }).join('\\\/') + }).join('|') + + // must match entire pattern + // ending in a * or ** will make it less strict. + re = '^(?:' + re + ')$' + + // can match anything, as long as it's not this. + if (this.negate) re = '^(?!' + re + ').*$' + + try { + this.regexp = new RegExp(re, flags) + } catch (ex) { + this.regexp = false + } + return this.regexp +} + +minimatch.match = function (list, pattern, options) { + options = options || {} + var mm = new Minimatch(pattern, options) + list = list.filter(function (f) { + return mm.match(f) + }) + if (mm.options.nonull && !list.length) { + list.push(pattern) + } + return list +} + +Minimatch.prototype.match = match +function match (f, partial) { + this.debug('match', f, this.pattern) + // short-circuit in the case of busted things. + // comments, etc. + if (this.comment) return false + if (this.empty) return f === '' + + if (f === '/' && partial) return true + + var options = this.options + + // windows: need to use /, not \ + if (path.sep !== '/') { + f = f.split(path.sep).join('/') + } + + // treat the test path as a set of pathparts. + f = f.split(slashSplit) + this.debug(this.pattern, 'split', f) + + // just ONE of the pattern sets in this.set needs to match + // in order for it to be valid. If negating, then just one + // match means that we have failed. + // Either way, return on the first hit. + + var set = this.set + this.debug(this.pattern, 'set', set) + + // Find the basename of the path by looking for the last non-empty segment + var filename + var i + for (i = f.length - 1; i >= 0; i--) { + filename = f[i] + if (filename) break + } + + for (i = 0; i < set.length; i++) { + var pattern = set[i] + var file = f + if (options.matchBase && pattern.length === 1) { + file = [filename] + } + var hit = this.matchOne(file, pattern, partial) + if (hit) { + if (options.flipNegate) return true + return !this.negate + } + } + + // didn't get any hits. this is success if it's a negative + // pattern, failure otherwise. + if (options.flipNegate) return false + return this.negate +} + +// set partial to true to test if, for example, +// "/a/b" matches the start of "/*/b/*/d" +// Partial means, if you run out of file before you run +// out of pattern, then that's fine, as long as all +// the parts match. +Minimatch.prototype.matchOne = function (file, pattern, partial) { + var options = this.options + + this.debug('matchOne', + { 'this': this, file: file, pattern: pattern }) + + this.debug('matchOne', file.length, pattern.length) + + for (var fi = 0, + pi = 0, + fl = file.length, + pl = pattern.length + ; (fi < fl) && (pi < pl) + ; fi++, pi++) { + this.debug('matchOne loop') + var p = pattern[pi] + var f = file[fi] + + this.debug(pattern, p, f) + + // should be impossible. + // some invalid regexp stuff in the set. + if (p === false) return false + + if (p === GLOBSTAR) { + this.debug('GLOBSTAR', [pattern, p, f]) + + // "**" + // a/**/b/**/c would match the following: + // a/b/x/y/z/c + // a/x/y/z/b/c + // a/b/x/b/x/c + // a/b/c + // To do this, take the rest of the pattern after + // the **, and see if it would match the file remainder. + // If so, return success. + // If not, the ** "swallows" a segment, and try again. + // This is recursively awful. + // + // a/**/b/**/c matching a/b/x/y/z/c + // - a matches a + // - doublestar + // - matchOne(b/x/y/z/c, b/**/c) + // - b matches b + // - doublestar + // - matchOne(x/y/z/c, c) -> no + // - matchOne(y/z/c, c) -> no + // - matchOne(z/c, c) -> no + // - matchOne(c, c) yes, hit + var fr = fi + var pr = pi + 1 + if (pr === pl) { + this.debug('** at the end') + // a ** at the end will just swallow the rest. + // We have found a match. + // however, it will not swallow /.x, unless + // options.dot is set. + // . and .. are *never* matched by **, for explosively + // exponential reasons. + for (; fi < fl; fi++) { + if (file[fi] === '.' || file[fi] === '..' || + (!options.dot && file[fi].charAt(0) === '.')) return false + } + return true + } + + // ok, let's see if we can swallow whatever we can. + while (fr < fl) { + var swallowee = file[fr] + + this.debug('\nglobstar while', file, fr, pattern, pr, swallowee) + + // XXX remove this slice. Just pass the start index. + if (this.matchOne(file.slice(fr), pattern.slice(pr), partial)) { + this.debug('globstar found match!', fr, fl, swallowee) + // found a match. + return true + } else { + // can't swallow "." or ".." ever. + // can only swallow ".foo" when explicitly asked. + if (swallowee === '.' || swallowee === '..' || + (!options.dot && swallowee.charAt(0) === '.')) { + this.debug('dot detected!', file, fr, pattern, pr) + break + } + + // ** swallows a segment, and continue. + this.debug('globstar swallow a segment, and continue') + fr++ + } + } + + // no match was found. + // However, in partial mode, we can't say this is necessarily over. + // If there's more *pattern* left, then + if (partial) { + // ran out of file + this.debug('\n>>> no match, partial?', file, fr, pattern, pr) + if (fr === fl) return true + } + return false + } + + // something other than ** + // non-magic patterns just have to match exactly + // patterns with magic have been turned into regexps. + var hit + if (typeof p === 'string') { + if (options.nocase) { + hit = f.toLowerCase() === p.toLowerCase() + } else { + hit = f === p + } + this.debug('string match', p, f, hit) + } else { + hit = f.match(p) + this.debug('pattern match', p, f, hit) + } + + if (!hit) return false + } + + // Note: ending in / means that we'll get a final "" + // at the end of the pattern. This can only match a + // corresponding "" at the end of the file. + // If the file ends in /, then it can only match a + // a pattern that ends in /, unless the pattern just + // doesn't have any more for it. But, a/b/ should *not* + // match "a/b/*", even though "" matches against the + // [^/]*? pattern, except in partial mode, where it might + // simply not be reached yet. + // However, a/b/ should still satisfy a/* + + // now either we fell off the end of the pattern, or we're done. + if (fi === fl && pi === pl) { + // ran out of pattern and filename at the same time. + // an exact hit! + return true + } else if (fi === fl) { + // ran out of file, but still had pattern left. + // this is ok if we're doing the match as part of + // a glob fs traversal. + return partial + } else if (pi === pl) { + // ran out of pattern, still have file left. + // this is only acceptable if we're on the very last + // empty segment of a file with a trailing slash. + // a/* should match a/b/ + var emptyFileEnd = (fi === fl - 1) && (file[fi] === '') + return emptyFileEnd + } + + // should be unreachable. + throw new Error('wtf?') +} + +// replace stuff like \* with * +function globUnescape (s) { + return s.replace(/\\(.)/g, '$1') +} + +function regExpEscape (s) { + return s.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&') +} + + +/***/ }), + +/***/ 43679: +/***/ ((module) => { + +/** + * Helpers. + */ + +var s = 1000; +var m = s * 60; +var h = m * 60; +var d = h * 24; +var w = d * 7; +var y = d * 365.25; + +/** + * Parse or format the given `val`. + * + * Options: + * + * - `long` verbose formatting [false] + * + * @param {String|Number} val + * @param {Object} [options] + * @throws {Error} throw an error if val is not a non-empty string or a number + * @return {String|Number} + * @api public + */ + +module.exports = function(val, options) { + options = options || {}; + var type = typeof val; + if (type === 'string' && val.length > 0) { + return parse(val); + } else if (type === 'number' && isFinite(val)) { + return options.long ? fmtLong(val) : fmtShort(val); + } + throw new Error( + 'val is not a non-empty string or a valid number. val=' + + JSON.stringify(val) + ); +}; + +/** + * Parse the given `str` and return milliseconds. + * + * @param {String} str + * @return {Number} + * @api private + */ + +function parse(str) { + str = String(str); + if (str.length > 100) { + return; + } + var match = /^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec( + str + ); + if (!match) { + return; + } + var n = parseFloat(match[1]); + var type = (match[2] || 'ms').toLowerCase(); + switch (type) { + case 'years': + case 'year': + case 'yrs': + case 'yr': + case 'y': + return n * y; + case 'weeks': + case 'week': + case 'w': + return n * w; + case 'days': + case 'day': + case 'd': + return n * d; + case 'hours': + case 'hour': + case 'hrs': + case 'hr': + case 'h': + return n * h; + case 'minutes': + case 'minute': + case 'mins': + case 'min': + case 'm': + return n * m; + case 'seconds': + case 'second': + case 'secs': + case 'sec': + case 's': + return n * s; + case 'milliseconds': + case 'millisecond': + case 'msecs': + case 'msec': + case 'ms': + return n; + default: + return undefined; + } +} + +/** + * Short format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtShort(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return Math.round(ms / d) + 'd'; + } + if (msAbs >= h) { + return Math.round(ms / h) + 'h'; + } + if (msAbs >= m) { + return Math.round(ms / m) + 'm'; + } + if (msAbs >= s) { + return Math.round(ms / s) + 's'; + } + return ms + 'ms'; +} + +/** + * Long format for `ms`. + * + * @param {Number} ms + * @return {String} + * @api private + */ + +function fmtLong(ms) { + var msAbs = Math.abs(ms); + if (msAbs >= d) { + return plural(ms, msAbs, d, 'day'); + } + if (msAbs >= h) { + return plural(ms, msAbs, h, 'hour'); + } + if (msAbs >= m) { + return plural(ms, msAbs, m, 'minute'); + } + if (msAbs >= s) { + return plural(ms, msAbs, s, 'second'); + } + return ms + ' ms'; +} + +/** + * Pluralization helper. + */ + +function plural(ms, msAbs, n, name) { + var isPlural = msAbs >= n * 1.5; + return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : ''); +} + + +/***/ }), + +/***/ 75879: +/***/ ((module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ value: true })); + +function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } + +var Stream = _interopDefault(__nccwpck_require__(12781)); +var http = _interopDefault(__nccwpck_require__(13685)); +var Url = _interopDefault(__nccwpck_require__(57310)); +var https = _interopDefault(__nccwpck_require__(95687)); +var zlib = _interopDefault(__nccwpck_require__(59796)); + +// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js + +// fix for "Readable" isn't a named export issue +const Readable = Stream.Readable; + +const BUFFER = Symbol('buffer'); +const TYPE = Symbol('type'); + +class Blob { + constructor() { + this[TYPE] = ''; + + const blobParts = arguments[0]; + const options = arguments[1]; + + const buffers = []; + let size = 0; + + if (blobParts) { + const a = blobParts; + const length = Number(a.length); + for (let i = 0; i < length; i++) { + const element = a[i]; + let buffer; + if (element instanceof Buffer) { + buffer = element; + } else if (ArrayBuffer.isView(element)) { + buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); + } else if (element instanceof ArrayBuffer) { + buffer = Buffer.from(element); + } else if (element instanceof Blob) { + buffer = element[BUFFER]; + } else { + buffer = Buffer.from(typeof element === 'string' ? element : String(element)); + } + size += buffer.length; + buffers.push(buffer); + } + } + + this[BUFFER] = Buffer.concat(buffers); + + let type = options && options.type !== undefined && String(options.type).toLowerCase(); + if (type && !/[^\u0020-\u007E]/.test(type)) { + this[TYPE] = type; + } + } + get size() { + return this[BUFFER].length; + } + get type() { + return this[TYPE]; + } + text() { + return Promise.resolve(this[BUFFER].toString()); + } + arrayBuffer() { + const buf = this[BUFFER]; + const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + return Promise.resolve(ab); + } + stream() { + const readable = new Readable(); + readable._read = function () {}; + readable.push(this[BUFFER]); + readable.push(null); + return readable; + } + toString() { + return '[object Blob]'; + } + slice() { + const size = this.size; + + const start = arguments[0]; + const end = arguments[1]; + let relativeStart, relativeEnd; + if (start === undefined) { + relativeStart = 0; + } else if (start < 0) { + relativeStart = Math.max(size + start, 0); + } else { + relativeStart = Math.min(start, size); + } + if (end === undefined) { + relativeEnd = size; + } else if (end < 0) { + relativeEnd = Math.max(size + end, 0); + } else { + relativeEnd = Math.min(end, size); + } + const span = Math.max(relativeEnd - relativeStart, 0); + + const buffer = this[BUFFER]; + const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); + const blob = new Blob([], { type: arguments[2] }); + blob[BUFFER] = slicedBuffer; + return blob; + } +} + +Object.defineProperties(Blob.prototype, { + size: { enumerable: true }, + type: { enumerable: true }, + slice: { enumerable: true } +}); + +Object.defineProperty(Blob.prototype, Symbol.toStringTag, { + value: 'Blob', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * fetch-error.js + * + * FetchError interface for operational errors + */ + +/** + * Create FetchError instance + * + * @param String message Error message for human + * @param String type Error type for machine + * @param String systemError For Node.js system error + * @return FetchError + */ +function FetchError(message, type, systemError) { + Error.call(this, message); + + this.message = message; + this.type = type; + + // when err.type is `system`, err.code contains system error code + if (systemError) { + this.code = this.errno = systemError.code; + } + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +FetchError.prototype = Object.create(Error.prototype); +FetchError.prototype.constructor = FetchError; +FetchError.prototype.name = 'FetchError'; + +let convert; +try { + convert = (__nccwpck_require__(27557).convert); +} catch (e) {} + +const INTERNALS = Symbol('Body internals'); + +// fix an issue where "PassThrough" isn't a named export for node <10 +const PassThrough = Stream.PassThrough; + +/** + * Body mixin + * + * Ref: https://fetch.spec.whatwg.org/#body + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +function Body(body) { + var _this = this; + + var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, + _ref$size = _ref.size; + + let size = _ref$size === undefined ? 0 : _ref$size; + var _ref$timeout = _ref.timeout; + let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; + + if (body == null) { + // body is undefined or null + body = null; + } else if (isURLSearchParams(body)) { + // body is a URLSearchParams + body = Buffer.from(body.toString()); + } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { + // body is ArrayBuffer + body = Buffer.from(body); + } else if (ArrayBuffer.isView(body)) { + // body is ArrayBufferView + body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); + } else if (body instanceof Stream) ; else { + // none of the above + // coerce to string then buffer + body = Buffer.from(String(body)); + } + this[INTERNALS] = { + body, + disturbed: false, + error: null + }; + this.size = size; + this.timeout = timeout; + + if (body instanceof Stream) { + body.on('error', function (err) { + const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); + _this[INTERNALS].error = error; + }); + } +} + +Body.prototype = { + get body() { + return this[INTERNALS].body; + }, + + get bodyUsed() { + return this[INTERNALS].disturbed; + }, + + /** + * Decode response as ArrayBuffer + * + * @return Promise + */ + arrayBuffer() { + return consumeBody.call(this).then(function (buf) { + return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); + }); + }, + + /** + * Return raw response as Blob + * + * @return Promise + */ + blob() { + let ct = this.headers && this.headers.get('content-type') || ''; + return consumeBody.call(this).then(function (buf) { + return Object.assign( + // Prevent copying + new Blob([], { + type: ct.toLowerCase() + }), { + [BUFFER]: buf + }); + }); + }, + + /** + * Decode response as json + * + * @return Promise + */ + json() { + var _this2 = this; + + return consumeBody.call(this).then(function (buffer) { + try { + return JSON.parse(buffer.toString()); + } catch (err) { + return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); + } + }); + }, + + /** + * Decode response as text + * + * @return Promise + */ + text() { + return consumeBody.call(this).then(function (buffer) { + return buffer.toString(); + }); + }, + + /** + * Decode response as buffer (non-spec api) + * + * @return Promise + */ + buffer() { + return consumeBody.call(this); + }, + + /** + * Decode response as text, while automatically detecting the encoding and + * trying to decode to UTF-8 (non-spec api) + * + * @return Promise + */ + textConverted() { + var _this3 = this; + + return consumeBody.call(this).then(function (buffer) { + return convertBody(buffer, _this3.headers); + }); + } +}; + +// In browsers, all properties are enumerable. +Object.defineProperties(Body.prototype, { + body: { enumerable: true }, + bodyUsed: { enumerable: true }, + arrayBuffer: { enumerable: true }, + blob: { enumerable: true }, + json: { enumerable: true }, + text: { enumerable: true } +}); + +Body.mixIn = function (proto) { + for (const name of Object.getOwnPropertyNames(Body.prototype)) { + // istanbul ignore else: future proof + if (!(name in proto)) { + const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); + Object.defineProperty(proto, name, desc); + } + } +}; + +/** + * Consume and convert an entire Body to a Buffer. + * + * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body + * + * @return Promise + */ +function consumeBody() { + var _this4 = this; + + if (this[INTERNALS].disturbed) { + return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); + } + + this[INTERNALS].disturbed = true; + + if (this[INTERNALS].error) { + return Body.Promise.reject(this[INTERNALS].error); + } + + let body = this.body; + + // body is null + if (body === null) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is blob + if (isBlob(body)) { + body = body.stream(); + } + + // body is buffer + if (Buffer.isBuffer(body)) { + return Body.Promise.resolve(body); + } + + // istanbul ignore if: should never happen + if (!(body instanceof Stream)) { + return Body.Promise.resolve(Buffer.alloc(0)); + } + + // body is stream + // get ready to actually consume the body + let accum = []; + let accumBytes = 0; + let abort = false; + + return new Body.Promise(function (resolve, reject) { + let resTimeout; + + // allow timeout on slow response body + if (_this4.timeout) { + resTimeout = setTimeout(function () { + abort = true; + reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); + }, _this4.timeout); + } + + // handle stream errors + body.on('error', function (err) { + if (err.name === 'AbortError') { + // if the request was aborted, reject with this Error + abort = true; + reject(err); + } else { + // other errors, such as incorrect content-encoding + reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + + body.on('data', function (chunk) { + if (abort || chunk === null) { + return; + } + + if (_this4.size && accumBytes + chunk.length > _this4.size) { + abort = true; + reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); + return; + } + + accumBytes += chunk.length; + accum.push(chunk); + }); + + body.on('end', function () { + if (abort) { + return; + } + + clearTimeout(resTimeout); + + try { + resolve(Buffer.concat(accum, accumBytes)); + } catch (err) { + // handle streams that have accumulated too much data (issue #414) + reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); + } + }); + }); +} + +/** + * Detect buffer encoding and convert to target encoding + * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding + * + * @param Buffer buffer Incoming buffer + * @param String encoding Target encoding + * @return String + */ +function convertBody(buffer, headers) { + if (typeof convert !== 'function') { + throw new Error('The package `encoding` must be installed to use the textConverted() function'); + } + + const ct = headers.get('content-type'); + let charset = 'utf-8'; + let res, str; + + // header + if (ct) { + res = /charset=([^;]*)/i.exec(ct); + } + + // no charset in content type, peek at response body for at most 1024 bytes + str = buffer.slice(0, 1024).toString(); + + // html5 + if (!res && str) { + res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; + + this[MAP] = Object.create(null); + + if (init instanceof Headers) { + const rawHeaders = init.raw(); + const headerNames = Object.keys(rawHeaders); + + for (const headerName of headerNames) { + for (const value of rawHeaders[headerName]) { + this.append(headerName, value); + } + } + + return; + } + + // We don't worry about converting prop to ByteString here as append() + // will handle it. + if (init == null) ; else if (typeof init === 'object') { + const method = init[Symbol.iterator]; + if (method != null) { + if (typeof method !== 'function') { + throw new TypeError('Header pairs must be iterable'); + } + + // sequence> + // Note: per spec we have to first exhaust the lists then process them + const pairs = []; + for (const pair of init) { + if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { + throw new TypeError('Each header pair must be iterable'); + } + pairs.push(Array.from(pair)); + } + + for (const pair of pairs) { + if (pair.length !== 2) { + throw new TypeError('Each header pair must be a name/value tuple'); + } + this.append(pair[0], pair[1]); + } + } else { + // record + for (const key of Object.keys(init)) { + const value = init[key]; + this.append(key, value); + } + } + } else { + throw new TypeError('Provided initializer must be an object'); + } + } + + /** + * Return combined header value given name + * + * @param String name Header name + * @return Mixed + */ + get(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key === undefined) { + return null; + } + + return this[MAP][key].join(', '); + } + + /** + * Iterate over all headers + * + * @param Function callback Executed for each item with parameters (value, name, thisArg) + * @param Boolean thisArg `this` context for callback function + * @return Void + */ + forEach(callback) { + let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; + + let pairs = getHeaders(this); + let i = 0; + while (i < pairs.length) { + var _pairs$i = pairs[i]; + const name = _pairs$i[0], + value = _pairs$i[1]; + + callback.call(thisArg, value, name, this); + pairs = getHeaders(this); + i++; + } + } + + /** + * Overwrite header values given name + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + set(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + this[MAP][key !== undefined ? key : name] = [value]; + } + + /** + * Append a value onto existing header + * + * @param String name Header name + * @param String value Header value + * @return Void + */ + append(name, value) { + name = `${name}`; + value = `${value}`; + validateName(name); + validateValue(value); + const key = find(this[MAP], name); + if (key !== undefined) { + this[MAP][key].push(value); + } else { + this[MAP][name] = [value]; + } + } + + /** + * Check for header name existence + * + * @param String name Header name + * @return Boolean + */ + has(name) { + name = `${name}`; + validateName(name); + return find(this[MAP], name) !== undefined; + } + + /** + * Delete all header values given name + * + * @param String name Header name + * @return Void + */ + delete(name) { + name = `${name}`; + validateName(name); + const key = find(this[MAP], name); + if (key !== undefined) { + delete this[MAP][key]; + } + } + + /** + * Return raw headers (non-spec api) + * + * @return Object + */ + raw() { + return this[MAP]; + } + + /** + * Get an iterator on keys. + * + * @return Iterator + */ + keys() { + return createHeadersIterator(this, 'key'); + } + + /** + * Get an iterator on values. + * + * @return Iterator + */ + values() { + return createHeadersIterator(this, 'value'); + } + + /** + * Get an iterator on entries. + * + * This is the default iterator of the Headers object. + * + * @return Iterator + */ + [Symbol.iterator]() { + return createHeadersIterator(this, 'key+value'); + } +} +Headers.prototype.entries = Headers.prototype[Symbol.iterator]; + +Object.defineProperty(Headers.prototype, Symbol.toStringTag, { + value: 'Headers', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Headers.prototype, { + get: { enumerable: true }, + forEach: { enumerable: true }, + set: { enumerable: true }, + append: { enumerable: true }, + has: { enumerable: true }, + delete: { enumerable: true }, + keys: { enumerable: true }, + values: { enumerable: true }, + entries: { enumerable: true } +}); + +function getHeaders(headers) { + let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; + + const keys = Object.keys(headers[MAP]).sort(); + return keys.map(kind === 'key' ? function (k) { + return k.toLowerCase(); + } : kind === 'value' ? function (k) { + return headers[MAP][k].join(', '); + } : function (k) { + return [k.toLowerCase(), headers[MAP][k].join(', ')]; + }); +} + +const INTERNAL = Symbol('internal'); + +function createHeadersIterator(target, kind) { + const iterator = Object.create(HeadersIteratorPrototype); + iterator[INTERNAL] = { + target, + kind, + index: 0 + }; + return iterator; +} + +const HeadersIteratorPrototype = Object.setPrototypeOf({ + next() { + // istanbul ignore if + if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { + throw new TypeError('Value of `this` is not a HeadersIterator'); + } + + var _INTERNAL = this[INTERNAL]; + const target = _INTERNAL.target, + kind = _INTERNAL.kind, + index = _INTERNAL.index; + + const values = getHeaders(target, kind); + const len = values.length; + if (index >= len) { + return { + value: undefined, + done: true + }; + } + + this[INTERNAL].index = index + 1; + + return { + value: values[index], + done: false + }; + } +}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); + +Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { + value: 'HeadersIterator', + writable: false, + enumerable: false, + configurable: true +}); + +/** + * Export the Headers object in a form that Node.js can consume. + * + * @param Headers headers + * @return Object + */ +function exportNodeCompatibleHeaders(headers) { + const obj = Object.assign({ __proto__: null }, headers[MAP]); + + // http.request() only supports string as Host header. This hack makes + // specifying custom Host header possible. + const hostHeaderKey = find(headers[MAP], 'Host'); + if (hostHeaderKey !== undefined) { + obj[hostHeaderKey] = obj[hostHeaderKey][0]; + } + + return obj; +} + +/** + * Create a Headers object from an object of headers, ignoring those that do + * not conform to HTTP grammar productions. + * + * @param Object obj Object of headers + * @return Headers + */ +function createHeadersLenient(obj) { + const headers = new Headers(); + for (const name of Object.keys(obj)) { + if (invalidTokenRegex.test(name)) { + continue; + } + if (Array.isArray(obj[name])) { + for (const val of obj[name]) { + if (invalidHeaderCharRegex.test(val)) { + continue; + } + if (headers[MAP][name] === undefined) { + headers[MAP][name] = [val]; + } else { + headers[MAP][name].push(val); + } + } + } else if (!invalidHeaderCharRegex.test(obj[name])) { + headers[MAP][name] = [obj[name]]; + } + } + return headers; +} + +const INTERNALS$1 = Symbol('Response internals'); + +// fix an issue where "STATUS_CODES" aren't a named export for node <10 +const STATUS_CODES = http.STATUS_CODES; + +/** + * Response class + * + * @param Stream body Readable stream + * @param Object opts Response options + * @return Void + */ +class Response { + constructor() { + let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; + let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + Body.call(this, body, opts); + + const status = opts.status || 200; + const headers = new Headers(opts.headers); + + if (body != null && !headers.has('Content-Type')) { + const contentType = extractContentType(body); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + this[INTERNALS$1] = { + url: opts.url, + status, + statusText: opts.statusText || STATUS_CODES[status], + headers, + counter: opts.counter + }; + } + + get url() { + return this[INTERNALS$1].url || ''; + } + + get status() { + return this[INTERNALS$1].status; + } + + /** + * Convenience property representing if the request ended normally + */ + get ok() { + return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; + } + + get redirected() { + return this[INTERNALS$1].counter > 0; + } + + get statusText() { + return this[INTERNALS$1].statusText; + } + + get headers() { + return this[INTERNALS$1].headers; + } + + /** + * Clone this response + * + * @return Response + */ + clone() { + return new Response(clone(this), { + url: this.url, + status: this.status, + statusText: this.statusText, + headers: this.headers, + ok: this.ok, + redirected: this.redirected + }); + } +} + +Body.mixIn(Response.prototype); + +Object.defineProperties(Response.prototype, { + url: { enumerable: true }, + status: { enumerable: true }, + ok: { enumerable: true }, + redirected: { enumerable: true }, + statusText: { enumerable: true }, + headers: { enumerable: true }, + clone: { enumerable: true } +}); + +Object.defineProperty(Response.prototype, Symbol.toStringTag, { + value: 'Response', + writable: false, + enumerable: false, + configurable: true +}); + +const INTERNALS$2 = Symbol('Request internals'); + +// fix an issue where "format", "parse" aren't a named export for node <10 +const parse_url = Url.parse; +const format_url = Url.format; + +const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; + +/** + * Check if a value is an instance of Request. + * + * @param Mixed input + * @return Boolean + */ +function isRequest(input) { + return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; +} + +function isAbortSignal(signal) { + const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); + return !!(proto && proto.constructor.name === 'AbortSignal'); +} + +/** + * Request class + * + * @param Mixed input Url or Request instance + * @param Object init Custom options + * @return Void + */ +class Request { + constructor(input) { + let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; + + let parsedURL; + + // normalize input + if (!isRequest(input)) { + if (input && input.href) { + // in order to support Node.js' Url objects; though WHATWG's URL objects + // will fall into this branch also (since their `toString()` will return + // `href` property anyway) + parsedURL = parse_url(input.href); + } else { + // coerce input to a string before attempting to parse + parsedURL = parse_url(`${input}`); + } + input = {}; + } else { + parsedURL = parse_url(input.url); + } + + let method = init.method || input.method || 'GET'; + method = method.toUpperCase(); + + if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { + throw new TypeError('Request with GET/HEAD method cannot have body'); + } + + let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; + + Body.call(this, inputBody, { + timeout: init.timeout || input.timeout || 0, + size: init.size || input.size || 0 + }); + + const headers = new Headers(init.headers || input.headers || {}); + + if (inputBody != null && !headers.has('Content-Type')) { + const contentType = extractContentType(inputBody); + if (contentType) { + headers.append('Content-Type', contentType); + } + } + + let signal = isRequest(input) ? input.signal : null; + if ('signal' in init) signal = init.signal; + + if (signal != null && !isAbortSignal(signal)) { + throw new TypeError('Expected signal to be an instanceof AbortSignal'); + } + + this[INTERNALS$2] = { + method, + redirect: init.redirect || input.redirect || 'follow', + headers, + parsedURL, + signal + }; + + // node-fetch-only options + this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; + this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; + this.counter = init.counter || input.counter || 0; + this.agent = init.agent || input.agent; + } + + get method() { + return this[INTERNALS$2].method; + } + + get url() { + return format_url(this[INTERNALS$2].parsedURL); + } + + get headers() { + return this[INTERNALS$2].headers; + } + + get redirect() { + return this[INTERNALS$2].redirect; + } + + get signal() { + return this[INTERNALS$2].signal; + } + + /** + * Clone this request + * + * @return Request + */ + clone() { + return new Request(this); + } +} + +Body.mixIn(Request.prototype); + +Object.defineProperty(Request.prototype, Symbol.toStringTag, { + value: 'Request', + writable: false, + enumerable: false, + configurable: true +}); + +Object.defineProperties(Request.prototype, { + method: { enumerable: true }, + url: { enumerable: true }, + headers: { enumerable: true }, + redirect: { enumerable: true }, + clone: { enumerable: true }, + signal: { enumerable: true } +}); + +/** + * Convert a Request to Node.js http request options. + * + * @param Request A Request instance + * @return Object The options object to be passed to http.request + */ +function getNodeRequestOptions(request) { + const parsedURL = request[INTERNALS$2].parsedURL; + const headers = new Headers(request[INTERNALS$2].headers); + + // fetch step 1.3 + if (!headers.has('Accept')) { + headers.set('Accept', '*/*'); + } + + // Basic fetch + if (!parsedURL.protocol || !parsedURL.hostname) { + throw new TypeError('Only absolute URLs are supported'); + } + + if (!/^https?:$/.test(parsedURL.protocol)) { + throw new TypeError('Only HTTP(S) protocols are supported'); + } + + if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { + throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); + } + + // HTTP-network-or-cache fetch steps 2.4-2.7 + let contentLengthValue = null; + if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { + contentLengthValue = '0'; + } + if (request.body != null) { + const totalBytes = getTotalBytes(request); + if (typeof totalBytes === 'number') { + contentLengthValue = String(totalBytes); + } + } + if (contentLengthValue) { + headers.set('Content-Length', contentLengthValue); + } + + // HTTP-network-or-cache fetch step 2.11 + if (!headers.has('User-Agent')) { + headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); + } + + // HTTP-network-or-cache fetch step 2.15 + if (request.compress && !headers.has('Accept-Encoding')) { + headers.set('Accept-Encoding', 'gzip,deflate'); + } + + let agent = request.agent; + if (typeof agent === 'function') { + agent = agent(parsedURL); + } + + if (!headers.has('Connection') && !agent) { + headers.set('Connection', 'close'); + } + + // HTTP-network fetch step 4.2 + // chunked encoding is handled by Node.js + + return Object.assign({}, parsedURL, { + method: request.method, + headers: exportNodeCompatibleHeaders(headers), + agent + }); +} + +/** + * abort-error.js + * + * AbortError interface for cancelled requests + */ + +/** + * Create AbortError instance + * + * @param String message Error message for human + * @return AbortError + */ +function AbortError(message) { + Error.call(this, message); + + this.type = 'aborted'; + this.message = message; + + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); +} + +AbortError.prototype = Object.create(Error.prototype); +AbortError.prototype.constructor = AbortError; +AbortError.prototype.name = 'AbortError'; + +// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 +const PassThrough$1 = Stream.PassThrough; +const resolve_url = Url.resolve; + +/** + * Fetch function + * + * @param Mixed url Absolute url or Request instance + * @param Object opts Fetch options + * @return Promise + */ +function fetch(url, opts) { + + // allow custom promise + if (!fetch.Promise) { + throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); + } + + Body.Promise = fetch.Promise; + + // wrap http.request into fetch + return new fetch.Promise(function (resolve, reject) { + // build request object + const request = new Request(url, opts); + const options = getNodeRequestOptions(request); + + const send = (options.protocol === 'https:' ? https : http).request; + const signal = request.signal; + + let response = null; + + const abort = function abort() { + let error = new AbortError('The user aborted a request.'); + reject(error); + if (request.body && request.body instanceof Stream.Readable) { + request.body.destroy(error); + } + if (!response || !response.body) return; + response.body.emit('error', error); + }; + + if (signal && signal.aborted) { + abort(); + return; + } + + const abortAndFinalize = function abortAndFinalize() { + abort(); + finalize(); + }; + + // send request + const req = send(options); + let reqTimeout; + + if (signal) { + signal.addEventListener('abort', abortAndFinalize); + } + + function finalize() { + req.abort(); + if (signal) signal.removeEventListener('abort', abortAndFinalize); + clearTimeout(reqTimeout); + } + + if (request.timeout) { + req.once('socket', function (socket) { + reqTimeout = setTimeout(function () { + reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); + finalize(); + }, request.timeout); + }); + } + + req.on('error', function (err) { + reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); + finalize(); + }); + + req.on('response', function (res) { + clearTimeout(reqTimeout); + + const headers = createHeadersLenient(res.headers); + + // HTTP fetch step 5 + if (fetch.isRedirect(res.statusCode)) { + // HTTP fetch step 5.2 + const location = headers.get('Location'); + + // HTTP fetch step 5.3 + const locationURL = location === null ? null : resolve_url(request.url, location); + + // HTTP fetch step 5.5 + switch (request.redirect) { + case 'error': + reject(new FetchError(`redirect mode is set to error: ${request.url}`, 'no-redirect')); + finalize(); + return; + case 'manual': + // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. + if (locationURL !== null) { + // handle corrupted header + try { + headers.set('Location', locationURL); + } catch (err) { + // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request + reject(err); + } + } + break; + case 'follow': + // HTTP-redirect fetch step 2 + if (locationURL === null) { + break; + } + + // HTTP-redirect fetch step 5 + if (request.counter >= request.follow) { + reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 6 (counter increment) + // Create a new Request object. + const requestOpts = { + headers: new Headers(request.headers), + follow: request.follow, + counter: request.counter + 1, + agent: request.agent, + compress: request.compress, + method: request.method, + body: request.body, + signal: request.signal, + timeout: request.timeout + }; + + // HTTP-redirect fetch step 9 + if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { + reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); + finalize(); + return; + } + + // HTTP-redirect fetch step 11 + if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { + requestOpts.method = 'GET'; + requestOpts.body = undefined; + requestOpts.headers.delete('content-length'); + } + + // HTTP-redirect fetch step 15 + resolve(fetch(new Request(locationURL, requestOpts))); + finalize(); + return; + } + } + + // prepare response + res.once('end', function () { + if (signal) signal.removeEventListener('abort', abortAndFinalize); + }); + let body = res.pipe(new PassThrough$1()); + + const response_options = { + url: request.url, + status: res.statusCode, + statusText: res.statusMessage, + headers: headers, + size: request.size, + timeout: request.timeout, + counter: request.counter + }; + + // HTTP-network fetch step 12.1.1.3 + const codings = headers.get('Content-Encoding'); + + // HTTP-network fetch step 12.1.1.4: handle content codings + + // in following scenarios we ignore compression support + // 1. compression support is disabled + // 2. HEAD request + // 3. no Content-Encoding header + // 4. no content response (204) + // 5. content not modified response (304) + if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { + response = new Response(body, response_options); + resolve(response); + return; + } + + // For Node v6+ + // Be less strict when decoding compressed responses, since sometimes + // servers send slightly invalid responses that are still accepted + // by common browsers. + // Always using Z_SYNC_FLUSH is what cURL does. + const zlibOptions = { + flush: zlib.Z_SYNC_FLUSH, + finishFlush: zlib.Z_SYNC_FLUSH + }; + + // for gzip + if (codings == 'gzip' || codings == 'x-gzip') { + body = body.pipe(zlib.createGunzip(zlibOptions)); + response = new Response(body, response_options); + resolve(response); + return; + } + + // for deflate + if (codings == 'deflate' || codings == 'x-deflate') { + // handle the infamous raw deflate response from old servers + // a hack for old IIS and Apache servers + const raw = res.pipe(new PassThrough$1()); + raw.once('data', function (chunk) { + // see http://stackoverflow.com/questions/37519828 + if ((chunk[0] & 0x0F) === 0x08) { + body = body.pipe(zlib.createInflate()); + } else { + body = body.pipe(zlib.createInflateRaw()); + } + response = new Response(body, response_options); + resolve(response); + }); + return; + } + + // for br + if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { + body = body.pipe(zlib.createBrotliDecompress()); + response = new Response(body, response_options); + resolve(response); + return; + } + + // otherwise, use response as-is + response = new Response(body, response_options); + resolve(response); + }); + + writeToStream(req, request); + }); +} +/** + * Redirect code matching + * + * @param Number code Status code + * @return Boolean + */ +fetch.isRedirect = function (code) { + return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; +}; + +// expose Promise +fetch.Promise = global.Promise; + +module.exports = exports = fetch; +Object.defineProperty(exports, "__esModule", ({ value: true })); +exports["default"] = exports; +exports.Headers = Headers; +exports.Request = Request; +exports.Response = Response; +exports.FetchError = FetchError; + + +/***/ }), + +/***/ 28568: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Advanced Encryption Standard (AES) implementation. + * + * This implementation is based on the public domain library 'jscrypto' which + * was written by: + * + * Emily Stark (estark@stanford.edu) + * Mike Hamburg (mhamburg@stanford.edu) + * Dan Boneh (dabo@cs.stanford.edu) + * + * Parts of this code are based on the OpenSSL implementation of AES: + * http://www.openssl.org + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(41298); +__nccwpck_require__(40918); +__nccwpck_require__(21726); + +/* AES API */ +module.exports = forge.aes = forge.aes || {}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * cipher.start({iv: iv}); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('AES-', key); + * + * Creates an AES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * decipher.start({iv: iv}); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as a string of bytes, an array of bytes, + * a byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('AES-', key); + * + * Creates an AES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param key the symmetric key to use. + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.aes.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; + +/** + * Creates a new AES cipher algorithm object. + * + * @param name the name of the algorithm. + * @param mode the mode factory function. + * + * @return the AES algorithm object. + */ +forge.aes.Algorithm = function(name, mode) { + if(!init) { + initialize(); + } + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 16, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._w, inBlock, outBlock, true); + } + } + }); + self._init = false; +}; + +/** + * Initializes this AES algorithm by expanding its key. + * + * @param options the options to use. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. + */ +forge.aes.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; + } + + var key = options.key; + var tmp; + + /* Note: The key may be a string of bytes, an array of bytes, a byte + buffer, or an array of 32-bit integers. If the key is in bytes, then + it must be 16, 24, or 32 bytes in length. If it is in 32-bit + integers, it must be 4, 6, or 8 integers long. */ + + if(typeof key === 'string' && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key) && + (key.length === 16 || key.length === 24 || key.length === 32)) { + // convert key integer array into byte buffer + tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } + } + + // convert key byte buffer into 32-bit integer array + if(!forge.util.isArray(key)) { + tmp = key; + key = []; + + // key lengths of 16, 24, 32 bytes allowed + var len = tmp.length(); + if(len === 16 || len === 24 || len === 32) { + len = len >>> 2; + for(var i = 0; i < len; ++i) { + key.push(tmp.getInt32()); + } + } + } + + // key must be an array of 32-bit integers by now + if(!forge.util.isArray(key) || + !(key.length === 4 || key.length === 6 || key.length === 8)) { + throw new Error('Invalid key parameter.'); + } + + // encryption operation is always used for these modes + var mode = this.mode.name; + var encryptOp = (['CFB', 'OFB', 'CTR', 'GCM'].indexOf(mode) !== -1); + + // do key expansion + this._w = _expandKey(key, options.decrypt && !encryptOp); + this._init = true; +}; + +/** + * Expands a key. Typically only used for testing. + * + * @param key the symmetric key to expand, as an array of 32-bit words. + * @param decrypt true to expand for decryption, false for encryption. + * + * @return the expanded key. + */ +forge.aes._expandKey = function(key, decrypt) { + if(!init) { + initialize(); + } + return _expandKey(key, decrypt); +}; + +/** + * Updates a single block. Typically only used for testing. + * + * @param w the expanded key to use. + * @param input an array of block-size 32-bit words. + * @param output an array of block-size 32-bit words. + * @param decrypt true to decrypt, false to encrypt. + */ +forge.aes._updateBlock = _updateBlock; + +/** Register AES algorithms **/ + +registerAlgorithm('AES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('AES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('AES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('AES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('AES-CTR', forge.cipher.modes.ctr); +registerAlgorithm('AES-GCM', forge.cipher.modes.gcm); + +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.aes.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); +} + +/** AES implementation **/ + +var init = false; // not yet initialized +var Nb = 4; // number of words comprising the state (AES = 4) +var sbox; // non-linear substitution table used in key expansion +var isbox; // inversion of sbox +var rcon; // round constant word array +var mix; // mix-columns table +var imix; // inverse mix-columns table + +/** + * Performs initialization, ie: precomputes tables to optimize for speed. + * + * One way to understand how AES works is to imagine that 'addition' and + * 'multiplication' are interfaces that require certain mathematical + * properties to hold true (ie: they are associative) but they might have + * different implementations and produce different kinds of results ... + * provided that their mathematical properties remain true. AES defines + * its own methods of addition and multiplication but keeps some important + * properties the same, ie: associativity and distributivity. The + * explanation below tries to shed some light on how AES defines addition + * and multiplication of bytes and 32-bit words in order to perform its + * encryption and decryption algorithms. + * + * The basics: + * + * The AES algorithm views bytes as binary representations of polynomials + * that have either 1 or 0 as the coefficients. It defines the addition + * or subtraction of two bytes as the XOR operation. It also defines the + * multiplication of two bytes as a finite field referred to as GF(2^8) + * (Note: 'GF' means "Galois Field" which is a field that contains a finite + * number of elements so GF(2^8) has 256 elements). + * + * This means that any two bytes can be represented as binary polynomials; + * when they multiplied together and modularly reduced by an irreducible + * polynomial of the 8th degree, the results are the field GF(2^8). The + * specific irreducible polynomial that AES uses in hexadecimal is 0x11b. + * This multiplication is associative with 0x01 as the identity: + * + * (b * 0x01 = GF(b, 0x01) = b). + * + * The operation GF(b, 0x02) can be performed at the byte level by left + * shifting b once and then XOR'ing it (to perform the modular reduction) + * with 0x11b if b is >= 128. Repeated application of the multiplication + * of 0x02 can be used to implement the multiplication of any two bytes. + * + * For instance, multiplying 0x57 and 0x13, denoted as GF(0x57, 0x13), can + * be performed by factoring 0x13 into 0x01, 0x02, and 0x10. Then these + * factors can each be multiplied by 0x57 and then added together. To do + * the multiplication, values for 0x57 multiplied by each of these 3 factors + * can be precomputed and stored in a table. To add them, the values from + * the table are XOR'd together. + * + * AES also defines addition and multiplication of words, that is 4-byte + * numbers represented as polynomials of 3 degrees where the coefficients + * are the values of the bytes. + * + * The word [a0, a1, a2, a3] is a polynomial a3x^3 + a2x^2 + a1x + a0. + * + * Addition is performed by XOR'ing like powers of x. Multiplication + * is performed in two steps, the first is an algebriac expansion as + * you would do normally (where addition is XOR). But the result is + * a polynomial larger than 3 degrees and thus it cannot fit in a word. So + * next the result is modularly reduced by an AES-specific polynomial of + * degree 4 which will always produce a polynomial of less than 4 degrees + * such that it will fit in a word. In AES, this polynomial is x^4 + 1. + * + * The modular product of two polynomials 'a' and 'b' is thus: + * + * d(x) = d3x^3 + d2x^2 + d1x + d0 + * with + * d0 = GF(a0, b0) ^ GF(a3, b1) ^ GF(a2, b2) ^ GF(a1, b3) + * d1 = GF(a1, b0) ^ GF(a0, b1) ^ GF(a3, b2) ^ GF(a2, b3) + * d2 = GF(a2, b0) ^ GF(a1, b1) ^ GF(a0, b2) ^ GF(a3, b3) + * d3 = GF(a3, b0) ^ GF(a2, b1) ^ GF(a1, b2) ^ GF(a0, b3) + * + * As a matrix: + * + * [d0] = [a0 a3 a2 a1][b0] + * [d1] [a1 a0 a3 a2][b1] + * [d2] [a2 a1 a0 a3][b2] + * [d3] [a3 a2 a1 a0][b3] + * + * Special polynomials defined by AES (0x02 == {02}): + * a(x) = {03}x^3 + {01}x^2 + {01}x + {02} + * a^-1(x) = {0b}x^3 + {0d}x^2 + {09}x + {0e}. + * + * These polynomials are used in the MixColumns() and InverseMixColumns() + * operations, respectively, to cause each element in the state to affect + * the output (referred to as diffusing). + * + * RotWord() uses: a0 = a1 = a2 = {00} and a3 = {01}, which is the + * polynomial x3. + * + * The ShiftRows() method modifies the last 3 rows in the state (where + * the state is 4 words with 4 bytes per word) by shifting bytes cyclically. + * The 1st byte in the second row is moved to the end of the row. The 1st + * and 2nd bytes in the third row are moved to the end of the row. The 1st, + * 2nd, and 3rd bytes are moved in the fourth row. + * + * More details on how AES arithmetic works: + * + * In the polynomial representation of binary numbers, XOR performs addition + * and subtraction and multiplication in GF(2^8) denoted as GF(a, b) + * corresponds with the multiplication of polynomials modulo an irreducible + * polynomial of degree 8. In other words, for AES, GF(a, b) will multiply + * polynomial 'a' with polynomial 'b' and then do a modular reduction by + * an AES-specific irreducible polynomial of degree 8. + * + * A polynomial is irreducible if its only divisors are one and itself. For + * the AES algorithm, this irreducible polynomial is: + * + * m(x) = x^8 + x^4 + x^3 + x + 1, + * + * or {01}{1b} in hexadecimal notation, where each coefficient is a bit: + * 100011011 = 283 = 0x11b. + * + * For example, GF(0x57, 0x83) = 0xc1 because + * + * 0x57 = 87 = 01010111 = x^6 + x^4 + x^2 + x + 1 + * 0x85 = 131 = 10000101 = x^7 + x + 1 + * + * (x^6 + x^4 + x^2 + x + 1) * (x^7 + x + 1) + * = x^13 + x^11 + x^9 + x^8 + x^7 + + * x^7 + x^5 + x^3 + x^2 + x + + * x^6 + x^4 + x^2 + x + 1 + * = x^13 + x^11 + x^9 + x^8 + x^6 + x^5 + x^4 + x^3 + 1 = y + * y modulo (x^8 + x^4 + x^3 + x + 1) + * = x^7 + x^6 + 1. + * + * The modular reduction by m(x) guarantees the result will be a binary + * polynomial of less than degree 8, so that it can fit in a byte. + * + * The operation to multiply a binary polynomial b with x (the polynomial + * x in binary representation is 00000010) is: + * + * b_7x^8 + b_6x^7 + b_5x^6 + b_4x^5 + b_3x^4 + b_2x^3 + b_1x^2 + b_0x^1 + * + * To get GF(b, x) we must reduce that by m(x). If b_7 is 0 (that is the + * most significant bit is 0 in b) then the result is already reduced. If + * it is 1, then we can reduce it by subtracting m(x) via an XOR. + * + * It follows that multiplication by x (00000010 or 0x02) can be implemented + * by performing a left shift followed by a conditional bitwise XOR with + * 0x1b. This operation on bytes is denoted by xtime(). Multiplication by + * higher powers of x can be implemented by repeated application of xtime(). + * + * By adding intermediate results, multiplication by any constant can be + * implemented. For instance: + * + * GF(0x57, 0x13) = 0xfe because: + * + * xtime(b) = (b & 128) ? (b << 1 ^ 0x11b) : (b << 1) + * + * Note: We XOR with 0x11b instead of 0x1b because in javascript our + * datatype for b can be larger than 1 byte, so a left shift will not + * automatically eliminate bits that overflow a byte ... by XOR'ing the + * overflow bit with 1 (the extra one from 0x11b) we zero it out. + * + * GF(0x57, 0x02) = xtime(0x57) = 0xae + * GF(0x57, 0x04) = xtime(0xae) = 0x47 + * GF(0x57, 0x08) = xtime(0x47) = 0x8e + * GF(0x57, 0x10) = xtime(0x8e) = 0x07 + * + * GF(0x57, 0x13) = GF(0x57, (0x01 ^ 0x02 ^ 0x10)) + * + * And by the distributive property (since XOR is addition and GF() is + * multiplication): + * + * = GF(0x57, 0x01) ^ GF(0x57, 0x02) ^ GF(0x57, 0x10) + * = 0x57 ^ 0xae ^ 0x07 + * = 0xfe. + */ +function initialize() { + init = true; + + /* Populate the Rcon table. These are the values given by + [x^(i-1),{00},{00},{00}] where x^(i-1) are powers of x (and x = 0x02) + in the field of GF(2^8), where i starts at 1. + + rcon[0] = [0x00, 0x00, 0x00, 0x00] + rcon[1] = [0x01, 0x00, 0x00, 0x00] 2^(1-1) = 2^0 = 1 + rcon[2] = [0x02, 0x00, 0x00, 0x00] 2^(2-1) = 2^1 = 2 + ... + rcon[9] = [0x1B, 0x00, 0x00, 0x00] 2^(9-1) = 2^8 = 0x1B + rcon[10] = [0x36, 0x00, 0x00, 0x00] 2^(10-1) = 2^9 = 0x36 + + We only store the first byte because it is the only one used. + */ + rcon = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1B, 0x36]; + + // compute xtime table which maps i onto GF(i, 0x02) + var xtime = new Array(256); + for(var i = 0; i < 128; ++i) { + xtime[i] = i << 1; + xtime[i + 128] = (i + 128) << 1 ^ 0x11B; + } + + // compute all other tables + sbox = new Array(256); + isbox = new Array(256); + mix = new Array(4); + imix = new Array(4); + for(var i = 0; i < 4; ++i) { + mix[i] = new Array(256); + imix[i] = new Array(256); + } + var e = 0, ei = 0, e2, e4, e8, sx, sx2, me, ime; + for(var i = 0; i < 256; ++i) { + /* We need to generate the SubBytes() sbox and isbox tables so that + we can perform byte substitutions. This requires us to traverse + all of the elements in GF, find their multiplicative inverses, + and apply to each the following affine transformation: + + bi' = bi ^ b(i + 4) mod 8 ^ b(i + 5) mod 8 ^ b(i + 6) mod 8 ^ + b(i + 7) mod 8 ^ ci + for 0 <= i < 8, where bi is the ith bit of the byte, and ci is the + ith bit of a byte c with the value {63} or {01100011}. + + It is possible to traverse every possible value in a Galois field + using what is referred to as a 'generator'. There are many + generators (128 out of 256): 3,5,6,9,11,82 to name a few. To fully + traverse GF we iterate 255 times, multiplying by our generator + each time. + + On each iteration we can determine the multiplicative inverse for + the current element. + + Suppose there is an element in GF 'e'. For a given generator 'g', + e = g^x. The multiplicative inverse of e is g^(255 - x). It turns + out that if use the inverse of a generator as another generator + it will produce all of the corresponding multiplicative inverses + at the same time. For this reason, we choose 5 as our inverse + generator because it only requires 2 multiplies and 1 add and its + inverse, 82, requires relatively few operations as well. + + In order to apply the affine transformation, the multiplicative + inverse 'ei' of 'e' can be repeatedly XOR'd (4 times) with a + bit-cycling of 'ei'. To do this 'ei' is first stored in 's' and + 'x'. Then 's' is left shifted and the high bit of 's' is made the + low bit. The resulting value is stored in 's'. Then 'x' is XOR'd + with 's' and stored in 'x'. On each subsequent iteration the same + operation is performed. When 4 iterations are complete, 'x' is + XOR'd with 'c' (0x63) and the transformed value is stored in 'x'. + For example: + + s = 01000001 + x = 01000001 + + iteration 1: s = 10000010, x ^= s + iteration 2: s = 00000101, x ^= s + iteration 3: s = 00001010, x ^= s + iteration 4: s = 00010100, x ^= s + x ^= 0x63 + + This can be done with a loop where s = (s << 1) | (s >> 7). However, + it can also be done by using a single 16-bit (in this case 32-bit) + number 'sx'. Since XOR is an associative operation, we can set 'sx' + to 'ei' and then XOR it with 'sx' left-shifted 1,2,3, and 4 times. + The most significant bits will flow into the high 8 bit positions + and be correctly XOR'd with one another. All that remains will be + to cycle the high 8 bits by XOR'ing them all with the lower 8 bits + afterwards. + + At the same time we're populating sbox and isbox we can precompute + the multiplication we'll need to do to do MixColumns() later. + */ + + // apply affine transformation + sx = ei ^ (ei << 1) ^ (ei << 2) ^ (ei << 3) ^ (ei << 4); + sx = (sx >> 8) ^ (sx & 255) ^ 0x63; + + // update tables + sbox[e] = sx; + isbox[sx] = e; + + /* Mixing columns is done using matrix multiplication. The columns + that are to be mixed are each a single word in the current state. + The state has Nb columns (4 columns). Therefore each column is a + 4 byte word. So to mix the columns in a single column 'c' where + its rows are r0, r1, r2, and r3, we use the following matrix + multiplication: + + [2 3 1 1]*[r0,c]=[r'0,c] + [1 2 3 1] [r1,c] [r'1,c] + [1 1 2 3] [r2,c] [r'2,c] + [3 1 1 2] [r3,c] [r'3,c] + + r0, r1, r2, and r3 are each 1 byte of one of the words in the + state (a column). To do matrix multiplication for each mixed + column c' we multiply the corresponding row from the left matrix + with the corresponding column from the right matrix. In total, we + get 4 equations: + + r0,c' = 2*r0,c + 3*r1,c + 1*r2,c + 1*r3,c + r1,c' = 1*r0,c + 2*r1,c + 3*r2,c + 1*r3,c + r2,c' = 1*r0,c + 1*r1,c + 2*r2,c + 3*r3,c + r3,c' = 3*r0,c + 1*r1,c + 1*r2,c + 2*r3,c + + As usual, the multiplication is as previously defined and the + addition is XOR. In order to optimize mixing columns we can store + the multiplication results in tables. If you think of the whole + column as a word (it might help to visualize by mentally rotating + the equations above by counterclockwise 90 degrees) then you can + see that it would be useful to map the multiplications performed on + each byte (r0, r1, r2, r3) onto a word as well. For instance, we + could map 2*r0,1*r0,1*r0,3*r0 onto a word by storing 2*r0 in the + highest 8 bits and 3*r0 in the lowest 8 bits (with the other two + respectively in the middle). This means that a table can be + constructed that uses r0 as an index to the word. We can do the + same with r1, r2, and r3, creating a total of 4 tables. + + To construct a full c', we can just look up each byte of c in + their respective tables and XOR the results together. + + Also, to build each table we only have to calculate the word + for 2,1,1,3 for every byte ... which we can do on each iteration + of this loop since we will iterate over every byte. After we have + calculated 2,1,1,3 we can get the results for the other tables + by cycling the byte at the end to the beginning. For instance + we can take the result of table 2,1,1,3 and produce table 3,2,1,1 + by moving the right most byte to the left most position just like + how you can imagine the 3 moved out of 2,1,1,3 and to the front + to produce 3,2,1,1. + + There is another optimization in that the same multiples of + the current element we need in order to advance our generator + to the next iteration can be reused in performing the 2,1,1,3 + calculation. We also calculate the inverse mix column tables, + with e,9,d,b being the inverse of 2,1,1,3. + + When we're done, and we need to actually mix columns, the first + byte of each state word should be put through mix[0] (2,1,1,3), + the second through mix[1] (3,2,1,1) and so forth. Then they should + be XOR'd together to produce the fully mixed column. + */ + + // calculate mix and imix table values + sx2 = xtime[sx]; + e2 = xtime[e]; + e4 = xtime[e2]; + e8 = xtime[e4]; + me = + (sx2 << 24) ^ // 2 + (sx << 16) ^ // 1 + (sx << 8) ^ // 1 + (sx ^ sx2); // 3 + ime = + (e2 ^ e4 ^ e8) << 24 ^ // E (14) + (e ^ e8) << 16 ^ // 9 + (e ^ e4 ^ e8) << 8 ^ // D (13) + (e ^ e2 ^ e8); // B (11) + // produce each of the mix tables by rotating the 2,1,1,3 value + for(var n = 0; n < 4; ++n) { + mix[n][e] = me; + imix[n][sx] = ime; + // cycle the right most byte to the left most position + // ie: 2,1,1,3 becomes 3,2,1,1 + me = me << 24 | me >>> 8; + ime = ime << 24 | ime >>> 8; + } + + // get next element and inverse + if(e === 0) { + // 1 is the inverse of 1 + e = ei = 1; + } else { + // e = 2e + 2*2*2*(10e)) = multiply e by 82 (chosen generator) + // ei = ei + 2*2*ei = multiply ei by 5 (inverse generator) + e = e2 ^ xtime[xtime[xtime[e2 ^ e8]]]; + ei ^= xtime[xtime[ei]]; + } + } +} + +/** + * Generates a key schedule using the AES key expansion algorithm. + * + * The AES algorithm takes the Cipher Key, K, and performs a Key Expansion + * routine to generate a key schedule. The Key Expansion generates a total + * of Nb*(Nr + 1) words: the algorithm requires an initial set of Nb words, + * and each of the Nr rounds requires Nb words of key data. The resulting + * key schedule consists of a linear array of 4-byte words, denoted [wi ], + * with i in the range 0 <= i < Nb(Nr + 1). + * + * KeyExpansion(byte key[4*Nk], word w[Nb*(Nr+1)], Nk) + * AES-128 (Nb=4, Nk=4, Nr=10) + * AES-192 (Nb=4, Nk=6, Nr=12) + * AES-256 (Nb=4, Nk=8, Nr=14) + * Note: Nr=Nk+6. + * + * Nb is the number of columns (32-bit words) comprising the State (or + * number of bytes in a block). For AES, Nb=4. + * + * @param key the key to schedule (as an array of 32-bit words). + * @param decrypt true to modify the key schedule to decrypt, false not to. + * + * @return the generated key schedule. + */ +function _expandKey(key, decrypt) { + // copy the key's words to initialize the key schedule + var w = key.slice(0); + + /* RotWord() will rotate a word, moving the first byte to the last + byte's position (shifting the other bytes left). + + We will be getting the value of Rcon at i / Nk. 'i' will iterate + from Nk to (Nb * Nr+1). Nk = 4 (4 byte key), Nb = 4 (4 words in + a block), Nr = Nk + 6 (10). Therefore 'i' will iterate from + 4 to 44 (exclusive). Each time we iterate 4 times, i / Nk will + increase by 1. We use a counter iNk to keep track of this. + */ + + // go through the rounds expanding the key + var temp, iNk = 1; + var Nk = w.length; + var Nr1 = Nk + 6 + 1; + var end = Nb * Nr1; + for(var i = Nk; i < end; ++i) { + temp = w[i - 1]; + if(i % Nk === 0) { + // temp = SubWord(RotWord(temp)) ^ Rcon[i / Nk] + temp = + sbox[temp >>> 16 & 255] << 24 ^ + sbox[temp >>> 8 & 255] << 16 ^ + sbox[temp & 255] << 8 ^ + sbox[temp >>> 24] ^ (rcon[iNk] << 24); + iNk++; + } else if(Nk > 6 && (i % Nk === 4)) { + // temp = SubWord(temp) + temp = + sbox[temp >>> 24] << 24 ^ + sbox[temp >>> 16 & 255] << 16 ^ + sbox[temp >>> 8 & 255] << 8 ^ + sbox[temp & 255]; + } + w[i] = w[i - Nk] ^ temp; + } + + /* When we are updating a cipher block we always use the code path for + encryption whether we are decrypting or not (to shorten code and + simplify the generation of look up tables). However, because there + are differences in the decryption algorithm, other than just swapping + in different look up tables, we must transform our key schedule to + account for these changes: + + 1. The decryption algorithm gets its key rounds in reverse order. + 2. The decryption algorithm adds the round key before mixing columns + instead of afterwards. + + We don't need to modify our key schedule to handle the first case, + we can just traverse the key schedule in reverse order when decrypting. + + The second case requires a little work. + + The tables we built for performing rounds will take an input and then + perform SubBytes() and MixColumns() or, for the decrypt version, + InvSubBytes() and InvMixColumns(). But the decrypt algorithm requires + us to AddRoundKey() before InvMixColumns(). This means we'll need to + apply some transformations to the round key to inverse-mix its columns + so they'll be correct for moving AddRoundKey() to after the state has + had its columns inverse-mixed. + + To inverse-mix the columns of the state when we're decrypting we use a + lookup table that will apply InvSubBytes() and InvMixColumns() at the + same time. However, the round key's bytes are not inverse-substituted + in the decryption algorithm. To get around this problem, we can first + substitute the bytes in the round key so that when we apply the + transformation via the InvSubBytes()+InvMixColumns() table, it will + undo our substitution leaving us with the original value that we + want -- and then inverse-mix that value. + + This change will correctly alter our key schedule so that we can XOR + each round key with our already transformed decryption state. This + allows us to use the same code path as the encryption algorithm. + + We make one more change to the decryption key. Since the decryption + algorithm runs in reverse from the encryption algorithm, we reverse + the order of the round keys to avoid having to iterate over the key + schedule backwards when running the encryption algorithm later in + decryption mode. In addition to reversing the order of the round keys, + we also swap each round key's 2nd and 4th rows. See the comments + section where rounds are performed for more details about why this is + done. These changes are done inline with the other substitution + described above. + */ + if(decrypt) { + var tmp; + var m0 = imix[0]; + var m1 = imix[1]; + var m2 = imix[2]; + var m3 = imix[3]; + var wnew = w.slice(0); + end = w.length; + for(var i = 0, wi = end - Nb; i < end; i += Nb, wi -= Nb) { + // do not sub the first or last round key (round keys are Nb + // words) as no column mixing is performed before they are added, + // but do change the key order + if(i === 0 || i === (end - Nb)) { + wnew[i] = w[wi]; + wnew[i + 1] = w[wi + 3]; + wnew[i + 2] = w[wi + 2]; + wnew[i + 3] = w[wi + 1]; + } else { + // substitute each round key byte because the inverse-mix + // table will inverse-substitute it (effectively cancel the + // substitution because round key bytes aren't sub'd in + // decryption mode) and swap indexes 3 and 1 + for(var n = 0; n < Nb; ++n) { + tmp = w[wi + n]; + wnew[i + (3&-n)] = + m0[sbox[tmp >>> 24]] ^ + m1[sbox[tmp >>> 16 & 255]] ^ + m2[sbox[tmp >>> 8 & 255]] ^ + m3[sbox[tmp & 255]]; + } + } + } + w = wnew; + } + + return w; +} + +/** + * Updates a single block (16 bytes) using AES. The update will either + * encrypt or decrypt the block. + * + * @param w the key schedule. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. + */ +function _updateBlock(w, input, output, decrypt) { + /* + Cipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[0, Nb-1]) + for round = 1 step 1 to Nr-1 + SubBytes(state) + ShiftRows(state) + MixColumns(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + end for + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + out = state + end + + InvCipher(byte in[4*Nb], byte out[4*Nb], word w[Nb*(Nr+1)]) + begin + byte state[4,Nb] + state = in + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + for round = Nr-1 step -1 downto 1 + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[round*Nb, (round+1)*Nb-1]) + InvMixColumns(state) + end for + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + out = state + end + */ + + // Encrypt: AddRoundKey(state, w[0, Nb-1]) + // Decrypt: AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + var Nr = w.length / 4 - 1; + var m0, m1, m2, m3, sub; + if(decrypt) { + m0 = imix[0]; + m1 = imix[1]; + m2 = imix[2]; + m3 = imix[3]; + sub = isbox; + } else { + m0 = mix[0]; + m1 = mix[1]; + m2 = mix[2]; + m3 = mix[3]; + sub = sbox; + } + var a, b, c, d, a2, b2, c2; + a = input[0] ^ w[0]; + b = input[decrypt ? 3 : 1] ^ w[1]; + c = input[2] ^ w[2]; + d = input[decrypt ? 1 : 3] ^ w[3]; + var i = 3; + + /* In order to share code we follow the encryption algorithm when both + encrypting and decrypting. To account for the changes required in the + decryption algorithm, we use different lookup tables when decrypting + and use a modified key schedule to account for the difference in the + order of transformations applied when performing rounds. We also get + key rounds in reverse order (relative to encryption). */ + for(var round = 1; round < Nr; ++round) { + /* As described above, we'll be using table lookups to perform the + column mixing. Each column is stored as a word in the state (the + array 'input' has one column as a word at each index). In order to + mix a column, we perform these transformations on each row in c, + which is 1 byte in each word. The new column for c0 is c'0: + + m0 m1 m2 m3 + r0,c'0 = 2*r0,c0 + 3*r1,c0 + 1*r2,c0 + 1*r3,c0 + r1,c'0 = 1*r0,c0 + 2*r1,c0 + 3*r2,c0 + 1*r3,c0 + r2,c'0 = 1*r0,c0 + 1*r1,c0 + 2*r2,c0 + 3*r3,c0 + r3,c'0 = 3*r0,c0 + 1*r1,c0 + 1*r2,c0 + 2*r3,c0 + + So using mix tables where c0 is a word with r0 being its upper + 8 bits and r3 being its lower 8 bits: + + m0[c0 >> 24] will yield this word: [2*r0,1*r0,1*r0,3*r0] + ... + m3[c0 & 255] will yield this word: [1*r3,1*r3,3*r3,2*r3] + + Therefore to mix the columns in each word in the state we + do the following (& 255 omitted for brevity): + c'0,r0 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r1 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r2 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + c'0,r3 = m0[c0 >> 24] ^ m1[c1 >> 16] ^ m2[c2 >> 8] ^ m3[c3] + + However, before mixing, the algorithm requires us to perform + ShiftRows(). The ShiftRows() transformation cyclically shifts the + last 3 rows of the state over different offsets. The first row + (r = 0) is not shifted. + + s'_r,c = s_r,(c + shift(r, Nb) mod Nb + for 0 < r < 4 and 0 <= c < Nb and + shift(1, 4) = 1 + shift(2, 4) = 2 + shift(3, 4) = 3. + + This causes the first byte in r = 1 to be moved to the end of + the row, the first 2 bytes in r = 2 to be moved to the end of + the row, the first 3 bytes in r = 3 to be moved to the end of + the row: + + r1: [c0 c1 c2 c3] => [c1 c2 c3 c0] + r2: [c0 c1 c2 c3] [c2 c3 c0 c1] + r3: [c0 c1 c2 c3] [c3 c0 c1 c2] + + We can make these substitutions inline with our column mixing to + generate an updated set of equations to produce each word in the + state (note the columns have changed positions): + + c0 c1 c2 c3 => c0 c1 c2 c3 + c0 c1 c2 c3 c1 c2 c3 c0 (cycled 1 byte) + c0 c1 c2 c3 c2 c3 c0 c1 (cycled 2 bytes) + c0 c1 c2 c3 c3 c0 c1 c2 (cycled 3 bytes) + + Therefore: + + c'0 = 2*r0,c0 + 3*r1,c1 + 1*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 2*r1,c1 + 3*r2,c2 + 1*r3,c3 + c'0 = 1*r0,c0 + 1*r1,c1 + 2*r2,c2 + 3*r3,c3 + c'0 = 3*r0,c0 + 1*r1,c1 + 1*r2,c2 + 2*r3,c3 + + c'1 = 2*r0,c1 + 3*r1,c2 + 1*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 2*r1,c2 + 3*r2,c3 + 1*r3,c0 + c'1 = 1*r0,c1 + 1*r1,c2 + 2*r2,c3 + 3*r3,c0 + c'1 = 3*r0,c1 + 1*r1,c2 + 1*r2,c3 + 2*r3,c0 + + ... and so forth for c'2 and c'3. The important distinction is + that the columns are cycling, with c0 being used with the m0 + map when calculating c0, but c1 being used with the m0 map when + calculating c1 ... and so forth. + + When performing the inverse we transform the mirror image and + skip the bottom row, instead of the top one, and move upwards: + + c3 c2 c1 c0 => c0 c3 c2 c1 (cycled 3 bytes) *same as encryption + c3 c2 c1 c0 c1 c0 c3 c2 (cycled 2 bytes) + c3 c2 c1 c0 c2 c1 c0 c3 (cycled 1 byte) *same as encryption + c3 c2 c1 c0 c3 c2 c1 c0 + + If you compare the resulting matrices for ShiftRows()+MixColumns() + and for InvShiftRows()+InvMixColumns() the 2nd and 4th columns are + different (in encrypt mode vs. decrypt mode). So in order to use + the same code to handle both encryption and decryption, we will + need to do some mapping. + + If in encryption mode we let a=c0, b=c1, c=c2, d=c3, and r be + a row number in the state, then the resulting matrix in encryption + mode for applying the above transformations would be: + + r1: a b c d + r2: b c d a + r3: c d a b + r4: d a b c + + If we did the same in decryption mode we would get: + + r1: a d c b + r2: b a d c + r3: c b a d + r4: d c b a + + If instead we swap d and b (set b=c3 and d=c1), then we get: + + r1: a b c d + r2: d a b c + r3: c d a b + r4: b c d a + + Now the 1st and 3rd rows are the same as the encryption matrix. All + we need to do then to make the mapping exactly the same is to swap + the 2nd and 4th rows when in decryption mode. To do this without + having to do it on each iteration, we swapped the 2nd and 4th rows + in the decryption key schedule. We also have to do the swap above + when we first pull in the input and when we set the final output. */ + a2 = + m0[a >>> 24] ^ + m1[b >>> 16 & 255] ^ + m2[c >>> 8 & 255] ^ + m3[d & 255] ^ w[++i]; + b2 = + m0[b >>> 24] ^ + m1[c >>> 16 & 255] ^ + m2[d >>> 8 & 255] ^ + m3[a & 255] ^ w[++i]; + c2 = + m0[c >>> 24] ^ + m1[d >>> 16 & 255] ^ + m2[a >>> 8 & 255] ^ + m3[b & 255] ^ w[++i]; + d = + m0[d >>> 24] ^ + m1[a >>> 16 & 255] ^ + m2[b >>> 8 & 255] ^ + m3[c & 255] ^ w[++i]; + a = a2; + b = b2; + c = c2; + } + + /* + Encrypt: + SubBytes(state) + ShiftRows(state) + AddRoundKey(state, w[Nr*Nb, (Nr+1)*Nb-1]) + + Decrypt: + InvShiftRows(state) + InvSubBytes(state) + AddRoundKey(state, w[0, Nb-1]) + */ + // Note: rows are shifted inline + output[0] = + (sub[a >>> 24] << 24) ^ + (sub[b >>> 16 & 255] << 16) ^ + (sub[c >>> 8 & 255] << 8) ^ + (sub[d & 255]) ^ w[++i]; + output[decrypt ? 3 : 1] = + (sub[b >>> 24] << 24) ^ + (sub[c >>> 16 & 255] << 16) ^ + (sub[d >>> 8 & 255] << 8) ^ + (sub[a & 255]) ^ w[++i]; + output[2] = + (sub[c >>> 24] << 24) ^ + (sub[d >>> 16 & 255] << 16) ^ + (sub[a >>> 8 & 255] << 8) ^ + (sub[b & 255]) ^ w[++i]; + output[decrypt ? 1 : 3] = + (sub[d >>> 24] << 24) ^ + (sub[a >>> 16 & 255] << 16) ^ + (sub[b >>> 8 & 255] << 8) ^ + (sub[c & 255]) ^ w[++i]; +} + +/** + * Deprecated. Instead, use: + * + * forge.cipher.createCipher('AES-', key); + * forge.cipher.createDecipher('AES-', key); + * + * Creates a deprecated AES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key and iv may be given as a string of bytes, an array of bytes, a + * byte buffer, or an array of 32-bit words. + * + * @param options the options to use. + * key the symmetric key to use. + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'AES-' + mode; + + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } + + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} + + +/***/ }), + +/***/ 17457: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A Javascript implementation of AES Cipher Suites for TLS. + * + * @author Dave Longley + * + * Copyright (c) 2009-2015 Digital Bazaar, Inc. + * + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(90573); + +var tls = module.exports = forge.tls; + +/** + * Supported cipher suites. + */ +tls.CipherSuites['TLS_RSA_WITH_AES_128_CBC_SHA'] = { + id: [0x00, 0x2f], + name: 'TLS_RSA_WITH_AES_128_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 16; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState +}; +tls.CipherSuites['TLS_RSA_WITH_AES_256_CBC_SHA'] = { + id: [0x00, 0x35], + name: 'TLS_RSA_WITH_AES_256_CBC_SHA', + initSecurityParameters: function(sp) { + sp.bulk_cipher_algorithm = tls.BulkCipherAlgorithm.aes; + sp.cipher_type = tls.CipherType.block; + sp.enc_key_length = 32; + sp.block_length = 16; + sp.fixed_iv_length = 16; + sp.record_iv_length = 16; + sp.mac_algorithm = tls.MACAlgorithm.hmac_sha1; + sp.mac_length = 20; + sp.mac_key_length = 20; + }, + initConnectionState: initConnectionState +}; + +function initConnectionState(state, c, sp) { + var client = (c.entity === forge.tls.ConnectionEnd.client); + + // cipher setup + state.read.cipherState = { + init: false, + cipher: forge.cipher.createDecipher('AES-CBC', client ? + sp.keys.server_write_key : sp.keys.client_write_key), + iv: client ? sp.keys.server_write_IV : sp.keys.client_write_IV + }; + state.write.cipherState = { + init: false, + cipher: forge.cipher.createCipher('AES-CBC', client ? + sp.keys.client_write_key : sp.keys.server_write_key), + iv: client ? sp.keys.client_write_IV : sp.keys.server_write_IV + }; + state.read.cipherFunction = decrypt_aes_cbc_sha1; + state.write.cipherFunction = encrypt_aes_cbc_sha1; + + // MAC setup + state.read.macLength = state.write.macLength = sp.mac_length; + state.read.macFunction = state.write.macFunction = tls.hmac_sha1; +} + +/** + * Encrypts the TLSCompressed record into a TLSCipherText record using AES + * in CBC mode. + * + * @param record the TLSCompressed record to encrypt. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +function encrypt_aes_cbc_sha1(record, s) { + var rval = false; + + // append MAC to fragment, update sequence number + var mac = s.macFunction(s.macKey, s.sequenceNumber, record); + record.fragment.putBytes(mac); + s.updateSequenceNumber(); + + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use the pre-generated IV when initializing for TLS 1.0, otherwise use + // the residue from the previous encryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + iv = forge.random.getBytesSync(16); + } + + s.cipherState.init = true; + + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); + + // TLS 1.1+ write IV into output + if(record.version.minor >= tls.Versions.TLS_1_1.minor) { + cipher.output.putBytes(iv); + } + + // do encryption (default padding is appropriate) + cipher.update(record.fragment); + if(cipher.finish(encrypt_aes_cbc_sha1_padding)) { + // set record fragment to encrypted output + record.fragment = cipher.output; + record.length = record.fragment.length(); + rval = true; + } + + return rval; +} + +/** + * Handles padding for aes_cbc_sha1 in encrypt mode. + * + * @param blockSize the block size. + * @param input the input buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. + * + * @return true on success, false on failure. + */ +function encrypt_aes_cbc_sha1_padding(blockSize, input, decrypt) { + /* The encrypted data length (TLSCiphertext.length) is one more than the sum + of SecurityParameters.block_length, TLSCompressed.length, + SecurityParameters.mac_length, and padding_length. + + The padding may be any length up to 255 bytes long, as long as it results in + the TLSCiphertext.length being an integral multiple of the block length. + Lengths longer than necessary might be desirable to frustrate attacks on a + protocol based on analysis of the lengths of exchanged messages. Each uint8 + in the padding data vector must be filled with the padding length value. + + The padding length should be such that the total size of the + GenericBlockCipher structure is a multiple of the cipher's block length. + Legal values range from zero to 255, inclusive. This length specifies the + length of the padding field exclusive of the padding_length field itself. + + This is slightly different from PKCS#7 because the padding value is 1 + less than the actual number of padding bytes if you include the + padding_length uint8 itself as a padding byte. */ + if(!decrypt) { + // get the number of padding bytes required to reach the blockSize and + // subtract 1 for the padding value (to make room for the padding_length + // uint8) + var padding = blockSize - (input.length() % blockSize); + input.fillWithByte(padding - 1, padding); + } + return true; +} + +/** + * Handles padding for aes_cbc_sha1 in decrypt mode. + * + * @param blockSize the block size. + * @param output the output buffer. + * @param decrypt true in decrypt mode, false in encrypt mode. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1_padding(blockSize, output, decrypt) { + var rval = true; + if(decrypt) { + /* The last byte in the output specifies the number of padding bytes not + including itself. Each of the padding bytes has the same value as that + last byte (known as the padding_length). Here we check all padding + bytes to ensure they have the value of padding_length even if one of + them is bad in order to ward-off timing attacks. */ + var len = output.length(); + var paddingLength = output.last(); + for(var i = len - 1 - paddingLength; i < len - 1; ++i) { + rval = rval && (output.at(i) == paddingLength); + } + if(rval) { + // trim off padding bytes and last padding length byte + output.truncate(paddingLength + 1); + } + } + return rval; +} + +/** + * Decrypts a TLSCipherText record into a TLSCompressed record using + * AES in CBC mode. + * + * @param record the TLSCipherText record to decrypt. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +function decrypt_aes_cbc_sha1(record, s) { + var rval = false; + + var iv; + if(record.version.minor === tls.Versions.TLS_1_0.minor) { + // use pre-generated IV when initializing for TLS 1.0, otherwise use the + // residue from the previous decryption + iv = s.cipherState.init ? null : s.cipherState.iv; + } else { + // TLS 1.1+ use an explicit IV every time to protect against CBC attacks + // that is appended to the record fragment + iv = record.fragment.getBytes(16); + } + + s.cipherState.init = true; + + // start cipher + var cipher = s.cipherState.cipher; + cipher.start({iv: iv}); + + // do decryption + cipher.update(record.fragment); + rval = cipher.finish(decrypt_aes_cbc_sha1_padding); + + // even if decryption fails, keep going to minimize timing attacks + + // decrypted data: + // first (len - 20) bytes = application data + // last 20 bytes = MAC + var macLen = s.macLength; + + // create a random MAC to check against should the mac length check fail + // Note: do this regardless of the failure to keep timing consistent + var mac = forge.random.getBytesSync(macLen); + + // get fragment and mac + var len = cipher.output.length(); + if(len >= macLen) { + record.fragment = cipher.output.getBytes(len - macLen); + mac = cipher.output.getBytes(macLen); + } else { + // bad data, but get bytes anyway to try to keep timing consistent + record.fragment = cipher.output.getBytes(); + } + record.fragment = forge.util.createBuffer(record.fragment); + record.length = record.fragment.length(); + + // see if data integrity checks out, update sequence number + var mac2 = s.macFunction(s.macKey, s.sequenceNumber, record); + s.updateSequenceNumber(); + rval = compareMacs(s.macKey, mac, mac2) && rval; + return rval; +} + +/** + * Safely compare two MACs. This function will compare two MACs in a way + * that protects against timing attacks. + * + * TODO: Expose elsewhere as a utility API. + * + * See: https://www.nccgroup.trust/us/about-us/newsroom-and-events/blog/2011/february/double-hmac-verification/ + * + * @param key the MAC key to use. + * @param mac1 as a binary-encoded string of bytes. + * @param mac2 as a binary-encoded string of bytes. + * + * @return true if the MACs are the same, false if not. + */ +function compareMacs(key, mac1, mac2) { + var hmac = forge.hmac.create(); + + hmac.start('SHA1', key); + hmac.update(mac1); + mac1 = hmac.digest().getBytes(); + + hmac.start(null, null); + hmac.update(mac2); + mac2 = hmac.digest().getBytes(); + + return mac1 === mac2; +} + + +/***/ }), + +/***/ 22596: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +/** + * Copyright (c) 2019 Digital Bazaar, Inc. + */ + +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +var asn1 = forge.asn1; + +exports.privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; + +exports.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, + // capture group for ed25519PublicKey + { + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + composed: true, + captureBitStringValue: 'ed25519PublicKey' + } + // FIXME: this is capture group for rsaPublicKey, use it in this API or + // discard? + /* { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + } */ + ] +}; + + +/***/ }), + +/***/ 93386: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of Abstract Syntax Notation Number One. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + * + * An API for storing data using the Abstract Syntax Notation Number One + * format using DER (Distinguished Encoding Rules) encoding. This encoding is + * commonly used to store data for PKI, i.e. X.509 Certificates, and this + * implementation exists for that purpose. + * + * Abstract Syntax Notation Number One (ASN.1) is used to define the abstract + * syntax of information without restricting the way the information is encoded + * for transmission. It provides a standard that allows for open systems + * communication. ASN.1 defines the syntax of information data and a number of + * simple data types as well as a notation for describing them and specifying + * values for them. + * + * The RSA algorithm creates public and private keys that are often stored in + * X.509 or PKCS#X formats -- which use ASN.1 (encoded in DER format). This + * class provides the most basic functionality required to store and load DSA + * keys that are encoded according to ASN.1. + * + * The most common binary encodings for ASN.1 are BER (Basic Encoding Rules) + * and DER (Distinguished Encoding Rules). DER is just a subset of BER that + * has stricter requirements for how data must be encoded. + * + * Each ASN.1 structure has a tag (a byte identifying the ASN.1 structure type) + * and a byte array for the value of this ASN1 structure which may be data or a + * list of ASN.1 structures. + * + * Each ASN.1 structure using BER is (Tag-Length-Value): + * + * | byte 0 | bytes X | bytes Y | + * |--------|---------|---------- + * | tag | length | value | + * + * ASN.1 allows for tags to be of "High-tag-number form" which allows a tag to + * be two or more octets, but that is not supported by this class. A tag is + * only 1 byte. Bits 1-5 give the tag number (ie the data type within a + * particular 'class'), 6 indicates whether or not the ASN.1 value is + * constructed from other ASN.1 values, and bits 7 and 8 give the 'class'. If + * bits 7 and 8 are both zero, the class is UNIVERSAL. If only bit 7 is set, + * then the class is APPLICATION. If only bit 8 is set, then the class is + * CONTEXT_SPECIFIC. If both bits 7 and 8 are set, then the class is PRIVATE. + * The tag numbers for the data types for the class UNIVERSAL are listed below: + * + * UNIVERSAL 0 Reserved for use by the encoding rules + * UNIVERSAL 1 Boolean type + * UNIVERSAL 2 Integer type + * UNIVERSAL 3 Bitstring type + * UNIVERSAL 4 Octetstring type + * UNIVERSAL 5 Null type + * UNIVERSAL 6 Object identifier type + * UNIVERSAL 7 Object descriptor type + * UNIVERSAL 8 External type and Instance-of type + * UNIVERSAL 9 Real type + * UNIVERSAL 10 Enumerated type + * UNIVERSAL 11 Embedded-pdv type + * UNIVERSAL 12 UTF8String type + * UNIVERSAL 13 Relative object identifier type + * UNIVERSAL 14-15 Reserved for future editions + * UNIVERSAL 16 Sequence and Sequence-of types + * UNIVERSAL 17 Set and Set-of types + * UNIVERSAL 18-22, 25-30 Character string types + * UNIVERSAL 23-24 Time types + * + * The length of an ASN.1 structure is specified after the tag identifier. + * There is a definite form and an indefinite form. The indefinite form may + * be used if the encoding is constructed and not all immediately available. + * The indefinite form is encoded using a length byte with only the 8th bit + * set. The end of the constructed object is marked using end-of-contents + * octets (two zero bytes). + * + * The definite form looks like this: + * + * The length may take up 1 or more bytes, it depends on the length of the + * value of the ASN.1 structure. DER encoding requires that if the ASN.1 + * structure has a value that has a length greater than 127, more than 1 byte + * will be used to store its length, otherwise just one byte will be used. + * This is strict. + * + * In the case that the length of the ASN.1 value is less than 127, 1 octet + * (byte) is used to store the "short form" length. The 8th bit has a value of + * 0 indicating the length is "short form" and not "long form" and bits 7-1 + * give the length of the data. (The 8th bit is the left-most, most significant + * bit: also known as big endian or network format). + * + * In the case that the length of the ASN.1 value is greater than 127, 2 to + * 127 octets (bytes) are used to store the "long form" length. The first + * byte's 8th bit is set to 1 to indicate the length is "long form." Bits 7-1 + * give the number of additional octets. All following octets are in base 256 + * with the most significant digit first (typical big-endian binary unsigned + * integer storage). So, for instance, if the length of a value was 257, the + * first byte would be set to: + * + * 10000010 = 130 = 0x82. + * + * This indicates there are 2 octets (base 256) for the length. The second and + * third bytes (the octets just mentioned) would store the length in base 256: + * + * octet 2: 00000001 = 1 * 256^1 = 256 + * octet 3: 00000001 = 1 * 256^0 = 1 + * total = 257 + * + * The algorithm for converting a js integer value of 257 to base-256 is: + * + * var value = 257; + * var bytes = []; + * bytes[0] = (value >>> 8) & 0xFF; // most significant byte first + * bytes[1] = value & 0xFF; // least significant byte last + * + * On the ASN.1 UNIVERSAL Object Identifier (OID) type: + * + * An OID can be written like: "value1.value2.value3...valueN" + * + * The DER encoding rules: + * + * The first byte has the value 40 * value1 + value2. + * The following bytes, if any, encode the remaining values. Each value is + * encoded in base 128, most significant digit first (big endian), with as + * few digits as possible, and the most significant bit of each byte set + * to 1 except the last in each value's encoding. For example: Given the + * OID "1.2.840.113549", its DER encoding is (remember each byte except the + * last one in each encoding is OR'd with 0x80): + * + * byte 1: 40 * 1 + 2 = 42 = 0x2A. + * bytes 2-3: 128 * 6 + 72 = 840 = 6 72 = 6 72 = 0x0648 = 0x8648 + * bytes 4-6: 16384 * 6 + 128 * 119 + 13 = 6 119 13 = 0x06770D = 0x86F70D + * + * The final value is: 0x2A864886F70D. + * The full OID (including ASN.1 tag and length of 6 bytes) is: + * 0x06062A864886F70D + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); +__nccwpck_require__(91658); + +/* ASN.1 API */ +var asn1 = module.exports = forge.asn1 = forge.asn1 || {}; + +/** + * ASN.1 classes. + */ +asn1.Class = { + UNIVERSAL: 0x00, + APPLICATION: 0x40, + CONTEXT_SPECIFIC: 0x80, + PRIVATE: 0xC0 +}; + +/** + * ASN.1 types. Not all types are supported by this implementation, only + * those necessary to implement a simple PKI are implemented. + */ +asn1.Type = { + NONE: 0, + BOOLEAN: 1, + INTEGER: 2, + BITSTRING: 3, + OCTETSTRING: 4, + NULL: 5, + OID: 6, + ODESC: 7, + EXTERNAL: 8, + REAL: 9, + ENUMERATED: 10, + EMBEDDED: 11, + UTF8: 12, + ROID: 13, + SEQUENCE: 16, + SET: 17, + PRINTABLESTRING: 19, + IA5STRING: 22, + UTCTIME: 23, + GENERALIZEDTIME: 24, + BMPSTRING: 30 +}; + +/** + * Creates a new asn1 object. + * + * @param tagClass the tag class for the object. + * @param type the data type (tag number) for the object. + * @param constructed true if the asn1 object is in constructed form. + * @param value the value for the object, if it is not constructed. + * @param [options] the options to use: + * [bitStringContents] the plain BIT STRING content including padding + * byte. + * + * @return the asn1 object. + */ +asn1.create = function(tagClass, type, constructed, value, options) { + /* An asn1 object has a tagClass, a type, a constructed flag, and a + value. The value's type depends on the constructed flag. If + constructed, it will contain a list of other asn1 objects. If not, + it will contain the ASN.1 value as an array of bytes formatted + according to the ASN.1 data type. */ + + // remove undefined values + if(forge.util.isArray(value)) { + var tmp = []; + for(var i = 0; i < value.length; ++i) { + if(value[i] !== undefined) { + tmp.push(value[i]); + } + } + value = tmp; + } + + var obj = { + tagClass: tagClass, + type: type, + constructed: constructed, + composed: constructed || forge.util.isArray(value), + value: value + }; + if(options && 'bitStringContents' in options) { + // TODO: copy byte buffer if it's a buffer not a string + obj.bitStringContents = options.bitStringContents; + // TODO: add readonly flag to avoid this overhead + // save copy to detect changes + obj.original = asn1.copy(obj); + } + return obj; +}; + +/** + * Copies an asn1 object. + * + * @param obj the asn1 object. + * @param [options] copy options: + * [excludeBitStringContents] true to not copy bitStringContents + * + * @return the a copy of the asn1 object. + */ +asn1.copy = function(obj, options) { + var copy; + + if(forge.util.isArray(obj)) { + copy = []; + for(var i = 0; i < obj.length; ++i) { + copy.push(asn1.copy(obj[i], options)); + } + return copy; + } + + if(typeof obj === 'string') { + // TODO: copy byte buffer if it's a buffer not a string + return obj; + } + + copy = { + tagClass: obj.tagClass, + type: obj.type, + constructed: obj.constructed, + composed: obj.composed, + value: asn1.copy(obj.value, options) + }; + if(options && !options.excludeBitStringContents) { + // TODO: copy byte buffer if it's a buffer not a string + copy.bitStringContents = obj.bitStringContents; + } + return copy; +}; + +/** + * Compares asn1 objects for equality. + * + * Note this function does not run in constant time. + * + * @param obj1 the first asn1 object. + * @param obj2 the second asn1 object. + * @param [options] compare options: + * [includeBitStringContents] true to compare bitStringContents + * + * @return true if the asn1 objects are equal. + */ +asn1.equals = function(obj1, obj2, options) { + if(forge.util.isArray(obj1)) { + if(!forge.util.isArray(obj2)) { + return false; + } + if(obj1.length !== obj2.length) { + return false; + } + for(var i = 0; i < obj1.length; ++i) { + if(!asn1.equals(obj1[i], obj2[i])) { + return false; + } + } + return true; + } + + if(typeof obj1 !== typeof obj2) { + return false; + } + + if(typeof obj1 === 'string') { + return obj1 === obj2; + } + + var equal = obj1.tagClass === obj2.tagClass && + obj1.type === obj2.type && + obj1.constructed === obj2.constructed && + obj1.composed === obj2.composed && + asn1.equals(obj1.value, obj2.value); + if(options && options.includeBitStringContents) { + equal = equal && (obj1.bitStringContents === obj2.bitStringContents); + } + + return equal; +}; + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param b the BER-encoded ASN.1 byte buffer, starting with the first + * length byte. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +asn1.getBerValueLength = function(b) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + var b2 = b.getByte(); + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + length = b.getInt((b2 & 0x7F) << 3); + } + return length; +}; + +/** + * Check if the byte buffer has enough bytes. Throws an Error if not. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * @param n the number of bytes the buffer must have. + */ +function _checkBufferLength(bytes, remaining, n) { + if(n > remaining) { + var error = new Error('Too few bytes to parse DER.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = n; + throw error; + } +} + +/** + * Gets the length of a BER-encoded ASN.1 value. + * + * In case the length is not specified, undefined is returned. + * + * @param bytes the byte buffer to parse from. + * @param remaining the bytes remaining in the current parsing state. + * + * @return the length of the BER-encoded ASN.1 value or undefined. + */ +var _getValueLength = function(bytes, remaining) { + // TODO: move this function and related DER/BER functions to a der.js + // file; better abstract ASN.1 away from der/ber. + // fromDer already checked that this byte exists + var b2 = bytes.getByte(); + remaining--; + if(b2 === 0x80) { + return undefined; + } + + // see if the length is "short form" or "long form" (bit 8 set) + var length; + var longForm = b2 & 0x80; + if(!longForm) { + // length is just the first byte + length = b2; + } else { + // the number of bytes the length is specified in bits 7 through 1 + // and each length byte is in big-endian base-256 + var longFormBytes = b2 & 0x7F; + _checkBufferLength(bytes, remaining, longFormBytes); + length = bytes.getInt(longFormBytes << 3); + } + // FIXME: this will only happen for 32 bit getInt with high bit set + if(length < 0) { + throw new Error('Negative length: ' + length); + } + return length; +}; + +/** + * Parses an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * @param [options] object with options or boolean strict flag + * [strict] true to be strict when checking value lengths, false to + * allow truncated values (default: true). + * [decodeBitStrings] true to attempt to decode the content of + * BIT STRINGs (not OCTET STRINGs) using strict mode. Note that + * without schema support to understand the data context this can + * erroneously decode values that happen to be valid ASN.1. This + * flag will be deprecated or removed as soon as schema support is + * available. (default: true) + * + * @return the parsed asn1 object. + */ +asn1.fromDer = function(bytes, options) { + if(options === undefined) { + options = { + strict: true, + decodeBitStrings: true + }; + } + if(typeof options === 'boolean') { + options = { + strict: options, + decodeBitStrings: true + }; + } + if(!('strict' in options)) { + options.strict = true; + } + if(!('decodeBitStrings' in options)) { + options.decodeBitStrings = true; + } + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + return _fromDer(bytes, bytes.length(), 0, options); +}; + +/** + * Internal function to parse an asn1 object from a byte buffer in DER format. + * + * @param bytes the byte buffer to parse from. + * @param remaining the number of bytes remaining for this chunk. + * @param depth the current parsing depth. + * @param options object with same options as fromDer(). + * + * @return the parsed asn1 object. + */ +function _fromDer(bytes, remaining, depth, options) { + // temporary storage for consumption calculations + var start; + + // minimum length for ASN.1 DER structure is 2 + _checkBufferLength(bytes, remaining, 2); + + // get the first byte + var b1 = bytes.getByte(); + // consumed one byte + remaining--; + + // get the tag class + var tagClass = (b1 & 0xC0); + + // get the type (bits 1-5) + var type = b1 & 0x1F; + + // get the variable value length and adjust remaining bytes + start = bytes.length(); + var length = _getValueLength(bytes, remaining); + remaining -= start - bytes.length(); + + // ensure there are enough bytes to get the value + if(length !== undefined && length > remaining) { + if(options.strict) { + var error = new Error('Too few bytes to read ASN.1 value.'); + error.available = bytes.length(); + error.remaining = remaining; + error.requested = length; + throw error; + } + // Note: be lenient with truncated values and use remaining state bytes + length = remaining; + } + + // value storage + var value; + // possible BIT STRING contents storage + var bitStringContents; + + // constructed flag is bit 6 (32 = 0x20) of the first byte + var constructed = ((b1 & 0x20) === 0x20); + if(constructed) { + // parse child asn1 objects from the value + value = []; + if(length === undefined) { + // asn1 object of indefinite length, read until end tag + for(;;) { + _checkBufferLength(bytes, remaining, 2); + if(bytes.bytes(2) === String.fromCharCode(0, 0)) { + bytes.getBytes(2); + remaining -= 2; + break; + } + start = bytes.length(); + value.push(_fromDer(bytes, remaining, depth + 1, options)); + remaining -= start - bytes.length(); + } + } else { + // parsing asn1 object of definite length + while(length > 0) { + start = bytes.length(); + value.push(_fromDer(bytes, length, depth + 1, options)); + remaining -= start - bytes.length(); + length -= start - bytes.length(); + } + } + } + + // if a BIT STRING, save the contents including padding + if(value === undefined && tagClass === asn1.Class.UNIVERSAL && + type === asn1.Type.BITSTRING) { + bitStringContents = bytes.bytes(length); + } + + // determine if a non-constructed value should be decoded as a composed + // value that contains other ASN.1 objects. BIT STRINGs (and OCTET STRINGs) + // can be used this way. + if(value === undefined && options.decodeBitStrings && + tagClass === asn1.Class.UNIVERSAL && + // FIXME: OCTET STRINGs not yet supported here + // .. other parts of forge expect to decode OCTET STRINGs manually + (type === asn1.Type.BITSTRING /*|| type === asn1.Type.OCTETSTRING*/) && + length > 1) { + // save read position + var savedRead = bytes.read; + var savedRemaining = remaining; + var unused = 0; + if(type === asn1.Type.BITSTRING) { + /* The first octet gives the number of bits by which the length of the + bit string is less than the next multiple of eight (this is called + the "number of unused bits"). + + The second and following octets give the value of the bit string + converted to an octet string. */ + _checkBufferLength(bytes, remaining, 1); + unused = bytes.getByte(); + remaining--; + } + // if all bits are used, maybe the BIT/OCTET STRING holds ASN.1 objs + if(unused === 0) { + try { + // attempt to parse child asn1 object from the value + // (stored in array to signal composed value) + start = bytes.length(); + var subOptions = { + // enforce strict mode to avoid parsing ASN.1 from plain data + verbose: options.verbose, + strict: true, + decodeBitStrings: true + }; + var composed = _fromDer(bytes, remaining, depth + 1, subOptions); + var used = start - bytes.length(); + remaining -= used; + if(type == asn1.Type.BITSTRING) { + used++; + } + + // if the data all decoded and the class indicates UNIVERSAL or + // CONTEXT_SPECIFIC then assume we've got an encapsulated ASN.1 object + var tc = composed.tagClass; + if(used === length && + (tc === asn1.Class.UNIVERSAL || tc === asn1.Class.CONTEXT_SPECIFIC)) { + value = [composed]; + } + } catch(ex) { + } + } + if(value === undefined) { + // restore read position + bytes.read = savedRead; + remaining = savedRemaining; + } + } + + if(value === undefined) { + // asn1 not constructed or composed, get raw value + // TODO: do DER to OID conversion and vice-versa in .toDer? + + if(length === undefined) { + if(options.strict) { + throw new Error('Non-constructed ASN.1 object of indefinite length.'); + } + // be lenient and use remaining state bytes + length = remaining; + } + + if(type === asn1.Type.BMPSTRING) { + value = ''; + for(; length > 0; length -= 2) { + _checkBufferLength(bytes, remaining, 2); + value += String.fromCharCode(bytes.getInt16()); + remaining -= 2; + } + } else { + value = bytes.getBytes(length); + } + } + + // add BIT STRING contents if available + var asn1Options = bitStringContents === undefined ? null : { + bitStringContents: bitStringContents + }; + + // create and return asn1 object + return asn1.create(tagClass, type, constructed, value, asn1Options); +} + +/** + * Converts the given asn1 object to a buffer of bytes in DER format. + * + * @param asn1 the asn1 object to convert to bytes. + * + * @return the buffer of bytes. + */ +asn1.toDer = function(obj) { + var bytes = forge.util.createBuffer(); + + // build the first byte + var b1 = obj.tagClass | obj.type; + + // for storing the ASN.1 value + var value = forge.util.createBuffer(); + + // use BIT STRING contents if available and data not changed + var useBitStringContents = false; + if('bitStringContents' in obj) { + useBitStringContents = true; + if(obj.original) { + useBitStringContents = asn1.equals(obj, obj.original); + } + } + + if(useBitStringContents) { + value.putBytes(obj.bitStringContents); + } else if(obj.composed) { + // if composed, use each child asn1 object's DER bytes as value + // turn on 6th bit (0x20 = 32) to indicate asn1 is constructed + // from other asn1 objects + if(obj.constructed) { + b1 |= 0x20; + } else { + // type is a bit string, add unused bits of 0x00 + value.putByte(0x00); + } + + // add all of the child DER bytes together + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + value.putBuffer(asn1.toDer(obj.value[i])); + } + } + } else { + // use asn1.value directly + if(obj.type === asn1.Type.BMPSTRING) { + for(var i = 0; i < obj.value.length; ++i) { + value.putInt16(obj.value.charCodeAt(i)); + } + } else { + // ensure integer is minimally-encoded + // TODO: should all leading bytes be stripped vs just one? + // .. ex '00 00 01' => '01'? + if(obj.type === asn1.Type.INTEGER && + obj.value.length > 1 && + // leading 0x00 for positive integer + ((obj.value.charCodeAt(0) === 0 && + (obj.value.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (obj.value.charCodeAt(0) === 0xFF && + (obj.value.charCodeAt(1) & 0x80) === 0x80))) { + value.putBytes(obj.value.substr(1)); + } else { + value.putBytes(obj.value); + } + } + } + + // add tag byte + bytes.putByte(b1); + + // use "short form" encoding + if(value.length() <= 127) { + // one byte describes the length + // bit 8 = 0 and bits 7-1 = length + bytes.putByte(value.length() & 0x7F); + } else { + // use "long form" encoding + // 2 to 127 bytes describe the length + // first byte: bit 8 = 1 and bits 7-1 = # of additional bytes + // other bytes: length in base 256, big-endian + var len = value.length(); + var lenBytes = ''; + do { + lenBytes += String.fromCharCode(len & 0xFF); + len = len >>> 8; + } while(len > 0); + + // set first byte to # bytes used to store the length and turn on + // bit 8 to indicate long-form length is used + bytes.putByte(lenBytes.length | 0x80); + + // concatenate length bytes in reverse since they were generated + // little endian and we need big endian + for(var i = lenBytes.length - 1; i >= 0; --i) { + bytes.putByte(lenBytes.charCodeAt(i)); + } + } + + // concatenate value bytes + bytes.putBuffer(value); + return bytes; +}; + +/** + * Converts an OID dot-separated string to a byte buffer. The byte buffer + * contains only the DER-encoded value, not any tag or length bytes. + * + * @param oid the OID dot-separated string. + * + * @return the byte buffer. + */ +asn1.oidToDer = function(oid) { + // split OID into individual values + var values = oid.split('.'); + var bytes = forge.util.createBuffer(); + + // first byte is 40 * value1 + value2 + bytes.putByte(40 * parseInt(values[0], 10) + parseInt(values[1], 10)); + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var last, valueBytes, value, b; + for(var i = 2; i < values.length; ++i) { + // produce value bytes in reverse because we don't know how many + // bytes it will take to store the value + last = true; + valueBytes = []; + value = parseInt(values[i], 10); + do { + b = value & 0x7F; + value = value >>> 7; + // if value is not last, then turn on 8th bit + if(!last) { + b |= 0x80; + } + valueBytes.push(b); + last = false; + } while(value > 0); + + // add value bytes in reverse (needs to be in big endian) + for(var n = valueBytes.length - 1; n >= 0; --n) { + bytes.putByte(valueBytes[n]); + } + } + + return bytes; +}; + +/** + * Converts a DER-encoded byte buffer to an OID dot-separated string. The + * byte buffer should contain only the DER-encoded value, not any tag or + * length bytes. + * + * @param bytes the byte buffer. + * + * @return the OID dot-separated string. + */ +asn1.derToOid = function(bytes) { + var oid; + + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + // first byte is 40 * value1 + value2 + var b = bytes.getByte(); + oid = Math.floor(b / 40) + '.' + (b % 40); + + // other bytes are each value in base 128 with 8th bit set except for + // the last byte for each value + var value = 0; + while(bytes.length() > 0) { + b = bytes.getByte(); + value = value << 7; + // not the last byte for the value + if(b & 0x80) { + value += b & 0x7F; + } else { + // last byte + oid += '.' + (value + b); + value = 0; + } + } + + return oid; +}; + +/** + * Converts a UTCTime value to a date. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Parsing that structure hasn't been implemented yet. + * + * @param utc the UTCTime value to convert. + * + * @return the date. + */ +asn1.utcTimeToDate = function(utc) { + /* The following formats can be used: + + YYMMDDhhmmZ + YYMMDDhhmm+hh'mm' + YYMMDDhhmm-hh'mm' + YYMMDDhhmmssZ + YYMMDDhhmmss+hh'mm' + YYMMDDhhmmss-hh'mm' + + Where: + + YY is the least significant two digits of the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + // if YY >= 50 use 19xx, if YY < 50 use 20xx + var year = parseInt(utc.substr(0, 2), 10); + year = (year >= 50) ? 1900 + year : 2000 + year; + var MM = parseInt(utc.substr(2, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(utc.substr(4, 2), 10); + var hh = parseInt(utc.substr(6, 2), 10); + var mm = parseInt(utc.substr(8, 2), 10); + var ss = 0; + + // not just YYMMDDhhmmZ + if(utc.length > 11) { + // get character after minutes + var c = utc.charAt(10); + var end = 10; + + // see if seconds are present + if(c !== '+' && c !== '-') { + // get seconds + ss = parseInt(utc.substr(10, 2), 10); + end += 2; + } + } + + // update date + date.setUTCFullYear(year, MM, DD); + date.setUTCHours(hh, mm, ss, 0); + + if(end) { + // get +/- after end of time + c = utc.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(utc.substr(end + 1, 2), 10); + var mmoffset = parseInt(utc.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + var offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + date.setTime(+date - offset); + } else { + date.setTime(+date + offset); + } + } + } + + return date; +}; + +/** + * Converts a GeneralizedTime value to a date. + * + * @param gentime the GeneralizedTime value to convert. + * + * @return the date. + */ +asn1.generalizedTimeToDate = function(gentime) { + /* The following formats can be used: + + YYYYMMDDHHMMSS + YYYYMMDDHHMMSS.fff + YYYYMMDDHHMMSSZ + YYYYMMDDHHMMSS.fffZ + YYYYMMDDHHMMSS+hh'mm' + YYYYMMDDHHMMSS.fff+hh'mm' + YYYYMMDDHHMMSS-hh'mm' + YYYYMMDDHHMMSS.fff-hh'mm' + + Where: + + YYYY is the year + MM is the month (01 to 12) + DD is the day (01 to 31) + hh is the hour (00 to 23) + mm are the minutes (00 to 59) + ss are the seconds (00 to 59) + .fff is the second fraction, accurate to three decimal places + Z indicates that local time is GMT, + indicates that local time is + later than GMT, and - indicates that local time is earlier than GMT + hh' is the absolute value of the offset from GMT in hours + mm' is the absolute value of the offset from GMT in minutes */ + var date = new Date(); + + var YYYY = parseInt(gentime.substr(0, 4), 10); + var MM = parseInt(gentime.substr(4, 2), 10) - 1; // use 0-11 for month + var DD = parseInt(gentime.substr(6, 2), 10); + var hh = parseInt(gentime.substr(8, 2), 10); + var mm = parseInt(gentime.substr(10, 2), 10); + var ss = parseInt(gentime.substr(12, 2), 10); + var fff = 0; + var offset = 0; + var isUTC = false; + + if(gentime.charAt(gentime.length - 1) === 'Z') { + isUTC = true; + } + + var end = gentime.length - 5, c = gentime.charAt(end); + if(c === '+' || c === '-') { + // get hours+minutes offset + var hhoffset = parseInt(gentime.substr(end + 1, 2), 10); + var mmoffset = parseInt(gentime.substr(end + 4, 2), 10); + + // calculate offset in milliseconds + offset = hhoffset * 60 + mmoffset; + offset *= 60000; + + // apply offset + if(c === '+') { + offset *= -1; + } + + isUTC = true; + } + + // check for second fraction + if(gentime.charAt(14) === '.') { + fff = parseFloat(gentime.substr(14), 10) * 1000; + } + + if(isUTC) { + date.setUTCFullYear(YYYY, MM, DD); + date.setUTCHours(hh, mm, ss, fff); + + // apply offset + date.setTime(+date + offset); + } else { + date.setFullYear(YYYY, MM, DD); + date.setHours(hh, mm, ss, fff); + } + + return date; +}; + +/** + * Converts a date to a UTCTime value. + * + * Note: GeneralizedTime has 4 digits for the year and is used for X.509 + * dates past 2049. Converting to a GeneralizedTime hasn't been + * implemented yet. + * + * @param date the date to convert. + * + * @return the UTCTime value. + */ +asn1.dateToUtcTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYMMDDhhmmssZ + var format = []; + format.push(('' + date.getUTCFullYear()).substr(2)); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a date to a GeneralizedTime value. + * + * @param date the date to convert. + * + * @return the GeneralizedTime value as a string. + */ +asn1.dateToGeneralizedTime = function(date) { + // TODO: validate; currently assumes proper format + if(typeof date === 'string') { + return date; + } + + var rval = ''; + + // create format YYYYMMDDHHMMSSZ + var format = []; + format.push('' + date.getUTCFullYear()); + format.push('' + (date.getUTCMonth() + 1)); + format.push('' + date.getUTCDate()); + format.push('' + date.getUTCHours()); + format.push('' + date.getUTCMinutes()); + format.push('' + date.getUTCSeconds()); + + // ensure 2 digits are used for each format entry + for(var i = 0; i < format.length; ++i) { + if(format[i].length < 2) { + rval += '0'; + } + rval += format[i]; + } + rval += 'Z'; + + return rval; +}; + +/** + * Converts a javascript integer to a DER-encoded byte buffer to be used + * as the value for an INTEGER type. + * + * @param x the integer. + * + * @return the byte buffer. + */ +asn1.integerToDer = function(x) { + var rval = forge.util.createBuffer(); + if(x >= -0x80 && x < 0x80) { + return rval.putSignedInt(x, 8); + } + if(x >= -0x8000 && x < 0x8000) { + return rval.putSignedInt(x, 16); + } + if(x >= -0x800000 && x < 0x800000) { + return rval.putSignedInt(x, 24); + } + if(x >= -0x80000000 && x < 0x80000000) { + return rval.putSignedInt(x, 32); + } + var error = new Error('Integer too large; max is 32-bits.'); + error.integer = x; + throw error; +}; + +/** + * Converts a DER-encoded byte buffer to a javascript integer. This is + * typically used to decode the value of an INTEGER type. + * + * @param bytes the byte buffer. + * + * @return the integer. + */ +asn1.derToInteger = function(bytes) { + // wrap in buffer if needed + if(typeof bytes === 'string') { + bytes = forge.util.createBuffer(bytes); + } + + var n = bytes.length() * 8; + if(n > 32) { + throw new Error('Integer too large; max is 32-bits.'); + } + return bytes.getSignedInt(n); +}; + +/** + * Validates that the given ASN.1 object is at least a super set of the + * given ASN.1 structure. Only tag classes and types are checked. An + * optional map may also be provided to capture ASN.1 values while the + * structure is checked. + * + * To capture an ASN.1 value, set an object in the validator's 'capture' + * parameter to the key to use in the capture map. To capture the full + * ASN.1 object, specify 'captureAsn1'. To capture BIT STRING bytes, including + * the leading unused bits counter byte, specify 'captureBitStringContents'. + * To capture BIT STRING bytes, without the leading unused bits counter byte, + * specify 'captureBitStringValue'. + * + * Objects in the validator may set a field 'optional' to true to indicate + * that it isn't necessary to pass validation. + * + * @param obj the ASN.1 object to validate. + * @param v the ASN.1 structure validator. + * @param capture an optional map to capture values in. + * @param errors an optional array for storing validation errors. + * + * @return true on success, false on failure. + */ +asn1.validate = function(obj, v, capture, errors) { + var rval = false; + + // ensure tag class and type are the same if specified + if((obj.tagClass === v.tagClass || typeof(v.tagClass) === 'undefined') && + (obj.type === v.type || typeof(v.type) === 'undefined')) { + // ensure constructed flag is the same if specified + if(obj.constructed === v.constructed || + typeof(v.constructed) === 'undefined') { + rval = true; + + // handle sub values + if(v.value && forge.util.isArray(v.value)) { + var j = 0; + for(var i = 0; rval && i < v.value.length; ++i) { + rval = v.value[i].optional || false; + if(obj.value[j]) { + rval = asn1.validate(obj.value[j], v.value[i], capture, errors); + if(rval) { + ++j; + } else if(v.value[i].optional) { + rval = true; + } + } + if(!rval && errors) { + errors.push( + '[' + v.name + '] ' + + 'Tag class "' + v.tagClass + '", type "' + + v.type + '" expected value length "' + + v.value.length + '", got "' + + obj.value.length + '"'); + } + } + } + + if(rval && capture) { + if(v.capture) { + capture[v.capture] = obj.value; + } + if(v.captureAsn1) { + capture[v.captureAsn1] = obj; + } + if(v.captureBitStringContents && 'bitStringContents' in obj) { + capture[v.captureBitStringContents] = obj.bitStringContents; + } + if(v.captureBitStringValue && 'bitStringContents' in obj) { + var value; + if(obj.bitStringContents.length < 2) { + capture[v.captureBitStringValue] = ''; + } else { + // FIXME: support unused bits with data shifting + var unused = obj.bitStringContents.charCodeAt(0); + if(unused !== 0) { + throw new Error( + 'captureBitStringValue only supported for zero unused bits'); + } + capture[v.captureBitStringValue] = obj.bitStringContents.slice(1); + } + } + } + } else if(errors) { + errors.push( + '[' + v.name + '] ' + + 'Expected constructed "' + v.constructed + '", got "' + + obj.constructed + '"'); + } + } else if(errors) { + if(obj.tagClass !== v.tagClass) { + errors.push( + '[' + v.name + '] ' + + 'Expected tag class "' + v.tagClass + '", got "' + + obj.tagClass + '"'); + } + if(obj.type !== v.type) { + errors.push( + '[' + v.name + '] ' + + 'Expected type "' + v.type + '", got "' + obj.type + '"'); + } + } + return rval; +}; + +// regex for testing for non-latin characters +var _nonLatinRegex = /[^\\u0000-\\u00ff]/; + +/** + * Pretty prints an ASN.1 object to a string. + * + * @param obj the object to write out. + * @param level the level in the tree. + * @param indentation the indentation to use. + * + * @return the string. + */ +asn1.prettyPrint = function(obj, level, indentation) { + var rval = ''; + + // set default level and indentation + level = level || 0; + indentation = indentation || 2; + + // start new line for deep levels + if(level > 0) { + rval += '\n'; + } + + // create indent + var indent = ''; + for(var i = 0; i < level * indentation; ++i) { + indent += ' '; + } + + // print class:type + rval += indent + 'Tag: '; + switch(obj.tagClass) { + case asn1.Class.UNIVERSAL: + rval += 'Universal:'; + break; + case asn1.Class.APPLICATION: + rval += 'Application:'; + break; + case asn1.Class.CONTEXT_SPECIFIC: + rval += 'Context-Specific:'; + break; + case asn1.Class.PRIVATE: + rval += 'Private:'; + break; + } + + if(obj.tagClass === asn1.Class.UNIVERSAL) { + rval += obj.type; + + // known types + switch(obj.type) { + case asn1.Type.NONE: + rval += ' (None)'; + break; + case asn1.Type.BOOLEAN: + rval += ' (Boolean)'; + break; + case asn1.Type.INTEGER: + rval += ' (Integer)'; + break; + case asn1.Type.BITSTRING: + rval += ' (Bit string)'; + break; + case asn1.Type.OCTETSTRING: + rval += ' (Octet string)'; + break; + case asn1.Type.NULL: + rval += ' (Null)'; + break; + case asn1.Type.OID: + rval += ' (Object Identifier)'; + break; + case asn1.Type.ODESC: + rval += ' (Object Descriptor)'; + break; + case asn1.Type.EXTERNAL: + rval += ' (External or Instance of)'; + break; + case asn1.Type.REAL: + rval += ' (Real)'; + break; + case asn1.Type.ENUMERATED: + rval += ' (Enumerated)'; + break; + case asn1.Type.EMBEDDED: + rval += ' (Embedded PDV)'; + break; + case asn1.Type.UTF8: + rval += ' (UTF8)'; + break; + case asn1.Type.ROID: + rval += ' (Relative Object Identifier)'; + break; + case asn1.Type.SEQUENCE: + rval += ' (Sequence)'; + break; + case asn1.Type.SET: + rval += ' (Set)'; + break; + case asn1.Type.PRINTABLESTRING: + rval += ' (Printable String)'; + break; + case asn1.Type.IA5String: + rval += ' (IA5String (ASCII))'; + break; + case asn1.Type.UTCTIME: + rval += ' (UTC time)'; + break; + case asn1.Type.GENERALIZEDTIME: + rval += ' (Generalized time)'; + break; + case asn1.Type.BMPSTRING: + rval += ' (BMP String)'; + break; + } + } else { + rval += obj.type; + } + + rval += '\n'; + rval += indent + 'Constructed: ' + obj.constructed + '\n'; + + if(obj.composed) { + var subvalues = 0; + var sub = ''; + for(var i = 0; i < obj.value.length; ++i) { + if(obj.value[i] !== undefined) { + subvalues += 1; + sub += asn1.prettyPrint(obj.value[i], level + 1, indentation); + if((i + 1) < obj.value.length) { + sub += ','; + } + } + } + rval += indent + 'Sub values: ' + subvalues + sub; + } else { + rval += indent + 'Value: '; + if(obj.type === asn1.Type.OID) { + var oid = asn1.derToOid(obj.value); + rval += oid; + if(forge.pki && forge.pki.oids) { + if(oid in forge.pki.oids) { + rval += ' (' + forge.pki.oids[oid] + ') '; + } + } + } + if(obj.type === asn1.Type.INTEGER) { + try { + rval += asn1.derToInteger(obj.value); + } catch(ex) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } + } else if(obj.type === asn1.Type.BITSTRING) { + // TODO: shift bits as needed to display without padding + if(obj.value.length > 1) { + // remove unused bits field + rval += '0x' + forge.util.bytesToHex(obj.value.slice(1)); + } else { + rval += '(none)'; + } + // show unused bit count + if(obj.value.length > 0) { + var unused = obj.value.charCodeAt(0); + if(unused == 1) { + rval += ' (1 unused bit shown)'; + } else if(unused > 1) { + rval += ' (' + unused + ' unused bits shown)'; + } + } + } else if(obj.type === asn1.Type.OCTETSTRING) { + if(!_nonLatinRegex.test(obj.value)) { + rval += '(' + obj.value + ') '; + } + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.type === asn1.Type.UTF8) { + rval += forge.util.decodeUtf8(obj.value); + } else if(obj.type === asn1.Type.PRINTABLESTRING || + obj.type === asn1.Type.IA5String) { + rval += obj.value; + } else if(_nonLatinRegex.test(obj.value)) { + rval += '0x' + forge.util.bytesToHex(obj.value); + } else if(obj.value.length === 0) { + rval += '[null]'; + } else { + rval += obj.value; + } + } + + return rval; +}; + + +/***/ }), + +/***/ 25148: +/***/ ((module) => { + +/** + * Base-N/Base-X encoding/decoding functions. + * + * Original implementation from base-x: + * https://github.com/cryptocoinjs/base-x + * + * Which is MIT licensed: + * + * The MIT License (MIT) + * + * Copyright base-x contributors (c) 2016 + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * DEALINGS IN THE SOFTWARE. + */ +var api = {}; +module.exports = api; + +// baseN alphabet indexes +var _reverseAlphabets = {}; + +/** + * BaseN-encodes a Uint8Array using the given alphabet. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the baseN-encoded output string. + */ +api.encode = function(input, alphabet, maxline) { + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + if(maxline !== undefined && typeof maxline !== 'number') { + throw new TypeError('"maxline" must be a number.'); + } + + var output = ''; + + if(!(input instanceof Uint8Array)) { + // assume forge byte buffer + output = _encodeWithByteBuffer(input, alphabet); + } else { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length; ++i) { + for(var j = 0, carry = input[i]; j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + // deal with leading zeros + for(i = 0; input[i] === 0 && i < input.length - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + } + + if(maxline) { + var regex = new RegExp('.{1,' + maxline + '}', 'g'); + output = output.match(regex).join('\r\n'); + } + + return output; +}; + +/** + * Decodes a baseN-encoded (using the given alphabet) string to a + * Uint8Array. + * + * @param input the baseN-encoded input string. + * + * @return the Uint8Array. + */ +api.decode = function(input, alphabet) { + if(typeof input !== 'string') { + throw new TypeError('"input" must be a string.'); + } + if(typeof alphabet !== 'string') { + throw new TypeError('"alphabet" must be a string.'); + } + + var table = _reverseAlphabets[alphabet]; + if(!table) { + // compute reverse alphabet + table = _reverseAlphabets[alphabet] = []; + for(var i = 0; i < alphabet.length; ++i) { + table[alphabet.charCodeAt(i)] = i; + } + } + + // remove whitespace characters + input = input.replace(/\s/g, ''); + + var base = alphabet.length; + var first = alphabet.charAt(0); + var bytes = [0]; + for(var i = 0; i < input.length; i++) { + var value = table[input.charCodeAt(i)]; + if(value === undefined) { + return; + } + + for(var j = 0, carry = value; j < bytes.length; ++j) { + carry += bytes[j] * base; + bytes[j] = carry & 0xff; + carry >>= 8; + } + + while(carry > 0) { + bytes.push(carry & 0xff); + carry >>= 8; + } + } + + // deal with leading zeros + for(var k = 0; input[k] === first && k < input.length - 1; ++k) { + bytes.push(0); + } + + if(typeof Buffer !== 'undefined') { + return Buffer.from(bytes.reverse()); + } + + return new Uint8Array(bytes.reverse()); +}; + +function _encodeWithByteBuffer(input, alphabet) { + var i = 0; + var base = alphabet.length; + var first = alphabet.charAt(0); + var digits = [0]; + for(i = 0; i < input.length(); ++i) { + for(var j = 0, carry = input.at(i); j < digits.length; ++j) { + carry += digits[j] << 8; + digits[j] = carry % base; + carry = (carry / base) | 0; + } + + while(carry > 0) { + digits.push(carry % base); + carry = (carry / base) | 0; + } + } + + var output = ''; + + // deal with leading zeros + for(i = 0; input.at(i) === 0 && i < input.length() - 1; ++i) { + output += first; + } + // convert digits to a string + for(i = digits.length - 1; i >= 0; --i) { + output += alphabet[digits[i]]; + } + + return output; +} + + +/***/ }), + +/***/ 41298: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Cipher base API. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +module.exports = forge.cipher = forge.cipher || {}; + +// registered algorithms +forge.cipher.algorithms = forge.cipher.algorithms || {}; + +/** + * Creates a cipher object that can be used to encrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createCipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); + } + + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: false + }); +}; + +/** + * Creates a decipher object that can be used to decrypt data using the given + * algorithm and key. The algorithm may be provided as a string value for a + * previously registered algorithm or it may be given as a cipher algorithm + * API object. + * + * @param algorithm the algorithm to use, either a string or an algorithm API + * object. + * @param key the key to use, as a binary-encoded string of bytes or a + * byte buffer. + * + * @return the cipher. + */ +forge.cipher.createDecipher = function(algorithm, key) { + var api = algorithm; + if(typeof api === 'string') { + api = forge.cipher.getAlgorithm(api); + if(api) { + api = api(); + } + } + if(!api) { + throw new Error('Unsupported algorithm: ' + algorithm); + } + + // assume block cipher + return new forge.cipher.BlockCipher({ + algorithm: api, + key: key, + decrypt: true + }); +}; + +/** + * Registers an algorithm by name. If the name was already registered, the + * algorithm API object will be overwritten. + * + * @param name the name of the algorithm. + * @param algorithm the algorithm API object. + */ +forge.cipher.registerAlgorithm = function(name, algorithm) { + name = name.toUpperCase(); + forge.cipher.algorithms[name] = algorithm; +}; + +/** + * Gets a registered algorithm by name. + * + * @param name the name of the algorithm. + * + * @return the algorithm, if found, null if not. + */ +forge.cipher.getAlgorithm = function(name) { + name = name.toUpperCase(); + if(name in forge.cipher.algorithms) { + return forge.cipher.algorithms[name]; + } + return null; +}; + +var BlockCipher = forge.cipher.BlockCipher = function(options) { + this.algorithm = options.algorithm; + this.mode = this.algorithm.mode; + this.blockSize = this.mode.blockSize; + this._finish = false; + this._input = null; + this.output = null; + this._op = options.decrypt ? this.mode.decrypt : this.mode.encrypt; + this._decrypt = options.decrypt; + this.algorithm.initialize(options); +}; + +/** + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * For non-GCM mode, the IV may be a binary-encoded string of bytes, an array + * of bytes, a byte buffer, or an array of 32-bit integers. If the IV is in + * bytes, then it must be Nb (16) bytes in length. If the IV is given in as + * 32-bit integers, then it must be 4 integers long. + * + * Note: an IV is not required or used in ECB mode. + * + * For GCM-mode, the IV must be given as a binary-encoded string of bytes or + * a byte buffer. The number of bytes should be 12 (96 bits) as recommended + * by NIST SP-800-38D but another length may be given. + * + * @param options the options to use: + * iv the initialization vector to use as a binary-encoded string of + * bytes, null to reuse the last ciphered block from a previous + * update() (this "residue" method is for legacy support only). + * additionalData additional authentication data as a binary-encoded + * string of bytes, for 'GCM' mode, (default: none). + * tagLength desired length of authentication tag, in bits, for + * 'GCM' mode (0-128, default: 128). + * tag the authentication tag to check if decrypting, as a + * binary-encoded string of bytes. + * output the output the buffer to write to, null to create one. + */ +BlockCipher.prototype.start = function(options) { + options = options || {}; + var opts = {}; + for(var key in options) { + opts[key] = options[key]; + } + opts.decrypt = this._decrypt; + this._finish = false; + this._input = forge.util.createBuffer(); + this.output = options.output || forge.util.createBuffer(); + this.mode.start(opts); +}; + +/** + * Updates the next block according to the cipher mode. + * + * @param input the buffer to read from. + */ +BlockCipher.prototype.update = function(input) { + if(input) { + // input given, so empty it into the input buffer + this._input.putBuffer(input); + } + + // do cipher operation until it needs more input and not finished + while(!this._op.call(this.mode, this._input, this.output, this._finish) && + !this._finish) {} + + // free consumed memory from input buffer + this._input.compact(); +}; + +/** + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use in CBC mode, null for default, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. + */ +BlockCipher.prototype.finish = function(pad) { + // backwards-compatibility w/deprecated padding API + // Note: will overwrite padding functions even after another start() call + if(pad && (this.mode.name === 'ECB' || this.mode.name === 'CBC')) { + this.mode.pad = function(input) { + return pad(this.blockSize, input, false); + }; + this.mode.unpad = function(output) { + return pad(this.blockSize, output, true); + }; + } + + // build options for padding and afterFinish functions + var options = {}; + options.decrypt = this._decrypt; + + // get # of bytes that won't fill a block + options.overflow = this._input.length() % this.blockSize; + + if(!this._decrypt && this.mode.pad) { + if(!this.mode.pad(this._input, options)) { + return false; + } + } + + // do final update + this._finish = true; + this.update(); + + if(this._decrypt && this.mode.unpad) { + if(!this.mode.unpad(this.output, options)) { + return false; + } + } + + if(this.mode.afterFinish) { + if(!this.mode.afterFinish(this.output, options)) { + return false; + } + } + + return true; +}; + + +/***/ }), + +/***/ 40918: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Supported cipher modes. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +forge.cipher = forge.cipher || {}; + +// supported cipher modes +var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {}; + +/** Electronic codebook (ECB) (Don't use this; it's not secure) **/ + +modes.ecb = function(options) { + options = options || {}; + this.name = 'ECB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); +}; + +modes.ecb.prototype.start = function(options) {}; + +modes.ecb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; + +modes.ecb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); + + // write output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } +}; + +modes.ecb.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; + +modes.ecb.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } + + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } + + // trim off padding bytes + output.truncate(count); + return true; +}; + +/** Cipher-block Chaining (CBC) **/ + +modes.cbc = function(options) { + options = options || {}; + this.name = 'CBC'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); +}; + +modes.cbc.prototype.start = function(options) { + // Note: legacy support for using IV residue (has security flaws) + // if IV is null, reuse block from previous processing + if(options.iv === null) { + // must have a previous block + if(!this._prev) { + throw new Error('Invalid IV parameter.'); + } + this._iv = this._prev.slice(0); + } else if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } else { + // save IV as "previous" block + this._iv = transformIV(options.iv, this.blockSize); + this._prev = this._iv.slice(0); + } +}; + +modes.cbc.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + // CBC XOR's IV (or previous block) with plaintext + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._prev[i] ^ input.getInt32(); + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // write output, save previous block + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i]); + } + this._prev = this._outBlock; +}; + +modes.cbc.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + if(input.length() < this.blockSize && !(finish && input.length() > 0)) { + return true; + } + + // get next block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + } + + // decrypt block + this.cipher.decrypt(this._inBlock, this._outBlock); + + // write output, save previous ciphered block + // CBC XOR's IV (or previous block) with ciphertext + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._prev[i] ^ this._outBlock[i]); + } + this._prev = this._inBlock.slice(0); +}; + +modes.cbc.prototype.pad = function(input, options) { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (input.length() === this.blockSize ? + this.blockSize : (this.blockSize - input.length())); + input.fillWithByte(padding, padding); + return true; +}; + +modes.cbc.prototype.unpad = function(output, options) { + // check for error: input data not a multiple of blockSize + if(options.overflow > 0) { + return false; + } + + // ensure padding byte count is valid + var len = output.length(); + var count = output.at(len - 1); + if(count > (this.blockSize << 2)) { + return false; + } + + // trim off padding bytes + output.truncate(count); + return true; +}; + +/** Cipher feedback (CFB) **/ + +modes.cfb = function(options) { + options = options || {}; + this.name = 'CFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.cfb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.cfb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32() ^ this._outBlock[i]; + output.putInt32(this._inBlock[i]); + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32() ^ this._outBlock[i]; + this._partialOutput.putInt32(this._partialBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.cfb.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output, write input as output + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = input.getInt32(); + output.putInt32(this._inBlock[i] ^ this._outBlock[i]); + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output, write input as partial output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialBlock[i] = input.getInt32(); + this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._partialBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +/** Output feedback (OFB) **/ + +modes.ofb = function(options) { + options = options || {}; + this.name = 'OFB'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ofb.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ofb.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(input.length() === 0) { + return true; + } + + // encrypt block (OFB always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output and update next input + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); + this._inBlock[i] = this._outBlock[i]; + } + return; + } + + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } else { + // block complete, update input block + for(var i = 0; i < this._ints; ++i) { + this._inBlock[i] = this._outBlock[i]; + } + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; +}; + +modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt; + +/** Counter (CTR) **/ + +modes.ctr = function(options) { + options = options || {}; + this.name = 'CTR'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = null; + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; +}; + +modes.ctr.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // use IV as first input + this._iv = transformIV(options.iv, this.blockSize); + this._inBlock = this._iv.slice(0); + this._partialBytes = 0; +}; + +modes.ctr.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block (CTR always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(input.getInt32() ^ this._outBlock[i]); + } + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes > 0) { + // block still incomplete, restore input buffer + input.read -= this.blockSize; + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; + } + + // block complete, increment counter (input block) + inc32(this._inBlock); +}; + +modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt; + +/** Galois/Counter Mode (GCM) **/ + +modes.gcm = function(options) { + options = options || {}; + this.name = 'GCM'; + this.cipher = options.cipher; + this.blockSize = options.blockSize || 16; + this._ints = this.blockSize / 4; + this._inBlock = new Array(this._ints); + this._outBlock = new Array(this._ints); + this._partialOutput = forge.util.createBuffer(); + this._partialBytes = 0; + + // R is actually this value concatenated with 120 more zero bits, but + // we only XOR against R so the other zeros have no effect -- we just + // apply this value to the first integer in a block + this._R = 0xE1000000; +}; + +modes.gcm.prototype.start = function(options) { + if(!('iv' in options)) { + throw new Error('Invalid IV parameter.'); + } + // ensure IV is a byte buffer + var iv = forge.util.createBuffer(options.iv); + + // no ciphered data processed yet + this._cipherLength = 0; + + // default additional data is none + var additionalData; + if('additionalData' in options) { + additionalData = forge.util.createBuffer(options.additionalData); + } else { + additionalData = forge.util.createBuffer(); + } + + // default tag length is 128 bits + if('tagLength' in options) { + this._tagLength = options.tagLength; + } else { + this._tagLength = 128; + } + + // if tag is given, ensure tag matches tag length + this._tag = null; + if(options.decrypt) { + // save tag to check later + this._tag = forge.util.createBuffer(options.tag).getBytes(); + if(this._tag.length !== (this._tagLength / 8)) { + throw new Error('Authentication tag does not match tag length.'); + } + } + + // create tmp storage for hash calculation + this._hashBlock = new Array(this._ints); + + // no tag generated yet + this.tag = null; + + // generate hash subkey + // (apply block cipher to "zero" block) + this._hashSubkey = new Array(this._ints); + this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey); + + // generate table M + // use 4-bit tables (32 component decomposition of a 16 byte value) + // 8-bit tables take more space and are known to have security + // vulnerabilities (in native implementations) + this.componentBits = 4; + this._m = this.generateHashTable(this._hashSubkey, this.componentBits); + + // Note: support IV length different from 96 bits? (only supporting + // 96 bits is recommended by NIST SP-800-38D) + // generate J_0 + var ivLength = iv.length(); + if(ivLength === 12) { + // 96-bit IV + this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1]; + } else { + // IV is NOT 96-bits + this._j0 = [0, 0, 0, 0]; + while(iv.length() > 0) { + this._j0 = this.ghash( + this._hashSubkey, this._j0, + [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]); + } + this._j0 = this.ghash( + this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8))); + } + + // generate ICB (initial counter block) + this._inBlock = this._j0.slice(0); + inc32(this._inBlock); + this._partialBytes = 0; + + // consume authentication data + additionalData = forge.util.createBuffer(additionalData); + // save additional data length as a BE 64-bit number + this._aDataLength = from64To32(additionalData.length() * 8); + // pad additional data to 128 bit (16 byte) block size + var overflow = additionalData.length() % this.blockSize; + if(overflow) { + additionalData.fillWithByte(0, this.blockSize - overflow); + } + this._s = [0, 0, 0, 0]; + while(additionalData.length() > 0) { + this._s = this.ghash(this._hashSubkey, this._s, [ + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32(), + additionalData.getInt32() + ]); + } +}; + +modes.gcm.prototype.encrypt = function(input, output, finish) { + // not enough input to encrypt + var inputLength = input.length(); + if(inputLength === 0) { + return true; + } + + // encrypt block + this.cipher.encrypt(this._inBlock, this._outBlock); + + // handle full block + if(this._partialBytes === 0 && inputLength >= this.blockSize) { + // XOR input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^= input.getInt32()); + } + this._cipherLength += this.blockSize; + } else { + // handle partial block + var partialBytes = (this.blockSize - inputLength) % this.blockSize; + if(partialBytes > 0) { + partialBytes = this.blockSize - partialBytes; + } + + // XOR input with output + this._partialOutput.clear(); + for(var i = 0; i < this._ints; ++i) { + this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]); + } + + if(partialBytes <= 0 || finish) { + // handle overflow prior to hashing + if(finish) { + // get block overflow + var overflow = inputLength % this.blockSize; + this._cipherLength += overflow; + // truncate for hash function + this._partialOutput.truncate(this.blockSize - overflow); + } else { + this._cipherLength += this.blockSize; + } + + // get output block for hashing + for(var i = 0; i < this._ints; ++i) { + this._outBlock[i] = this._partialOutput.getInt32(); + } + this._partialOutput.read -= this.blockSize; + } + + // skip any previous partial bytes + if(this._partialBytes > 0) { + this._partialOutput.getBytes(this._partialBytes); + } + + if(partialBytes > 0 && !finish) { + // block still incomplete, restore input buffer, get partial output, + // and return early + input.read -= this.blockSize; + output.putBytes(this._partialOutput.getBytes( + partialBytes - this._partialBytes)); + this._partialBytes = partialBytes; + return true; + } + + output.putBytes(this._partialOutput.getBytes( + inputLength - this._partialBytes)); + this._partialBytes = 0; + } + + // update hash block S + this._s = this.ghash(this._hashSubkey, this._s, this._outBlock); + + // increment counter (input block) + inc32(this._inBlock); +}; + +modes.gcm.prototype.decrypt = function(input, output, finish) { + // not enough input to decrypt + var inputLength = input.length(); + if(inputLength < this.blockSize && !(finish && inputLength > 0)) { + return true; + } + + // encrypt block (GCM always uses encryption mode) + this.cipher.encrypt(this._inBlock, this._outBlock); + + // increment counter (input block) + inc32(this._inBlock); + + // update hash block S + this._hashBlock[0] = input.getInt32(); + this._hashBlock[1] = input.getInt32(); + this._hashBlock[2] = input.getInt32(); + this._hashBlock[3] = input.getInt32(); + this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock); + + // XOR hash input with output + for(var i = 0; i < this._ints; ++i) { + output.putInt32(this._outBlock[i] ^ this._hashBlock[i]); + } + + // increment cipher data length + if(inputLength < this.blockSize) { + this._cipherLength += inputLength % this.blockSize; + } else { + this._cipherLength += this.blockSize; + } +}; + +modes.gcm.prototype.afterFinish = function(output, options) { + var rval = true; + + // handle overflow + if(options.decrypt && options.overflow) { + output.truncate(this.blockSize - options.overflow); + } + + // handle authentication tag + this.tag = forge.util.createBuffer(); + + // concatenate additional data length with cipher length + var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8)); + + // include lengths in hash + this._s = this.ghash(this._hashSubkey, this._s, lengths); + + // do GCTR(J_0, S) + var tag = []; + this.cipher.encrypt(this._j0, tag); + for(var i = 0; i < this._ints; ++i) { + this.tag.putInt32(this._s[i] ^ tag[i]); + } + + // trim tag to length + this.tag.truncate(this.tag.length() % (this._tagLength / 8)); + + // check authentication tag + if(options.decrypt && this.tag.bytes() !== this._tag) { + rval = false; + } + + return rval; +}; + +/** + * See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois + * field multiplication. The field, GF(2^128), is defined by the polynomial: + * + * x^128 + x^7 + x^2 + x + 1 + * + * Which is represented in little-endian binary form as: 11100001 (0xe1). When + * the value of a coefficient is 1, a bit is set. The value R, is the + * concatenation of this value and 120 zero bits, yielding a 128-bit value + * which matches the block size. + * + * This function will multiply two elements (vectors of bytes), X and Y, in + * the field GF(2^128). The result is initialized to zero. For each bit of + * X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd) + * by the current value of Y. For each bit, the value of Y will be raised by + * a power of x (multiplied by the polynomial x). This can be achieved by + * shifting Y once to the right. If the current value of Y, prior to being + * multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial. + * Otherwise, we must divide by R after shifting to find the remainder. + * + * @param x the first block to multiply by the second. + * @param y the second block to multiply by the first. + * + * @return the block result of the multiplication. + */ +modes.gcm.prototype.multiply = function(x, y) { + var z_i = [0, 0, 0, 0]; + var v_i = y.slice(0); + + // calculate Z_128 (block has 128 bits) + for(var i = 0; i < 128; ++i) { + // if x_i is 0, Z_{i+1} = Z_i (unchanged) + // else Z_{i+1} = Z_i ^ V_i + // get x_i by finding 32-bit int position, then left shift 1 by remainder + var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32)); + if(x_i) { + z_i[0] ^= v_i[0]; + z_i[1] ^= v_i[1]; + z_i[2] ^= v_i[2]; + z_i[3] ^= v_i[3]; + } + + // if LSB(V_i) is 1, V_i = V_i >> 1 + // else V_i = (V_i >> 1) ^ R + this.pow(v_i, v_i); + } + + return z_i; +}; + +modes.gcm.prototype.pow = function(x, out) { + // if LSB(x) is 1, x = x >>> 1 + // else x = (x >>> 1) ^ R + var lsb = x[3] & 1; + + // always do x >>> 1: + // starting with the rightmost integer, shift each integer to the right + // one bit, pulling in the bit from the integer to the left as its top + // most bit (do this for the last 3 integers) + for(var i = 3; i > 0; --i) { + out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31); + } + // shift the first integer normally + out[0] = x[0] >>> 1; + + // if lsb was not set, then polynomial had a degree of 127 and doesn't + // need to divided; otherwise, XOR with R to find the remainder; we only + // need to XOR the first integer since R technically ends w/120 zero bits + if(lsb) { + out[0] ^= this._R; + } +}; + +modes.gcm.prototype.tableMultiply = function(x) { + // assumes 4-bit tables are used + var z = [0, 0, 0, 0]; + for(var i = 0; i < 32; ++i) { + var idx = (i / 8) | 0; + var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF; + var ah = this._m[i][x_i]; + z[0] ^= ah[0]; + z[1] ^= ah[1]; + z[2] ^= ah[2]; + z[3] ^= ah[3]; + } + return z; +}; + +/** + * A continuing version of the GHASH algorithm that operates on a single + * block. The hash block, last hash value (Ym) and the new block to hash + * are given. + * + * @param h the hash block. + * @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash. + * @param x the block to hash. + * + * @return the hashed value (Ym). + */ +modes.gcm.prototype.ghash = function(h, y, x) { + y[0] ^= x[0]; + y[1] ^= x[1]; + y[2] ^= x[2]; + y[3] ^= x[3]; + return this.tableMultiply(y); + //return this.multiply(y, h); +}; + +/** + * Precomputes a table for multiplying against the hash subkey. This + * mechanism provides a substantial speed increase over multiplication + * performed without a table. The table-based multiplication this table is + * for solves X * H by multiplying each component of X by H and then + * composing the results together using XOR. + * + * This function can be used to generate tables with different bit sizes + * for the components, however, this implementation assumes there are + * 32 components of X (which is a 16 byte vector), therefore each component + * takes 4-bits (so the table is constructed with bits=4). + * + * @param h the hash subkey. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateHashTable = function(h, bits) { + // TODO: There are further optimizations that would use only the + // first table M_0 (or some variant) along with a remainder table; + // this can be explored in the future + var multiplier = 8 / bits; + var perInt = 4 * multiplier; + var size = 16 * multiplier; + var m = new Array(size); + for(var i = 0; i < size; ++i) { + var tmp = [0, 0, 0, 0]; + var idx = (i / perInt) | 0; + var shft = ((perInt - 1 - (i % perInt)) * bits); + tmp[idx] = (1 << (bits - 1)) << shft; + m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits); + } + return m; +}; + +/** + * Generates a table for multiplying against the hash subkey for one + * particular component (out of all possible component values). + * + * @param mid the pre-multiplied value for the middle key of the table. + * @param bits the bit size for a component. + */ +modes.gcm.prototype.generateSubHashTable = function(mid, bits) { + // compute the table quickly by minimizing the number of + // POW operations -- they only need to be performed for powers of 2, + // all other entries can be composed from those powers using XOR + var size = 1 << bits; + var half = size >>> 1; + var m = new Array(size); + m[half] = mid.slice(0); + var i = half >>> 1; + while(i > 0) { + // raise m0[2 * i] and store in m0[i] + this.pow(m[2 * i], m[i] = []); + i >>= 1; + } + i = 2; + while(i < half) { + for(var j = 1; j < i; ++j) { + var m_i = m[i]; + var m_j = m[j]; + m[i + j] = [ + m_i[0] ^ m_j[0], + m_i[1] ^ m_j[1], + m_i[2] ^ m_j[2], + m_i[3] ^ m_j[3] + ]; + } + i *= 2; + } + m[0] = [0, 0, 0, 0]; + /* Note: We could avoid storing these by doing composition during multiply + calculate top half using composition by speed is preferred. */ + for(i = half + 1; i < size; ++i) { + var c = m[i ^ half]; + m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]]; + } + return m; +}; + +/** Utility functions */ + +function transformIV(iv, blockSize) { + if(typeof iv === 'string') { + // convert iv string into byte buffer + iv = forge.util.createBuffer(iv); + } + + if(forge.util.isArray(iv) && iv.length > 4) { + // convert iv byte array into byte buffer + var tmp = iv; + iv = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + iv.putByte(tmp[i]); + } + } + + if(iv.length() < blockSize) { + throw new Error( + 'Invalid IV length; got ' + iv.length() + + ' bytes and expected ' + blockSize + ' bytes.'); + } + + if(!forge.util.isArray(iv)) { + // convert iv byte buffer into 32-bit integer array + var ints = []; + var blocks = blockSize / 4; + for(var i = 0; i < blocks; ++i) { + ints.push(iv.getInt32()); + } + iv = ints; + } + + return iv; +} + +function inc32(block) { + // increment last 32 bits of block only + block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF; +} + +function from64To32(num) { + // convert 64-bit number to two BE Int32s + return [(num / 0x100000000) | 0, num & 0xFFFFFFFF]; +} + + +/***/ }), + +/***/ 18713: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Debugging support for web applications. + * + * @author David I. Lehn + * + * Copyright 2008-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); + +/* DEBUG API */ +module.exports = forge.debug = forge.debug || {}; + +// Private storage for debugging. +// Useful to expose data that is otherwise unviewable behind closures. +// NOTE: remember that this can hold references to data and cause leaks! +// format is "forge._debug.. = data" +// Example: +// (function() { +// var cat = 'forge.test.Test'; // debugging category +// var sState = {...}; // local state +// forge.debug.set(cat, 'sState', sState); +// })(); +forge.debug.storage = {}; + +/** + * Gets debug data. Omit name for all cat data Omit name and cat for + * all data. + * + * @param cat name of debugging category. + * @param name name of data to get (optional). + * @return object with requested debug data or undefined. + */ +forge.debug.get = function(cat, name) { + var rval; + if(typeof(cat) === 'undefined') { + rval = forge.debug.storage; + } else if(cat in forge.debug.storage) { + if(typeof(name) === 'undefined') { + rval = forge.debug.storage[cat]; + } else { + rval = forge.debug.storage[cat][name]; + } + } + return rval; +}; + +/** + * Sets debug data. + * + * @param cat name of debugging category. + * @param name name of data to set. + * @param data data to set. + */ +forge.debug.set = function(cat, name, data) { + if(!(cat in forge.debug.storage)) { + forge.debug.storage[cat] = {}; + } + forge.debug.storage[cat][name] = data; +}; + +/** + * Clears debug data. Omit name for all cat data. Omit name and cat for + * all data. + * + * @param cat name of debugging category. + * @param name name of data to clear or omit to clear entire category. + */ +forge.debug.clear = function(cat, name) { + if(typeof(cat) === 'undefined') { + forge.debug.storage = {}; + } else if(cat in forge.debug.storage) { + if(typeof(name) === 'undefined') { + delete forge.debug.storage[cat]; + } else { + delete forge.debug.storage[cat][name]; + } + } +}; + + +/***/ }), + +/***/ 88450: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * DES (Data Encryption Standard) implementation. + * + * This implementation supports DES as well as 3DES-EDE in ECB and CBC mode. + * It is based on the BSD-licensed implementation by Paul Tero: + * + * Paul Tero, July 2001 + * http://www.tero.co.uk/des/ + * + * Optimised for performance with large blocks by + * Michael Hayworth, November 2001 + * http://www.netdealing.com + * + * THIS SOFTWARE IS PROVIDED "AS IS" AND + * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE + * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL + * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT + * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY + * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF + * SUCH DAMAGE. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(41298); +__nccwpck_require__(40918); +__nccwpck_require__(21726); + +/* DES API */ +module.exports = forge.des = forge.des || {}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('DES-', key); + * cipher.start({iv: iv}); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. + */ +forge.des.startEncrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: false, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var cipher = forge.cipher.createCipher('DES-', key); + * + * Creates an DES cipher object to encrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.des.createEncryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: false, + mode: mode + }); +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('DES-', key); + * decipher.start({iv: iv}); + * + * Creates an DES cipher object to decrypt data using the given symmetric key. + * The output will be stored in the 'output' member of the returned cipher. + * + * The key and iv may be given as binary-encoded strings of bytes or + * byte buffers. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * @param mode the cipher mode to use (default: 'CBC' if IV is + * given, 'ECB' if null). + * + * @return the cipher. + */ +forge.des.startDecrypting = function(key, iv, output, mode) { + var cipher = _createCipher({ + key: key, + output: output, + decrypt: true, + mode: mode || (iv === null ? 'ECB' : 'CBC') + }); + cipher.start(iv); + return cipher; +}; + +/** + * Deprecated. Instead, use: + * + * var decipher = forge.cipher.createDecipher('DES-', key); + * + * Creates an DES cipher object to decrypt data using the given symmetric key. + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param key the symmetric key to use (64 or 192 bits). + * @param mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +forge.des.createDecryptionCipher = function(key, mode) { + return _createCipher({ + key: key, + output: null, + decrypt: true, + mode: mode + }); +}; + +/** + * Creates a new DES cipher algorithm object. + * + * @param name the name of the algorithm. + * @param mode the mode factory function. + * + * @return the DES algorithm object. + */ +forge.des.Algorithm = function(name, mode) { + var self = this; + self.name = name; + self.mode = new mode({ + blockSize: 8, + cipher: { + encrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, false); + }, + decrypt: function(inBlock, outBlock) { + return _updateBlock(self._keys, inBlock, outBlock, true); + } + } + }); + self._init = false; +}; + +/** + * Initializes this DES algorithm by expanding its key. + * + * @param options the options to use. + * key the key to use with this algorithm. + * decrypt true if the algorithm should be initialized for decryption, + * false for encryption. + */ +forge.des.Algorithm.prototype.initialize = function(options) { + if(this._init) { + return; + } + + var key = forge.util.createBuffer(options.key); + if(this.name.indexOf('3DES') === 0) { + if(key.length() !== 24) { + throw new Error('Invalid Triple-DES key size: ' + key.length() * 8); + } + } + + // do key expansion to 16 or 48 subkeys (single or triple DES) + this._keys = _createKeys(key); + this._init = true; +}; + +/** Register DES algorithms **/ + +registerAlgorithm('DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('DES-CTR', forge.cipher.modes.ctr); + +registerAlgorithm('3DES-ECB', forge.cipher.modes.ecb); +registerAlgorithm('3DES-CBC', forge.cipher.modes.cbc); +registerAlgorithm('3DES-CFB', forge.cipher.modes.cfb); +registerAlgorithm('3DES-OFB', forge.cipher.modes.ofb); +registerAlgorithm('3DES-CTR', forge.cipher.modes.ctr); + +function registerAlgorithm(name, mode) { + var factory = function() { + return new forge.des.Algorithm(name, mode); + }; + forge.cipher.registerAlgorithm(name, factory); +} + +/** DES implementation **/ + +var spfunction1 = [0x1010400,0,0x10000,0x1010404,0x1010004,0x10404,0x4,0x10000,0x400,0x1010400,0x1010404,0x400,0x1000404,0x1010004,0x1000000,0x4,0x404,0x1000400,0x1000400,0x10400,0x10400,0x1010000,0x1010000,0x1000404,0x10004,0x1000004,0x1000004,0x10004,0,0x404,0x10404,0x1000000,0x10000,0x1010404,0x4,0x1010000,0x1010400,0x1000000,0x1000000,0x400,0x1010004,0x10000,0x10400,0x1000004,0x400,0x4,0x1000404,0x10404,0x1010404,0x10004,0x1010000,0x1000404,0x1000004,0x404,0x10404,0x1010400,0x404,0x1000400,0x1000400,0,0x10004,0x10400,0,0x1010004]; +var spfunction2 = [-0x7fef7fe0,-0x7fff8000,0x8000,0x108020,0x100000,0x20,-0x7fefffe0,-0x7fff7fe0,-0x7fffffe0,-0x7fef7fe0,-0x7fef8000,-0x80000000,-0x7fff8000,0x100000,0x20,-0x7fefffe0,0x108000,0x100020,-0x7fff7fe0,0,-0x80000000,0x8000,0x108020,-0x7ff00000,0x100020,-0x7fffffe0,0,0x108000,0x8020,-0x7fef8000,-0x7ff00000,0x8020,0,0x108020,-0x7fefffe0,0x100000,-0x7fff7fe0,-0x7ff00000,-0x7fef8000,0x8000,-0x7ff00000,-0x7fff8000,0x20,-0x7fef7fe0,0x108020,0x20,0x8000,-0x80000000,0x8020,-0x7fef8000,0x100000,-0x7fffffe0,0x100020,-0x7fff7fe0,-0x7fffffe0,0x100020,0x108000,0,-0x7fff8000,0x8020,-0x80000000,-0x7fefffe0,-0x7fef7fe0,0x108000]; +var spfunction3 = [0x208,0x8020200,0,0x8020008,0x8000200,0,0x20208,0x8000200,0x20008,0x8000008,0x8000008,0x20000,0x8020208,0x20008,0x8020000,0x208,0x8000000,0x8,0x8020200,0x200,0x20200,0x8020000,0x8020008,0x20208,0x8000208,0x20200,0x20000,0x8000208,0x8,0x8020208,0x200,0x8000000,0x8020200,0x8000000,0x20008,0x208,0x20000,0x8020200,0x8000200,0,0x200,0x20008,0x8020208,0x8000200,0x8000008,0x200,0,0x8020008,0x8000208,0x20000,0x8000000,0x8020208,0x8,0x20208,0x20200,0x8000008,0x8020000,0x8000208,0x208,0x8020000,0x20208,0x8,0x8020008,0x20200]; +var spfunction4 = [0x802001,0x2081,0x2081,0x80,0x802080,0x800081,0x800001,0x2001,0,0x802000,0x802000,0x802081,0x81,0,0x800080,0x800001,0x1,0x2000,0x800000,0x802001,0x80,0x800000,0x2001,0x2080,0x800081,0x1,0x2080,0x800080,0x2000,0x802080,0x802081,0x81,0x800080,0x800001,0x802000,0x802081,0x81,0,0,0x802000,0x2080,0x800080,0x800081,0x1,0x802001,0x2081,0x2081,0x80,0x802081,0x81,0x1,0x2000,0x800001,0x2001,0x802080,0x800081,0x2001,0x2080,0x800000,0x802001,0x80,0x800000,0x2000,0x802080]; +var spfunction5 = [0x100,0x2080100,0x2080000,0x42000100,0x80000,0x100,0x40000000,0x2080000,0x40080100,0x80000,0x2000100,0x40080100,0x42000100,0x42080000,0x80100,0x40000000,0x2000000,0x40080000,0x40080000,0,0x40000100,0x42080100,0x42080100,0x2000100,0x42080000,0x40000100,0,0x42000000,0x2080100,0x2000000,0x42000000,0x80100,0x80000,0x42000100,0x100,0x2000000,0x40000000,0x2080000,0x42000100,0x40080100,0x2000100,0x40000000,0x42080000,0x2080100,0x40080100,0x100,0x2000000,0x42080000,0x42080100,0x80100,0x42000000,0x42080100,0x2080000,0,0x40080000,0x42000000,0x80100,0x2000100,0x40000100,0x80000,0,0x40080000,0x2080100,0x40000100]; +var spfunction6 = [0x20000010,0x20400000,0x4000,0x20404010,0x20400000,0x10,0x20404010,0x400000,0x20004000,0x404010,0x400000,0x20000010,0x400010,0x20004000,0x20000000,0x4010,0,0x400010,0x20004010,0x4000,0x404000,0x20004010,0x10,0x20400010,0x20400010,0,0x404010,0x20404000,0x4010,0x404000,0x20404000,0x20000000,0x20004000,0x10,0x20400010,0x404000,0x20404010,0x400000,0x4010,0x20000010,0x400000,0x20004000,0x20000000,0x4010,0x20000010,0x20404010,0x404000,0x20400000,0x404010,0x20404000,0,0x20400010,0x10,0x4000,0x20400000,0x404010,0x4000,0x400010,0x20004010,0,0x20404000,0x20000000,0x400010,0x20004010]; +var spfunction7 = [0x200000,0x4200002,0x4000802,0,0x800,0x4000802,0x200802,0x4200800,0x4200802,0x200000,0,0x4000002,0x2,0x4000000,0x4200002,0x802,0x4000800,0x200802,0x200002,0x4000800,0x4000002,0x4200000,0x4200800,0x200002,0x4200000,0x800,0x802,0x4200802,0x200800,0x2,0x4000000,0x200800,0x4000000,0x200800,0x200000,0x4000802,0x4000802,0x4200002,0x4200002,0x2,0x200002,0x4000000,0x4000800,0x200000,0x4200800,0x802,0x200802,0x4200800,0x802,0x4000002,0x4200802,0x4200000,0x200800,0,0x2,0x4200802,0,0x200802,0x4200000,0x800,0x4000002,0x4000800,0x800,0x200002]; +var spfunction8 = [0x10001040,0x1000,0x40000,0x10041040,0x10000000,0x10001040,0x40,0x10000000,0x40040,0x10040000,0x10041040,0x41000,0x10041000,0x41040,0x1000,0x40,0x10040000,0x10000040,0x10001000,0x1040,0x41000,0x40040,0x10040040,0x10041000,0x1040,0,0,0x10040040,0x10000040,0x10001000,0x41040,0x40000,0x41040,0x40000,0x10041000,0x1000,0x40,0x10040040,0x1000,0x41040,0x10001000,0x40,0x10000040,0x10040000,0x10040040,0x10000000,0x40000,0x10001040,0,0x10041040,0x40040,0x10000040,0x10040000,0x10001000,0x10001040,0,0x10041040,0x41000,0x41000,0x1040,0x1040,0x40040,0x10000000,0x10041000]; + +/** + * Create necessary sub keys. + * + * @param key the 64-bit or 192-bit key. + * + * @return the expanded keys. + */ +function _createKeys(key) { + var pc2bytes0 = [0,0x4,0x20000000,0x20000004,0x10000,0x10004,0x20010000,0x20010004,0x200,0x204,0x20000200,0x20000204,0x10200,0x10204,0x20010200,0x20010204], + pc2bytes1 = [0,0x1,0x100000,0x100001,0x4000000,0x4000001,0x4100000,0x4100001,0x100,0x101,0x100100,0x100101,0x4000100,0x4000101,0x4100100,0x4100101], + pc2bytes2 = [0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808,0,0x8,0x800,0x808,0x1000000,0x1000008,0x1000800,0x1000808], + pc2bytes3 = [0,0x200000,0x8000000,0x8200000,0x2000,0x202000,0x8002000,0x8202000,0x20000,0x220000,0x8020000,0x8220000,0x22000,0x222000,0x8022000,0x8222000], + pc2bytes4 = [0,0x40000,0x10,0x40010,0,0x40000,0x10,0x40010,0x1000,0x41000,0x1010,0x41010,0x1000,0x41000,0x1010,0x41010], + pc2bytes5 = [0,0x400,0x20,0x420,0,0x400,0x20,0x420,0x2000000,0x2000400,0x2000020,0x2000420,0x2000000,0x2000400,0x2000020,0x2000420], + pc2bytes6 = [0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002,0,0x10000000,0x80000,0x10080000,0x2,0x10000002,0x80002,0x10080002], + pc2bytes7 = [0,0x10000,0x800,0x10800,0x20000000,0x20010000,0x20000800,0x20010800,0x20000,0x30000,0x20800,0x30800,0x20020000,0x20030000,0x20020800,0x20030800], + pc2bytes8 = [0,0x40000,0,0x40000,0x2,0x40002,0x2,0x40002,0x2000000,0x2040000,0x2000000,0x2040000,0x2000002,0x2040002,0x2000002,0x2040002], + pc2bytes9 = [0,0x10000000,0x8,0x10000008,0,0x10000000,0x8,0x10000008,0x400,0x10000400,0x408,0x10000408,0x400,0x10000400,0x408,0x10000408], + pc2bytes10 = [0,0x20,0,0x20,0x100000,0x100020,0x100000,0x100020,0x2000,0x2020,0x2000,0x2020,0x102000,0x102020,0x102000,0x102020], + pc2bytes11 = [0,0x1000000,0x200,0x1000200,0x200000,0x1200000,0x200200,0x1200200,0x4000000,0x5000000,0x4000200,0x5000200,0x4200000,0x5200000,0x4200200,0x5200200], + pc2bytes12 = [0,0x1000,0x8000000,0x8001000,0x80000,0x81000,0x8080000,0x8081000,0x10,0x1010,0x8000010,0x8001010,0x80010,0x81010,0x8080010,0x8081010], + pc2bytes13 = [0,0x4,0x100,0x104,0,0x4,0x100,0x104,0x1,0x5,0x101,0x105,0x1,0x5,0x101,0x105]; + + // how many iterations (1 for des, 3 for triple des) + // changed by Paul 16/6/2007 to use Triple DES for 9+ byte keys + var iterations = key.length() > 8 ? 3 : 1; + + // stores the return keys + var keys = []; + + // now define the left shifts which need to be done + var shifts = [0, 0, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 0]; + + var n = 0, tmp; + for(var j = 0; j < iterations; j++) { + var left = key.getInt32(); + var right = key.getInt32(); + + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); + + tmp = ((left >>> 2) ^ right) & 0x33333333; + right ^= tmp; + left ^= (tmp << 2); + + tmp = ((right >>> -16) ^ left) & 0x0000ffff; + left ^= tmp; + right ^= (tmp << -16); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + // right needs to be shifted and OR'd with last four bits of left + tmp = (left << 8) | ((right >>> 20) & 0x000000f0); + + // left needs to be put upside down + left = ((right << 24) | ((right << 8) & 0xff0000) | + ((right >>> 8) & 0xff00) | ((right >>> 24) & 0xf0)); + right = tmp; + + // now go through and perform these shifts on the left and right keys + for(var i = 0; i < shifts.length; ++i) { + //shift the keys either one or two bits to the left + if(shifts[i]) { + left = (left << 2) | (left >>> 26); + right = (right << 2) | (right >>> 26); + } else { + left = (left << 1) | (left >>> 27); + right = (right << 1) | (right >>> 27); + } + left &= -0xf; + right &= -0xf; + + // now apply PC-2, in such a way that E is easier when encrypting or + // decrypting this conversion will look like PC-2 except only the last 6 + // bits of each byte are used rather than 48 consecutive bits and the + // order of lines will be according to how the S selection functions will + // be applied: S2, S4, S6, S8, S1, S3, S5, S7 + var lefttmp = ( + pc2bytes0[left >>> 28] | pc2bytes1[(left >>> 24) & 0xf] | + pc2bytes2[(left >>> 20) & 0xf] | pc2bytes3[(left >>> 16) & 0xf] | + pc2bytes4[(left >>> 12) & 0xf] | pc2bytes5[(left >>> 8) & 0xf] | + pc2bytes6[(left >>> 4) & 0xf]); + var righttmp = ( + pc2bytes7[right >>> 28] | pc2bytes8[(right >>> 24) & 0xf] | + pc2bytes9[(right >>> 20) & 0xf] | pc2bytes10[(right >>> 16) & 0xf] | + pc2bytes11[(right >>> 12) & 0xf] | pc2bytes12[(right >>> 8) & 0xf] | + pc2bytes13[(right >>> 4) & 0xf]); + tmp = ((righttmp >>> 16) ^ lefttmp) & 0x0000ffff; + keys[n++] = lefttmp ^ tmp; + keys[n++] = righttmp ^ (tmp << 16); + } + } + + return keys; +} + +/** + * Updates a single block (1 byte) using DES. The update will either + * encrypt or decrypt the block. + * + * @param keys the expanded keys. + * @param input the input block (an array of 32-bit words). + * @param output the updated output block. + * @param decrypt true to decrypt the block, false to encrypt it. + */ +function _updateBlock(keys, input, output, decrypt) { + // set up loops for single or triple DES + var iterations = keys.length === 32 ? 3 : 9; + var looping; + if(iterations === 3) { + looping = decrypt ? [30, -2, -2] : [0, 32, 2]; + } else { + looping = (decrypt ? + [94, 62, -2, 32, 64, 2, 30, -2, -2] : + [0, 32, 2, 62, 30, -2, 64, 96, 2]); + } + + var tmp; + + var left = input[0]; + var right = input[1]; + + // first each 64 bit chunk of the message must be permuted according to IP + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); + + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + // rotate left 1 bit + left = ((left << 1) | (left >>> 31)); + right = ((right << 1) | (right >>> 31)); + + for(var j = 0; j < iterations; j += 3) { + var endloop = looping[j + 1]; + var loopinc = looping[j + 2]; + + // now go through and perform the encryption or decryption + for(var i = looping[j]; i != endloop; i += loopinc) { + var right1 = right ^ keys[i]; + var right2 = ((right >>> 4) | (right << 28)) ^ keys[i + 1]; + + // passing these bytes through the S selection functions + tmp = left; + left = right; + right = tmp ^ ( + spfunction2[(right1 >>> 24) & 0x3f] | + spfunction4[(right1 >>> 16) & 0x3f] | + spfunction6[(right1 >>> 8) & 0x3f] | + spfunction8[right1 & 0x3f] | + spfunction1[(right2 >>> 24) & 0x3f] | + spfunction3[(right2 >>> 16) & 0x3f] | + spfunction5[(right2 >>> 8) & 0x3f] | + spfunction7[right2 & 0x3f]); + } + // unreverse left and right + tmp = left; + left = right; + right = tmp; + } + + // rotate right 1 bit + left = ((left >>> 1) | (left << 31)); + right = ((right >>> 1) | (right << 31)); + + // now perform IP-1, which is IP in the opposite direction + tmp = ((left >>> 1) ^ right) & 0x55555555; + right ^= tmp; + left ^= (tmp << 1); + + tmp = ((right >>> 8) ^ left) & 0x00ff00ff; + left ^= tmp; + right ^= (tmp << 8); + + tmp = ((right >>> 2) ^ left) & 0x33333333; + left ^= tmp; + right ^= (tmp << 2); + + tmp = ((left >>> 16) ^ right) & 0x0000ffff; + right ^= tmp; + left ^= (tmp << 16); + + tmp = ((left >>> 4) ^ right) & 0x0f0f0f0f; + right ^= tmp; + left ^= (tmp << 4); + + output[0] = left; + output[1] = right; +} + +/** + * Deprecated. Instead, use: + * + * forge.cipher.createCipher('DES-', key); + * forge.cipher.createDecipher('DES-', key); + * + * Creates a deprecated DES cipher object. This object's mode will default to + * CBC (cipher-block-chaining). + * + * The key may be given as a binary-encoded string of bytes or a byte buffer. + * + * @param options the options to use. + * key the symmetric key to use (64 or 192 bits). + * output the buffer to write to. + * decrypt true for decryption, false for encryption. + * mode the cipher mode to use (default: 'CBC'). + * + * @return the cipher. + */ +function _createCipher(options) { + options = options || {}; + var mode = (options.mode || 'CBC').toUpperCase(); + var algorithm = 'DES-' + mode; + + var cipher; + if(options.decrypt) { + cipher = forge.cipher.createDecipher(algorithm, options.key); + } else { + cipher = forge.cipher.createCipher(algorithm, options.key); + } + + // backwards compatible start API + var start = cipher.start; + cipher.start = function(iv, options) { + // backwards compatibility: support second arg as output buffer + var output = null; + if(options instanceof forge.util.ByteBuffer) { + output = options; + options = {}; + } + options = options || {}; + options.output = output; + options.iv = iv; + start.call(cipher, options); + }; + + return cipher; +} + + +/***/ }), + +/***/ 49095: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * JavaScript implementation of Ed25519. + * + * Copyright (c) 2017-2019 Digital Bazaar, Inc. + * + * This implementation is based on the most excellent TweetNaCl which is + * in the public domain. Many thanks to its contributors: + * + * https://github.com/dchest/tweetnacl-js + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(59368); +__nccwpck_require__(61698); +__nccwpck_require__(83160); +__nccwpck_require__(21726); +var asn1Validator = __nccwpck_require__(22596); +var publicKeyValidator = asn1Validator.publicKeyValidator; +var privateKeyValidator = asn1Validator.privateKeyValidator; + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +var ByteBuffer = forge.util.ByteBuffer; +var NativeBuffer = typeof Buffer === 'undefined' ? Uint8Array : Buffer; + +/* + * Ed25519 algorithms, see RFC 8032: + * https://tools.ietf.org/html/rfc8032 + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.ed25519 = forge.ed25519 = forge.ed25519 || {}; +var ed25519 = forge.ed25519; + +ed25519.constants = {}; +ed25519.constants.PUBLIC_KEY_BYTE_LENGTH = 32; +ed25519.constants.PRIVATE_KEY_BYTE_LENGTH = 64; +ed25519.constants.SEED_BYTE_LENGTH = 32; +ed25519.constants.SIGN_BYTE_LENGTH = 64; +ed25519.constants.HASH_BYTE_LENGTH = 64; + +ed25519.generateKeyPair = function(options) { + options = options || {}; + var seed = options.seed; + if(seed === undefined) { + // generate seed + seed = forge.random.getBytesSync(ed25519.constants.SEED_BYTE_LENGTH); + } else if(typeof seed === 'string') { + if(seed.length !== ed25519.constants.SEED_BYTE_LENGTH) { + throw new TypeError( + '"seed" must be ' + ed25519.constants.SEED_BYTE_LENGTH + + ' bytes in length.'); + } + } else if(!(seed instanceof Uint8Array)) { + throw new TypeError( + '"seed" must be a node.js Buffer, Uint8Array, or a binary string.'); + } + + seed = messageToNativeBuffer({message: seed, encoding: 'binary'}); + + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + var sk = new NativeBuffer(ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + for(var i = 0; i < 32; ++i) { + sk[i] = seed[i]; + } + crypto_sign_keypair(pk, sk); + return {publicKey: pk, privateKey: sk}; +}; + +/** + * Converts a private key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a private key. + * + * @returns {Object} keyInfo - The key information. + * @returns {Buffer|Uint8Array} keyInfo.privateKeyBytes - 32 private key bytes. + */ +ed25519.privateKeyFromAsn1 = function(obj) { + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, privateKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.privateKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var privateKey = capture.privateKey; + // manually extract the private key bytes from nested octet string, see FIXME: + // https://github.com/digitalbazaar/forge/blob/master/lib/asn1.js#L542 + var privateKeyBytes = messageToNativeBuffer({ + message: forge.asn1.fromDer(privateKey).value, + encoding: 'binary' + }); + // TODO: RFC8410 specifies a format for encoding the public key bytes along + // with the private key bytes. `publicKeyBytes` can be returned in the + // future. https://tools.ietf.org/html/rfc8410#section-10.3 + return {privateKeyBytes: privateKeyBytes}; +}; + +/** + * Converts a public key from a RFC8410 ASN.1 encoding. + * + * @param obj - The asn1 representation of a public key. + * + * @return {Buffer|Uint8Array} - 32 public key bytes. + */ +ed25519.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + var valid = forge.asn1.validate(obj, publicKeyValidator, capture, errors); + if(!valid) { + var error = new Error('Invalid Key.'); + error.errors = errors; + throw error; + } + var oid = forge.asn1.derToOid(capture.publicKeyOid); + var ed25519Oid = forge.oids.EdDSA25519; + if(oid !== ed25519Oid) { + throw new Error('Invalid OID "' + oid + '"; OID must be "' + + ed25519Oid + '".'); + } + var publicKeyBytes = capture.ed25519PublicKey; + if(publicKeyBytes.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new Error('Key length is invalid.'); + } + return messageToNativeBuffer({ + message: publicKeyBytes, + encoding: 'binary' + }); +}; + +ed25519.publicKeyFromPrivateKey = function(options) { + options = options || {}; + var privateKey = messageToNativeBuffer({ + message: options.privateKey, encoding: 'binary' + }); + if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + } + + var pk = new NativeBuffer(ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + for(var i = 0; i < pk.length; ++i) { + pk[i] = privateKey[32 + i]; + } + return pk; +}; + +ed25519.sign = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + var privateKey = messageToNativeBuffer({ + message: options.privateKey, + encoding: 'binary' + }); + if(privateKey.length === ed25519.constants.SEED_BYTE_LENGTH) { + var keyPair = ed25519.generateKeyPair({seed: privateKey}); + privateKey = keyPair.privateKey; + } else if(privateKey.length !== ed25519.constants.PRIVATE_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.privateKey" must have a byte length of ' + + ed25519.constants.SEED_BYTE_LENGTH + ' or ' + + ed25519.constants.PRIVATE_KEY_BYTE_LENGTH); + } + + var signedMsg = new NativeBuffer( + ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + crypto_sign(signedMsg, msg, msg.length, privateKey); + + var sig = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH); + for(var i = 0; i < sig.length; ++i) { + sig[i] = signedMsg[i]; + } + return sig; +}; + +ed25519.verify = function(options) { + options = options || {}; + var msg = messageToNativeBuffer(options); + if(options.signature === undefined) { + throw new TypeError( + '"options.signature" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a binary string.'); + } + var sig = messageToNativeBuffer({ + message: options.signature, + encoding: 'binary' + }); + if(sig.length !== ed25519.constants.SIGN_BYTE_LENGTH) { + throw new TypeError( + '"options.signature" must have a byte length of ' + + ed25519.constants.SIGN_BYTE_LENGTH); + } + var publicKey = messageToNativeBuffer({ + message: options.publicKey, + encoding: 'binary' + }); + if(publicKey.length !== ed25519.constants.PUBLIC_KEY_BYTE_LENGTH) { + throw new TypeError( + '"options.publicKey" must have a byte length of ' + + ed25519.constants.PUBLIC_KEY_BYTE_LENGTH); + } + + var sm = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var m = new NativeBuffer(ed25519.constants.SIGN_BYTE_LENGTH + msg.length); + var i; + for(i = 0; i < ed25519.constants.SIGN_BYTE_LENGTH; ++i) { + sm[i] = sig[i]; + } + for(i = 0; i < msg.length; ++i) { + sm[i + ed25519.constants.SIGN_BYTE_LENGTH] = msg[i]; + } + return (crypto_sign_open(m, sm, sm.length, publicKey) >= 0); +}; + +function messageToNativeBuffer(options) { + var message = options.message; + if(message instanceof Uint8Array || message instanceof NativeBuffer) { + return message; + } + + var encoding = options.encoding; + if(message === undefined) { + if(options.md) { + // TODO: more rigorous validation that `md` is a MessageDigest + message = options.md.digest().getBytes(); + encoding = 'binary'; + } else { + throw new TypeError('"options.message" or "options.md" not specified.'); + } + } + + if(typeof message === 'string' && !encoding) { + throw new TypeError('"options.encoding" must be "binary" or "utf8".'); + } + + if(typeof message === 'string') { + if(typeof Buffer !== 'undefined') { + return Buffer.from(message, encoding); + } + message = new ByteBuffer(message, encoding); + } else if(!(message instanceof ByteBuffer)) { + throw new TypeError( + '"options.message" must be a node.js Buffer, a Uint8Array, a forge ' + + 'ByteBuffer, or a string with "options.encoding" specifying its ' + + 'encoding.'); + } + + // convert to native buffer + var buffer = new NativeBuffer(message.length()); + for(var i = 0; i < buffer.length; ++i) { + buffer[i] = message.at(i); + } + return buffer; +} + +var gf0 = gf(); +var gf1 = gf([1]); +var D = gf([ + 0x78a3, 0x1359, 0x4dca, 0x75eb, 0xd8ab, 0x4141, 0x0a4d, 0x0070, + 0xe898, 0x7779, 0x4079, 0x8cc7, 0xfe73, 0x2b6f, 0x6cee, 0x5203]); +var D2 = gf([ + 0xf159, 0x26b2, 0x9b94, 0xebd6, 0xb156, 0x8283, 0x149a, 0x00e0, + 0xd130, 0xeef3, 0x80f2, 0x198e, 0xfce7, 0x56df, 0xd9dc, 0x2406]); +var X = gf([ + 0xd51a, 0x8f25, 0x2d60, 0xc956, 0xa7b2, 0x9525, 0xc760, 0x692c, + 0xdc5c, 0xfdd6, 0xe231, 0xc0a4, 0x53fe, 0xcd6e, 0x36d3, 0x2169]); +var Y = gf([ + 0x6658, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, + 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666, 0x6666]); +var L = new Float64Array([ + 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, + 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10]); +var I = gf([ + 0xa0b0, 0x4a0e, 0x1b27, 0xc4ee, 0xe478, 0xad2f, 0x1806, 0x2f43, + 0xd7a7, 0x3dfb, 0x0099, 0x2b4d, 0xdf0b, 0x4fc1, 0x2480, 0x2b83]); + +// TODO: update forge buffer implementation to use `Buffer` or `Uint8Array`, +// whichever is available, to improve performance +function sha512(msg, msgLen) { + // Note: `out` and `msg` are NativeBuffer + var md = forge.md.sha512.create(); + var buffer = new ByteBuffer(msg); + md.update(buffer.getBytes(msgLen), 'binary'); + var hash = md.digest().getBytes(); + if(typeof Buffer !== 'undefined') { + return Buffer.from(hash, 'binary'); + } + var out = new NativeBuffer(ed25519.constants.HASH_BYTE_LENGTH); + for(var i = 0; i < 64; ++i) { + out[i] = hash.charCodeAt(i); + } + return out; +} + +function crypto_sign_keypair(pk, sk) { + var p = [gf(), gf(), gf(), gf()]; + var i; + + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; + + scalarbase(p, d); + pack(pk, p); + + for(i = 0; i < 32; ++i) { + sk[i + 32] = pk[i]; + } + return 0; +} + +// Note: difference from C - smlen returned, not passed as argument. +function crypto_sign(sm, m, n, sk) { + var i, j, x = new Float64Array(64); + var p = [gf(), gf(), gf(), gf()]; + + var d = sha512(sk, 32); + d[0] &= 248; + d[31] &= 127; + d[31] |= 64; + + var smlen = n + 64; + for(i = 0; i < n; ++i) { + sm[64 + i] = m[i]; + } + for(i = 0; i < 32; ++i) { + sm[32 + i] = d[32 + i]; + } + + var r = sha512(sm.subarray(32), n + 32); + reduce(r); + scalarbase(p, r); + pack(sm, p); + + for(i = 32; i < 64; ++i) { + sm[i] = sk[i]; + } + var h = sha512(sm, n + 64); + reduce(h); + + for(i = 32; i < 64; ++i) { + x[i] = 0; + } + for(i = 0; i < 32; ++i) { + x[i] = r[i]; + } + for(i = 0; i < 32; ++i) { + for(j = 0; j < 32; j++) { + x[i + j] += h[i] * d[j]; + } + } + + modL(sm.subarray(32), x); + return smlen; +} + +function crypto_sign_open(m, sm, n, pk) { + var i, mlen; + var t = new NativeBuffer(32); + var p = [gf(), gf(), gf(), gf()], + q = [gf(), gf(), gf(), gf()]; + + mlen = -1; + if(n < 64) { + return -1; + } + + if(unpackneg(q, pk)) { + return -1; + } + + for(i = 0; i < n; ++i) { + m[i] = sm[i]; + } + for(i = 0; i < 32; ++i) { + m[i + 32] = pk[i]; + } + var h = sha512(m, n); + reduce(h); + scalarmult(p, q, h); + + scalarbase(q, sm.subarray(32)); + add(p, q); + pack(t, p); + + n -= 64; + if(crypto_verify_32(sm, 0, t, 0)) { + for(i = 0; i < n; ++i) { + m[i] = 0; + } + return -1; + } + + for(i = 0; i < n; ++i) { + m[i] = sm[i + 64]; + } + mlen = n; + return mlen; +} + +function modL(r, x) { + var carry, i, j, k; + for(i = 63; i >= 32; --i) { + carry = 0; + for(j = i - 32, k = i - 12; j < k; ++j) { + x[j] += carry - 16 * x[i] * L[j - (i - 32)]; + carry = (x[j] + 128) >> 8; + x[j] -= carry * 256; + } + x[j] += carry; + x[i] = 0; + } + carry = 0; + for(j = 0; j < 32; ++j) { + x[j] += carry - (x[31] >> 4) * L[j]; + carry = x[j] >> 8; + x[j] &= 255; + } + for(j = 0; j < 32; ++j) { + x[j] -= carry * L[j]; + } + for(i = 0; i < 32; ++i) { + x[i + 1] += x[i] >> 8; + r[i] = x[i] & 255; + } +} + +function reduce(r) { + var x = new Float64Array(64); + for(var i = 0; i < 64; ++i) { + x[i] = r[i]; + r[i] = 0; + } + modL(r, x); +} + +function add(p, q) { + var a = gf(), b = gf(), c = gf(), + d = gf(), e = gf(), f = gf(), + g = gf(), h = gf(), t = gf(); + + Z(a, p[1], p[0]); + Z(t, q[1], q[0]); + M(a, a, t); + A(b, p[0], p[1]); + A(t, q[0], q[1]); + M(b, b, t); + M(c, p[3], q[3]); + M(c, c, D2); + M(d, p[2], q[2]); + A(d, d, d); + Z(e, b, a); + Z(f, d, c); + A(g, d, c); + A(h, b, a); + + M(p[0], e, f); + M(p[1], h, g); + M(p[2], g, f); + M(p[3], e, h); +} + +function cswap(p, q, b) { + for(var i = 0; i < 4; ++i) { + sel25519(p[i], q[i], b); + } +} + +function pack(r, p) { + var tx = gf(), ty = gf(), zi = gf(); + inv25519(zi, p[2]); + M(tx, p[0], zi); + M(ty, p[1], zi); + pack25519(r, ty); + r[31] ^= par25519(tx) << 7; +} + +function pack25519(o, n) { + var i, j, b; + var m = gf(), t = gf(); + for(i = 0; i < 16; ++i) { + t[i] = n[i]; + } + car25519(t); + car25519(t); + car25519(t); + for(j = 0; j < 2; ++j) { + m[0] = t[0] - 0xffed; + for(i = 1; i < 15; ++i) { + m[i] = t[i] - 0xffff - ((m[i - 1] >> 16) & 1); + m[i-1] &= 0xffff; + } + m[15] = t[15] - 0x7fff - ((m[14] >> 16) & 1); + b = (m[15] >> 16) & 1; + m[14] &= 0xffff; + sel25519(t, m, 1 - b); + } + for (i = 0; i < 16; i++) { + o[2 * i] = t[i] & 0xff; + o[2 * i + 1] = t[i] >> 8; + } +} + +function unpackneg(r, p) { + var t = gf(), chk = gf(), num = gf(), + den = gf(), den2 = gf(), den4 = gf(), + den6 = gf(); + + set25519(r[2], gf1); + unpack25519(r[1], p); + S(num, r[1]); + M(den, num, D); + Z(num, num, r[2]); + A(den, r[2], den); + + S(den2, den); + S(den4, den2); + M(den6, den4, den2); + M(t, den6, num); + M(t, t, den); + + pow2523(t, t); + M(t, t, num); + M(t, t, den); + M(t, t, den); + M(r[0], t, den); + + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + M(r[0], r[0], I); + } + + S(chk, r[0]); + M(chk, chk, den); + if(neq25519(chk, num)) { + return -1; + } + + if(par25519(r[0]) === (p[31] >> 7)) { + Z(r[0], gf0, r[0]); + } + + M(r[3], r[0], r[1]); + return 0; +} + +function unpack25519(o, n) { + var i; + for(i = 0; i < 16; ++i) { + o[i] = n[2 * i] + (n[2 * i + 1] << 8); + } + o[15] &= 0x7fff; +} + +function pow2523(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; + } + for(a = 250; a >= 0; --a) { + S(c, c); + if(a !== 1) { + M(c, c, i); + } + } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } +} + +function neq25519(a, b) { + var c = new NativeBuffer(32); + var d = new NativeBuffer(32); + pack25519(c, a); + pack25519(d, b); + return crypto_verify_32(c, 0, d, 0); +} + +function crypto_verify_32(x, xi, y, yi) { + return vn(x, xi, y, yi, 32); +} + +function vn(x, xi, y, yi, n) { + var i, d = 0; + for(i = 0; i < n; ++i) { + d |= x[xi + i] ^ y[yi + i]; + } + return (1 & ((d - 1) >>> 8)) - 1; +} + +function par25519(a) { + var d = new NativeBuffer(32); + pack25519(d, a); + return d[0] & 1; +} + +function scalarmult(p, q, s) { + var b, i; + set25519(p[0], gf0); + set25519(p[1], gf1); + set25519(p[2], gf1); + set25519(p[3], gf0); + for(i = 255; i >= 0; --i) { + b = (s[(i / 8)|0] >> (i & 7)) & 1; + cswap(p, q, b); + add(q, p); + add(p, p); + cswap(p, q, b); + } +} + +function scalarbase(p, s) { + var q = [gf(), gf(), gf(), gf()]; + set25519(q[0], X); + set25519(q[1], Y); + set25519(q[2], gf1); + M(q[3], X, Y); + scalarmult(p, q, s); +} + +function set25519(r, a) { + var i; + for(i = 0; i < 16; i++) { + r[i] = a[i] | 0; + } +} + +function inv25519(o, i) { + var c = gf(); + var a; + for(a = 0; a < 16; ++a) { + c[a] = i[a]; + } + for(a = 253; a >= 0; --a) { + S(c, c); + if(a !== 2 && a !== 4) { + M(c, c, i); + } + } + for(a = 0; a < 16; ++a) { + o[a] = c[a]; + } +} + +function car25519(o) { + var i, v, c = 1; + for(i = 0; i < 16; ++i) { + v = o[i] + c + 65535; + c = Math.floor(v / 65536); + o[i] = v - c * 65536; + } + o[0] += c - 1 + 37 * (c - 1); +} + +function sel25519(p, q, b) { + var t, c = ~(b - 1); + for(var i = 0; i < 16; ++i) { + t = c & (p[i] ^ q[i]); + p[i] ^= t; + q[i] ^= t; + } +} + +function gf(init) { + var i, r = new Float64Array(16); + if(init) { + for(i = 0; i < init.length; ++i) { + r[i] = init[i]; + } + } + return r; +} + +function A(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] + b[i]; + } +} + +function Z(o, a, b) { + for(var i = 0; i < 16; ++i) { + o[i] = a[i] - b[i]; + } +} + +function S(o, a) { + M(o, a, a); +} + +function M(o, a, b) { + var v, c, + t0 = 0, t1 = 0, t2 = 0, t3 = 0, t4 = 0, t5 = 0, t6 = 0, t7 = 0, + t8 = 0, t9 = 0, t10 = 0, t11 = 0, t12 = 0, t13 = 0, t14 = 0, t15 = 0, + t16 = 0, t17 = 0, t18 = 0, t19 = 0, t20 = 0, t21 = 0, t22 = 0, t23 = 0, + t24 = 0, t25 = 0, t26 = 0, t27 = 0, t28 = 0, t29 = 0, t30 = 0, + b0 = b[0], + b1 = b[1], + b2 = b[2], + b3 = b[3], + b4 = b[4], + b5 = b[5], + b6 = b[6], + b7 = b[7], + b8 = b[8], + b9 = b[9], + b10 = b[10], + b11 = b[11], + b12 = b[12], + b13 = b[13], + b14 = b[14], + b15 = b[15]; + + v = a[0]; + t0 += v * b0; + t1 += v * b1; + t2 += v * b2; + t3 += v * b3; + t4 += v * b4; + t5 += v * b5; + t6 += v * b6; + t7 += v * b7; + t8 += v * b8; + t9 += v * b9; + t10 += v * b10; + t11 += v * b11; + t12 += v * b12; + t13 += v * b13; + t14 += v * b14; + t15 += v * b15; + v = a[1]; + t1 += v * b0; + t2 += v * b1; + t3 += v * b2; + t4 += v * b3; + t5 += v * b4; + t6 += v * b5; + t7 += v * b6; + t8 += v * b7; + t9 += v * b8; + t10 += v * b9; + t11 += v * b10; + t12 += v * b11; + t13 += v * b12; + t14 += v * b13; + t15 += v * b14; + t16 += v * b15; + v = a[2]; + t2 += v * b0; + t3 += v * b1; + t4 += v * b2; + t5 += v * b3; + t6 += v * b4; + t7 += v * b5; + t8 += v * b6; + t9 += v * b7; + t10 += v * b8; + t11 += v * b9; + t12 += v * b10; + t13 += v * b11; + t14 += v * b12; + t15 += v * b13; + t16 += v * b14; + t17 += v * b15; + v = a[3]; + t3 += v * b0; + t4 += v * b1; + t5 += v * b2; + t6 += v * b3; + t7 += v * b4; + t8 += v * b5; + t9 += v * b6; + t10 += v * b7; + t11 += v * b8; + t12 += v * b9; + t13 += v * b10; + t14 += v * b11; + t15 += v * b12; + t16 += v * b13; + t17 += v * b14; + t18 += v * b15; + v = a[4]; + t4 += v * b0; + t5 += v * b1; + t6 += v * b2; + t7 += v * b3; + t8 += v * b4; + t9 += v * b5; + t10 += v * b6; + t11 += v * b7; + t12 += v * b8; + t13 += v * b9; + t14 += v * b10; + t15 += v * b11; + t16 += v * b12; + t17 += v * b13; + t18 += v * b14; + t19 += v * b15; + v = a[5]; + t5 += v * b0; + t6 += v * b1; + t7 += v * b2; + t8 += v * b3; + t9 += v * b4; + t10 += v * b5; + t11 += v * b6; + t12 += v * b7; + t13 += v * b8; + t14 += v * b9; + t15 += v * b10; + t16 += v * b11; + t17 += v * b12; + t18 += v * b13; + t19 += v * b14; + t20 += v * b15; + v = a[6]; + t6 += v * b0; + t7 += v * b1; + t8 += v * b2; + t9 += v * b3; + t10 += v * b4; + t11 += v * b5; + t12 += v * b6; + t13 += v * b7; + t14 += v * b8; + t15 += v * b9; + t16 += v * b10; + t17 += v * b11; + t18 += v * b12; + t19 += v * b13; + t20 += v * b14; + t21 += v * b15; + v = a[7]; + t7 += v * b0; + t8 += v * b1; + t9 += v * b2; + t10 += v * b3; + t11 += v * b4; + t12 += v * b5; + t13 += v * b6; + t14 += v * b7; + t15 += v * b8; + t16 += v * b9; + t17 += v * b10; + t18 += v * b11; + t19 += v * b12; + t20 += v * b13; + t21 += v * b14; + t22 += v * b15; + v = a[8]; + t8 += v * b0; + t9 += v * b1; + t10 += v * b2; + t11 += v * b3; + t12 += v * b4; + t13 += v * b5; + t14 += v * b6; + t15 += v * b7; + t16 += v * b8; + t17 += v * b9; + t18 += v * b10; + t19 += v * b11; + t20 += v * b12; + t21 += v * b13; + t22 += v * b14; + t23 += v * b15; + v = a[9]; + t9 += v * b0; + t10 += v * b1; + t11 += v * b2; + t12 += v * b3; + t13 += v * b4; + t14 += v * b5; + t15 += v * b6; + t16 += v * b7; + t17 += v * b8; + t18 += v * b9; + t19 += v * b10; + t20 += v * b11; + t21 += v * b12; + t22 += v * b13; + t23 += v * b14; + t24 += v * b15; + v = a[10]; + t10 += v * b0; + t11 += v * b1; + t12 += v * b2; + t13 += v * b3; + t14 += v * b4; + t15 += v * b5; + t16 += v * b6; + t17 += v * b7; + t18 += v * b8; + t19 += v * b9; + t20 += v * b10; + t21 += v * b11; + t22 += v * b12; + t23 += v * b13; + t24 += v * b14; + t25 += v * b15; + v = a[11]; + t11 += v * b0; + t12 += v * b1; + t13 += v * b2; + t14 += v * b3; + t15 += v * b4; + t16 += v * b5; + t17 += v * b6; + t18 += v * b7; + t19 += v * b8; + t20 += v * b9; + t21 += v * b10; + t22 += v * b11; + t23 += v * b12; + t24 += v * b13; + t25 += v * b14; + t26 += v * b15; + v = a[12]; + t12 += v * b0; + t13 += v * b1; + t14 += v * b2; + t15 += v * b3; + t16 += v * b4; + t17 += v * b5; + t18 += v * b6; + t19 += v * b7; + t20 += v * b8; + t21 += v * b9; + t22 += v * b10; + t23 += v * b11; + t24 += v * b12; + t25 += v * b13; + t26 += v * b14; + t27 += v * b15; + v = a[13]; + t13 += v * b0; + t14 += v * b1; + t15 += v * b2; + t16 += v * b3; + t17 += v * b4; + t18 += v * b5; + t19 += v * b6; + t20 += v * b7; + t21 += v * b8; + t22 += v * b9; + t23 += v * b10; + t24 += v * b11; + t25 += v * b12; + t26 += v * b13; + t27 += v * b14; + t28 += v * b15; + v = a[14]; + t14 += v * b0; + t15 += v * b1; + t16 += v * b2; + t17 += v * b3; + t18 += v * b4; + t19 += v * b5; + t20 += v * b6; + t21 += v * b7; + t22 += v * b8; + t23 += v * b9; + t24 += v * b10; + t25 += v * b11; + t26 += v * b12; + t27 += v * b13; + t28 += v * b14; + t29 += v * b15; + v = a[15]; + t15 += v * b0; + t16 += v * b1; + t17 += v * b2; + t18 += v * b3; + t19 += v * b4; + t20 += v * b5; + t21 += v * b6; + t22 += v * b7; + t23 += v * b8; + t24 += v * b9; + t25 += v * b10; + t26 += v * b11; + t27 += v * b12; + t28 += v * b13; + t29 += v * b14; + t30 += v * b15; + + t0 += 38 * t16; + t1 += 38 * t17; + t2 += 38 * t18; + t3 += 38 * t19; + t4 += 38 * t20; + t5 += 38 * t21; + t6 += 38 * t22; + t7 += 38 * t23; + t8 += 38 * t24; + t9 += 38 * t25; + t10 += 38 * t26; + t11 += 38 * t27; + t12 += 38 * t28; + t13 += 38 * t29; + t14 += 38 * t30; + // t15 left as is + + // first car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); + + // second car + c = 1; + v = t0 + c + 65535; c = Math.floor(v / 65536); t0 = v - c * 65536; + v = t1 + c + 65535; c = Math.floor(v / 65536); t1 = v - c * 65536; + v = t2 + c + 65535; c = Math.floor(v / 65536); t2 = v - c * 65536; + v = t3 + c + 65535; c = Math.floor(v / 65536); t3 = v - c * 65536; + v = t4 + c + 65535; c = Math.floor(v / 65536); t4 = v - c * 65536; + v = t5 + c + 65535; c = Math.floor(v / 65536); t5 = v - c * 65536; + v = t6 + c + 65535; c = Math.floor(v / 65536); t6 = v - c * 65536; + v = t7 + c + 65535; c = Math.floor(v / 65536); t7 = v - c * 65536; + v = t8 + c + 65535; c = Math.floor(v / 65536); t8 = v - c * 65536; + v = t9 + c + 65535; c = Math.floor(v / 65536); t9 = v - c * 65536; + v = t10 + c + 65535; c = Math.floor(v / 65536); t10 = v - c * 65536; + v = t11 + c + 65535; c = Math.floor(v / 65536); t11 = v - c * 65536; + v = t12 + c + 65535; c = Math.floor(v / 65536); t12 = v - c * 65536; + v = t13 + c + 65535; c = Math.floor(v / 65536); t13 = v - c * 65536; + v = t14 + c + 65535; c = Math.floor(v / 65536); t14 = v - c * 65536; + v = t15 + c + 65535; c = Math.floor(v / 65536); t15 = v - c * 65536; + t0 += c-1 + 37 * (c-1); + + o[ 0] = t0; + o[ 1] = t1; + o[ 2] = t2; + o[ 3] = t3; + o[ 4] = t4; + o[ 5] = t5; + o[ 6] = t6; + o[ 7] = t7; + o[ 8] = t8; + o[ 9] = t9; + o[10] = t10; + o[11] = t11; + o[12] = t12; + o[13] = t13; + o[14] = t14; + o[15] = t15; +} + + +/***/ }), + +/***/ 35703: +/***/ ((module) => { + +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = { + // default options + options: { + usePureJavaScript: false + } +}; + + +/***/ }), + +/***/ 51774: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Hash-based Message Authentication Code implementation. Requires a message + * digest object that can be obtained, for example, from forge.md.sha1 or + * forge.md.md5. + * + * @author Dave Longley + * + * Copyright (c) 2010-2012 Digital Bazaar, Inc. All rights reserved. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +/* HMAC API */ +var hmac = module.exports = forge.hmac = forge.hmac || {}; + +/** + * Creates an HMAC object that uses the given message digest object. + * + * @return an HMAC object. + */ +hmac.create = function() { + // the hmac key to use + var _key = null; + + // the message digest to use + var _md = null; + + // the inner padding + var _ipadding = null; + + // the outer padding + var _opadding = null; + + // hmac context + var ctx = {}; + + /** + * Starts or restarts the HMAC with the given key and message digest. + * + * @param md the message digest to use, null to reuse the previous one, + * a string to use builtin 'sha1', 'md5', 'sha256'. + * @param key the key to use as a string, array of bytes, byte buffer, + * or null to reuse the previous key. + */ + ctx.start = function(md, key) { + if(md !== null) { + if(typeof md === 'string') { + // create builtin message digest + md = md.toLowerCase(); + if(md in forge.md.algorithms) { + _md = forge.md.algorithms[md].create(); + } else { + throw new Error('Unknown hash algorithm "' + md + '"'); + } + } else { + // store message digest + _md = md; + } + } + + if(key === null) { + // reuse previous key + key = _key; + } else { + if(typeof key === 'string') { + // convert string into byte buffer + key = forge.util.createBuffer(key); + } else if(forge.util.isArray(key)) { + // convert byte array into byte buffer + var tmp = key; + key = forge.util.createBuffer(); + for(var i = 0; i < tmp.length; ++i) { + key.putByte(tmp[i]); + } + } + + // if key is longer than blocksize, hash it + var keylen = key.length(); + if(keylen > _md.blockLength) { + _md.start(); + _md.update(key.bytes()); + key = _md.digest(); + } + + // mix key into inner and outer padding + // ipadding = [0x36 * blocksize] ^ key + // opadding = [0x5C * blocksize] ^ key + _ipadding = forge.util.createBuffer(); + _opadding = forge.util.createBuffer(); + keylen = key.length(); + for(var i = 0; i < keylen; ++i) { + var tmp = key.at(i); + _ipadding.putByte(0x36 ^ tmp); + _opadding.putByte(0x5C ^ tmp); + } + + // if key is shorter than blocksize, add additional padding + if(keylen < _md.blockLength) { + var tmp = _md.blockLength - keylen; + for(var i = 0; i < tmp; ++i) { + _ipadding.putByte(0x36); + _opadding.putByte(0x5C); + } + } + _key = key; + _ipadding = _ipadding.bytes(); + _opadding = _opadding.bytes(); + } + + // digest is done like so: hash(opadding | hash(ipadding | message)) + + // prepare to do inner hash + // hash(ipadding | message) + _md.start(); + _md.update(_ipadding); + }; + + /** + * Updates the HMAC with the given message bytes. + * + * @param bytes the bytes to update with. + */ + ctx.update = function(bytes) { + _md.update(bytes); + }; + + /** + * Produces the Message Authentication Code (MAC). + * + * @return a byte buffer containing the digest value. + */ + ctx.getMac = function() { + // digest is done like so: hash(opadding | hash(ipadding | message)) + // here we do the outer hashing + var inner = _md.digest().bytes(); + _md.start(); + _md.update(_opadding); + _md.update(inner); + return _md.digest(); + }; + // alias for getMac + ctx.digest = ctx.getMac; + + return ctx; +}; + + +/***/ }), + +/***/ 60289: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for Forge. + * + * @author Dave Longley + * + * Copyright 2011-2016 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(17457); +__nccwpck_require__(93386); +__nccwpck_require__(41298); +__nccwpck_require__(18713); +__nccwpck_require__(88450); +__nccwpck_require__(49095); +__nccwpck_require__(51774); +__nccwpck_require__(96486); +__nccwpck_require__(94790); +__nccwpck_require__(12465); +__nccwpck_require__(5968); +__nccwpck_require__(4373); +__nccwpck_require__(45877); +__nccwpck_require__(59163); +__nccwpck_require__(71831); +__nccwpck_require__(24250); +__nccwpck_require__(62106); +__nccwpck_require__(55505); +__nccwpck_require__(99376); +__nccwpck_require__(27916); +__nccwpck_require__(61698); +__nccwpck_require__(28196); +__nccwpck_require__(69927); +__nccwpck_require__(60131); +__nccwpck_require__(90573); +__nccwpck_require__(21726); + + +/***/ }), + +/***/ 59368: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +// Copyright (c) 2005 Tom Wu +// All Rights Reserved. +// See "LICENSE" for details. + +// Basic JavaScript BN library - subset useful for RSA encryption. + +/* +Licensing (LICENSE) +------------------- + +This software is covered under the following copyright: +*/ +/* + * Copyright (c) 2003-2005 Tom Wu + * All Rights Reserved. + * + * Permission is hereby granted, free of charge, to any person obtaining + * a copy of this software and associated documentation files (the + * "Software"), to deal in the Software without restriction, including + * without limitation the rights to use, copy, modify, merge, publish, + * distribute, sublicense, and/or sell copies of the Software, and to + * permit persons to whom the Software is furnished to do so, subject to + * the following conditions: + * + * The above copyright notice and this permission notice shall be + * included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, + * EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY + * WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. + * + * IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL, + * INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER + * RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF + * THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT + * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + * + * In addition, the following condition applies: + * + * All redistributions must retain an intact copy of this copyright notice + * and disclaimer. + */ +/* +Address all questions regarding this license to: + + Tom Wu + tjw@cs.Stanford.EDU +*/ +var forge = __nccwpck_require__(35703); + +module.exports = forge.jsbn = forge.jsbn || {}; + +// Bits per digit +var dbits; + +// JavaScript engine analysis +var canary = 0xdeadbeefcafe; +var j_lm = ((canary&0xffffff)==0xefcafe); + +// (public) Constructor +function BigInteger(a,b,c) { + this.data = []; + if(a != null) + if("number" == typeof a) this.fromNumber(a,b,c); + else if(b == null && "string" != typeof a) this.fromString(a,256); + else this.fromString(a,b); +} +forge.jsbn.BigInteger = BigInteger; + +// return new, unset BigInteger +function nbi() { return new BigInteger(null); } + +// am: Compute w_j += (x*this_i), propagate carries, +// c is initial carry, returns final carry. +// c < 3*dvalue, x < 2*dvalue, this_i < dvalue +// We need to select the fastest one that works in this environment. + +// am1: use a single mult and divide to get the high bits, +// max digit bits should be 26 because +// max internal value = 2*dvalue^2-2*dvalue (< 2^53) +function am1(i,x,w,j,c,n) { + while(--n >= 0) { + var v = x*this.data[i++]+w.data[j]+c; + c = Math.floor(v/0x4000000); + w.data[j++] = v&0x3ffffff; + } + return c; +} +// am2 avoids a big mult-and-extract completely. +// Max digit bits should be <= 30 because we do bitwise ops +// on values up to 2*hdvalue^2-hdvalue-1 (< 2^31) +function am2(i,x,w,j,c,n) { + var xl = x&0x7fff, xh = x>>15; + while(--n >= 0) { + var l = this.data[i]&0x7fff; + var h = this.data[i++]>>15; + var m = xh*l+h*xl; + l = xl*l+((m&0x7fff)<<15)+w.data[j]+(c&0x3fffffff); + c = (l>>>30)+(m>>>15)+xh*h+(c>>>30); + w.data[j++] = l&0x3fffffff; + } + return c; +} +// Alternately, set max digit bits to 28 since some +// browsers slow down when dealing with 32-bit numbers. +function am3(i,x,w,j,c,n) { + var xl = x&0x3fff, xh = x>>14; + while(--n >= 0) { + var l = this.data[i]&0x3fff; + var h = this.data[i++]>>14; + var m = xh*l+h*xl; + l = xl*l+((m&0x3fff)<<14)+w.data[j]+c; + c = (l>>28)+(m>>14)+xh*h; + w.data[j++] = l&0xfffffff; + } + return c; +} + +// node.js (no browser) +if(typeof(navigator) === 'undefined') +{ + BigInteger.prototype.am = am3; + dbits = 28; +} else if(j_lm && (navigator.appName == "Microsoft Internet Explorer")) { + BigInteger.prototype.am = am2; + dbits = 30; +} else if(j_lm && (navigator.appName != "Netscape")) { + BigInteger.prototype.am = am1; + dbits = 26; +} else { // Mozilla/Netscape seems to prefer am3 + BigInteger.prototype.am = am3; + dbits = 28; +} + +BigInteger.prototype.DB = dbits; +BigInteger.prototype.DM = ((1<= 0; --i) r.data[i] = this.data[i]; + r.t = this.t; + r.s = this.s; +} + +// (protected) set from integer value x, -DV <= x < DV +function bnpFromInt(x) { + this.t = 1; + this.s = (x<0)?-1:0; + if(x > 0) this.data[0] = x; + else if(x < -1) this.data[0] = x+this.DV; + else this.t = 0; +} + +// return bigint initialized to value +function nbv(i) { var r = nbi(); r.fromInt(i); return r; } + +// (protected) set from string and radix +function bnpFromString(s,b) { + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 256) k = 8; // byte array + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else { this.fromRadix(s,b); return; } + this.t = 0; + this.s = 0; + var i = s.length, mi = false, sh = 0; + while(--i >= 0) { + var x = (k==8)?s[i]&0xff:intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-") mi = true; + continue; + } + mi = false; + if(sh == 0) + this.data[this.t++] = x; + else if(sh+k > this.DB) { + this.data[this.t-1] |= (x&((1<<(this.DB-sh))-1))<>(this.DB-sh)); + } else + this.data[this.t-1] |= x<= this.DB) sh -= this.DB; + } + if(k == 8 && (s[0]&0x80) != 0) { + this.s = -1; + if(sh > 0) this.data[this.t-1] |= ((1<<(this.DB-sh))-1)< 0 && this.data[this.t-1] == c) --this.t; +} + +// (public) return string representation in given radix +function bnToString(b) { + if(this.s < 0) return "-"+this.negate().toString(b); + var k; + if(b == 16) k = 4; + else if(b == 8) k = 3; + else if(b == 2) k = 1; + else if(b == 32) k = 5; + else if(b == 4) k = 2; + else return this.toRadix(b); + var km = (1< 0) { + if(p < this.DB && (d = this.data[i]>>p) > 0) { m = true; r = int2char(d); } + while(i >= 0) { + if(p < k) { + d = (this.data[i]&((1<>(p+=this.DB-k); + } else { + d = (this.data[i]>>(p-=k))&km; + if(p <= 0) { p += this.DB; --i; } + } + if(d > 0) m = true; + if(m) r += int2char(d); + } + } + return m?r:"0"; +} + +// (public) -this +function bnNegate() { var r = nbi(); BigInteger.ZERO.subTo(this,r); return r; } + +// (public) |this| +function bnAbs() { return (this.s<0)?this.negate():this; } + +// (public) return + if this > a, - if this < a, 0 if equal +function bnCompareTo(a) { + var r = this.s-a.s; + if(r != 0) return r; + var i = this.t; + r = i-a.t; + if(r != 0) return (this.s<0)?-r:r; + while(--i >= 0) if((r=this.data[i]-a.data[i]) != 0) return r; + return 0; +} + +// returns bit length of the integer x +function nbits(x) { + var r = 1, t; + if((t=x>>>16) != 0) { x = t; r += 16; } + if((t=x>>8) != 0) { x = t; r += 8; } + if((t=x>>4) != 0) { x = t; r += 4; } + if((t=x>>2) != 0) { x = t; r += 2; } + if((t=x>>1) != 0) { x = t; r += 1; } + return r; +} + +// (public) return the number of bits in "this" +function bnBitLength() { + if(this.t <= 0) return 0; + return this.DB*(this.t-1)+nbits(this.data[this.t-1]^(this.s&this.DM)); +} + +// (protected) r = this << n*DB +function bnpDLShiftTo(n,r) { + var i; + for(i = this.t-1; i >= 0; --i) r.data[i+n] = this.data[i]; + for(i = n-1; i >= 0; --i) r.data[i] = 0; + r.t = this.t+n; + r.s = this.s; +} + +// (protected) r = this >> n*DB +function bnpDRShiftTo(n,r) { + for(var i = n; i < this.t; ++i) r.data[i-n] = this.data[i]; + r.t = Math.max(this.t-n,0); + r.s = this.s; +} + +// (protected) r = this << n +function bnpLShiftTo(n,r) { + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<= 0; --i) { + r.data[i+ds+1] = (this.data[i]>>cbs)|c; + c = (this.data[i]&bm)<= 0; --i) r.data[i] = 0; + r.data[ds] = c; + r.t = this.t+ds+1; + r.s = this.s; + r.clamp(); +} + +// (protected) r = this >> n +function bnpRShiftTo(n,r) { + r.s = this.s; + var ds = Math.floor(n/this.DB); + if(ds >= this.t) { r.t = 0; return; } + var bs = n%this.DB; + var cbs = this.DB-bs; + var bm = (1<>bs; + for(var i = ds+1; i < this.t; ++i) { + r.data[i-ds-1] |= (this.data[i]&bm)<>bs; + } + if(bs > 0) r.data[this.t-ds-1] |= (this.s&bm)<>= this.DB; + } + if(a.t < this.t) { + c -= a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; + } else { + c += this.s; + while(i < a.t) { + c -= a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c -= a.s; + } + r.s = (c<0)?-1:0; + if(c < -1) r.data[i++] = this.DV+c; + else if(c > 0) r.data[i++] = c; + r.t = i; + r.clamp(); +} + +// (protected) r = this * a, r != this,a (HAC 14.12) +// "this" should be the larger one if appropriate. +function bnpMultiplyTo(a,r) { + var x = this.abs(), y = a.abs(); + var i = x.t; + r.t = i+y.t; + while(--i >= 0) r.data[i] = 0; + for(i = 0; i < y.t; ++i) r.data[i+x.t] = x.am(0,y.data[i],r,i,0,x.t); + r.s = 0; + r.clamp(); + if(this.s != a.s) BigInteger.ZERO.subTo(r,r); +} + +// (protected) r = this^2, r != this (HAC 14.16) +function bnpSquareTo(r) { + var x = this.abs(); + var i = r.t = 2*x.t; + while(--i >= 0) r.data[i] = 0; + for(i = 0; i < x.t-1; ++i) { + var c = x.am(i,x.data[i],r,2*i,0,1); + if((r.data[i+x.t]+=x.am(i+1,2*x.data[i],r,2*i+1,c,x.t-i-1)) >= x.DV) { + r.data[i+x.t] -= x.DV; + r.data[i+x.t+1] = 1; + } + } + if(r.t > 0) r.data[r.t-1] += x.am(i,x.data[i],r,2*i,0,1); + r.s = 0; + r.clamp(); +} + +// (protected) divide this by m, quotient and remainder to q, r (HAC 14.20) +// r != q, this != m. q or r may be null. +function bnpDivRemTo(m,q,r) { + var pm = m.abs(); + if(pm.t <= 0) return; + var pt = this.abs(); + if(pt.t < pm.t) { + if(q != null) q.fromInt(0); + if(r != null) this.copyTo(r); + return; + } + if(r == null) r = nbi(); + var y = nbi(), ts = this.s, ms = m.s; + var nsh = this.DB-nbits(pm.data[pm.t-1]); // normalize modulus + if(nsh > 0) { pm.lShiftTo(nsh,y); pt.lShiftTo(nsh,r); } else { pm.copyTo(y); pt.copyTo(r); } + var ys = y.t; + var y0 = y.data[ys-1]; + if(y0 == 0) return; + var yt = y0*(1<1)?y.data[ys-2]>>this.F2:0); + var d1 = this.FV/yt, d2 = (1<= 0) { + r.data[r.t++] = 1; + r.subTo(t,r); + } + BigInteger.ONE.dlShiftTo(ys,t); + t.subTo(y,y); // "negative" y so we can replace sub with am later + while(y.t < ys) y.data[y.t++] = 0; + while(--j >= 0) { + // Estimate quotient digit + var qd = (r.data[--i]==y0)?this.DM:Math.floor(r.data[i]*d1+(r.data[i-1]+e)*d2); + if((r.data[i]+=y.am(0,qd,r,j,0,ys)) < qd) { // Try it out + y.dlShiftTo(j,t); + r.subTo(t,r); + while(r.data[i] < --qd) r.subTo(t,r); + } + } + if(q != null) { + r.drShiftTo(ys,q); + if(ts != ms) BigInteger.ZERO.subTo(q,q); + } + r.t = ys; + r.clamp(); + if(nsh > 0) r.rShiftTo(nsh,r); // Denormalize remainder + if(ts < 0) BigInteger.ZERO.subTo(r,r); +} + +// (public) this mod a +function bnMod(a) { + var r = nbi(); + this.abs().divRemTo(a,null,r); + if(this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) a.subTo(r,r); + return r; +} + +// Modular reduction using "classic" algorithm +function Classic(m) { this.m = m; } +function cConvert(x) { + if(x.s < 0 || x.compareTo(this.m) >= 0) return x.mod(this.m); + else return x; +} +function cRevert(x) { return x; } +function cReduce(x) { x.divRemTo(this.m,null,x); } +function cMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } +function cSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +Classic.prototype.convert = cConvert; +Classic.prototype.revert = cRevert; +Classic.prototype.reduce = cReduce; +Classic.prototype.mulTo = cMulTo; +Classic.prototype.sqrTo = cSqrTo; + +// (protected) return "-1/this % 2^DB"; useful for Mont. reduction +// justification: +// xy == 1 (mod m) +// xy = 1+km +// xy(2-xy) = (1+km)(1-km) +// x[y(2-xy)] = 1-k^2m^2 +// x[y(2-xy)] == 1 (mod m^2) +// if y is 1/x mod m, then y(2-xy) is 1/x mod m^2 +// should reduce x and y(2-xy) by m^2 at each step to keep size bounded. +// JS multiply "overflows" differently from C/C++, so care is needed here. +function bnpInvDigit() { + if(this.t < 1) return 0; + var x = this.data[0]; + if((x&1) == 0) return 0; + var y = x&3; // y == 1/x mod 2^2 + y = (y*(2-(x&0xf)*y))&0xf; // y == 1/x mod 2^4 + y = (y*(2-(x&0xff)*y))&0xff; // y == 1/x mod 2^8 + y = (y*(2-(((x&0xffff)*y)&0xffff)))&0xffff; // y == 1/x mod 2^16 + // last step - calculate inverse mod DV directly; + // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints + y = (y*(2-x*y%this.DV))%this.DV; // y == 1/x mod 2^dbits + // we really want the negative inverse, and -DV < y < DV + return (y>0)?this.DV-y:-y; +} + +// Montgomery reduction +function Montgomery(m) { + this.m = m; + this.mp = m.invDigit(); + this.mpl = this.mp&0x7fff; + this.mph = this.mp>>15; + this.um = (1<<(m.DB-15))-1; + this.mt2 = 2*m.t; +} + +// xR mod m +function montConvert(x) { + var r = nbi(); + x.abs().dlShiftTo(this.m.t,r); + r.divRemTo(this.m,null,r); + if(x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) this.m.subTo(r,r); + return r; +} + +// x/R mod m +function montRevert(x) { + var r = nbi(); + x.copyTo(r); + this.reduce(r); + return r; +} + +// x = x/R mod m (HAC 14.32) +function montReduce(x) { + while(x.t <= this.mt2) // pad x so am has enough room later + x.data[x.t++] = 0; + for(var i = 0; i < this.m.t; ++i) { + // faster way of calculating u0 = x.data[i]*mp mod DV + var j = x.data[i]&0x7fff; + var u0 = (j*this.mpl+(((j*this.mph+(x.data[i]>>15)*this.mpl)&this.um)<<15))&x.DM; + // use am to combine the multiply-shift-add into one call + j = i+this.m.t; + x.data[j] += this.m.am(0,u0,x,i,0,this.m.t); + // propagate carry + while(x.data[j] >= x.DV) { x.data[j] -= x.DV; x.data[++j]++; } + } + x.clamp(); + x.drShiftTo(this.m.t,x); + if(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +} + +// r = "x^2/R mod m"; x != r +function montSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +// r = "xy/R mod m"; x,y != r +function montMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + +Montgomery.prototype.convert = montConvert; +Montgomery.prototype.revert = montRevert; +Montgomery.prototype.reduce = montReduce; +Montgomery.prototype.mulTo = montMulTo; +Montgomery.prototype.sqrTo = montSqrTo; + +// (protected) true iff this is even +function bnpIsEven() { return ((this.t>0)?(this.data[0]&1):this.s) == 0; } + +// (protected) this^e, e < 2^32, doing sqr and mul with "r" (HAC 14.79) +function bnpExp(e,z) { + if(e > 0xffffffff || e < 1) return BigInteger.ONE; + var r = nbi(), r2 = nbi(), g = z.convert(this), i = nbits(e)-1; + g.copyTo(r); + while(--i >= 0) { + z.sqrTo(r,r2); + if((e&(1< 0) z.mulTo(r2,g,r); + else { var t = r; r = r2; r2 = t; } + } + return z.revert(r); +} + +// (public) this^e % m, 0 <= e < 2^32 +function bnModPowInt(e,m) { + var z; + if(e < 256 || m.isEven()) z = new Classic(m); else z = new Montgomery(m); + return this.exp(e,z); +} + +// protected +BigInteger.prototype.copyTo = bnpCopyTo; +BigInteger.prototype.fromInt = bnpFromInt; +BigInteger.prototype.fromString = bnpFromString; +BigInteger.prototype.clamp = bnpClamp; +BigInteger.prototype.dlShiftTo = bnpDLShiftTo; +BigInteger.prototype.drShiftTo = bnpDRShiftTo; +BigInteger.prototype.lShiftTo = bnpLShiftTo; +BigInteger.prototype.rShiftTo = bnpRShiftTo; +BigInteger.prototype.subTo = bnpSubTo; +BigInteger.prototype.multiplyTo = bnpMultiplyTo; +BigInteger.prototype.squareTo = bnpSquareTo; +BigInteger.prototype.divRemTo = bnpDivRemTo; +BigInteger.prototype.invDigit = bnpInvDigit; +BigInteger.prototype.isEven = bnpIsEven; +BigInteger.prototype.exp = bnpExp; + +// public +BigInteger.prototype.toString = bnToString; +BigInteger.prototype.negate = bnNegate; +BigInteger.prototype.abs = bnAbs; +BigInteger.prototype.compareTo = bnCompareTo; +BigInteger.prototype.bitLength = bnBitLength; +BigInteger.prototype.mod = bnMod; +BigInteger.prototype.modPowInt = bnModPowInt; + +// "constants" +BigInteger.ZERO = nbv(0); +BigInteger.ONE = nbv(1); + +// jsbn2 lib + +//Copyright (c) 2005-2009 Tom Wu +//All Rights Reserved. +//See "LICENSE" for details (See jsbn.js for LICENSE). + +//Extended JavaScript BN functions, required for RSA private ops. + +//Version 1.1: new BigInteger("0", 10) returns "proper" zero + +//(public) +function bnClone() { var r = nbi(); this.copyTo(r); return r; } + +//(public) return value as integer +function bnIntValue() { +if(this.s < 0) { + if(this.t == 1) return this.data[0]-this.DV; + else if(this.t == 0) return -1; +} else if(this.t == 1) return this.data[0]; +else if(this.t == 0) return 0; +// assumes 16 < DB < 32 +return ((this.data[1]&((1<<(32-this.DB))-1))<>24; } + +//(public) return value as short (assumes DB>=16) +function bnShortValue() { return (this.t==0)?this.s:(this.data[0]<<16)>>16; } + +//(protected) return x s.t. r^x < DV +function bnpChunkSize(r) { return Math.floor(Math.LN2*this.DB/Math.log(r)); } + +//(public) 0 if this == 0, 1 if this > 0 +function bnSigNum() { +if(this.s < 0) return -1; +else if(this.t <= 0 || (this.t == 1 && this.data[0] <= 0)) return 0; +else return 1; +} + +//(protected) convert to radix string +function bnpToRadix(b) { +if(b == null) b = 10; +if(this.signum() == 0 || b < 2 || b > 36) return "0"; +var cs = this.chunkSize(b); +var a = Math.pow(b,cs); +var d = nbv(a), y = nbi(), z = nbi(), r = ""; +this.divRemTo(d,y,z); +while(y.signum() > 0) { + r = (a+z.intValue()).toString(b).substr(1) + r; + y.divRemTo(d,y,z); +} +return z.intValue().toString(b) + r; +} + +//(protected) convert from radix string +function bnpFromRadix(s,b) { +this.fromInt(0); +if(b == null) b = 10; +var cs = this.chunkSize(b); +var d = Math.pow(b,cs), mi = false, j = 0, w = 0; +for(var i = 0; i < s.length; ++i) { + var x = intAt(s,i); + if(x < 0) { + if(s.charAt(i) == "-" && this.signum() == 0) mi = true; + continue; + } + w = b*w+x; + if(++j >= cs) { + this.dMultiply(d); + this.dAddOffset(w,0); + j = 0; + w = 0; + } +} +if(j > 0) { + this.dMultiply(Math.pow(b,j)); + this.dAddOffset(w,0); +} +if(mi) BigInteger.ZERO.subTo(this,this); +} + +//(protected) alternate constructor +function bnpFromNumber(a,b,c) { +if("number" == typeof b) { + // new BigInteger(int,int,RNG) + if(a < 2) this.fromInt(1); + else { + this.fromNumber(a,c); + if(!this.testBit(a-1)) // force MSB set + this.bitwiseTo(BigInteger.ONE.shiftLeft(a-1),op_or,this); + if(this.isEven()) this.dAddOffset(1,0); // force odd + while(!this.isProbablePrime(b)) { + this.dAddOffset(2,0); + if(this.bitLength() > a) this.subTo(BigInteger.ONE.shiftLeft(a-1),this); + } + } +} else { + // new BigInteger(int,RNG) + var x = new Array(), t = a&7; + x.length = (a>>3)+1; + b.nextBytes(x); + if(t > 0) x[0] &= ((1< 0) { + if(p < this.DB && (d = this.data[i]>>p) != (this.s&this.DM)>>p) + r[k++] = d|(this.s<<(this.DB-p)); + while(i >= 0) { + if(p < 8) { + d = (this.data[i]&((1<>(p+=this.DB-8); + } else { + d = (this.data[i]>>(p-=8))&0xff; + if(p <= 0) { p += this.DB; --i; } + } + if((d&0x80) != 0) d |= -256; + if(k == 0 && (this.s&0x80) != (d&0x80)) ++k; + if(k > 0 || d != this.s) r[k++] = d; + } +} +return r; +} + +function bnEquals(a) { return(this.compareTo(a)==0); } +function bnMin(a) { return(this.compareTo(a)<0)?this:a; } +function bnMax(a) { return(this.compareTo(a)>0)?this:a; } + +//(protected) r = this op a (bitwise) +function bnpBitwiseTo(a,op,r) { +var i, f, m = Math.min(a.t,this.t); +for(i = 0; i < m; ++i) r.data[i] = op(this.data[i],a.data[i]); +if(a.t < this.t) { + f = a.s&this.DM; + for(i = m; i < this.t; ++i) r.data[i] = op(this.data[i],f); + r.t = this.t; +} else { + f = this.s&this.DM; + for(i = m; i < a.t; ++i) r.data[i] = op(f,a.data[i]); + r.t = a.t; +} +r.s = op(this.s,a.s); +r.clamp(); +} + +//(public) this & a +function op_and(x,y) { return x&y; } +function bnAnd(a) { var r = nbi(); this.bitwiseTo(a,op_and,r); return r; } + +//(public) this | a +function op_or(x,y) { return x|y; } +function bnOr(a) { var r = nbi(); this.bitwiseTo(a,op_or,r); return r; } + +//(public) this ^ a +function op_xor(x,y) { return x^y; } +function bnXor(a) { var r = nbi(); this.bitwiseTo(a,op_xor,r); return r; } + +//(public) this & ~a +function op_andnot(x,y) { return x&~y; } +function bnAndNot(a) { var r = nbi(); this.bitwiseTo(a,op_andnot,r); return r; } + +//(public) ~this +function bnNot() { +var r = nbi(); +for(var i = 0; i < this.t; ++i) r.data[i] = this.DM&~this.data[i]; +r.t = this.t; +r.s = ~this.s; +return r; +} + +//(public) this << n +function bnShiftLeft(n) { +var r = nbi(); +if(n < 0) this.rShiftTo(-n,r); else this.lShiftTo(n,r); +return r; +} + +//(public) this >> n +function bnShiftRight(n) { +var r = nbi(); +if(n < 0) this.lShiftTo(-n,r); else this.rShiftTo(n,r); +return r; +} + +//return index of lowest 1-bit in x, x < 2^31 +function lbit(x) { +if(x == 0) return -1; +var r = 0; +if((x&0xffff) == 0) { x >>= 16; r += 16; } +if((x&0xff) == 0) { x >>= 8; r += 8; } +if((x&0xf) == 0) { x >>= 4; r += 4; } +if((x&3) == 0) { x >>= 2; r += 2; } +if((x&1) == 0) ++r; +return r; +} + +//(public) returns index of lowest 1-bit (or -1 if none) +function bnGetLowestSetBit() { +for(var i = 0; i < this.t; ++i) + if(this.data[i] != 0) return i*this.DB+lbit(this.data[i]); +if(this.s < 0) return this.t*this.DB; +return -1; +} + +//return number of 1 bits in x +function cbit(x) { +var r = 0; +while(x != 0) { x &= x-1; ++r; } +return r; +} + +//(public) return number of set bits +function bnBitCount() { +var r = 0, x = this.s&this.DM; +for(var i = 0; i < this.t; ++i) r += cbit(this.data[i]^x); +return r; +} + +//(public) true iff nth bit is set +function bnTestBit(n) { +var j = Math.floor(n/this.DB); +if(j >= this.t) return(this.s!=0); +return((this.data[j]&(1<<(n%this.DB)))!=0); +} + +//(protected) this op (1<>= this.DB; +} +if(a.t < this.t) { + c += a.s; + while(i < this.t) { + c += this.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += this.s; +} else { + c += this.s; + while(i < a.t) { + c += a.data[i]; + r.data[i++] = c&this.DM; + c >>= this.DB; + } + c += a.s; +} +r.s = (c<0)?-1:0; +if(c > 0) r.data[i++] = c; +else if(c < -1) r.data[i++] = this.DV+c; +r.t = i; +r.clamp(); +} + +//(public) this + a +function bnAdd(a) { var r = nbi(); this.addTo(a,r); return r; } + +//(public) this - a +function bnSubtract(a) { var r = nbi(); this.subTo(a,r); return r; } + +//(public) this * a +function bnMultiply(a) { var r = nbi(); this.multiplyTo(a,r); return r; } + +//(public) this / a +function bnDivide(a) { var r = nbi(); this.divRemTo(a,r,null); return r; } + +//(public) this % a +function bnRemainder(a) { var r = nbi(); this.divRemTo(a,null,r); return r; } + +//(public) [this/a,this%a] +function bnDivideAndRemainder(a) { +var q = nbi(), r = nbi(); +this.divRemTo(a,q,r); +return new Array(q,r); +} + +//(protected) this *= n, this >= 0, 1 < n < DV +function bnpDMultiply(n) { +this.data[this.t] = this.am(0,n-1,this,0,0,this.t); +++this.t; +this.clamp(); +} + +//(protected) this += n << w words, this >= 0 +function bnpDAddOffset(n,w) { +if(n == 0) return; +while(this.t <= w) this.data[this.t++] = 0; +this.data[w] += n; +while(this.data[w] >= this.DV) { + this.data[w] -= this.DV; + if(++w >= this.t) this.data[this.t++] = 0; + ++this.data[w]; +} +} + +//A "null" reducer +function NullExp() {} +function nNop(x) { return x; } +function nMulTo(x,y,r) { x.multiplyTo(y,r); } +function nSqrTo(x,r) { x.squareTo(r); } + +NullExp.prototype.convert = nNop; +NullExp.prototype.revert = nNop; +NullExp.prototype.mulTo = nMulTo; +NullExp.prototype.sqrTo = nSqrTo; + +//(public) this^e +function bnPow(e) { return this.exp(e,new NullExp()); } + +//(protected) r = lower n words of "this * a", a.t <= n +//"this" should be the larger one if appropriate. +function bnpMultiplyLowerTo(a,n,r) { +var i = Math.min(this.t+a.t,n); +r.s = 0; // assumes a,this >= 0 +r.t = i; +while(i > 0) r.data[--i] = 0; +var j; +for(j = r.t-this.t; i < j; ++i) r.data[i+this.t] = this.am(0,a.data[i],r,i,0,this.t); +for(j = Math.min(a.t,n); i < j; ++i) this.am(0,a.data[i],r,i,0,n-i); +r.clamp(); +} + +//(protected) r = "this * a" without lower n words, n > 0 +//"this" should be the larger one if appropriate. +function bnpMultiplyUpperTo(a,n,r) { +--n; +var i = r.t = this.t+a.t-n; +r.s = 0; // assumes a,this >= 0 +while(--i >= 0) r.data[i] = 0; +for(i = Math.max(n-this.t,0); i < a.t; ++i) + r.data[this.t+i-n] = this.am(n-i,a.data[i],r,0,0,this.t+i-n); +r.clamp(); +r.drShiftTo(1,r); +} + +//Barrett modular reduction +function Barrett(m) { +// setup Barrett +this.r2 = nbi(); +this.q3 = nbi(); +BigInteger.ONE.dlShiftTo(2*m.t,this.r2); +this.mu = this.r2.divide(m); +this.m = m; +} + +function barrettConvert(x) { +if(x.s < 0 || x.t > 2*this.m.t) return x.mod(this.m); +else if(x.compareTo(this.m) < 0) return x; +else { var r = nbi(); x.copyTo(r); this.reduce(r); return r; } +} + +function barrettRevert(x) { return x; } + +//x = x mod m (HAC 14.42) +function barrettReduce(x) { +x.drShiftTo(this.m.t-1,this.r2); +if(x.t > this.m.t+1) { x.t = this.m.t+1; x.clamp(); } +this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3); +this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2); +while(x.compareTo(this.r2) < 0) x.dAddOffset(1,this.m.t+1); +x.subTo(this.r2,x); +while(x.compareTo(this.m) >= 0) x.subTo(this.m,x); +} + +//r = x^2 mod m; x != r +function barrettSqrTo(x,r) { x.squareTo(r); this.reduce(r); } + +//r = x*y mod m; x,y != r +function barrettMulTo(x,y,r) { x.multiplyTo(y,r); this.reduce(r); } + +Barrett.prototype.convert = barrettConvert; +Barrett.prototype.revert = barrettRevert; +Barrett.prototype.reduce = barrettReduce; +Barrett.prototype.mulTo = barrettMulTo; +Barrett.prototype.sqrTo = barrettSqrTo; + +//(public) this^e % m (HAC 14.85) +function bnModPow(e,m) { +var i = e.bitLength(), k, r = nbv(1), z; +if(i <= 0) return r; +else if(i < 18) k = 1; +else if(i < 48) k = 3; +else if(i < 144) k = 4; +else if(i < 768) k = 5; +else k = 6; +if(i < 8) + z = new Classic(m); +else if(m.isEven()) + z = new Barrett(m); +else + z = new Montgomery(m); + +// precomputation +var g = new Array(), n = 3, k1 = k-1, km = (1< 1) { + var g2 = nbi(); + z.sqrTo(g[1],g2); + while(n <= km) { + g[n] = nbi(); + z.mulTo(g2,g[n-2],g[n]); + n += 2; + } +} + +var j = e.t-1, w, is1 = true, r2 = nbi(), t; +i = nbits(e.data[j])-1; +while(j >= 0) { + if(i >= k1) w = (e.data[j]>>(i-k1))&km; + else { + w = (e.data[j]&((1<<(i+1))-1))<<(k1-i); + if(j > 0) w |= e.data[j-1]>>(this.DB+i-k1); + } + + n = k; + while((w&1) == 0) { w >>= 1; --n; } + if((i -= n) < 0) { i += this.DB; --j; } + if(is1) { // ret == 1, don't bother squaring or multiplying it + g[w].copyTo(r); + is1 = false; + } else { + while(n > 1) { z.sqrTo(r,r2); z.sqrTo(r2,r); n -= 2; } + if(n > 0) z.sqrTo(r,r2); else { t = r; r = r2; r2 = t; } + z.mulTo(r2,g[w],r); + } + + while(j >= 0 && (e.data[j]&(1< 0) { + x.rShiftTo(g,x); + y.rShiftTo(g,y); +} +while(x.signum() > 0) { + if((i = x.getLowestSetBit()) > 0) x.rShiftTo(i,x); + if((i = y.getLowestSetBit()) > 0) y.rShiftTo(i,y); + if(x.compareTo(y) >= 0) { + x.subTo(y,x); + x.rShiftTo(1,x); + } else { + y.subTo(x,y); + y.rShiftTo(1,y); + } +} +if(g > 0) y.lShiftTo(g,y); +return y; +} + +//(protected) this % n, n < 2^26 +function bnpModInt(n) { +if(n <= 0) return 0; +var d = this.DV%n, r = (this.s<0)?n-1:0; +if(this.t > 0) + if(d == 0) r = this.data[0]%n; + else for(var i = this.t-1; i >= 0; --i) r = (d*r+this.data[i])%n; +return r; +} + +//(public) 1/this % m (HAC 14.61) +function bnModInverse(m) { +var ac = m.isEven(); +if((this.isEven() && ac) || m.signum() == 0) return BigInteger.ZERO; +var u = m.clone(), v = this.clone(); +var a = nbv(1), b = nbv(0), c = nbv(0), d = nbv(1); +while(u.signum() != 0) { + while(u.isEven()) { + u.rShiftTo(1,u); + if(ac) { + if(!a.isEven() || !b.isEven()) { a.addTo(this,a); b.subTo(m,b); } + a.rShiftTo(1,a); + } else if(!b.isEven()) b.subTo(m,b); + b.rShiftTo(1,b); + } + while(v.isEven()) { + v.rShiftTo(1,v); + if(ac) { + if(!c.isEven() || !d.isEven()) { c.addTo(this,c); d.subTo(m,d); } + c.rShiftTo(1,c); + } else if(!d.isEven()) d.subTo(m,d); + d.rShiftTo(1,d); + } + if(u.compareTo(v) >= 0) { + u.subTo(v,u); + if(ac) a.subTo(c,a); + b.subTo(d,b); + } else { + v.subTo(u,v); + if(ac) c.subTo(a,c); + d.subTo(b,d); + } +} +if(v.compareTo(BigInteger.ONE) != 0) return BigInteger.ZERO; +if(d.compareTo(m) >= 0) return d.subtract(m); +if(d.signum() < 0) d.addTo(m,d); else return d; +if(d.signum() < 0) return d.add(m); else return d; +} + +var lowprimes = [2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509]; +var lplim = (1<<26)/lowprimes[lowprimes.length-1]; + +//(public) test primality with certainty >= 1-.5^t +function bnIsProbablePrime(t) { +var i, x = this.abs(); +if(x.t == 1 && x.data[0] <= lowprimes[lowprimes.length-1]) { + for(i = 0; i < lowprimes.length; ++i) + if(x.data[0] == lowprimes[i]) return true; + return false; +} +if(x.isEven()) return false; +i = 1; +while(i < lowprimes.length) { + var m = lowprimes[i], j = i+1; + while(j < lowprimes.length && m < lplim) m *= lowprimes[j++]; + m = x.modInt(m); + while(i < j) if(m%lowprimes[i++] == 0) return false; +} +return x.millerRabin(t); +} + +//(protected) true if probably prime (HAC 4.24, Miller-Rabin) +function bnpMillerRabin(t) { +var n1 = this.subtract(BigInteger.ONE); +var k = n1.getLowestSetBit(); +if(k <= 0) return false; +var r = n1.shiftRight(k); +var prng = bnGetPrng(); +var a; +for(var i = 0; i < t; ++i) { + // select witness 'a' at random from between 1 and n1 + do { + a = new BigInteger(this.bitLength(), prng); + } + while(a.compareTo(BigInteger.ONE) <= 0 || a.compareTo(n1) >= 0); + var y = a.modPow(r,this); + if(y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) { + var j = 1; + while(j++ < k && y.compareTo(n1) != 0) { + y = y.modPowInt(2,this); + if(y.compareTo(BigInteger.ONE) == 0) return false; + } + if(y.compareTo(n1) != 0) return false; + } +} +return true; +} + +// get pseudo random number generator +function bnGetPrng() { + // create prng with api that matches BigInteger secure random + return { + // x is an array to fill with bytes + nextBytes: function(x) { + for(var i = 0; i < x.length; ++i) { + x[i] = Math.floor(Math.random() * 0x0100); + } + } + }; +} + +//protected +BigInteger.prototype.chunkSize = bnpChunkSize; +BigInteger.prototype.toRadix = bnpToRadix; +BigInteger.prototype.fromRadix = bnpFromRadix; +BigInteger.prototype.fromNumber = bnpFromNumber; +BigInteger.prototype.bitwiseTo = bnpBitwiseTo; +BigInteger.prototype.changeBit = bnpChangeBit; +BigInteger.prototype.addTo = bnpAddTo; +BigInteger.prototype.dMultiply = bnpDMultiply; +BigInteger.prototype.dAddOffset = bnpDAddOffset; +BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo; +BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo; +BigInteger.prototype.modInt = bnpModInt; +BigInteger.prototype.millerRabin = bnpMillerRabin; + +//public +BigInteger.prototype.clone = bnClone; +BigInteger.prototype.intValue = bnIntValue; +BigInteger.prototype.byteValue = bnByteValue; +BigInteger.prototype.shortValue = bnShortValue; +BigInteger.prototype.signum = bnSigNum; +BigInteger.prototype.toByteArray = bnToByteArray; +BigInteger.prototype.equals = bnEquals; +BigInteger.prototype.min = bnMin; +BigInteger.prototype.max = bnMax; +BigInteger.prototype.and = bnAnd; +BigInteger.prototype.or = bnOr; +BigInteger.prototype.xor = bnXor; +BigInteger.prototype.andNot = bnAndNot; +BigInteger.prototype.not = bnNot; +BigInteger.prototype.shiftLeft = bnShiftLeft; +BigInteger.prototype.shiftRight = bnShiftRight; +BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit; +BigInteger.prototype.bitCount = bnBitCount; +BigInteger.prototype.testBit = bnTestBit; +BigInteger.prototype.setBit = bnSetBit; +BigInteger.prototype.clearBit = bnClearBit; +BigInteger.prototype.flipBit = bnFlipBit; +BigInteger.prototype.add = bnAdd; +BigInteger.prototype.subtract = bnSubtract; +BigInteger.prototype.multiply = bnMultiply; +BigInteger.prototype.divide = bnDivide; +BigInteger.prototype.remainder = bnRemainder; +BigInteger.prototype.divideAndRemainder = bnDivideAndRemainder; +BigInteger.prototype.modPow = bnModPow; +BigInteger.prototype.modInverse = bnModInverse; +BigInteger.prototype.pow = bnPow; +BigInteger.prototype.gcd = bnGCD; +BigInteger.prototype.isProbablePrime = bnIsProbablePrime; + +//BigInteger interfaces not implemented in jsbn: + +//BigInteger(int signum, byte[] magnitude) +//double doubleValue() +//float floatValue() +//int hashCode() +//long longValue() +//static BigInteger valueOf(long val) + + +/***/ }), + +/***/ 96486: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of RSA-KEM. + * + * @author Lautaro Cozzani Rodriguez + * @author Dave Longley + * + * Copyright (c) 2014 Lautaro Cozzani + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); +__nccwpck_require__(61698); +__nccwpck_require__(59368); + +module.exports = forge.kem = forge.kem || {}; + +var BigInteger = forge.jsbn.BigInteger; + +/** + * The API for the RSA Key Encapsulation Mechanism (RSA-KEM) from ISO 18033-2. + */ +forge.kem.rsa = {}; + +/** + * Creates an RSA KEM API object for generating a secret asymmetric key. + * + * The symmetric key may be generated via a call to 'encrypt', which will + * produce a ciphertext to be transmitted to the recipient and a key to be + * kept secret. The ciphertext is a parameter to be passed to 'decrypt' which + * will produce the same secret key for the recipient to use to decrypt a + * message that was encrypted with the secret key. + * + * @param kdf the KDF API to use (eg: new forge.kem.kdf1()). + * @param options the options to use. + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + */ +forge.kem.rsa.create = function(kdf, options) { + options = options || {}; + var prng = options.prng || forge.random; + + var kem = {}; + + /** + * Generates a secret key and its encapsulation. + * + * @param publicKey the RSA public key to encrypt with. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return an object with: + * encapsulation: the ciphertext for generating the secret key, as a + * binary-encoded string of bytes. + * key: the secret key to use for encrypting a message. + */ + kem.encrypt = function(publicKey, keyLength) { + // generate a random r where 1 < r < n + var byteLength = Math.ceil(publicKey.n.bitLength() / 8); + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(prng.getBytesSync(byteLength)), + 16).mod(publicKey.n); + } while(r.compareTo(BigInteger.ONE) <= 0); + + // prepend r with zeros + r = forge.util.hexToBytes(r.toString(16)); + var zeros = byteLength - r.length; + if(zeros > 0) { + r = forge.util.fillString(String.fromCharCode(0), zeros) + r; + } + + // encrypt the random + var encapsulation = publicKey.encrypt(r, 'NONE'); + + // generate the secret key + var key = kdf.generate(r, keyLength); + + return {encapsulation: encapsulation, key: key}; + }; + + /** + * Decrypts an encapsulated secret key. + * + * @param privateKey the RSA private key to decrypt with. + * @param encapsulation the ciphertext for generating the secret key, as + * a binary-encoded string of bytes. + * @param keyLength the length, in bytes, of the secret key to generate. + * + * @return the secret key as a binary-encoded string of bytes. + */ + kem.decrypt = function(privateKey, encapsulation, keyLength) { + // decrypt the encapsulation and generate the secret key + var r = privateKey.decrypt(encapsulation, 'NONE'); + return kdf.generate(r, keyLength); + }; + + return kem; +}; + +// TODO: add forge.kem.kdf.create('KDF1', {md: ..., ...}) API? + +/** + * Creates a key derivation API object that implements KDF1 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF1 API object. + */ +forge.kem.kdf1 = function(md, digestLength) { + _createKDF(this, md, 0, digestLength || md.digestLength); +}; + +/** + * Creates a key derivation API object that implements KDF2 per ISO 18033-2. + * + * @param md the hash API to use. + * @param [digestLength] an optional digest length that must be positive and + * less than or equal to md.digestLength. + * + * @return a KDF2 API object. + */ +forge.kem.kdf2 = function(md, digestLength) { + _createKDF(this, md, 1, digestLength || md.digestLength); +}; + +/** + * Creates a KDF1 or KDF2 API object. + * + * @param md the hash API to use. + * @param counterStart the starting index for the counter. + * @param digestLength the digest length to use. + * + * @return the KDF API object. + */ +function _createKDF(kdf, md, counterStart, digestLength) { + /** + * Generate a key of the specified length. + * + * @param x the binary-encoded byte string to generate a key from. + * @param length the number of bytes to generate (the size of the key). + * + * @return the key as a binary-encoded string. + */ + kdf.generate = function(x, length) { + var key = new forge.util.ByteBuffer(); + + // run counter from counterStart to ceil(length / Hash.len) + var k = Math.ceil(length / digestLength) + counterStart; + + var c = new forge.util.ByteBuffer(); + for(var i = counterStart; i < k; ++i) { + // I2OSP(i, 4): convert counter to an octet string of 4 octets + c.putInt32(i); + + // digest 'x' and the counter and add the result to the key + md.start(); + md.update(x + c.getBytes()); + var hash = md.digest(); + key.putBytes(hash.getBytes(digestLength)); + } + + // truncate to the correct key length + key.truncate(key.length() - length); + return key.getBytes(); + }; +} + + +/***/ }), + +/***/ 94790: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Cross-browser support for logging in a web application. + * + * @author David I. Lehn + * + * Copyright (c) 2008-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +/* LOG API */ +module.exports = forge.log = forge.log || {}; + +/** + * Application logging system. + * + * Each logger level available as it's own function of the form: + * forge.log.level(category, args...) + * The category is an arbitrary string, and the args are the same as + * Firebug's console.log API. By default the call will be output as: + * 'LEVEL [category] , args[1], ...' + * This enables proper % formatting via the first argument. + * Each category is enabled by default but can be enabled or disabled with + * the setCategoryEnabled() function. + */ +// list of known levels +forge.log.levels = [ + 'none', 'error', 'warning', 'info', 'debug', 'verbose', 'max']; +// info on the levels indexed by name: +// index: level index +// name: uppercased display name +var sLevelInfo = {}; +// list of loggers +var sLoggers = []; +/** + * Standard console logger. If no console support is enabled this will + * remain null. Check before using. + */ +var sConsoleLogger = null; + +// logger flags +/** + * Lock the level at the current value. Used in cases where user config may + * set the level such that only critical messages are seen but more verbose + * messages are needed for debugging or other purposes. + */ +forge.log.LEVEL_LOCKED = (1 << 1); +/** + * Always call log function. By default, the logging system will check the + * message level against logger.level before calling the log function. This + * flag allows the function to do its own check. + */ +forge.log.NO_LEVEL_CHECK = (1 << 2); +/** + * Perform message interpolation with the passed arguments. "%" style + * fields in log messages will be replaced by arguments as needed. Some + * loggers, such as Firebug, may do this automatically. The original log + * message will be available as 'message' and the interpolated version will + * be available as 'fullMessage'. + */ +forge.log.INTERPOLATE = (1 << 3); + +// setup each log level +for(var i = 0; i < forge.log.levels.length; ++i) { + var level = forge.log.levels[i]; + sLevelInfo[level] = { + index: i, + name: level.toUpperCase() + }; +} + +/** + * Message logger. Will dispatch a message to registered loggers as needed. + * + * @param message message object + */ +forge.log.logMessage = function(message) { + var messageLevelIndex = sLevelInfo[message.level].index; + for(var i = 0; i < sLoggers.length; ++i) { + var logger = sLoggers[i]; + if(logger.flags & forge.log.NO_LEVEL_CHECK) { + logger.f(message); + } else { + // get logger level + var loggerLevelIndex = sLevelInfo[logger.level].index; + // check level + if(messageLevelIndex <= loggerLevelIndex) { + // message critical enough, call logger + logger.f(logger, message); + } + } + } +}; + +/** + * Sets the 'standard' key on a message object to: + * "LEVEL [category] " + message + * + * @param message a message log object + */ +forge.log.prepareStandard = function(message) { + if(!('standard' in message)) { + message.standard = + sLevelInfo[message.level].name + + //' ' + +message.timestamp + + ' [' + message.category + '] ' + + message.message; + } +}; + +/** + * Sets the 'full' key on a message object to the original message + * interpolated via % formatting with the message arguments. + * + * @param message a message log object. + */ +forge.log.prepareFull = function(message) { + if(!('full' in message)) { + // copy args and insert message at the front + var args = [message.message]; + args = args.concat([] || 0); + // format the message + message.full = forge.util.format.apply(this, args); + } +}; + +/** + * Applies both preparseStandard() and prepareFull() to a message object and + * store result in 'standardFull'. + * + * @param message a message log object. + */ +forge.log.prepareStandardFull = function(message) { + if(!('standardFull' in message)) { + // FIXME implement 'standardFull' logging + forge.log.prepareStandard(message); + message.standardFull = message.standard; + } +}; + +// create log level functions +if(true) { + // levels for which we want functions + var levels = ['error', 'warning', 'info', 'debug', 'verbose']; + for(var i = 0; i < levels.length; ++i) { + // wrap in a function to ensure proper level var is passed + (function(level) { + // create function for this level + forge.log[level] = function(category, message/*, args...*/) { + // convert arguments to real array, remove category and message + var args = Array.prototype.slice.call(arguments).slice(2); + // create message object + // Note: interpolation and standard formatting is done lazily + var msg = { + timestamp: new Date(), + level: level, + category: category, + message: message, + 'arguments': args + /*standard*/ + /*full*/ + /*fullMessage*/ + }; + // process this message + forge.log.logMessage(msg); + }; + })(levels[i]); + } +} + +/** + * Creates a new logger with specified custom logging function. + * + * The logging function has a signature of: + * function(logger, message) + * logger: current logger + * message: object: + * level: level id + * category: category + * message: string message + * arguments: Array of extra arguments + * fullMessage: interpolated message and arguments if INTERPOLATE flag set + * + * @param logFunction a logging function which takes a log message object + * as a parameter. + * + * @return a logger object. + */ +forge.log.makeLogger = function(logFunction) { + var logger = { + flags: 0, + f: logFunction + }; + forge.log.setLevel(logger, 'none'); + return logger; +}; + +/** + * Sets the current log level on a logger. + * + * @param logger the target logger. + * @param level the new maximum log level as a string. + * + * @return true if set, false if not. + */ +forge.log.setLevel = function(logger, level) { + var rval = false; + if(logger && !(logger.flags & forge.log.LEVEL_LOCKED)) { + for(var i = 0; i < forge.log.levels.length; ++i) { + var aValidLevel = forge.log.levels[i]; + if(level == aValidLevel) { + // set level + logger.level = level; + rval = true; + break; + } + } + } + + return rval; +}; + +/** + * Locks the log level at its current value. + * + * @param logger the target logger. + * @param lock boolean lock value, default to true. + */ +forge.log.lock = function(logger, lock) { + if(typeof lock === 'undefined' || lock) { + logger.flags |= forge.log.LEVEL_LOCKED; + } else { + logger.flags &= ~forge.log.LEVEL_LOCKED; + } +}; + +/** + * Adds a logger. + * + * @param logger the logger object. + */ +forge.log.addLogger = function(logger) { + sLoggers.push(logger); +}; + +// setup the console logger if possible, else create fake console.log +if(typeof(console) !== 'undefined' && 'log' in console) { + var logger; + if(console.error && console.warn && console.info && console.debug) { + // looks like Firebug-style logging is available + // level handlers map + var levelHandlers = { + error: console.error, + warning: console.warn, + info: console.info, + debug: console.debug, + verbose: console.debug + }; + var f = function(logger, message) { + forge.log.prepareStandard(message); + var handler = levelHandlers[message.level]; + // prepend standard message and concat args + var args = [message.standard]; + args = args.concat(message['arguments'].slice()); + // apply to low-level console function + handler.apply(console, args); + }; + logger = forge.log.makeLogger(f); + } else { + // only appear to have basic console.log + var f = function(logger, message) { + forge.log.prepareStandardFull(message); + console.log(message.standardFull); + }; + logger = forge.log.makeLogger(f); + } + forge.log.setLevel(logger, 'debug'); + forge.log.addLogger(logger); + sConsoleLogger = logger; +} else { + // define fake console.log to avoid potential script errors on + // browsers that do not have console logging + console = { + log: function() {} + }; +} + +/* + * Check for logging control query vars. + * + * console.level= + * Set's the console log level by name. Useful to override defaults and + * allow more verbose logging before a user config is loaded. + * + * console.lock= + * Lock the console log level at whatever level it is set at. This is run + * after console.level is processed. Useful to force a level of verbosity + * that could otherwise be limited by a user config. + */ +if(sConsoleLogger !== null) { + var query = forge.util.getQueryVariables(); + if('console.level' in query) { + // set with last value + forge.log.setLevel( + sConsoleLogger, query['console.level'].slice(-1)[0]); + } + if('console.lock' in query) { + // set with last value + var lock = query['console.lock'].slice(-1)[0]; + if(lock == 'true') { + forge.log.lock(sConsoleLogger); + } + } +} + +// provide public access to console logger +forge.log.consoleLogger = sConsoleLogger; + + +/***/ }), + +/***/ 12465: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for all known Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +module.exports = __nccwpck_require__(96224); + +__nccwpck_require__(36292); +__nccwpck_require__(30631); +__nccwpck_require__(50160); +__nccwpck_require__(83160); + + +/***/ }), + +/***/ 96224: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for Forge message digests. + * + * @author Dave Longley + * + * Copyright 2011-2017 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); + +module.exports = forge.md = forge.md || {}; +forge.md.algorithms = forge.md.algorithms || {}; + + +/***/ }), + +/***/ 36292: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Message Digest Algorithm 5 with 128-bit digest (MD5) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +var md5 = module.exports = forge.md5 = forge.md5 || {}; +forge.md.md5 = forge.md.algorithms.md5 = md5; + +/** + * Creates an MD5 message digest object. + * + * @return a message digest object. + */ +md5.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // MD5 state contains four 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(16); + + // message digest object + var md = { + algorithm: 'md5', + blockLength: 64, + digestLength: 16, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = (len[1] / 0x100000000) >>> 0; + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate MD5 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in little-endian order; since length + // is stored in bytes we multiply by 8 and add carry + var bits, carry = 0; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + bits = md.fullMessageLength[i] * 8 + carry; + carry = (bits / 0x100000000) >>> 0; + finalBlock.putInt32Le(bits >>> 0); + } + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32Le(s2.h0); + rval.putInt32Le(s2.h1); + rval.putInt32Le(s2.h2); + rval.putInt32Le(s2.h3); + return rval; + }; + + return md; +}; + +// padding, constant tables for calculating md5 +var _padding = null; +var _g = null; +var _r = null; +var _k = null; +var _initialized = false; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // g values + _g = [ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, + 1, 6, 11, 0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, + 5, 8, 11, 14, 1, 4, 7, 10, 13, 0, 3, 6, 9, 12, 15, 2, + 0, 7, 14, 5, 12, 3, 10, 1, 8, 15, 6, 13, 4, 11, 2, 9]; + + // rounds table + _r = [ + 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, 7, 12, 17, 22, + 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, 5, 9, 14, 20, + 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, 4, 11, 16, 23, + 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21, 6, 10, 15, 21]; + + // get the result of abs(sin(i + 1)) as a 32-bit integer + _k = new Array(64); + for(var i = 0; i < 64; ++i) { + _k[i] = Math.floor(Math.abs(Math.sin(i + 1)) * 0x100000000); + } + + // now initialized + _initialized = true; +} + +/** + * Updates an MD5 state with the given byte buffer. + * + * @param s the MD5 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, f, r, i; + var len = bytes.length(); + while(len >= 64) { + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + + // round 1 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32Le(); + f = d ^ (b & (c ^ d)); + t = (a + f + _k[i] + w[i]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 2 + for(; i < 32; ++i) { + f = c ^ (d & (b ^ c)); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 3 + for(; i < 48; ++i) { + f = b ^ c ^ d; + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + // round 4 + for(; i < 64; ++i) { + f = c ^ (b | ~d); + t = (a + f + _k[i] + w[_g[i]]); + r = _r[i]; + a = d; + d = c; + c = b; + b += (t << r) | (t >>> (32 - r)); + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + + len -= 64; + } +} + + +/***/ }), + +/***/ 50374: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Node.js module for Forge mask generation functions. + * + * @author Stefan Siegl + * + * Copyright 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(5968); + +module.exports = forge.mgf = forge.mgf || {}; +forge.mgf.mgf1 = forge.mgf1; + + +/***/ }), + +/***/ 5968: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of mask generation function MGF1. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +forge.mgf = forge.mgf || {}; +var mgf1 = module.exports = forge.mgf.mgf1 = forge.mgf1 = forge.mgf1 || {}; + +/** + * Creates a MGF1 mask generation function object. + * + * @param md the message digest API to use (eg: forge.md.sha1.create()). + * + * @return a mask generation function object. + */ +mgf1.create = function(md) { + var mgf = { + /** + * Generate mask of specified length. + * + * @param {String} seed The seed for mask generation. + * @param maskLen Number of bytes to generate. + * @return {String} The generated mask. + */ + generate: function(seed, maskLen) { + /* 2. Let T be the empty octet string. */ + var t = new forge.util.ByteBuffer(); + + /* 3. For counter from 0 to ceil(maskLen / hLen), do the following: */ + var len = Math.ceil(maskLen / md.digestLength); + for(var i = 0; i < len; i++) { + /* a. Convert counter to an octet string C of length 4 octets */ + var c = new forge.util.ByteBuffer(); + c.putInt32(i); + + /* b. Concatenate the hash of the seed mgfSeed and C to the octet + * string T: */ + md.start(); + md.update(seed + c.getBytes()); + t.putBuffer(md.digest()); + } + + /* Output the leading maskLen octets of T as the octet string mask. */ + t.truncate(t.length() - maskLen); + return t.getBytes(); + } + }; + + return mgf; +}; + + +/***/ }), + +/***/ 91658: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Object IDs for ASN.1. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); + +forge.pki = forge.pki || {}; +var oids = module.exports = forge.pki.oids = forge.oids = forge.oids || {}; + +// set id to name mapping and name to id mapping +function _IN(id, name) { + oids[id] = name; + oids[name] = id; +} +// set id to name mapping only +function _I_(id, name) { + oids[id] = name; +} + +// algorithm OIDs +_IN('1.2.840.113549.1.1.1', 'rsaEncryption'); +// Note: md2 & md4 not implemented +//_IN('1.2.840.113549.1.1.2', 'md2WithRSAEncryption'); +//_IN('1.2.840.113549.1.1.3', 'md4WithRSAEncryption'); +_IN('1.2.840.113549.1.1.4', 'md5WithRSAEncryption'); +_IN('1.2.840.113549.1.1.5', 'sha1WithRSAEncryption'); +_IN('1.2.840.113549.1.1.7', 'RSAES-OAEP'); +_IN('1.2.840.113549.1.1.8', 'mgf1'); +_IN('1.2.840.113549.1.1.9', 'pSpecified'); +_IN('1.2.840.113549.1.1.10', 'RSASSA-PSS'); +_IN('1.2.840.113549.1.1.11', 'sha256WithRSAEncryption'); +_IN('1.2.840.113549.1.1.12', 'sha384WithRSAEncryption'); +_IN('1.2.840.113549.1.1.13', 'sha512WithRSAEncryption'); +// Edwards-curve Digital Signature Algorithm (EdDSA) Ed25519 +_IN('1.3.101.112', 'EdDSA25519'); + +_IN('1.2.840.10040.4.3', 'dsa-with-sha1'); + +_IN('1.3.14.3.2.7', 'desCBC'); + +_IN('1.3.14.3.2.26', 'sha1'); +_IN('2.16.840.1.101.3.4.2.1', 'sha256'); +_IN('2.16.840.1.101.3.4.2.2', 'sha384'); +_IN('2.16.840.1.101.3.4.2.3', 'sha512'); +_IN('1.2.840.113549.2.5', 'md5'); + +// pkcs#7 content types +_IN('1.2.840.113549.1.7.1', 'data'); +_IN('1.2.840.113549.1.7.2', 'signedData'); +_IN('1.2.840.113549.1.7.3', 'envelopedData'); +_IN('1.2.840.113549.1.7.4', 'signedAndEnvelopedData'); +_IN('1.2.840.113549.1.7.5', 'digestedData'); +_IN('1.2.840.113549.1.7.6', 'encryptedData'); + +// pkcs#9 oids +_IN('1.2.840.113549.1.9.1', 'emailAddress'); +_IN('1.2.840.113549.1.9.2', 'unstructuredName'); +_IN('1.2.840.113549.1.9.3', 'contentType'); +_IN('1.2.840.113549.1.9.4', 'messageDigest'); +_IN('1.2.840.113549.1.9.5', 'signingTime'); +_IN('1.2.840.113549.1.9.6', 'counterSignature'); +_IN('1.2.840.113549.1.9.7', 'challengePassword'); +_IN('1.2.840.113549.1.9.8', 'unstructuredAddress'); +_IN('1.2.840.113549.1.9.14', 'extensionRequest'); + +_IN('1.2.840.113549.1.9.20', 'friendlyName'); +_IN('1.2.840.113549.1.9.21', 'localKeyId'); +_IN('1.2.840.113549.1.9.22.1', 'x509Certificate'); + +// pkcs#12 safe bags +_IN('1.2.840.113549.1.12.10.1.1', 'keyBag'); +_IN('1.2.840.113549.1.12.10.1.2', 'pkcs8ShroudedKeyBag'); +_IN('1.2.840.113549.1.12.10.1.3', 'certBag'); +_IN('1.2.840.113549.1.12.10.1.4', 'crlBag'); +_IN('1.2.840.113549.1.12.10.1.5', 'secretBag'); +_IN('1.2.840.113549.1.12.10.1.6', 'safeContentsBag'); + +// password-based-encryption for pkcs#12 +_IN('1.2.840.113549.1.5.13', 'pkcs5PBES2'); +_IN('1.2.840.113549.1.5.12', 'pkcs5PBKDF2'); + +_IN('1.2.840.113549.1.12.1.1', 'pbeWithSHAAnd128BitRC4'); +_IN('1.2.840.113549.1.12.1.2', 'pbeWithSHAAnd40BitRC4'); +_IN('1.2.840.113549.1.12.1.3', 'pbeWithSHAAnd3-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.4', 'pbeWithSHAAnd2-KeyTripleDES-CBC'); +_IN('1.2.840.113549.1.12.1.5', 'pbeWithSHAAnd128BitRC2-CBC'); +_IN('1.2.840.113549.1.12.1.6', 'pbewithSHAAnd40BitRC2-CBC'); + +// hmac OIDs +_IN('1.2.840.113549.2.7', 'hmacWithSHA1'); +_IN('1.2.840.113549.2.8', 'hmacWithSHA224'); +_IN('1.2.840.113549.2.9', 'hmacWithSHA256'); +_IN('1.2.840.113549.2.10', 'hmacWithSHA384'); +_IN('1.2.840.113549.2.11', 'hmacWithSHA512'); + +// symmetric key algorithm oids +_IN('1.2.840.113549.3.7', 'des-EDE3-CBC'); +_IN('2.16.840.1.101.3.4.1.2', 'aes128-CBC'); +_IN('2.16.840.1.101.3.4.1.22', 'aes192-CBC'); +_IN('2.16.840.1.101.3.4.1.42', 'aes256-CBC'); + +// certificate issuer/subject OIDs +_IN('2.5.4.3', 'commonName'); +_IN('2.5.4.5', 'serialName'); +_IN('2.5.4.6', 'countryName'); +_IN('2.5.4.7', 'localityName'); +_IN('2.5.4.8', 'stateOrProvinceName'); +_IN('2.5.4.9', 'streetAddress'); +_IN('2.5.4.10', 'organizationName'); +_IN('2.5.4.11', 'organizationalUnitName'); +_IN('2.5.4.13', 'description'); +_IN('2.5.4.15', 'businessCategory'); +_IN('2.5.4.17', 'postalCode'); +_IN('1.3.6.1.4.1.311.60.2.1.2', 'jurisdictionOfIncorporationStateOrProvinceName'); +_IN('1.3.6.1.4.1.311.60.2.1.3', 'jurisdictionOfIncorporationCountryName'); + +// X.509 extension OIDs +_IN('2.16.840.1.113730.1.1', 'nsCertType'); +_IN('2.16.840.1.113730.1.13', 'nsComment'); // deprecated in theory; still widely used +_I_('2.5.29.1', 'authorityKeyIdentifier'); // deprecated, use .35 +_I_('2.5.29.2', 'keyAttributes'); // obsolete use .37 or .15 +_I_('2.5.29.3', 'certificatePolicies'); // deprecated, use .32 +_I_('2.5.29.4', 'keyUsageRestriction'); // obsolete use .37 or .15 +_I_('2.5.29.5', 'policyMapping'); // deprecated use .33 +_I_('2.5.29.6', 'subtreesConstraint'); // obsolete use .30 +_I_('2.5.29.7', 'subjectAltName'); // deprecated use .17 +_I_('2.5.29.8', 'issuerAltName'); // deprecated use .18 +_I_('2.5.29.9', 'subjectDirectoryAttributes'); +_I_('2.5.29.10', 'basicConstraints'); // deprecated use .19 +_I_('2.5.29.11', 'nameConstraints'); // deprecated use .30 +_I_('2.5.29.12', 'policyConstraints'); // deprecated use .36 +_I_('2.5.29.13', 'basicConstraints'); // deprecated use .19 +_IN('2.5.29.14', 'subjectKeyIdentifier'); +_IN('2.5.29.15', 'keyUsage'); +_I_('2.5.29.16', 'privateKeyUsagePeriod'); +_IN('2.5.29.17', 'subjectAltName'); +_IN('2.5.29.18', 'issuerAltName'); +_IN('2.5.29.19', 'basicConstraints'); +_I_('2.5.29.20', 'cRLNumber'); +_I_('2.5.29.21', 'cRLReason'); +_I_('2.5.29.22', 'expirationDate'); +_I_('2.5.29.23', 'instructionCode'); +_I_('2.5.29.24', 'invalidityDate'); +_I_('2.5.29.25', 'cRLDistributionPoints'); // deprecated use .31 +_I_('2.5.29.26', 'issuingDistributionPoint'); // deprecated use .28 +_I_('2.5.29.27', 'deltaCRLIndicator'); +_I_('2.5.29.28', 'issuingDistributionPoint'); +_I_('2.5.29.29', 'certificateIssuer'); +_I_('2.5.29.30', 'nameConstraints'); +_IN('2.5.29.31', 'cRLDistributionPoints'); +_IN('2.5.29.32', 'certificatePolicies'); +_I_('2.5.29.33', 'policyMappings'); +_I_('2.5.29.34', 'policyConstraints'); // deprecated use .36 +_IN('2.5.29.35', 'authorityKeyIdentifier'); +_I_('2.5.29.36', 'policyConstraints'); +_IN('2.5.29.37', 'extKeyUsage'); +_I_('2.5.29.46', 'freshestCRL'); +_I_('2.5.29.54', 'inhibitAnyPolicy'); + +// extKeyUsage purposes +_IN('1.3.6.1.4.1.11129.2.4.2', 'timestampList'); +_IN('1.3.6.1.5.5.7.1.1', 'authorityInfoAccess'); +_IN('1.3.6.1.5.5.7.3.1', 'serverAuth'); +_IN('1.3.6.1.5.5.7.3.2', 'clientAuth'); +_IN('1.3.6.1.5.5.7.3.3', 'codeSigning'); +_IN('1.3.6.1.5.5.7.3.4', 'emailProtection'); +_IN('1.3.6.1.5.5.7.3.8', 'timeStamping'); + + +/***/ }), + +/***/ 11786: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Password-based encryption functions. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * An EncryptedPrivateKeyInfo: + * + * EncryptedPrivateKeyInfo ::= SEQUENCE { + * encryptionAlgorithm EncryptionAlgorithmIdentifier, + * encryptedData EncryptedData } + * + * EncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * EncryptedData ::= OCTET STRING + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(93386); +__nccwpck_require__(88450); +__nccwpck_require__(96224); +__nccwpck_require__(91658); +__nccwpck_require__(4373); +__nccwpck_require__(45877); +__nccwpck_require__(61698); +__nccwpck_require__(28196); +__nccwpck_require__(12343); +__nccwpck_require__(21726); + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Password-based encryption implementation. */ +var pki = forge.pki = forge.pki || {}; +module.exports = pki.pbe = forge.pbe = forge.pbe || {}; +var oids = pki.oids; + +// validator for an EncryptedPrivateKeyInfo structure +// Note: Currently only works w/algorithm params +var encryptedPrivateKeyValidator = { + name: 'EncryptedPrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedPrivateKeyInfo.encryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encryptionOid' + }, { + name: 'AlgorithmIdentifier.parameters', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'encryptionParams' + }] + }, { + // encryptedData + name: 'EncryptedPrivateKeyInfo.encryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encryptedData' + }] +}; + +// validator for a PBES2Algorithms structure +// Note: Currently only works w/PBKDF2 + AES encryption schemes +var PBES2AlgorithmsValidator = { + name: 'PBES2Algorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.keyDerivationFunc.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'kdfOid' + }, { + name: 'PBES2Algorithms.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.params.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'kdfSalt' + }, { + name: 'PBES2Algorithms.params.iterationCount', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'kdfIterationCount' + }, { + name: 'PBES2Algorithms.params.keyLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'keyLength' + }, { + // prf + name: 'PBES2Algorithms.params.prf', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'PBES2Algorithms.params.prf.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'prfOid' + }] + }] + }] + }, { + name: 'PBES2Algorithms.encryptionScheme', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PBES2Algorithms.encryptionScheme.oid', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encOid' + }, { + name: 'PBES2Algorithms.encryptionScheme.iv', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encIv' + }] + }] +}; + +var pkcs12PbeParamsValidator = { + name: 'pkcs-12PbeParams', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'pkcs-12PbeParams.salt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'salt' + }, { + name: 'pkcs-12PbeParams.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'iterations' + }] +}; + +/** + * Encrypts a ASN.1 PrivateKeyInfo object, producing an EncryptedPrivateKeyInfo. + * + * PBES2Algorithms ALGORITHM-IDENTIFIER ::= + * { {PBES2-params IDENTIFIED BY id-PBES2}, ...} + * + * id-PBES2 OBJECT IDENTIFIER ::= {pkcs-5 13} + * + * PBES2-params ::= SEQUENCE { + * keyDerivationFunc AlgorithmIdentifier {{PBES2-KDFs}}, + * encryptionScheme AlgorithmIdentifier {{PBES2-Encs}} + * } + * + * PBES2-KDFs ALGORITHM-IDENTIFIER ::= + * { {PBKDF2-params IDENTIFIED BY id-PBKDF2}, ... } + * + * PBES2-Encs ALGORITHM-IDENTIFIER ::= { ... } + * + * PBKDF2-params ::= SEQUENCE { + * salt CHOICE { + * specified OCTET STRING, + * otherSource AlgorithmIdentifier {{PBKDF2-SaltSources}} + * }, + * iterationCount INTEGER (1..MAX), + * keyLength INTEGER (1..MAX) OPTIONAL, + * prf AlgorithmIdentifier {{PBKDF2-PRFs}} DEFAULT algid-hmacWithSHA1 + * } + * + * @param obj the ASN.1 PrivateKeyInfo object. + * @param password the password to encrypt with. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * prfAlgorithm the PRF message digest algorithm to use + * ('sha1', 'sha224', 'sha256', 'sha384', 'sha512') + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptPrivateKeyInfo = function(obj, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || 'aes128'; + options.prfAlgorithm = options.prfAlgorithm || 'sha1'; + + // generate PBE params + var salt = forge.random.getBytesSync(options.saltSize); + var count = options.count; + var countBytes = asn1.integerToDer(count); + var dkLen; + var encryptionAlgorithm; + var encryptedData; + if(options.algorithm.indexOf('aes') === 0 || options.algorithm === 'des') { + // do PBES2 + var ivLen, encOid, cipherFn; + switch(options.algorithm) { + case 'aes128': + dkLen = 16; + ivLen = 16; + encOid = oids['aes128-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + dkLen = 24; + ivLen = 16; + encOid = oids['aes192-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + dkLen = 32; + ivLen = 16; + encOid = oids['aes256-CBC']; + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'des': + dkLen = 8; + ivLen = 8; + encOid = oids['desCBC']; + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } + + // get PRF message digest + var prfAlgorithm = 'hmacWith' + options.prfAlgorithm.toUpperCase(); + var md = prfAlgorithmToMessageDigest(prfAlgorithm); + + // encrypt private key using pbe SHA-1 and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = forge.random.getBytesSync(ivLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); + + // get PBKDF2-params + var params = createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm); + + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBES2']).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // keyDerivationFunc + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pkcs5PBKDF2']).getBytes()), + // PBKDF2-params + params + ]), + // encryptionScheme + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(encOid).getBytes()), + // iv + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, iv) + ]) + ]) + ]); + } else if(options.algorithm === '3des') { + // Do PKCS12 PBE + dkLen = 24; + + var saltBytes = new forge.util.ByteBuffer(salt); + var dk = pki.pbe.generatePkcs12Key(password, saltBytes, 1, count, dkLen); + var iv = pki.pbe.generatePkcs12Key(password, saltBytes, 2, count, dkLen); + var cipher = forge.des.createEncryptionCipher(dk); + cipher.start(iv); + cipher.update(asn1.toDer(obj)); + cipher.finish(); + encryptedData = cipher.output.getBytes(); + + encryptionAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oids['pbeWithSHAAnd3-KeyTripleDES-CBC']).getBytes()), + // pkcs-12PbeParams + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]) + ]); + } else { + var error = new Error('Cannot encrypt private key. Unknown encryption algorithm.'); + error.algorithm = options.algorithm; + throw error; + } + + // EncryptedPrivateKeyInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // encryptionAlgorithm + encryptionAlgorithm, + // encryptedData + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, encryptedData) + ]); + return rval; +}; + +/** + * Decrypts a ASN.1 PrivateKeyInfo object. + * + * @param obj the ASN.1 EncryptedPrivateKeyInfo object. + * @param password the password to decrypt with. + * + * @return the ASN.1 PrivateKeyInfo on success, null on failure. + */ +pki.decryptPrivateKeyInfo = function(obj, password) { + var rval = null; + + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(obj, encryptedPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read encrypted private key. ' + + 'ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + // get cipher + var oid = asn1.derToOid(capture.encryptionOid); + var cipher = pki.pbe.getCipher(oid, capture.encryptionParams, password); + + // get encrypted data + var encrypted = forge.util.createBuffer(capture.encryptedData); + + cipher.update(encrypted); + if(cipher.finish()) { + rval = asn1.fromDer(cipher.output); + } + + return rval; +}; + +/** + * Converts a EncryptedPrivateKeyInfo to PEM format. + * + * @param epki the EncryptedPrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted encrypted private key. + */ +pki.encryptedPrivateKeyToPem = function(epki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'ENCRYPTED PRIVATE KEY', + body: asn1.toDer(epki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts a PEM-encoded EncryptedPrivateKeyInfo to ASN.1 format. Decryption + * is not performed. + * + * @param pem the EncryptedPrivateKeyInfo in PEM-format. + * + * @return the ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptedPrivateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'ENCRYPTED PRIVATE KEY') { + var error = new Error('Could not convert encrypted private key from PEM; ' + + 'PEM header type is "ENCRYPTED PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert encrypted private key from PEM; ' + + 'PEM is encrypted.'); + } + + // convert DER to ASN.1 object + return asn1.fromDer(msg.body); +}; + +/** + * Encrypts an RSA private key. By default, the key will be wrapped in + * a PrivateKeyInfo and encrypted to produce a PKCS#8 EncryptedPrivateKeyInfo. + * This is the standard, preferred way to encrypt a private key. + * + * To produce a non-standard PEM-encrypted private key that uses encapsulated + * headers to indicate the encryption algorithm (old-style non-PKCS#8 OpenSSL + * private key encryption), set the 'legacy' option to true. Note: Using this + * option will cause the iteration count to be forced to 1. + * + * Note: The 'des' algorithm is supported, but it is not considered to be + * secure because it only uses a single 56-bit key. If possible, it is highly + * recommended that a different algorithm be used. + * + * @param rsaKey the RSA key to encrypt. + * @param password the password to use. + * @param options: + * algorithm: the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des', 'des'). + * count: the iteration count to use. + * saltSize: the salt size to use. + * legacy: output an old non-PKCS#8 PEM-encrypted+encapsulated + * headers (DEK-Info) private key. + * + * @return the PEM-encoded ASN.1 EncryptedPrivateKeyInfo. + */ +pki.encryptRsaPrivateKey = function(rsaKey, password, options) { + // standard PKCS#8 + options = options || {}; + if(!options.legacy) { + // encrypt PrivateKeyInfo + var rval = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(rsaKey)); + rval = pki.encryptPrivateKeyInfo(rval, password, options); + return pki.encryptedPrivateKeyToPem(rval); + } + + // legacy non-PKCS#8 + var algorithm; + var iv; + var dkLen; + var cipherFn; + switch(options.algorithm) { + case 'aes128': + algorithm = 'AES-128-CBC'; + dkLen = 16; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes192': + algorithm = 'AES-192-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case 'aes256': + algorithm = 'AES-256-CBC'; + dkLen = 32; + iv = forge.random.getBytesSync(16); + cipherFn = forge.aes.createEncryptionCipher; + break; + case '3des': + algorithm = 'DES-EDE3-CBC'; + dkLen = 24; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + case 'des': + algorithm = 'DES-CBC'; + dkLen = 8; + iv = forge.random.getBytesSync(8); + cipherFn = forge.des.createEncryptionCipher; + break; + default: + var error = new Error('Could not encrypt RSA private key; unsupported ' + + 'encryption algorithm "' + options.algorithm + '".'); + error.algorithm = options.algorithm; + throw error; + } + + // encrypt private key using OpenSSL legacy key derivation + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(asn1.toDer(pki.privateKeyToAsn1(rsaKey))); + cipher.finish(); + + var msg = { + type: 'RSA PRIVATE KEY', + procType: { + version: '4', + type: 'ENCRYPTED' + }, + dekInfo: { + algorithm: algorithm, + parameters: forge.util.bytesToHex(iv).toUpperCase() + }, + body: cipher.output.getBytes() + }; + return forge.pem.encode(msg); +}; + +/** + * Decrypts an RSA private key. + * + * @param pem the PEM-formatted EncryptedPrivateKeyInfo to decrypt. + * @param password the password to use. + * + * @return the RSA key on success, null on failure. + */ +pki.decryptRsaPrivateKey = function(pem, password) { + var rval = null; + + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'ENCRYPTED PRIVATE KEY' && + msg.type !== 'PRIVATE KEY' && + msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM header type ' + + 'is not "ENCRYPTED PRIVATE KEY", "PRIVATE KEY", or "RSA PRIVATE KEY".'); + error.headerType = error; + throw error; + } + + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + var dkLen; + var cipherFn; + switch(msg.dekInfo.algorithm) { + case 'DES-CBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'DES-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'AES-128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'AES-256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'RC2-40-CBC': + dkLen = 5; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 40); + }; + break; + case 'RC2-64-CBC': + dkLen = 8; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 64); + }; + break; + case 'RC2-128-CBC': + dkLen = 16; + cipherFn = function(key) { + return forge.rc2.createDecryptionCipher(key, 128); + }; + break; + default: + var error = new Error('Could not decrypt private key; unsupported ' + + 'encryption algorithm "' + msg.dekInfo.algorithm + '".'); + error.algorithm = msg.dekInfo.algorithm; + throw error; + } + + // use OpenSSL legacy key derivation + var iv = forge.util.hexToBytes(msg.dekInfo.parameters); + var dk = forge.pbe.opensslDeriveBytes(password, iv.substr(0, 8), dkLen); + var cipher = cipherFn(dk); + cipher.start(iv); + cipher.update(forge.util.createBuffer(msg.body)); + if(cipher.finish()) { + rval = cipher.output.getBytes(); + } else { + return rval; + } + } else { + rval = msg.body; + } + + if(msg.type === 'ENCRYPTED PRIVATE KEY') { + rval = pki.decryptPrivateKeyInfo(asn1.fromDer(rval), password); + } else { + // decryption already performed above + rval = asn1.fromDer(rval); + } + + if(rval !== null) { + rval = pki.privateKeyFromAsn1(rval); + } + + return rval; +}; + +/** + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. + */ +pki.pbe.generatePkcs12Key = function(password, salt, id, iter, n, md) { + var j, l; + + if(typeof md === 'undefined' || md === null) { + if(!('sha1' in forge.md)) { + throw new Error('"sha1" hash algorithm unavailable.'); + } + md = forge.md.sha1.create(); + } + + var u = md.digestLength; + var v = md.blockLength; + var result = new forge.util.ByteBuffer(); + + /* Convert password to Unicode byte buffer + trailing 0-byte. */ + var passBuf = new forge.util.ByteBuffer(); + if(password !== null && password !== undefined) { + for(l = 0; l < password.length; l++) { + passBuf.putInt16(password.charCodeAt(l)); + } + passBuf.putInt16(0); + } + + /* Length of salt and password in BYTES. */ + var p = passBuf.length(); + var s = salt.length(); + + /* 1. Construct a string, D (the "diversifier"), by concatenating + v copies of ID. */ + var D = new forge.util.ByteBuffer(); + D.fillWithByte(id, v); + + /* 2. Concatenate copies of the salt together to create a string S of length + v * ceil(s / v) bytes (the final copy of the salt may be trunacted + to create S). + Note that if the salt is the empty string, then so is S. */ + var Slen = v * Math.ceil(s / v); + var S = new forge.util.ByteBuffer(); + for(l = 0; l < Slen; l++) { + S.putByte(salt.at(l % s)); + } + + /* 3. Concatenate copies of the password together to create a string P of + length v * ceil(p / v) bytes (the final copy of the password may be + truncated to create P). + Note that if the password is the empty string, then so is P. */ + var Plen = v * Math.ceil(p / v); + var P = new forge.util.ByteBuffer(); + for(l = 0; l < Plen; l++) { + P.putByte(passBuf.at(l % p)); + } + + /* 4. Set I=S||P to be the concatenation of S and P. */ + var I = S; + I.putBuffer(P); + + /* 5. Set c=ceil(n / u). */ + var c = Math.ceil(n / u); + + /* 6. For i=1, 2, ..., c, do the following: */ + for(var i = 1; i <= c; i++) { + /* a) Set Ai=H^r(D||I). (l.e. the rth hash of D||I, H(H(H(...H(D||I)))) */ + var buf = new forge.util.ByteBuffer(); + buf.putBytes(D.bytes()); + buf.putBytes(I.bytes()); + for(var round = 0; round < iter; round++) { + md.start(); + md.update(buf.getBytes()); + buf = md.digest(); + } + + /* b) Concatenate copies of Ai to create a string B of length v bytes (the + final copy of Ai may be truncated to create B). */ + var B = new forge.util.ByteBuffer(); + for(l = 0; l < v; l++) { + B.putByte(buf.at(l % u)); + } + + /* c) Treating I as a concatenation I0, I1, ..., Ik-1 of v-byte blocks, + where k=ceil(s / v) + ceil(p / v), modify I by setting + Ij=(Ij+B+1) mod 2v for each j. */ + var k = Math.ceil(s / v) + Math.ceil(p / v); + var Inew = new forge.util.ByteBuffer(); + for(j = 0; j < k; j++) { + var chunk = new forge.util.ByteBuffer(I.getBytes(v)); + var x = 0x1ff; + for(l = B.length() - 1; l >= 0; l--) { + x = x >> 8; + x += B.at(l) + chunk.at(l); + chunk.setAt(l, x & 0xff); + } + Inew.putBuffer(chunk); + } + I = Inew; + + /* Add Ai to A. */ + result.putBuffer(buf); + } + + result.truncate(result.length() - n); + return result; +}; + +/** + * Get new Forge cipher object instance. + * + * @param oid the OID (in string notation). + * @param params the ASN.1 params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. + */ +pki.pbe.getCipher = function(oid, params, password) { + switch(oid) { + case pki.oids['pkcs5PBES2']: + return pki.pbe.getCipherForPBES2(oid, params, password); + + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + return pki.pbe.getCipherForPKCS12PBE(oid, params, password); + + default: + var error = new Error('Cannot read encrypted PBE data block. Unsupported OID.'); + error.oid = oid; + error.supportedOids = [ + 'pkcs5PBES2', + 'pbeWithSHAAnd3-KeyTripleDES-CBC', + 'pbewithSHAAnd40BitRC2-CBC' + ]; + throw error; + } +}; + +/** + * Get new Forge cipher object instance according to PBES2 params block. + * + * The returned cipher instance is already started using the IV + * from PBES2 parameter block. + * + * @param oid the PKCS#5 PBKDF2 OID (in string notation). + * @param params the ASN.1 PBES2-params object. + * @param password the password to decrypt with. + * + * @return new cipher object instance. + */ +pki.pbe.getCipherForPBES2 = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, PBES2AlgorithmsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + // check oids + oid = asn1.derToOid(capture.kdfOid); + if(oid !== pki.oids['pkcs5PBKDF2']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported key derivation function OID.'); + error.oid = oid; + error.supportedOids = ['pkcs5PBKDF2']; + throw error; + } + oid = asn1.derToOid(capture.encOid); + if(oid !== pki.oids['aes128-CBC'] && + oid !== pki.oids['aes192-CBC'] && + oid !== pki.oids['aes256-CBC'] && + oid !== pki.oids['des-EDE3-CBC'] && + oid !== pki.oids['desCBC']) { + var error = new Error('Cannot read encrypted private key. ' + + 'Unsupported encryption scheme OID.'); + error.oid = oid; + error.supportedOids = [ + 'aes128-CBC', 'aes192-CBC', 'aes256-CBC', 'des-EDE3-CBC', 'desCBC']; + throw error; + } + + // set PBE params + var salt = capture.kdfSalt; + var count = forge.util.createBuffer(capture.kdfIterationCount); + count = count.getInt(count.length() << 3); + var dkLen; + var cipherFn; + switch(pki.oids[oid]) { + case 'aes128-CBC': + dkLen = 16; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes192-CBC': + dkLen = 24; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'aes256-CBC': + dkLen = 32; + cipherFn = forge.aes.createDecryptionCipher; + break; + case 'des-EDE3-CBC': + dkLen = 24; + cipherFn = forge.des.createDecryptionCipher; + break; + case 'desCBC': + dkLen = 8; + cipherFn = forge.des.createDecryptionCipher; + break; + } + + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + + // decrypt private key using pbe with chosen PRF and AES/DES + var dk = forge.pkcs5.pbkdf2(password, salt, count, dkLen, md); + var iv = capture.encIv; + var cipher = cipherFn(dk); + cipher.start(iv); + + return cipher; +}; + +/** + * Get new Forge cipher object instance for PKCS#12 PBE. + * + * The returned cipher instance is already started using the key & IV + * derived from the provided password and PKCS#12 PBE salt. + * + * @param oid The PKCS#12 PBE OID (in string notation). + * @param params The ASN.1 PKCS#12 PBE-params object. + * @param password The password to decrypt with. + * + * @return the new cipher object instance. + */ +pki.pbe.getCipherForPKCS12PBE = function(oid, params, password) { + // get PBE params + var capture = {}; + var errors = []; + if(!asn1.validate(params, pkcs12PbeParamsValidator, capture, errors)) { + var error = new Error('Cannot read password-based-encryption algorithm ' + + 'parameters. ASN.1 object is not a supported EncryptedPrivateKeyInfo.'); + error.errors = errors; + throw error; + } + + var salt = forge.util.createBuffer(capture.salt); + var count = forge.util.createBuffer(capture.iterations); + count = count.getInt(count.length() << 3); + + var dkLen, dIvLen, cipherFn; + switch(oid) { + case pki.oids['pbeWithSHAAnd3-KeyTripleDES-CBC']: + dkLen = 24; + dIvLen = 8; + cipherFn = forge.des.startDecrypting; + break; + + case pki.oids['pbewithSHAAnd40BitRC2-CBC']: + dkLen = 5; + dIvLen = 8; + cipherFn = function(key, iv) { + var cipher = forge.rc2.createDecryptionCipher(key, 40); + cipher.start(iv, null); + return cipher; + }; + break; + + default: + var error = new Error('Cannot read PKCS #12 PBE data block. Unsupported OID.'); + error.oid = oid; + throw error; + } + + // get PRF message digest + var md = prfOidToMessageDigest(capture.prfOid); + var key = pki.pbe.generatePkcs12Key(password, salt, 1, count, dkLen, md); + md.start(); + var iv = pki.pbe.generatePkcs12Key(password, salt, 2, count, dIvLen, md); + + return cipherFn(key, iv); +}; + +/** + * OpenSSL's legacy key derivation function. + * + * See: http://www.openssl.org/docs/crypto/EVP_BytesToKey.html + * + * @param password the password to derive the key from. + * @param salt the salt to use, null for none. + * @param dkLen the number of bytes needed for the derived key. + * @param [options] the options to use: + * [md] an optional message digest object to use. + */ +pki.pbe.opensslDeriveBytes = function(password, salt, dkLen, md) { + if(typeof md === 'undefined' || md === null) { + if(!('md5' in forge.md)) { + throw new Error('"md5" hash algorithm unavailable.'); + } + md = forge.md.md5.create(); + } + if(salt === null) { + salt = ''; + } + var digests = [hash(md, password + salt)]; + for(var length = 16, i = 1; length < dkLen; ++i, length += 16) { + digests.push(hash(md, digests[i - 1] + password + salt)); + } + return digests.join('').substr(0, dkLen); +}; + +function hash(md, bytes) { + return md.start().update(bytes).digest().getBytes(); +} + +function prfOidToMessageDigest(prfOid) { + // get PRF algorithm, default to SHA-1 + var prfAlgorithm; + if(!prfOid) { + prfAlgorithm = 'hmacWithSHA1'; + } else { + prfAlgorithm = pki.oids[asn1.derToOid(prfOid)]; + if(!prfAlgorithm) { + var error = new Error('Unsupported PRF OID.'); + error.oid = prfOid; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + } + return prfAlgorithmToMessageDigest(prfAlgorithm); +} + +function prfAlgorithmToMessageDigest(prfAlgorithm) { + var factory = forge.md; + switch(prfAlgorithm) { + case 'hmacWithSHA224': + factory = forge.md.sha512; + case 'hmacWithSHA1': + case 'hmacWithSHA256': + case 'hmacWithSHA384': + case 'hmacWithSHA512': + prfAlgorithm = prfAlgorithm.substr(8).toLowerCase(); + break; + default: + var error = new Error('Unsupported PRF algorithm.'); + error.algorithm = prfAlgorithm; + error.supported = [ + 'hmacWithSHA1', 'hmacWithSHA224', 'hmacWithSHA256', 'hmacWithSHA384', + 'hmacWithSHA512']; + throw error; + } + if(!factory || !(prfAlgorithm in factory)) { + throw new Error('Unknown hash algorithm: ' + prfAlgorithm); + } + return factory[prfAlgorithm].create(); +} + +function createPbkdf2Params(salt, countBytes, dkLen, prfAlgorithm) { + var params = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // salt + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, salt), + // iteration count + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + countBytes.getBytes()) + ]); + // when PRF algorithm is not SHA-1 default, add key length and PRF algorithm + if(prfAlgorithm !== 'hmacWithSHA1') { + params.value.push( + // key length + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(dkLen.toString(16))), + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids[prfAlgorithm]).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + } + return params; +} + + +/***/ }), + +/***/ 4373: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Password-Based Key-Derivation Function #2 implementation. + * + * See RFC 2898 for details. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(51774); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +var pkcs5 = forge.pkcs5 = forge.pkcs5 || {}; + +var crypto; +if(forge.util.isNodejs && !forge.options.usePureJavaScript) { + crypto = __nccwpck_require__(6113); +} + +/** + * Derives a key from a password. + * + * @param p the password as a binary-encoded string of bytes. + * @param s the salt as a binary-encoded string of bytes. + * @param c the iteration count, a positive integer. + * @param dkLen the intended length, in bytes, of the derived key, + * (max: 2^32 - 1) * hash length of the PRF. + * @param [md] the message digest (or algorithm identifier as a string) to use + * in the PRF, defaults to SHA-1. + * @param [callback(err, key)] presence triggers asynchronous version, called + * once the operation completes. + * + * @return the derived key, as a binary-encoded string of bytes, for the + * synchronous version (if no callback is specified). + */ +module.exports = forge.pbkdf2 = pkcs5.pbkdf2 = function( + p, s, c, dkLen, md, callback) { + if(typeof md === 'function') { + callback = md; + md = null; + } + + // use native implementation if possible and not disabled, note that + // some node versions only support SHA-1, others allow digest to be changed + if(forge.util.isNodejs && !forge.options.usePureJavaScript && + crypto.pbkdf2 && (md === null || typeof md !== 'object') && + (crypto.pbkdf2Sync.length > 4 || (!md || md === 'sha1'))) { + if(typeof md !== 'string') { + // default prf to SHA-1 + md = 'sha1'; + } + p = Buffer.from(p, 'binary'); + s = Buffer.from(s, 'binary'); + if(!callback) { + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2Sync(p, s, c, dkLen).toString('binary'); + } + return crypto.pbkdf2Sync(p, s, c, dkLen, md).toString('binary'); + } + if(crypto.pbkdf2Sync.length === 4) { + return crypto.pbkdf2(p, s, c, dkLen, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } + return crypto.pbkdf2(p, s, c, dkLen, md, function(err, key) { + if(err) { + return callback(err); + } + callback(null, key.toString('binary')); + }); + } + + if(typeof md === 'undefined' || md === null) { + // default prf to SHA-1 + md = 'sha1'; + } + if(typeof md === 'string') { + if(!(md in forge.md.algorithms)) { + throw new Error('Unknown hash algorithm: ' + md); + } + md = forge.md[md].create(); + } + + var hLen = md.digestLength; + + /* 1. If dkLen > (2^32 - 1) * hLen, output "derived key too long" and + stop. */ + if(dkLen > (0xFFFFFFFF * hLen)) { + var err = new Error('Derived key is too long.'); + if(callback) { + return callback(err); + } + throw err; + } + + /* 2. Let len be the number of hLen-octet blocks in the derived key, + rounding up, and let r be the number of octets in the last + block: + + len = CEIL(dkLen / hLen), + r = dkLen - (len - 1) * hLen. */ + var len = Math.ceil(dkLen / hLen); + var r = dkLen - (len - 1) * hLen; + + /* 3. For each block of the derived key apply the function F defined + below to the password P, the salt S, the iteration count c, and + the block index to compute the block: + + T_1 = F(P, S, c, 1), + T_2 = F(P, S, c, 2), + ... + T_len = F(P, S, c, len), + + where the function F is defined as the exclusive-or sum of the + first c iterates of the underlying pseudorandom function PRF + applied to the password P and the concatenation of the salt S + and the block index i: + + F(P, S, c, i) = u_1 XOR u_2 XOR ... XOR u_c + + where + + u_1 = PRF(P, S || INT(i)), + u_2 = PRF(P, u_1), + ... + u_c = PRF(P, u_{c-1}). + + Here, INT(i) is a four-octet encoding of the integer i, most + significant octet first. */ + var prf = forge.hmac.create(); + prf.start(md, p); + var dk = ''; + var xor, u_c, u_c1; + + // sync version + if(!callback) { + for(var i = 1; i <= len; ++i) { + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); + + // PRF(P, u_{c-1}) (other iterations) + for(var j = 2; j <= c; ++j) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; + } + + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: + + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); + } + /* 5. Output the derived key DK. */ + return dk; + } + + // async version + var i = 1, j; + function outer() { + if(i > len) { + // done + return callback(null, dk); + } + + // PRF(P, S || INT(i)) (first iteration) + prf.start(null, null); + prf.update(s); + prf.update(forge.util.int32ToBytes(i)); + xor = u_c1 = prf.digest().getBytes(); + + // PRF(P, u_{c-1}) (other iterations) + j = 2; + inner(); + } + + function inner() { + if(j <= c) { + prf.start(null, null); + prf.update(u_c1); + u_c = prf.digest().getBytes(); + // F(p, s, c, i) + xor = forge.util.xorBytes(xor, u_c, hLen); + u_c1 = u_c; + ++j; + return forge.util.setImmediate(inner); + } + + /* 4. Concatenate the blocks and extract the first dkLen octets to + produce a derived key DK: + + DK = T_1 || T_2 || ... || T_len<0..r-1> */ + dk += (i < len) ? xor : xor.substr(0, r); + + ++i; + outer(); + } + + outer(); +}; + + +/***/ }), + +/***/ 45877: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of basic PEM (Privacy Enhanced Mail) algorithms. + * + * See: RFC 1421. + * + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. + * + * A Forge PEM object has the following fields: + * + * type: identifies the type of message (eg: "RSA PRIVATE KEY"). + * + * procType: identifies the type of processing performed on the message, + * it has two subfields: version and type, eg: 4,ENCRYPTED. + * + * contentDomain: identifies the type of content in the message, typically + * only uses the value: "RFC822". + * + * dekInfo: identifies the message encryption algorithm and mode and includes + * any parameters for the algorithm, it has two subfields: algorithm and + * parameters, eg: DES-CBC,F8143EDE5960C597. + * + * headers: contains all other PEM encapsulated headers -- where order is + * significant (for pairing data like recipient ID + key info). + * + * body: the binary-encoded body. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +// shortcut for pem API +var pem = module.exports = forge.pem = forge.pem || {}; + +/** + * Encodes (serializes) the given PEM object. + * + * @param msg the PEM message object to encode. + * @param options the options to use: + * maxline the maximum characters per line for the body, (default: 64). + * + * @return the PEM-formatted string. + */ +pem.encode = function(msg, options) { + options = options || {}; + var rval = '-----BEGIN ' + msg.type + '-----\r\n'; + + // encode special headers + var header; + if(msg.procType) { + header = { + name: 'Proc-Type', + values: [String(msg.procType.version), msg.procType.type] + }; + rval += foldHeader(header); + } + if(msg.contentDomain) { + header = {name: 'Content-Domain', values: [msg.contentDomain]}; + rval += foldHeader(header); + } + if(msg.dekInfo) { + header = {name: 'DEK-Info', values: [msg.dekInfo.algorithm]}; + if(msg.dekInfo.parameters) { + header.values.push(msg.dekInfo.parameters); + } + rval += foldHeader(header); + } + + if(msg.headers) { + // encode all other headers + for(var i = 0; i < msg.headers.length; ++i) { + rval += foldHeader(msg.headers[i]); + } + } + + // terminate header + if(msg.procType) { + rval += '\r\n'; + } + + // add body + rval += forge.util.encode64(msg.body, options.maxline || 64) + '\r\n'; + + rval += '-----END ' + msg.type + '-----\r\n'; + return rval; +}; + +/** + * Decodes (deserializes) all PEM messages found in the given string. + * + * @param str the PEM-formatted string to decode. + * + * @return the PEM message objects in an array. + */ +pem.decode = function(str) { + var rval = []; + + // split string into PEM messages (be lenient w/EOF on BEGIN line) + var rMessage = /\s*-----BEGIN ([A-Z0-9- ]+)-----\r?\n?([\x21-\x7e\s]+?(?:\r?\n\r?\n))?([:A-Za-z0-9+\/=\s]+?)-----END \1-----/g; + var rHeader = /([\x21-\x7e]+):\s*([\x21-\x7e\s^:]+)/; + var rCRLF = /\r?\n/; + var match; + while(true) { + match = rMessage.exec(str); + if(!match) { + break; + } + + var msg = { + type: match[1], + procType: null, + contentDomain: null, + dekInfo: null, + headers: [], + body: forge.util.decode64(match[3]) + }; + rval.push(msg); + + // no headers + if(!match[2]) { + continue; + } + + // parse headers + var lines = match[2].split(rCRLF); + var li = 0; + while(match && li < lines.length) { + // get line, trim any rhs whitespace + var line = lines[li].replace(/\s+$/, ''); + + // RFC2822 unfold any following folded lines + for(var nl = li + 1; nl < lines.length; ++nl) { + var next = lines[nl]; + if(!/\s/.test(next[0])) { + break; + } + line += next; + li = nl; + } + + // parse header + match = line.match(rHeader); + if(match) { + var header = {name: match[1], values: []}; + var values = match[2].split(','); + for(var vi = 0; vi < values.length; ++vi) { + header.values.push(ltrim(values[vi])); + } + + // Proc-Type must be the first header + if(!msg.procType) { + if(header.name !== 'Proc-Type') { + throw new Error('Invalid PEM formatted message. The first ' + + 'encapsulated header must be "Proc-Type".'); + } else if(header.values.length !== 2) { + throw new Error('Invalid PEM formatted message. The "Proc-Type" ' + + 'header must have two subfields.'); + } + msg.procType = {version: values[0], type: values[1]}; + } else if(!msg.contentDomain && header.name === 'Content-Domain') { + // special-case Content-Domain + msg.contentDomain = values[0] || ''; + } else if(!msg.dekInfo && header.name === 'DEK-Info') { + // special-case DEK-Info + if(header.values.length === 0) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must have at least one subfield.'); + } + msg.dekInfo = {algorithm: values[0], parameters: values[1] || null}; + } else { + msg.headers.push(header); + } + } + + ++li; + } + + if(msg.procType === 'ENCRYPTED' && !msg.dekInfo) { + throw new Error('Invalid PEM formatted message. The "DEK-Info" ' + + 'header must be present if "Proc-Type" is "ENCRYPTED".'); + } + } + + if(rval.length === 0) { + throw new Error('Invalid PEM formatted message.'); + } + + return rval; +}; + +function foldHeader(header) { + var rval = header.name + ': '; + + // ensure values with CRLF are folded + var values = []; + var insertSpace = function(match, $1) { + return ' ' + $1; + }; + for(var i = 0; i < header.values.length; ++i) { + values.push(header.values[i].replace(/^(\S+\r\n)/, insertSpace)); + } + rval += values.join(',') + '\r\n'; + + // do folding + var length = 0; + var candidate = -1; + for(var i = 0; i < rval.length; ++i, ++length) { + if(length > 65 && candidate !== -1) { + var insert = rval[candidate]; + if(insert === ',') { + ++candidate; + rval = rval.substr(0, candidate) + '\r\n ' + rval.substr(candidate); + } else { + rval = rval.substr(0, candidate) + + '\r\n' + insert + rval.substr(candidate + 1); + } + length = (i - candidate - 1); + candidate = -1; + ++i; + } else if(rval[i] === ' ' || rval[i] === '\t' || rval[i] === ',') { + candidate = i; + } + } + + return rval; +} + +function ltrim(str) { + return str.replace(/^\s+/, ''); +} + + +/***/ }), + +/***/ 59163: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Partial implementation of PKCS#1 v2.2: RSA-OEAP + * + * Modified but based on the following MIT and BSD licensed code: + * + * https://github.com/kjur/jsjws/blob/master/rsa.js: + * + * The 'jsjws'(JSON Web Signature JavaScript Library) License + * + * Copyright (c) 2012 Kenji Urushima + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN + * THE SOFTWARE. + * + * http://webrsa.cvs.sourceforge.net/viewvc/webrsa/Client/RSAES-OAEP.js?content-type=text%2Fplain: + * + * RSAES-OAEP.js + * $Id: RSAES-OAEP.js,v 1.1.1.1 2003/03/19 15:37:20 ellispritchard Exp $ + * JavaScript Implementation of PKCS #1 v2.1 RSA CRYPTOGRAPHY STANDARD (RSA Laboratories, June 14, 2002) + * Copyright (C) Ellis Pritchard, Guardian Unlimited 2003. + * Contact: ellis@nukinetics.com + * Distributed under the BSD License. + * + * Official documentation: http://www.rsa.com/rsalabs/node.asp?id=2125 + * + * @author Evan Jones (http://evanjones.ca/) + * @author Dave Longley + * + * Copyright (c) 2013-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); +__nccwpck_require__(61698); +__nccwpck_require__(30631); + +// shortcut for PKCS#1 API +var pkcs1 = module.exports = forge.pkcs1 = forge.pkcs1 || {}; + +/** + * Encode the given RSAES-OAEP message (M) using key, with optional label (L) + * and seed. + * + * This method does not perform RSA encryption, it only encodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param message the message to encode. + * @param options the options to use: + * label an optional label to use. + * seed the seed to use. + * md the message digest object to use, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the encoded message bytes. + */ +pkcs1.encode_rsa_oaep = function(key, message, options) { + // parse arguments + var label; + var seed; + var md; + var mgf1Md; + // legacy args (label, seed, md) + if(typeof options === 'string') { + label = options; + seed = arguments[3] || undefined; + md = arguments[4] || undefined; + } else if(options) { + label = options.label || undefined; + seed = options.seed || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; + } + } + + // default OAEP to SHA-1 message digest + if(!md) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + // compute length in bytes and check output + var keyLength = Math.ceil(key.n.bitLength() / 8); + var maxLength = keyLength - 2 * md.digestLength - 2; + if(message.length > maxLength) { + var error = new Error('RSAES-OAEP input message length is too long.'); + error.length = message.length; + error.maxLength = maxLength; + throw error; + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest(); + + var PS = ''; + var PS_length = maxLength - message.length; + for(var i = 0; i < PS_length; i++) { + PS += '\x00'; + } + + var DB = lHash.getBytes() + PS + '\x01' + message; + + if(!seed) { + seed = forge.random.getBytes(md.digestLength); + } else if(seed.length !== md.digestLength) { + var error = new Error('Invalid RSAES-OAEP seed. The seed length must ' + + 'match the digest length.'); + error.seedLength = seed.length; + error.digestLength = md.digestLength; + throw error; + } + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var maskedDB = forge.util.xorBytes(DB, dbMask, DB.length); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var maskedSeed = forge.util.xorBytes(seed, seedMask, seed.length); + + // return encoded message + return '\x00' + maskedSeed + maskedDB; +}; + +/** + * Decode the given RSAES-OAEP encoded message (EM) using key, with optional + * label (L). + * + * This method does not perform RSA decryption, it only decodes the message + * using RSAES-OAEP. + * + * @param key the RSA key to use. + * @param em the encoded message to decode. + * @param options the options to use: + * label an optional label to use. + * md the message digest object to use for OAEP, undefined for SHA-1. + * mgf1 optional mgf1 parameters: + * md the message digest object to use for MGF1. + * + * @return the decoded message bytes. + */ +pkcs1.decode_rsa_oaep = function(key, em, options) { + // parse args + var label; + var md; + var mgf1Md; + // legacy args + if(typeof options === 'string') { + label = options; + md = arguments[3] || undefined; + } else if(options) { + label = options.label || undefined; + md = options.md || undefined; + if(options.mgf1 && options.mgf1.md) { + mgf1Md = options.mgf1.md; + } + } + + // compute length in bytes + var keyLength = Math.ceil(key.n.bitLength() / 8); + + if(em.length !== keyLength) { + var error = new Error('RSAES-OAEP encoded message length is invalid.'); + error.length = em.length; + error.expectedLength = keyLength; + throw error; + } + + // default OAEP to SHA-1 message digest + if(md === undefined) { + md = forge.md.sha1.create(); + } else { + md.start(); + } + + // default MGF-1 to same as OAEP + if(!mgf1Md) { + mgf1Md = md; + } + + if(keyLength < 2 * md.digestLength + 2) { + throw new Error('RSAES-OAEP key is too short for the hash function.'); + } + + if(!label) { + label = ''; + } + md.update(label, 'raw'); + var lHash = md.digest().getBytes(); + + // split the message into its parts + var y = em.charAt(0); + var maskedSeed = em.substring(1, md.digestLength + 1); + var maskedDB = em.substring(1 + md.digestLength); + + var seedMask = rsa_mgf1(maskedDB, md.digestLength, mgf1Md); + var seed = forge.util.xorBytes(maskedSeed, seedMask, maskedSeed.length); + + var dbMask = rsa_mgf1(seed, keyLength - md.digestLength - 1, mgf1Md); + var db = forge.util.xorBytes(maskedDB, dbMask, maskedDB.length); + + var lHashPrime = db.substring(0, md.digestLength); + + // constant time check that all values match what is expected + var error = (y !== '\x00'); + + // constant time check lHash vs lHashPrime + for(var i = 0; i < md.digestLength; ++i) { + error |= (lHash.charAt(i) !== lHashPrime.charAt(i)); + } + + // "constant time" find the 0x1 byte separating the padding (zeros) from the + // message + // TODO: It must be possible to do this in a better/smarter way? + var in_ps = 1; + var index = md.digestLength; + for(var j = md.digestLength; j < db.length; j++) { + var code = db.charCodeAt(j); + + var is_0 = (code & 0x1) ^ 0x1; + + // non-zero if not 0 or 1 in the ps section + var error_mask = in_ps ? 0xfffe : 0x0000; + error |= (code & error_mask); + + // latch in_ps to zero after we find 0x1 + in_ps = in_ps & is_0; + index += in_ps; + } + + if(error || db.charCodeAt(index) !== 0x1) { + throw new Error('Invalid RSAES-OAEP padding.'); + } + + return db.substring(index + 1); +}; + +function rsa_mgf1(seed, maskLength, hash) { + // default to SHA-1 message digest + if(!hash) { + hash = forge.md.sha1.create(); + } + var t = ''; + var count = Math.ceil(maskLength / hash.digestLength); + for(var i = 0; i < count; ++i) { + var c = String.fromCharCode( + (i >> 24) & 0xFF, (i >> 16) & 0xFF, (i >> 8) & 0xFF, i & 0xFF); + hash.start(); + hash.update(seed + c); + t += hash.digest().getBytes(); + } + return t.substring(0, maskLength); +} + + +/***/ }), + +/***/ 71831: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of PKCS#12. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * The ASN.1 representation of PKCS#12 is as follows + * (see ftp://ftp.rsasecurity.com/pub/pkcs/pkcs-12/pkcs-12-tc1.pdf for details) + * + * PFX ::= SEQUENCE { + * version INTEGER {v3(3)}(v3,...), + * authSafe ContentInfo, + * macData MacData OPTIONAL + * } + * + * MacData ::= SEQUENCE { + * mac DigestInfo, + * macSalt OCTET STRING, + * iterations INTEGER DEFAULT 1 + * } + * Note: The iterations default is for historical reasons and its use is + * deprecated. A higher value, like 1024, is recommended. + * + * DigestInfo is defined in PKCS#7 as follows: + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of SHA1 there is none. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * Digest ::= OCTET STRING + * + * + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } + * + * ContentType ::= OBJECT IDENTIFIER + * + * AuthenticatedSafe ::= SEQUENCE OF ContentInfo + * -- Data if unencrypted + * -- EncryptedData if password-encrypted + * -- EnvelopedData if public key-encrypted + * + * + * SafeContents ::= SEQUENCE OF SafeBag + * + * SafeBag ::= SEQUENCE { + * bagId BAG-TYPE.&id ({PKCS12BagSet}) + * bagValue [0] EXPLICIT BAG-TYPE.&Type({PKCS12BagSet}{@bagId}), + * bagAttributes SET OF PKCS12Attribute OPTIONAL + * } + * + * PKCS12Attribute ::= SEQUENCE { + * attrId ATTRIBUTE.&id ({PKCS12AttrSet}), + * attrValues SET OF ATTRIBUTE.&Type ({PKCS12AttrSet}{@attrId}) + * } -- This type is compatible with the X.500 type 'Attribute' + * + * PKCS12AttrSet ATTRIBUTE ::= { + * friendlyName | -- from PKCS #9 + * localKeyId, -- from PKCS #9 + * ... -- Other attributes are allowed + * } + * + * CertBag ::= SEQUENCE { + * certId BAG-TYPE.&id ({CertTypes}), + * certValue [0] EXPLICIT BAG-TYPE.&Type ({CertTypes}{@certId}) + * } + * + * x509Certificate BAG-TYPE ::= {OCTET STRING IDENTIFIED BY {certTypes 1}} + * -- DER-encoded X.509 certificate stored in OCTET STRING + * + * sdsiCertificate BAG-TYPE ::= {IA5String IDENTIFIED BY {certTypes 2}} + * -- Base64-encoded SDSI certificate stored in IA5String + * + * CertTypes BAG-TYPE ::= { + * x509Certificate | + * sdsiCertificate, + * ... -- For future extensions + * } + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +__nccwpck_require__(51774); +__nccwpck_require__(91658); +__nccwpck_require__(43049); +__nccwpck_require__(11786); +__nccwpck_require__(61698); +__nccwpck_require__(12343); +__nccwpck_require__(30631); +__nccwpck_require__(21726); +__nccwpck_require__(14837); + +// shortcut for asn.1 & PKI API +var asn1 = forge.asn1; +var pki = forge.pki; + +// shortcut for PKCS#12 API +var p12 = module.exports = forge.pkcs12 = forge.pkcs12 || {}; + +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // a ContentInfo + constructed: true, + value: [{ + name: 'ContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'content' + }] +}; + +var pfxValidator = { + name: 'PFX', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'PFX.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, + contentInfoValidator, { + name: 'PFX.macData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'mac', + value: [{ + name: 'PFX.macData.mac', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestInfo + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, // DigestAlgorithmIdentifier + constructed: true, + value: [{ + name: 'PFX.macData.mac.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'macAlgorithm' + }, { + name: 'PFX.macData.mac.digestAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'macAlgorithmParameters' + }] + }, { + name: 'PFX.macData.mac.digest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macDigest' + }] + }, { + name: 'PFX.macData.macSalt', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'macSalt' + }, { + name: 'PFX.macData.iterations', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + optional: true, + capture: 'macIterations' + }] + }] +}; + +var safeBagValidator = { + name: 'SafeBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SafeBag.bagId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'bagId' + }, { + name: 'SafeBag.bagValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + captureAsn1: 'bagValue' + }, { + name: 'SafeBag.bagAttributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + optional: true, + capture: 'bagAttributes' + }] +}; + +var attributeValidator = { + name: 'Attribute', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Attribute.attrId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'oid' + }, { + name: 'Attribute.attrValues', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + capture: 'values' + }] +}; + +var certBagValidator = { + name: 'CertBag', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertBag.certId', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certId' + }, { + name: 'CertBag.certValue', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + constructed: true, + /* So far we only support X.509 certificates (which are wrapped in + an OCTET STRING, hence hard code that here). */ + value: [{ + name: 'CertBag.certValue[0]', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.OCTETSTRING, + constructed: false, + capture: 'cert' + }] + }] +}; + +/** + * Search SafeContents structure for bags with matching attributes. + * + * The search can optionally be narrowed by a certain bag type. + * + * @param safeContents the SafeContents structure to search in. + * @param attrName the name of the attribute to compare against. + * @param attrValue the attribute value to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of matching bags. + */ +function _getBagsByAttribute(safeContents, attrName, attrValue, bagType) { + var result = []; + + for(var i = 0; i < safeContents.length; i++) { + for(var j = 0; j < safeContents[i].safeBags.length; j++) { + var bag = safeContents[i].safeBags[j]; + if(bagType !== undefined && bag.type !== bagType) { + continue; + } + // only filter by bag type, no attribute specified + if(attrName === null) { + result.push(bag); + continue; + } + if(bag.attributes[attrName] !== undefined && + bag.attributes[attrName].indexOf(attrValue) >= 0) { + result.push(bag); + } + } + } + + return result; +} + +/** + * Converts a PKCS#12 PFX in ASN.1 notation into a PFX object. + * + * @param obj The PKCS#12 PFX in ASN.1 notation. + * @param strict true to use strict DER decoding, false not to (default: true). + * @param {String} password Password to decrypt with (optional). + * + * @return PKCS#12 PFX object. + */ +p12.pkcs12FromAsn1 = function(obj, strict, password) { + // handle args + if(typeof strict === 'string') { + password = strict; + strict = true; + } else if(strict === undefined) { + strict = true; + } + + // validate PFX and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, pfxValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 PFX. ' + + 'ASN.1 object is not an PKCS#12 PFX.'); + error.errors = error; + throw error; + } + + var pfx = { + version: capture.version.charCodeAt(0), + safeContents: [], + + /** + * Gets bags with matching attributes. + * + * @param filter the attributes to filter by: + * [localKeyId] the localKeyId to search for. + * [localKeyIdHex] the localKeyId in hex to search for. + * [friendlyName] the friendly name to search for. + * [bagType] bag type to narrow each attribute search by. + * + * @return a map of attribute type to an array of matching bags or, if no + * attribute was given but a bag type, the map key will be the + * bag type. + */ + getBags: function(filter) { + var rval = {}; + + var localKeyId; + if('localKeyId' in filter) { + localKeyId = filter.localKeyId; + } else if('localKeyIdHex' in filter) { + localKeyId = forge.util.hexToBytes(filter.localKeyIdHex); + } + + // filter on bagType only + if(localKeyId === undefined && !('friendlyName' in filter) && + 'bagType' in filter) { + rval[filter.bagType] = _getBagsByAttribute( + pfx.safeContents, null, null, filter.bagType); + } + + if(localKeyId !== undefined) { + rval.localKeyId = _getBagsByAttribute( + pfx.safeContents, 'localKeyId', + localKeyId, filter.bagType); + } + if('friendlyName' in filter) { + rval.friendlyName = _getBagsByAttribute( + pfx.safeContents, 'friendlyName', + filter.friendlyName, filter.bagType); + } + + return rval; + }, + + /** + * DEPRECATED: use getBags() instead. + * + * Get bags with matching friendlyName attribute. + * + * @param friendlyName the friendly name to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching friendlyName attribute. + */ + getBagsByFriendlyName: function(friendlyName, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'friendlyName', friendlyName, bagType); + }, + + /** + * DEPRECATED: use getBags() instead. + * + * Get bags with matching localKeyId attribute. + * + * @param localKeyId the localKeyId to search for. + * @param [bagType] bag type to narrow search by. + * + * @return an array of bags with matching localKeyId attribute. + */ + getBagsByLocalKeyId: function(localKeyId, bagType) { + return _getBagsByAttribute( + pfx.safeContents, 'localKeyId', localKeyId, bagType); + } + }; + + if(capture.version.charCodeAt(0) !== 3) { + var error = new Error('PKCS#12 PFX of version other than 3 not supported.'); + error.version = capture.version.charCodeAt(0); + throw error; + } + + if(asn1.derToOid(capture.contentType) !== pki.oids.data) { + var error = new Error('Only PKCS#12 PFX in password integrity mode supported.'); + error.oid = asn1.derToOid(capture.contentType); + throw error; + } + + var data = capture.content.value[0]; + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 authSafe content data is not an OCTET STRING.'); + } + data = _decodePkcs7Data(data); + + // check for MAC + if(capture.mac) { + var md = null; + var macKeyBytes = 0; + var macAlgorithm = asn1.derToOid(capture.macAlgorithm); + switch(macAlgorithm) { + case pki.oids.sha1: + md = forge.md.sha1.create(); + macKeyBytes = 20; + break; + case pki.oids.sha256: + md = forge.md.sha256.create(); + macKeyBytes = 32; + break; + case pki.oids.sha384: + md = forge.md.sha384.create(); + macKeyBytes = 48; + break; + case pki.oids.sha512: + md = forge.md.sha512.create(); + macKeyBytes = 64; + break; + case pki.oids.md5: + md = forge.md.md5.create(); + macKeyBytes = 16; + break; + } + if(md === null) { + throw new Error('PKCS#12 uses unsupported MAC algorithm: ' + macAlgorithm); + } + + // verify MAC (iterations default to 1) + var macSalt = new forge.util.ByteBuffer(capture.macSalt); + var macIterations = (('macIterations' in capture) ? + parseInt(forge.util.bytesToHex(capture.macIterations), 16) : 1); + var macKey = p12.generateKey( + password, macSalt, 3, macIterations, macKeyBytes, md); + var mac = forge.hmac.create(); + mac.start(md, macKey); + mac.update(data.value); + var macValue = mac.getMac(); + if(macValue.getBytes() !== capture.macDigest) { + throw new Error('PKCS#12 MAC could not be verified. Invalid password?'); + } + } + + _decodeAuthenticatedSafe(pfx, data.value, strict, password); + return pfx; +}; + +/** + * Decodes PKCS#7 Data. PKCS#7 (RFC 2315) defines "Data" as an OCTET STRING, + * but it is sometimes an OCTET STRING that is composed/constructed of chunks, + * each its own OCTET STRING. This is BER-encoding vs. DER-encoding. This + * function transforms this corner-case into the usual simple, + * non-composed/constructed OCTET STRING. + * + * This function may be moved to ASN.1 at some point to better deal with + * more BER-encoding issues, should they arise. + * + * @param data the ASN.1 Data object to transform. + */ +function _decodePkcs7Data(data) { + // handle special case of "chunked" data content: an octet string composed + // of other octet strings + if(data.composed || data.constructed) { + var value = forge.util.createBuffer(); + for(var i = 0; i < data.value.length; ++i) { + value.putBytes(data.value[i].value); + } + data.composed = data.constructed = false; + data.value = value.getBytes(); + } + return data; +} + +/** + * Decode PKCS#12 AuthenticatedSafe (BER encoded) into PFX object. + * + * The AuthenticatedSafe is a BER-encoded SEQUENCE OF ContentInfo. + * + * @param pfx The PKCS#12 PFX object to fill. + * @param {String} authSafe BER-encoded AuthenticatedSafe. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + */ +function _decodeAuthenticatedSafe(pfx, authSafe, strict, password) { + authSafe = asn1.fromDer(authSafe, strict); /* actually it's BER encoded */ + + if(authSafe.tagClass !== asn1.Class.UNIVERSAL || + authSafe.type !== asn1.Type.SEQUENCE || + authSafe.constructed !== true) { + throw new Error('PKCS#12 AuthenticatedSafe expected to be a ' + + 'SEQUENCE OF ContentInfo'); + } + + for(var i = 0; i < authSafe.value.length; i++) { + var contentInfo = authSafe.value[i]; + + // validate contentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(contentInfo, contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read ContentInfo.'); + error.errors = errors; + throw error; + } + + var obj = { + encrypted: false + }; + var safeContents = null; + var data = capture.content.value[0]; + switch(asn1.derToOid(capture.contentType)) { + case pki.oids.data: + if(data.tagClass !== asn1.Class.UNIVERSAL || + data.type !== asn1.Type.OCTETSTRING) { + throw new Error('PKCS#12 SafeContents Data is not an OCTET STRING.'); + } + safeContents = _decodePkcs7Data(data).value; + break; + case pki.oids.encryptedData: + safeContents = _decryptSafeContents(data, password); + obj.encrypted = true; + break; + default: + var error = new Error('Unsupported PKCS#12 contentType.'); + error.contentType = asn1.derToOid(capture.contentType); + throw error; + } + + obj.safeBags = _decodeSafeContents(safeContents, strict, password); + pfx.safeContents.push(obj); + } +} + +/** + * Decrypt PKCS#7 EncryptedData structure. + * + * @param data ASN.1 encoded EncryptedContentInfo object. + * @param password The user-provided password. + * + * @return The decrypted SafeContents (ASN.1 object). + */ +function _decryptSafeContents(data, password) { + var capture = {}; + var errors = []; + if(!asn1.validate( + data, forge.pkcs7.asn1.encryptedDataValidator, capture, errors)) { + var error = new Error('Cannot read EncryptedContentInfo.'); + error.errors = errors; + throw error; + } + + var oid = asn1.derToOid(capture.contentType); + if(oid !== pki.oids.data) { + var error = new Error( + 'PKCS#12 EncryptedContentInfo ContentType is not Data.'); + error.oid = oid; + throw error; + } + + // get cipher + oid = asn1.derToOid(capture.encAlgorithm); + var cipher = pki.pbe.getCipher(oid, capture.encParameter, password); + + // get encrypted data + var encryptedContentAsn1 = _decodePkcs7Data(capture.encryptedContentAsn1); + var encrypted = forge.util.createBuffer(encryptedContentAsn1.value); + + cipher.update(encrypted); + if(!cipher.finish()) { + throw new Error('Failed to decrypt PKCS#12 SafeContents.'); + } + + return cipher.output.getBytes(); +} + +/** + * Decode PKCS#12 SafeContents (BER-encoded) into array of Bag objects. + * + * The safeContents is a BER-encoded SEQUENCE OF SafeBag. + * + * @param {String} safeContents BER-encoded safeContents. + * @param strict true to use strict DER decoding, false not to. + * @param {String} password Password to decrypt with (optional). + * + * @return {Array} Array of Bag objects. + */ +function _decodeSafeContents(safeContents, strict, password) { + // if strict and no safe contents, return empty safes + if(!strict && safeContents.length === 0) { + return []; + } + + // actually it's BER-encoded + safeContents = asn1.fromDer(safeContents, strict); + + if(safeContents.tagClass !== asn1.Class.UNIVERSAL || + safeContents.type !== asn1.Type.SEQUENCE || + safeContents.constructed !== true) { + throw new Error( + 'PKCS#12 SafeContents expected to be a SEQUENCE OF SafeBag.'); + } + + var res = []; + for(var i = 0; i < safeContents.value.length; i++) { + var safeBag = safeContents.value[i]; + + // validate SafeBag and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(safeBag, safeBagValidator, capture, errors)) { + var error = new Error('Cannot read SafeBag.'); + error.errors = errors; + throw error; + } + + /* Create bag object and push to result array. */ + var bag = { + type: asn1.derToOid(capture.bagId), + attributes: _decodeBagAttributes(capture.bagAttributes) + }; + res.push(bag); + + var validator, decoder; + var bagAsn1 = capture.bagValue.value[0]; + switch(bag.type) { + case pki.oids.pkcs8ShroudedKeyBag: + /* bagAsn1 has a EncryptedPrivateKeyInfo, which we need to decrypt. + Afterwards we can handle it like a keyBag, + which is a PrivateKeyInfo. */ + bagAsn1 = pki.decryptPrivateKeyInfo(bagAsn1, password); + if(bagAsn1 === null) { + throw new Error( + 'Unable to decrypt PKCS#8 ShroudedKeyBag, wrong password?'); + } + + /* fall through */ + case pki.oids.keyBag: + /* A PKCS#12 keyBag is a simple PrivateKeyInfo as understood by our + PKI module, hence we don't have to do validation/capturing here, + just pass what we already got. */ + try { + bag.key = pki.privateKeyFromAsn1(bagAsn1); + } catch(e) { + // ignore unknown key type, pass asn1 value + bag.key = null; + bag.asn1 = bagAsn1; + } + continue; /* Nothing more to do. */ + + case pki.oids.certBag: + /* A PKCS#12 certBag can wrap both X.509 and sdsi certificates. + Therefore put the SafeBag content through another validator to + capture the fields. Afterwards check & store the results. */ + validator = certBagValidator; + decoder = function() { + if(asn1.derToOid(capture.certId) !== pki.oids.x509Certificate) { + var error = new Error( + 'Unsupported certificate type, only X.509 supported.'); + error.oid = asn1.derToOid(capture.certId); + throw error; + } + + // true=produce cert hash + var certAsn1 = asn1.fromDer(capture.cert, strict); + try { + bag.cert = pki.certificateFromAsn1(certAsn1, true); + } catch(e) { + // ignore unknown cert type, pass asn1 value + bag.cert = null; + bag.asn1 = certAsn1; + } + }; + break; + + default: + var error = new Error('Unsupported PKCS#12 SafeBag type.'); + error.oid = bag.type; + throw error; + } + + /* Validate SafeBag value (i.e. CertBag, etc.) and capture data if needed. */ + if(validator !== undefined && + !asn1.validate(bagAsn1, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 ' + validator.name); + error.errors = errors; + throw error; + } + + /* Call decoder function from above to store the results. */ + decoder(); + } + + return res; +} + +/** + * Decode PKCS#12 SET OF PKCS12Attribute into JavaScript object. + * + * @param attributes SET OF PKCS12Attribute (ASN.1 object). + * + * @return the decoded attributes. + */ +function _decodeBagAttributes(attributes) { + var decodedAttrs = {}; + + if(attributes !== undefined) { + for(var i = 0; i < attributes.length; ++i) { + var capture = {}; + var errors = []; + if(!asn1.validate(attributes[i], attributeValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#12 BagAttribute.'); + error.errors = errors; + throw error; + } + + var oid = asn1.derToOid(capture.oid); + if(pki.oids[oid] === undefined) { + // unsupported attribute type, ignore. + continue; + } + + decodedAttrs[pki.oids[oid]] = []; + for(var j = 0; j < capture.values.length; ++j) { + decodedAttrs[pki.oids[oid]].push(capture.values[j].value); + } + } + } + + return decodedAttrs; +} + +/** + * Wraps a private key and certificate in a PKCS#12 PFX wrapper. If a + * password is provided then the private key will be encrypted. + * + * An entire certificate chain may also be included. To do this, pass + * an array for the "cert" parameter where the first certificate is + * the one that is paired with the private key and each subsequent one + * verifies the previous one. The certificates may be in PEM format or + * have been already parsed by Forge. + * + * @todo implement password-based-encryption for the whole package + * + * @param key the private key. + * @param cert the certificate (may be an array of certificates in order + * to specify a certificate chain). + * @param password the password to use, null for none. + * @param options: + * algorithm the encryption algorithm to use + * ('aes128', 'aes192', 'aes256', '3des'), defaults to 'aes128'. + * count the iteration count to use. + * saltSize the salt size to use. + * useMac true to include a MAC, false not to, defaults to true. + * localKeyId the local key ID to use, in hex. + * friendlyName the friendly name to use. + * generateLocalKeyId true to generate a random local key ID, + * false not to, defaults to true. + * + * @return the PKCS#12 PFX ASN.1 object. + */ +p12.toPkcs12Asn1 = function(key, cert, password, options) { + // set default options + options = options || {}; + options.saltSize = options.saltSize || 8; + options.count = options.count || 2048; + options.algorithm = options.algorithm || options.encAlgorithm || 'aes128'; + if(!('useMac' in options)) { + options.useMac = true; + } + if(!('localKeyId' in options)) { + options.localKeyId = null; + } + if(!('generateLocalKeyId' in options)) { + options.generateLocalKeyId = true; + } + + var localKeyId = options.localKeyId; + var bagAttrs; + if(localKeyId !== null) { + localKeyId = forge.util.hexToBytes(localKeyId); + } else if(options.generateLocalKeyId) { + // use SHA-1 of paired cert, if available + if(cert) { + var pairedCert = forge.util.isArray(cert) ? cert[0] : cert; + if(typeof pairedCert === 'string') { + pairedCert = pki.certificateFromPem(pairedCert); + } + var sha1 = forge.md.sha1.create(); + sha1.update(asn1.toDer(pki.certificateToAsn1(pairedCert)).getBytes()); + localKeyId = sha1.digest().getBytes(); + } else { + // FIXME: consider using SHA-1 of public key (which can be generated + // from private key components), see: cert.generateSubjectKeyIdentifier + // generate random bytes + localKeyId = forge.random.getBytes(20); + } + } + + var attrs = []; + if(localKeyId !== null) { + attrs.push( + // localKeyID + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.localKeyId).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + localKeyId) + ]) + ])); + } + if('friendlyName' in options) { + attrs.push( + // friendlyName + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // attrId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.friendlyName).getBytes()), + // attrValues + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BMPSTRING, false, + options.friendlyName) + ]) + ])); + } + + if(attrs.length > 0) { + bagAttrs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, attrs); + } + + // collect contents for AuthenticatedSafe + var contents = []; + + // create safe bag(s) for certificate chain + var chain = []; + if(cert !== null) { + if(forge.util.isArray(cert)) { + chain = cert; + } else { + chain = [cert]; + } + } + + var certSafeBags = []; + for(var i = 0; i < chain.length; ++i) { + // convert cert from PEM as necessary + cert = chain[i]; + if(typeof cert === 'string') { + cert = pki.certificateFromPem(cert); + } + + // SafeBag + var certBagAttrs = (i === 0) ? bagAttrs : undefined; + var certAsn1 = pki.certificateToAsn1(cert); + var certSafeBag = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.certBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // CertBag + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // certId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.x509Certificate).getBytes()), + // certValue (x509Certificate) + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certAsn1).getBytes()) + ])])]), + // bagAttributes (OPTIONAL) + certBagAttrs + ]); + certSafeBags.push(certSafeBag); + } + + if(certSafeBags.length > 0) { + // SafeContents + var certSafeContents = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, certSafeBags); + + // ContentInfo + var certCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(certSafeContents).getBytes()) + ]) + ]); + contents.push(certCI); + } + + // create safe contents for private key + var keyBag = null; + if(key !== null) { + // SafeBag + var pkAsn1 = pki.wrapRsaPrivateKey(pki.privateKeyToAsn1(key)); + if(password === null) { + // no encryption + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.keyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // PrivateKeyInfo + pkAsn1 + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } else { + // encrypted PrivateKeyInfo + keyBag = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // bagId + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.pkcs8ShroudedKeyBag).getBytes()), + // bagValue + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // EncryptedPrivateKeyInfo + pki.encryptPrivateKeyInfo(pkAsn1, password, options) + ]), + // bagAttributes (OPTIONAL) + bagAttrs + ]); + } + + // SafeContents + var keySafeContents = + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [keyBag]); + + // ContentInfo + var keyCI = + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(keySafeContents).getBytes()) + ]) + ]); + contents.push(keyCI); + } + + // create AuthenticatedSafe by stringing together the contents + var safe = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, contents); + + var macData; + if(options.useMac) { + // MacData + var sha1 = forge.md.sha1.create(); + var macSalt = new forge.util.ByteBuffer( + forge.random.getBytes(options.saltSize)); + var count = options.count; + // 160-bit key + var key = p12.generateKey(password, macSalt, 3, count, 20); + var mac = forge.hmac.create(); + mac.start(sha1, key); + mac.update(asn1.toDer(safe).getBytes()); + var macValue = mac.getMac(); + macData = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // mac DigestInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm = SHA-1 + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.sha1).getBytes()), + // parameters = Null + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // digest + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, macValue.getBytes()) + ]), + // macSalt OCTET STRING + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, macSalt.getBytes()), + // iterations INTEGER (XXX: Only support count < 65536) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(count).getBytes() + ) + ]); + } + + // PFX + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (3) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(3).getBytes()), + // PKCS#7 ContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // contentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + // OID for the content type is 'data' + asn1.oidToDer(pki.oids.data).getBytes()), + // content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(safe).getBytes()) + ]) + ]), + macData + ]); +}; + +/** + * Derives a PKCS#12 key. + * + * @param password the password to derive the key material from, null or + * undefined for none. + * @param salt the salt, as a ByteBuffer, to use. + * @param id the PKCS#12 ID byte (1 = key material, 2 = IV, 3 = MAC). + * @param iter the iteration count. + * @param n the number of bytes to derive from the password. + * @param md the message digest to use, defaults to SHA-1. + * + * @return a ByteBuffer with the bytes derived from the password. + */ +p12.generateKey = forge.pbe.generatePkcs12Key; + + +/***/ }), + +/***/ 24250: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of PKCS#7 v1.5. + * + * @author Stefan Siegl + * @author Dave Longley + * + * Copyright (c) 2012 Stefan Siegl + * Copyright (c) 2012-2015 Digital Bazaar, Inc. + * + * Currently this implementation only supports ContentType of EnvelopedData, + * EncryptedData, or SignedData at the root level. The top level elements may + * contain only a ContentInfo of ContentType Data, i.e. plain data. Further + * nesting is not (yet) supported. + * + * The Forge validators for PKCS #7's ASN.1 structures are available from + * a separate file pkcs7asn1.js, since those are referenced from other + * PKCS standards like PKCS #12. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(93386); +__nccwpck_require__(88450); +__nccwpck_require__(91658); +__nccwpck_require__(45877); +__nccwpck_require__(43049); +__nccwpck_require__(61698); +__nccwpck_require__(21726); +__nccwpck_require__(14837); + +// shortcut for ASN.1 API +var asn1 = forge.asn1; + +// shortcut for PKCS#7 API +var p7 = module.exports = forge.pkcs7 = forge.pkcs7 || {}; + +/** + * Converts a PKCS#7 message from PEM format. + * + * @param pem the PEM-formatted PKCS#7 message. + * + * @return the PKCS#7 message. + */ +p7.messageFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PKCS7') { + var error = new Error('Could not convert PKCS#7 message from PEM; PEM ' + + 'header type is not "PKCS#7".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PKCS#7 message from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return p7.messageFromAsn1(obj); +}; + +/** + * Converts a PKCS#7 message to PEM format. + * + * @param msg The PKCS#7 message object + * @param maxline The maximum characters per line, defaults to 64. + * + * @return The PEM-formatted PKCS#7 message. + */ +p7.messageToPem = function(msg, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var pemObj = { + type: 'PKCS7', + body: asn1.toDer(msg.toAsn1()).getBytes() + }; + return forge.pem.encode(pemObj, {maxline: maxline}); +}; + +/** + * Converts a PKCS#7 message from an ASN.1 object. + * + * @param obj the ASN.1 representation of a ContentInfo. + * + * @return the PKCS#7 message. + */ +p7.messageFromAsn1 = function(obj) { + // validate root level ContentInfo and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.contentInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not an PKCS#7 ContentInfo.'); + error.errors = errors; + throw error; + } + + var contentType = asn1.derToOid(capture.contentType); + var msg; + + switch(contentType) { + case forge.pki.oids.envelopedData: + msg = p7.createEnvelopedData(); + break; + + case forge.pki.oids.encryptedData: + msg = p7.createEncryptedData(); + break; + + case forge.pki.oids.signedData: + msg = p7.createSignedData(); + break; + + default: + throw new Error('Cannot read PKCS#7 message. ContentType with OID ' + + contentType + ' is not (yet) supported.'); + } + + msg.fromAsn1(capture.content.value[0]); + return msg; +}; + +p7.createSignedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.signedData, + version: 1, + certificates: [], + crls: [], + // TODO: add json-formatted signer stuff here? + signers: [], + // populated during sign() + digestAlgorithmIdentifiers: [], + contentInfo: null, + signerInfos: [], + + fromAsn1: function(obj) { + // validate SignedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.signedDataValidator); + msg.certificates = []; + msg.crls = []; + msg.digestAlgorithmIdentifiers = []; + msg.contentInfo = null; + msg.signerInfos = []; + + if(msg.rawCapture.certificates) { + var certs = msg.rawCapture.certificates.value; + for(var i = 0; i < certs.length; ++i) { + msg.certificates.push(forge.pki.certificateFromAsn1(certs[i])); + } + } + + // TODO: parse crls + }, + + toAsn1: function() { + // degenerate case with no content + if(!msg.contentInfo) { + msg.sign(); + } + + var certs = []; + for(var i = 0; i < msg.certificates.length; ++i) { + certs.push(forge.pki.certificateToAsn1(msg.certificates[i])); + } + + var crls = []; + // TODO: implement CRLs + + // [0] SignedData + var signedData = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // DigestAlgorithmIdentifiers + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.digestAlgorithmIdentifiers), + // ContentInfo + msg.contentInfo + ]) + ]); + if(certs.length > 0) { + // [0] IMPLICIT ExtendedCertificatesAndCertificates OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, certs)); + } + if(crls.length > 0) { + // [1] IMPLICIT CertificateRevocationLists OPTIONAL + signedData.value[0].value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, crls)); + } + // SignerInfos + signedData.value[0].value.push( + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + msg.signerInfos)); + + // ContentInfo + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] SignedData + signedData + ]); + }, + + /** + * Add (another) entity to list of signers. + * + * Note: If authenticatedAttributes are provided, then, per RFC 2315, + * they must include at least two attributes: content type and + * message digest. The message digest attribute value will be + * auto-calculated during signing and will be ignored if provided. + * + * Here's an example of providing these two attributes: + * + * forge.pkcs7.createSignedData(); + * p7.addSigner({ + * issuer: cert.issuer.attributes, + * serialNumber: cert.serialNumber, + * key: privateKey, + * digestAlgorithm: forge.pki.oids.sha1, + * authenticatedAttributes: [{ + * type: forge.pki.oids.contentType, + * value: forge.pki.oids.data + * }, { + * type: forge.pki.oids.messageDigest + * }] + * }); + * + * TODO: Support [subjectKeyIdentifier] as signer's ID. + * + * @param signer the signer information: + * key the signer's private key. + * [certificate] a certificate containing the public key + * associated with the signer's private key; use this option as + * an alternative to specifying signer.issuer and + * signer.serialNumber. + * [issuer] the issuer attributes (eg: cert.issuer.attributes). + * [serialNumber] the signer's certificate's serial number in + * hexadecimal (eg: cert.serialNumber). + * [digestAlgorithm] the message digest OID, as a string, to use + * (eg: forge.pki.oids.sha1). + * [authenticatedAttributes] an optional array of attributes + * to also sign along with the content. + */ + addSigner: function(signer) { + var issuer = signer.issuer; + var serialNumber = signer.serialNumber; + if(signer.certificate) { + var cert = signer.certificate; + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + issuer = cert.issuer.attributes; + serialNumber = cert.serialNumber; + } + var key = signer.key; + if(!key) { + throw new Error( + 'Could not add PKCS#7 signer; no private key specified.'); + } + if(typeof key === 'string') { + key = forge.pki.privateKeyFromPem(key); + } + + // ensure OID known for digest algorithm + var digestAlgorithm = signer.digestAlgorithm || forge.pki.oids.sha1; + switch(digestAlgorithm) { + case forge.pki.oids.sha1: + case forge.pki.oids.sha256: + case forge.pki.oids.sha384: + case forge.pki.oids.sha512: + case forge.pki.oids.md5: + break; + default: + throw new Error( + 'Could not add PKCS#7 signer; unknown message digest algorithm: ' + + digestAlgorithm); + } + + // if authenticatedAttributes is present, then the attributes + // must contain at least PKCS #9 content-type and message-digest + var authenticatedAttributes = signer.authenticatedAttributes || []; + if(authenticatedAttributes.length > 0) { + var contentType = false; + var messageDigest = false; + for(var i = 0; i < authenticatedAttributes.length; ++i) { + var attr = authenticatedAttributes[i]; + if(!contentType && attr.type === forge.pki.oids.contentType) { + contentType = true; + if(messageDigest) { + break; + } + continue; + } + if(!messageDigest && attr.type === forge.pki.oids.messageDigest) { + messageDigest = true; + if(contentType) { + break; + } + continue; + } + } + + if(!contentType || !messageDigest) { + throw new Error('Invalid signer.authenticatedAttributes. If ' + + 'signer.authenticatedAttributes is specified, then it must ' + + 'contain at least two attributes, PKCS #9 content-type and ' + + 'PKCS #9 message-digest.'); + } + } + + msg.signers.push({ + key: key, + version: 1, + issuer: issuer, + serialNumber: serialNumber, + digestAlgorithm: digestAlgorithm, + signatureAlgorithm: forge.pki.oids.rsaEncryption, + signature: null, + authenticatedAttributes: authenticatedAttributes, + unauthenticatedAttributes: [] + }); + }, + + /** + * Signs the content. + * @param options Options to apply when signing: + * [detached] boolean. If signing should be done in detached mode. Defaults to false. + */ + sign: function(options) { + options = options || {}; + // auto-generate content info + if(typeof msg.content !== 'object' || msg.contentInfo === null) { + // use Data ContentInfo + msg.contentInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()) + ]); + + // add actual content, if present + if('content' in msg) { + var content; + if(msg.content instanceof forge.util.ByteBuffer) { + content = msg.content.bytes(); + } else if(typeof msg.content === 'string') { + content = forge.util.encodeUtf8(msg.content); + } + + if (options.detached) { + msg.detachedContent = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, content); + } else { + msg.contentInfo.value.push( + // [0] EXPLICIT content + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + content) + ])); + } + } + } + + // no signers, return early (degenerate case for certificate container) + if(msg.signers.length === 0) { + return; + } + + // generate digest algorithm identifiers + var mds = addDigestAlgorithmIds(); + + // generate signerInfos + addSignerInfos(mds); + }, + + verify: function() { + throw new Error('PKCS#7 signature verification not yet implemented.'); + }, + + /** + * Add a certificate. + * + * @param cert the certificate to add. + */ + addCertificate: function(cert) { + // convert from PEM + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + msg.certificates.push(cert); + }, + + /** + * Add a certificate revokation list. + * + * @param crl the certificate revokation list to add. + */ + addCertificateRevokationList: function(crl) { + throw new Error('PKCS#7 CRL support not yet implemented.'); + } + }; + return msg; + + function addDigestAlgorithmIds() { + var mds = {}; + + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + var oid = signer.digestAlgorithm; + if(!(oid in mds)) { + // content digest + mds[oid] = forge.md[forge.pki.oids[oid]].create(); + } + if(signer.authenticatedAttributes.length === 0) { + // no custom attributes to digest; use content message digest + signer.md = mds[oid]; + } else { + // custom attributes to be digested; use own message digest + // TODO: optimize to just copy message digest state if that + // feature is ever supported with message digests + signer.md = forge.md[forge.pki.oids[oid]].create(); + } + } + + // add unique digest algorithm identifiers + msg.digestAlgorithmIdentifiers = []; + for(var oid in mds) { + msg.digestAlgorithmIdentifiers.push( + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(oid).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + } + + return mds; + } + + function addSignerInfos(mds) { + var content; + + if (msg.detachedContent) { + // Signature has been made in detached mode. + content = msg.detachedContent; + } else { + // Note: ContentInfo is a SEQUENCE with 2 values, second value is + // the content field and is optional for a ContentInfo but required here + // since signers are present + // get ContentInfo content + content = msg.contentInfo.value[1]; + // skip [0] EXPLICIT content wrapper + content = content.value[0]; + } + + if(!content) { + throw new Error( + 'Could not sign PKCS#7 message; there is no content to sign.'); + } + + // get ContentInfo content type + var contentType = asn1.derToOid(msg.contentInfo.value[0].value); + + // serialize content + var bytes = asn1.toDer(content); + + // skip identifier and length per RFC 2315 9.3 + // skip identifier (1 byte) + bytes.getByte(); + // read and discard length bytes + asn1.getBerValueLength(bytes); + bytes = bytes.getBytes(); + + // digest content DER value bytes + for(var oid in mds) { + mds[oid].start().update(bytes); + } + + // sign content + var signingTime = new Date(); + for(var i = 0; i < msg.signers.length; ++i) { + var signer = msg.signers[i]; + + if(signer.authenticatedAttributes.length === 0) { + // if ContentInfo content type is not "Data", then + // authenticatedAttributes must be present per RFC 2315 + if(contentType !== forge.pki.oids.data) { + throw new Error( + 'Invalid signer; authenticatedAttributes must be present ' + + 'when the ContentInfo content type is not PKCS#7 Data.'); + } + } else { + // process authenticated attributes + // [0] IMPLICIT + signer.authenticatedAttributesAsn1 = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + + // per RFC 2315, attributes are to be digested using a SET container + // not the above [0] IMPLICIT container + var attrsAsn1 = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SET, true, []); + + for(var ai = 0; ai < signer.authenticatedAttributes.length; ++ai) { + var attr = signer.authenticatedAttributes[ai]; + if(attr.type === forge.pki.oids.messageDigest) { + // use content message digest as value + attr.value = mds[signer.digestAlgorithm].digest(); + } else if(attr.type === forge.pki.oids.signingTime) { + // auto-populate signing time if not already set + if(!attr.value) { + attr.value = signingTime; + } + } + + // convert to ASN.1 and push onto Attributes SET (for signing) and + // onto authenticatedAttributesAsn1 to complete SignedData ASN.1 + // TODO: optimize away duplication + attrsAsn1.value.push(_attributeToAsn1(attr)); + signer.authenticatedAttributesAsn1.value.push(_attributeToAsn1(attr)); + } + + // DER-serialize and digest SET OF attributes only + bytes = asn1.toDer(attrsAsn1).getBytes(); + signer.md.start().update(bytes); + } + + // sign digest + signer.signature = signer.key.sign(signer.md, 'RSASSA-PKCS1-V1_5'); + } + + // add signer info + msg.signerInfos = _signersToAsn1(msg.signers); + } +}; + +/** + * Creates an empty PKCS#7 message of type EncryptedData. + * + * @return the message. + */ +p7.createEncryptedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.encryptedData, + version: 0, + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + + /** + * Reads an EncryptedData content block (in ASN.1 format) + * + * @param obj The ASN.1 representation of the EncryptedData content block + */ + fromAsn1: function(obj) { + // Validate EncryptedData content block and capture data. + _fromAsn1(msg, obj, p7.asn1.encryptedDataValidator); + }, + + /** + * Decrypt encrypted content + * + * @param key The (symmetric) key as a byte buffer + */ + decrypt: function(key) { + if(key !== undefined) { + msg.encryptedContent.key = key; + } + _decryptContent(msg); + } + }; + return msg; +}; + +/** + * Creates an empty PKCS#7 message of type EnvelopedData. + * + * @return the message. + */ +p7.createEnvelopedData = function() { + var msg = null; + msg = { + type: forge.pki.oids.envelopedData, + version: 0, + recipients: [], + encryptedContent: { + algorithm: forge.pki.oids['aes256-CBC'] + }, + + /** + * Reads an EnvelopedData content block (in ASN.1 format) + * + * @param obj the ASN.1 representation of the EnvelopedData content block. + */ + fromAsn1: function(obj) { + // validate EnvelopedData content block and capture data + var capture = _fromAsn1(msg, obj, p7.asn1.envelopedDataValidator); + msg.recipients = _recipientsFromAsn1(capture.recipientInfos.value); + }, + + toAsn1: function() { + // ContentInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // ContentType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(msg.type).getBytes()), + // [0] EnvelopedData + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(msg.version).getBytes()), + // RecipientInfos + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, + _recipientsToAsn1(msg.recipients)), + // EncryptedContentInfo + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, + _encryptedContentToAsn1(msg.encryptedContent)) + ]) + ]) + ]); + }, + + /** + * Find recipient by X.509 certificate's issuer. + * + * @param cert the certificate with the issuer to look for. + * + * @return the recipient object. + */ + findRecipient: function(cert) { + var sAttr = cert.issuer.attributes; + + for(var i = 0; i < msg.recipients.length; ++i) { + var r = msg.recipients[i]; + var rAttr = r.issuer; + + if(r.serialNumber !== cert.serialNumber) { + continue; + } + + if(rAttr.length !== sAttr.length) { + continue; + } + + var match = true; + for(var j = 0; j < sAttr.length; ++j) { + if(rAttr[j].type !== sAttr[j].type || + rAttr[j].value !== sAttr[j].value) { + match = false; + break; + } + } + + if(match) { + return r; + } + } + + return null; + }, + + /** + * Decrypt enveloped content + * + * @param recipient The recipient object related to the private key + * @param privKey The (RSA) private key object + */ + decrypt: function(recipient, privKey) { + if(msg.encryptedContent.key === undefined && recipient !== undefined && + privKey !== undefined) { + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + case forge.pki.oids.desCBC: + var key = privKey.decrypt(recipient.encryptedContent.content); + msg.encryptedContent.key = forge.util.createBuffer(key); + break; + + default: + throw new Error('Unsupported asymmetric cipher, ' + + 'OID ' + recipient.encryptedContent.algorithm); + } + } + + _decryptContent(msg); + }, + + /** + * Add (another) entity to list of recipients. + * + * @param cert The certificate of the entity to add. + */ + addRecipient: function(cert) { + msg.recipients.push({ + version: 0, + issuer: cert.issuer.attributes, + serialNumber: cert.serialNumber, + encryptedContent: { + // We simply assume rsaEncryption here, since forge.pki only + // supports RSA so far. If the PKI module supports other + // ciphers one day, we need to modify this one as well. + algorithm: forge.pki.oids.rsaEncryption, + key: cert.publicKey + } + }); + }, + + /** + * Encrypt enveloped content. + * + * This function supports two optional arguments, cipher and key, which + * can be used to influence symmetric encryption. Unless cipher is + * provided, the cipher specified in encryptedContent.algorithm is used + * (defaults to AES-256-CBC). If no key is provided, encryptedContent.key + * is (re-)used. If that one's not set, a random key will be generated + * automatically. + * + * @param [key] The key to be used for symmetric encryption. + * @param [cipher] The OID of the symmetric cipher to use. + */ + encrypt: function(key, cipher) { + // Part 1: Symmetric encryption + if(msg.encryptedContent.content === undefined) { + cipher = cipher || msg.encryptedContent.algorithm; + key = key || msg.encryptedContent.key; + + var keyLen, ivLen, ciphFn; + switch(cipher) { + case forge.pki.oids['aes128-CBC']: + keyLen = 16; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes192-CBC']: + keyLen = 24; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['aes256-CBC']: + keyLen = 32; + ivLen = 16; + ciphFn = forge.aes.createEncryptionCipher; + break; + + case forge.pki.oids['des-EDE3-CBC']: + keyLen = 24; + ivLen = 8; + ciphFn = forge.des.createEncryptionCipher; + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + cipher); + } + + if(key === undefined) { + key = forge.util.createBuffer(forge.random.getBytes(keyLen)); + } else if(key.length() != keyLen) { + throw new Error('Symmetric key has wrong length; ' + + 'got ' + key.length() + ' bytes, expected ' + keyLen + '.'); + } + + // Keep a copy of the key & IV in the object, so the caller can + // use it for whatever reason. + msg.encryptedContent.algorithm = cipher; + msg.encryptedContent.key = key; + msg.encryptedContent.parameter = forge.util.createBuffer( + forge.random.getBytes(ivLen)); + + var ciph = ciphFn(key); + ciph.start(msg.encryptedContent.parameter.copy()); + ciph.update(msg.content); + + // The finish function does PKCS#7 padding by default, therefore + // no action required by us. + if(!ciph.finish()) { + throw new Error('Symmetric encryption failed.'); + } + + msg.encryptedContent.content = ciph.output; + } + + // Part 2: asymmetric encryption for each recipient + for(var i = 0; i < msg.recipients.length; ++i) { + var recipient = msg.recipients[i]; + + // Nothing to do, encryption already done. + if(recipient.encryptedContent.content !== undefined) { + continue; + } + + switch(recipient.encryptedContent.algorithm) { + case forge.pki.oids.rsaEncryption: + recipient.encryptedContent.content = + recipient.encryptedContent.key.encrypt( + msg.encryptedContent.key.data); + break; + + default: + throw new Error('Unsupported asymmetric cipher, OID ' + + recipient.encryptedContent.algorithm); + } + } + } + }; + return msg; +}; + +/** + * Converts a single recipient from an ASN.1 object. + * + * @param obj the ASN.1 RecipientInfo. + * + * @return the recipient object. + */ +function _recipientFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.recipientInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 RecipientInfo. ' + + 'ASN.1 object is not an PKCS#7 RecipientInfo.'); + error.errors = errors; + throw error; + } + + return { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + encryptedContent: { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: capture.encParameter.value, + content: capture.encKey + } + }; +} + +/** + * Converts a single recipient object to an ASN.1 object. + * + * @param obj the recipient object. + * + * @return the ASN.1 RecipientInfo. + */ +function _recipientToAsn1(obj) { + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // IssuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // Serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // KeyEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.encryptedContent.algorithm).getBytes()), + // Parameter, force NULL, only RSA supported for now. + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // EncryptedKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + obj.encryptedContent.content) + ]); +} + +/** + * Map a set of RecipientInfo ASN.1 objects to recipient objects. + * + * @param infos an array of ASN.1 representations RecipientInfo (i.e. SET OF). + * + * @return an array of recipient objects. + */ +function _recipientsFromAsn1(infos) { + var ret = []; + for(var i = 0; i < infos.length; ++i) { + ret.push(_recipientFromAsn1(infos[i])); + } + return ret; +} + +/** + * Map an array of recipient objects to ASN.1 RecipientInfo objects. + * + * @param recipients an array of recipientInfo objects. + * + * @return an array of ASN.1 RecipientInfos. + */ +function _recipientsToAsn1(recipients) { + var ret = []; + for(var i = 0; i < recipients.length; ++i) { + ret.push(_recipientToAsn1(recipients[i])); + } + return ret; +} + +/** + * Converts a single signer from an ASN.1 object. + * + * @param obj the ASN.1 representation of a SignerInfo. + * + * @return the signer object. + */ +function _signerFromAsn1(obj) { + // validate EnvelopedData content block and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, p7.asn1.signerInfoValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 SignerInfo. ' + + 'ASN.1 object is not an PKCS#7 SignerInfo.'); + error.errors = errors; + throw error; + } + + var rval = { + version: capture.version.charCodeAt(0), + issuer: forge.pki.RDNAttributesAsArray(capture.issuer), + serialNumber: forge.util.createBuffer(capture.serial).toHex(), + digestAlgorithm: asn1.derToOid(capture.digestAlgorithm), + signatureAlgorithm: asn1.derToOid(capture.signatureAlgorithm), + signature: capture.signature, + authenticatedAttributes: [], + unauthenticatedAttributes: [] + }; + + // TODO: convert attributes + var authenticatedAttributes = capture.authenticatedAttributes || []; + var unauthenticatedAttributes = capture.unauthenticatedAttributes || []; + + return rval; +} + +/** + * Converts a single signerInfo object to an ASN.1 object. + * + * @param obj the signerInfo object. + * + * @return the ASN.1 representation of a SignerInfo. + */ +function _signerToAsn1(obj) { + // SignerInfo + var rval = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(obj.version).getBytes()), + // issuerAndSerialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // name + forge.pki.distinguishedNameToAsn1({attributes: obj.issuer}), + // serial + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(obj.serialNumber)) + ]), + // digestAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.digestAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]); + + // authenticatedAttributes (OPTIONAL) + if(obj.authenticatedAttributesAsn1) { + // add ASN.1 previously generated during signing + rval.value.push(obj.authenticatedAttributesAsn1); + } + + // digestEncryptionAlgorithm + rval.value.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(obj.signatureAlgorithm).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ])); + + // encryptedDigest + rval.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, obj.signature)); + + // unauthenticatedAttributes (OPTIONAL) + if(obj.unauthenticatedAttributes.length > 0) { + // [1] IMPLICIT + var attrsAsn1 = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, []); + for(var i = 0; i < obj.unauthenticatedAttributes.length; ++i) { + var attr = obj.unauthenticatedAttributes[i]; + attrsAsn1.values.push(_attributeToAsn1(attr)); + } + rval.value.push(attrsAsn1); + } + + return rval; +} + +/** + * Map a set of SignerInfo ASN.1 objects to an array of signer objects. + * + * @param signerInfoAsn1s an array of ASN.1 SignerInfos (i.e. SET OF). + * + * @return an array of signers objects. + */ +function _signersFromAsn1(signerInfoAsn1s) { + var ret = []; + for(var i = 0; i < signerInfoAsn1s.length; ++i) { + ret.push(_signerFromAsn1(signerInfoAsn1s[i])); + } + return ret; +} + +/** + * Map an array of signer objects to ASN.1 objects. + * + * @param signers an array of signer objects. + * + * @return an array of ASN.1 SignerInfos. + */ +function _signersToAsn1(signers) { + var ret = []; + for(var i = 0; i < signers.length; ++i) { + ret.push(_signerToAsn1(signers[i])); + } + return ret; +} + +/** + * Convert an attribute object to an ASN.1 Attribute. + * + * @param attr the attribute object. + * + * @return the ASN.1 Attribute. + */ +function _attributeToAsn1(attr) { + var value; + + // TODO: generalize to support more attributes + if(attr.type === forge.pki.oids.contentType) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.value).getBytes()); + } else if(attr.type === forge.pki.oids.messageDigest) { + value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + attr.value.bytes()); + } else if(attr.type === forge.pki.oids.signingTime) { + /* Note per RFC 2985: Dates between 1 January 1950 and 31 December 2049 + (inclusive) MUST be encoded as UTCTime. Any dates with year values + before 1950 or after 2049 MUST be encoded as GeneralizedTime. [Further,] + UTCTime values MUST be expressed in Greenwich Mean Time (Zulu) and MUST + include seconds (i.e., times are YYMMDDHHMMSSZ), even where the + number of seconds is zero. Midnight (GMT) must be represented as + "YYMMDD000000Z". */ + // TODO: make these module-level constants + var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); + var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); + var date = attr.value; + if(typeof date === 'string') { + // try to parse date + var timestamp = Date.parse(date); + if(!isNaN(timestamp)) { + date = new Date(timestamp); + } else if(date.length === 13) { + // YYMMDDHHMMSSZ (13 chars for UTCTime) + date = asn1.utcTimeToDate(date); + } else { + // assume generalized time + date = asn1.generalizedTimeToDate(date); + } + } + + if(date >= jan_1_1950 && date < jan_1_2050) { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } + } + + // TODO: expose as common API call + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + value + ]) + ]); +} + +/** + * Map messages encrypted content to ASN.1 objects. + * + * @param ec The encryptedContent object of the message. + * + * @return ASN.1 representation of the encryptedContent object (SEQUENCE). + */ +function _encryptedContentToAsn1(ec) { + return [ + // ContentType, always Data for the moment + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(forge.pki.oids.data).getBytes()), + // ContentEncryptionAlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // Algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ec.algorithm).getBytes()), + // Parameters (IV) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.parameter.getBytes()) + ]), + // [0] EncryptedContent + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + ec.content.getBytes()) + ]) + ]; +} + +/** + * Reads the "common part" of an PKCS#7 content block (in ASN.1 format) + * + * This function reads the "common part" of the PKCS#7 content blocks + * EncryptedData and EnvelopedData, i.e. version number and symmetrically + * encrypted content block. + * + * The result of the ASN.1 validate and capture process is returned + * to allow the caller to extract further data, e.g. the list of recipients + * in case of a EnvelopedData object. + * + * @param msg the PKCS#7 object to read the data to. + * @param obj the ASN.1 representation of the content block. + * @param validator the ASN.1 structure validator object to use. + * + * @return the value map captured by validator object. + */ +function _fromAsn1(msg, obj, validator) { + var capture = {}; + var errors = []; + if(!asn1.validate(obj, validator, capture, errors)) { + var error = new Error('Cannot read PKCS#7 message. ' + + 'ASN.1 object is not a supported PKCS#7 message.'); + error.errors = error; + throw error; + } + + // Check contentType, so far we only support (raw) Data. + var contentType = asn1.derToOid(capture.contentType); + if(contentType !== forge.pki.oids.data) { + throw new Error('Unsupported PKCS#7 message. ' + + 'Only wrapped ContentType Data supported.'); + } + + if(capture.encryptedContent) { + var content = ''; + if(forge.util.isArray(capture.encryptedContent)) { + for(var i = 0; i < capture.encryptedContent.length; ++i) { + if(capture.encryptedContent[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting encrypted ' + + 'content constructed of only OCTET STRING objects.'); + } + content += capture.encryptedContent[i].value; + } + } else { + content = capture.encryptedContent; + } + msg.encryptedContent = { + algorithm: asn1.derToOid(capture.encAlgorithm), + parameter: forge.util.createBuffer(capture.encParameter.value), + content: forge.util.createBuffer(content) + }; + } + + if(capture.content) { + var content = ''; + if(forge.util.isArray(capture.content)) { + for(var i = 0; i < capture.content.length; ++i) { + if(capture.content[i].type !== asn1.Type.OCTETSTRING) { + throw new Error('Malformed PKCS#7 message, expecting ' + + 'content constructed of only OCTET STRING objects.'); + } + content += capture.content[i].value; + } + } else { + content = capture.content; + } + msg.content = forge.util.createBuffer(content); + } + + msg.version = capture.version.charCodeAt(0); + msg.rawCapture = capture; + + return capture; +} + +/** + * Decrypt the symmetrically encrypted content block of the PKCS#7 message. + * + * Decryption is skipped in case the PKCS#7 message object already has a + * (decrypted) content attribute. The algorithm, key and cipher parameters + * (probably the iv) are taken from the encryptedContent attribute of the + * message object. + * + * @param The PKCS#7 message object. + */ +function _decryptContent(msg) { + if(msg.encryptedContent.key === undefined) { + throw new Error('Symmetric key not available.'); + } + + if(msg.content === undefined) { + var ciph; + + switch(msg.encryptedContent.algorithm) { + case forge.pki.oids['aes128-CBC']: + case forge.pki.oids['aes192-CBC']: + case forge.pki.oids['aes256-CBC']: + ciph = forge.aes.createDecryptionCipher(msg.encryptedContent.key); + break; + + case forge.pki.oids['desCBC']: + case forge.pki.oids['des-EDE3-CBC']: + ciph = forge.des.createDecryptionCipher(msg.encryptedContent.key); + break; + + default: + throw new Error('Unsupported symmetric cipher, OID ' + + msg.encryptedContent.algorithm); + } + ciph.start(msg.encryptedContent.parameter); + ciph.update(msg.encryptedContent.content); + + if(!ciph.finish()) { + throw new Error('Symmetric decryption failed.'); + } + + msg.content = ciph.output; + } +} + + +/***/ }), + +/***/ 43049: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of ASN.1 validators for PKCS#7 v1.5. + * + * @author Dave Longley + * @author Stefan Siegl + * + * Copyright (c) 2012-2015 Digital Bazaar, Inc. + * Copyright (c) 2012 Stefan Siegl + * + * The ASN.1 representation of PKCS#7 is as follows + * (see RFC #2315 for details, http://www.ietf.org/rfc/rfc2315.txt): + * + * A PKCS#7 message consists of a ContentInfo on root level, which may + * contain any number of further ContentInfo nested into it. + * + * ContentInfo ::= SEQUENCE { + * contentType ContentType, + * content [0] EXPLICIT ANY DEFINED BY contentType OPTIONAL + * } + * + * ContentType ::= OBJECT IDENTIFIER + * + * EnvelopedData ::= SEQUENCE { + * version Version, + * recipientInfos RecipientInfos, + * encryptedContentInfo EncryptedContentInfo + * } + * + * EncryptedData ::= SEQUENCE { + * version Version, + * encryptedContentInfo EncryptedContentInfo + * } + * + * id-signedData OBJECT IDENTIFIER ::= { iso(1) member-body(2) + * us(840) rsadsi(113549) pkcs(1) pkcs7(7) 2 } + * + * SignedData ::= SEQUENCE { + * version INTEGER, + * digestAlgorithms DigestAlgorithmIdentifiers, + * contentInfo ContentInfo, + * certificates [0] IMPLICIT Certificates OPTIONAL, + * crls [1] IMPLICIT CertificateRevocationLists OPTIONAL, + * signerInfos SignerInfos + * } + * + * SignerInfos ::= SET OF SignerInfo + * + * SignerInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * digestAlgorithm DigestAlgorithmIdentifier, + * authenticatedAttributes [0] IMPLICIT Attributes OPTIONAL, + * digestEncryptionAlgorithm DigestEncryptionAlgorithmIdentifier, + * encryptedDigest EncryptedDigest, + * unauthenticatedAttributes [1] IMPLICIT Attributes OPTIONAL + * } + * + * EncryptedDigest ::= OCTET STRING + * + * Attributes ::= SET OF Attribute + * + * Attribute ::= SEQUENCE { + * attrType OBJECT IDENTIFIER, + * attrValues SET OF AttributeValue + * } + * + * AttributeValue ::= ANY + * + * Version ::= INTEGER + * + * RecipientInfos ::= SET OF RecipientInfo + * + * EncryptedContentInfo ::= SEQUENCE { + * contentType ContentType, + * contentEncryptionAlgorithm ContentEncryptionAlgorithmIdentifier, + * encryptedContent [0] IMPLICIT EncryptedContent OPTIONAL + * } + * + * ContentEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of AES and DES3, there is only one, + * the IV. + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * EncryptedContent ::= OCTET STRING + * + * RecipientInfo ::= SEQUENCE { + * version Version, + * issuerAndSerialNumber IssuerAndSerialNumber, + * keyEncryptionAlgorithm KeyEncryptionAlgorithmIdentifier, + * encryptedKey EncryptedKey + * } + * + * IssuerAndSerialNumber ::= SEQUENCE { + * issuer Name, + * serialNumber CertificateSerialNumber + * } + * + * CertificateSerialNumber ::= INTEGER + * + * KeyEncryptionAlgorithmIdentifier ::= AlgorithmIdentifier + * + * EncryptedKey ::= OCTET STRING + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +__nccwpck_require__(21726); + +// shortcut for ASN.1 API +var asn1 = forge.asn1; + +// shortcut for PKCS#7 API +var p7v = module.exports = forge.pkcs7asn1 = forge.pkcs7asn1 || {}; +forge.pkcs7 = forge.pkcs7 || {}; +forge.pkcs7.asn1 = p7v; + +var contentInfoValidator = { + name: 'ContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'ContentInfo.ContentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'ContentInfo.content', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + captureAsn1: 'content' + }] +}; +p7v.contentInfoValidator = contentInfoValidator; + +var encryptedContentInfoValidator = { + name: 'EncryptedContentInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentType', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'contentType' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'EncryptedContentInfo.contentEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + captureAsn1: 'encParameter' + }] + }, { + name: 'EncryptedContentInfo.encryptedContent', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + /* The PKCS#7 structure output by OpenSSL somewhat differs from what + * other implementations do generate. + * + * OpenSSL generates a structure like this: + * SEQUENCE { + * ... + * [0] + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * + * Whereas other implementations (and this PKCS#7 module) generate: + * SEQUENCE { + * ... + * [0] { + * OCTET STRING + * 26 DA 67 D2 17 9C 45 3C B1 2A A8 59 2F 29 33 38 + * C3 C3 DF 86 71 74 7A 19 9F 40 D0 29 BE 85 90 45 + * ... + * } + * } + * + * In order to support both, we just capture the context specific + * field here. The OCTET STRING bit is removed below. + */ + capture: 'encryptedContent', + captureAsn1: 'encryptedContentAsn1' + }] +}; + +p7v.envelopedDataValidator = { + name: 'EnvelopedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EnvelopedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'EnvelopedData.RecipientInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'recipientInfos' + }].concat(encryptedContentInfoValidator) +}; + +p7v.encryptedDataValidator = { + name: 'EncryptedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'EncryptedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }].concat(encryptedContentInfoValidator) +}; + +var signerValidator = { + name: 'SignerInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false + }, { + name: 'SignerInfo.issuerAndSerialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.issuerAndSerialNumber.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'SignerInfo.issuerAndSerialNumber.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'SignerInfo.digestAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignerInfo.digestAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'digestAlgorithm' + }, { + name: 'SignerInfo.digestAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'digestParameter', + optional: true + }] + }, { + name: 'SignerInfo.authenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'authenticatedAttributes' + }, { + name: 'SignerInfo.digestEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + capture: 'signatureAlgorithm' + }, { + name: 'SignerInfo.encryptedDigest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'signature' + }, { + name: 'SignerInfo.unauthenticatedAttributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + capture: 'unauthenticatedAttributes' + }] +}; + +p7v.signedDataValidator = { + name: 'SignedData', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'SignedData.Version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'SignedData.DigestAlgorithms', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true, + captureAsn1: 'digestAlgorithms' + }, + contentInfoValidator, + { + name: 'SignedData.Certificates', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + optional: true, + captureAsn1: 'certificates' + }, { + name: 'SignedData.CertificateRevocationLists', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + optional: true, + captureAsn1: 'crls' + }, { + name: 'SignedData.SignerInfos', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + capture: 'signerInfos', + optional: true, + value: [signerValidator] + }] +}; + +p7v.recipientInfoValidator = { + name: 'RecipientInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'version' + }, { + name: 'RecipientInfo.issuerAndSerial', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.issuerAndSerial.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'issuer' + }, { + name: 'RecipientInfo.issuerAndSerial.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'serial' + }] + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'RecipientInfo.keyEncryptionAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'encAlgorithm' + }, { + name: 'RecipientInfo.keyEncryptionAlgorithm.parameter', + tagClass: asn1.Class.UNIVERSAL, + constructed: false, + captureAsn1: 'encParameter' + }] + }, { + name: 'RecipientInfo.encryptedKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'encKey' + }] +}; + + +/***/ }), + +/***/ 62106: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of a basic Public Key Infrastructure, including + * support for RSA public and private keys. + * + * @author Dave Longley + * + * Copyright (c) 2010-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +__nccwpck_require__(91658); +__nccwpck_require__(11786); +__nccwpck_require__(45877); +__nccwpck_require__(4373); +__nccwpck_require__(71831); +__nccwpck_require__(27916); +__nccwpck_require__(12343); +__nccwpck_require__(21726); +__nccwpck_require__(14837); + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; + +/** + * NOTE: THIS METHOD IS DEPRECATED. Use pem.decode() instead. + * + * Converts PEM-formatted data to DER. + * + * @param pem the PEM-formatted data. + * + * @return the DER-formatted data. + */ +pki.pemToDer = function(pem) { + var msg = forge.pem.decode(pem)[0]; + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert PEM to DER; PEM is encrypted.'); + } + return forge.util.createBuffer(msg.body); +}; + +/** + * Converts an RSA private key from PEM format. + * + * @param pem the PEM-formatted private key. + * + * @return the private key. + */ +pki.privateKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PRIVATE KEY' && msg.type !== 'RSA PRIVATE KEY') { + var error = new Error('Could not convert private key from PEM; PEM ' + + 'header type is not "PRIVATE KEY" or "RSA PRIVATE KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert private key from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return pki.privateKeyFromAsn1(obj); +}; + +/** + * Converts an RSA private key to PEM format. + * + * @param key the private key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PRIVATE KEY', + body: asn1.toDer(pki.privateKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts a PrivateKeyInfo to PEM format. + * + * @param pki the PrivateKeyInfo. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted private key. + */ +pki.privateKeyInfoToPem = function(pki, maxline) { + // convert to DER, then PEM-encode + var msg = { + type: 'PRIVATE KEY', + body: asn1.toDer(pki).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + + +/***/ }), + +/***/ 55505: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Prime number generation API. + * + * @author Dave Longley + * + * Copyright (c) 2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); +__nccwpck_require__(59368); +__nccwpck_require__(61698); + +(function() { + +// forge.prime already defined +if(forge.prime) { + module.exports = forge.prime; + return; +} + +/* PRIME API */ +var prime = module.exports = forge.prime = forge.prime || {}; + +var BigInteger = forge.jsbn.BigInteger; + +// primes are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; +var THIRTY = new BigInteger(null); +THIRTY.fromInt(30); +var op_or = function(x, y) {return x|y;}; + +/** + * Generates a random probable prime with the given number of bits. + * + * Alternative algorithms can be specified by name as a string or as an + * object with custom options like so: + * + * { + * name: 'PRIMEINC', + * options: { + * maxBlockTime: , + * millerRabinTests: , + * workerScript: , + * workers: . + * workLoad: the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * } + * } + * + * @param bits the number of bits for the prime number. + * @param options the options to use. + * [algorithm] the algorithm to use (default: 'PRIMEINC'). + * [prng] a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * + * @return callback(err, num) called once the operation completes. + */ +prime.generateProbablePrime = function(bits, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + + // default to PRIMEINC algorithm + var algorithm = options.algorithm || 'PRIMEINC'; + if(typeof algorithm === 'string') { + algorithm = {name: algorithm}; + } + algorithm.options = algorithm.options || {}; + + // create prng with api that matches BigInteger secure random + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } + } + }; + + if(algorithm.name === 'PRIMEINC') { + return primeincFindPrime(bits, rng, algorithm.options, callback); + } + + throw new Error('Invalid prime generation algorithm: ' + algorithm.name); +}; + +function primeincFindPrime(bits, rng, options, callback) { + if('workers' in options) { + return primeincFindPrimeWithWorkers(bits, rng, options, callback); + } + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); +} + +function primeincFindPrimeWithoutWorkers(bits, rng, options, callback) { + // initialize random number + var num = generateRandom(bits, rng); + + /* Note: All primes are of the form 30k+i for i < 30 and gcd(30, i)=1. The + number we are given is always aligned at 30k + 1. Each time the number is + determined not to be prime we add to get to the next 'i', eg: if the number + was at 30k + 1 we add 6. */ + var deltaIdx = 0; + + // get required number of MR tests + var mrTests = getMillerRabinTests(num.bitLength()); + if('millerRabinTests' in options) { + mrTests = options.millerRabinTests; + } + + // find prime nearest to 'num' for maxBlockTime ms + // 10 ms gives 5ms of leeway for other calculations before dropping + // below 60fps (1000/60 == 16.67), but in reality, the number will + // likely be higher due to an 'atomic' big int modPow + var maxBlockTime = 10; + if('maxBlockTime' in options) { + maxBlockTime = options.maxBlockTime; + } + + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); +} + +function _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback) { + var start = +new Date(); + do { + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + // do primality test + if(num.isProbablePrime(mrTests)) { + return callback(null, num); + } + // get next potential prime + num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); + } while(maxBlockTime < 0 || (+new Date() - start < maxBlockTime)); + + // keep trying later + forge.util.setImmediate(function() { + _primeinc(num, bits, rng, deltaIdx, mrTests, maxBlockTime, callback); + }); +} + +// NOTE: This algorithm is indeterminate in nature because workers +// run in parallel looking at different segments of numbers. Even if this +// algorithm is run twice with the same input from a predictable RNG, it +// may produce different outputs. +function primeincFindPrimeWithWorkers(bits, rng, options, callback) { + // web workers unavailable + if(typeof Worker === 'undefined') { + return primeincFindPrimeWithoutWorkers(bits, rng, options, callback); + } + + // initialize random number + var num = generateRandom(bits, rng); + + // use web workers to generate keys + var numWorkers = options.workers; + var workLoad = options.workLoad || 100; + var range = workLoad * 30 / 8; + var workerScript = options.workerScript || 'forge/prime.worker.js'; + if(numWorkers === -1) { + return forge.util.estimateCores(function(err, cores) { + if(err) { + // default to 2 + cores = 2; + } + numWorkers = cores - 1; + generate(); + }); + } + generate(); + + function generate() { + // require at least 1 worker + numWorkers = Math.max(1, numWorkers); + + // TODO: consider optimizing by starting workers outside getPrime() ... + // note that in order to clean up they will have to be made internally + // asynchronous which may actually be slower + + // start workers immediately + var workers = []; + for(var i = 0; i < numWorkers; ++i) { + // FIXME: fix path or use blob URLs + workers[i] = new Worker(workerScript); + } + var running = numWorkers; + + // listen for requests from workers and assign ranges to find prime + for(var i = 0; i < numWorkers; ++i) { + workers[i].addEventListener('message', workerMessage); + } + + /* Note: The distribution of random numbers is unknown. Therefore, each + web worker is continuously allocated a range of numbers to check for a + random number until one is found. + + Every 30 numbers will be checked just 8 times, because prime numbers + have the form: + + 30k+i, for i < 30 and gcd(30, i)=1 (there are 8 values of i for this) + + Therefore, if we want a web worker to run N checks before asking for + a new range of numbers, each range must contain N*30/8 numbers. + + For 100 checks (workLoad), this is a range of 375. */ + + var found = false; + function workerMessage(e) { + // ignore message, prime already found + if(found) { + return; + } + + --running; + var data = e.data; + if(data.found) { + // terminate all workers + for(var i = 0; i < workers.length; ++i) { + workers[i].terminate(); + } + found = true; + return callback(null, new BigInteger(data.prime, 16)); + } + + // overflow, regenerate random number + if(num.bitLength() > bits) { + num = generateRandom(bits, rng); + } + + // assign new range to check + var hex = num.toString(16); + + // start prime search + e.target.postMessage({ + hex: hex, + workLoad: workLoad + }); + + num.dAddOffset(range, 0); + } + } +} + +/** + * Generates a random number using the given number of bits and RNG. + * + * @param bits the number of bits for the number. + * @param rng the random number generator to use. + * + * @return the random number. + */ +function generateRandom(bits, rng) { + var num = new BigInteger(bits, rng); + // force MSB set + var bits1 = bits - 1; + if(!num.testBit(bits1)) { + num.bitwiseTo(BigInteger.ONE.shiftLeft(bits1), op_or, num); + } + // align number on 30k+1 boundary + num.dAddOffset(31 - num.mod(THIRTY).byteValue(), 0); + return num; +} + +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. + * + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. + */ +function getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; +} + +})(); + + +/***/ }), + +/***/ 99376: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A javascript implementation of a cryptographically-secure + * Pseudo Random Number Generator (PRNG). The Fortuna algorithm is followed + * here though the use of SHA-256 is not enforced; when generating an + * a PRNG context, the hashing algorithm and block cipher used for + * the generator are specified via a plugin. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +var _crypto = null; +if(forge.util.isNodejs && !forge.options.usePureJavaScript && + !process.versions['node-webkit']) { + _crypto = __nccwpck_require__(6113); +} + +/* PRNG API */ +var prng = module.exports = forge.prng = forge.prng || {}; + +/** + * Creates a new PRNG context. + * + * A PRNG plugin must be passed in that will provide: + * + * 1. A function that initializes the key and seed of a PRNG context. It + * will be given a 16 byte key and a 16 byte seed. Any key expansion + * or transformation of the seed from a byte string into an array of + * integers (or similar) should be performed. + * 2. The cryptographic function used by the generator. It takes a key and + * a seed. + * 3. A seed increment function. It takes the seed and returns seed + 1. + * 4. An api to create a message digest. + * + * For an example, see random.js. + * + * @param plugin the PRNG plugin to use. + */ +prng.create = function(plugin) { + var ctx = { + plugin: plugin, + key: null, + seed: null, + time: null, + // number of reseeds so far + reseeds: 0, + // amount of data generated so far + generated: 0, + // no initial key bytes + keyBytes: '' + }; + + // create 32 entropy pools (each is a message digest) + var md = plugin.md; + var pools = new Array(32); + for(var i = 0; i < 32; ++i) { + pools[i] = md.create(); + } + ctx.pools = pools; + + // entropy pools are written to cyclically, starting at index 0 + ctx.pool = 0; + + /** + * Generates random bytes. The bytes may be generated synchronously or + * asynchronously. Web workers must use the asynchronous interface or + * else the behavior is undefined. + * + * @param count the number of random bytes to generate. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return count random bytes as a string. + */ + ctx.generate = function(count, callback) { + // do synchronously + if(!callback) { + return ctx.generateSync(count); + } + + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + var b = forge.util.createBuffer(); + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generate` call + ctx.key = null; + + generate(); + + function generate(err) { + if(err) { + return callback(err); + } + + // sufficient bytes generated + if(b.length() >= count) { + return callback(null, b.getBytes(count)); + } + + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + // prevent stack overflow + return forge.util.nextTick(function() { + _reseed(generate); + }); + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); + + forge.util.setImmediate(generate); + } + }; + + /** + * Generates random bytes synchronously. + * + * @param count the number of random bytes to generate. + * + * @return count random bytes as a string. + */ + ctx.generateSync = function(count) { + // simple generator using counter-based CBC + var cipher = ctx.plugin.cipher; + var increment = ctx.plugin.increment; + var formatKey = ctx.plugin.formatKey; + var formatSeed = ctx.plugin.formatSeed; + + // paranoid deviation from Fortuna: + // reset key for every request to protect previously + // generated random bytes should the key be discovered; + // there is no 100ms based reseeding because of this + // forced reseed for every `generateSync` call + ctx.key = null; + + var b = forge.util.createBuffer(); + while(b.length() < count) { + // if amount of data generated is greater than 1 MiB, trigger reseed + if(ctx.generated > 0xfffff) { + ctx.key = null; + } + + if(ctx.key === null) { + _reseedSync(); + } + + // generate the random bytes + var bytes = cipher(ctx.key, ctx.seed); + ctx.generated += bytes.length; + b.putBytes(bytes); + + // generate bytes for a new key and seed + ctx.key = formatKey(cipher(ctx.key, increment(ctx.seed))); + ctx.seed = formatSeed(cipher(ctx.key, ctx.seed)); + } + + return b.getBytes(count); + }; + + /** + * Private function that asynchronously reseeds a generator. + * + * @param callback(err) called once the operation completes. + */ + function _reseed(callback) { + if(ctx.pools[0].messageLength >= 32) { + _seed(); + return callback(); + } + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.seedFile(needed, function(err, bytes) { + if(err) { + return callback(err); + } + ctx.collect(bytes); + _seed(); + callback(); + }); + } + + /** + * Private function that synchronously reseeds a generator. + */ + function _reseedSync() { + if(ctx.pools[0].messageLength >= 32) { + return _seed(); + } + // not enough seed data... + var needed = (32 - ctx.pools[0].messageLength) << 5; + ctx.collect(ctx.seedFileSync(needed)); + _seed(); + } + + /** + * Private function that seeds a generator once enough bytes are available. + */ + function _seed() { + // update reseed count + ctx.reseeds = (ctx.reseeds === 0xffffffff) ? 0 : ctx.reseeds + 1; + + // goal is to update `key` via: + // key = hash(key + s) + // where 's' is all collected entropy from selected pools, then... + + // create a plugin-based message digest + var md = ctx.plugin.md.create(); + + // consume current key bytes + md.update(ctx.keyBytes); + + // digest the entropy of pools whose index k meet the + // condition 'n mod 2^k == 0' where n is the number of reseeds + var _2powK = 1; + for(var k = 0; k < 32; ++k) { + if(ctx.reseeds % _2powK === 0) { + md.update(ctx.pools[k].digest().getBytes()); + ctx.pools[k].start(); + } + _2powK = _2powK << 1; + } + + // get digest for key bytes + ctx.keyBytes = md.digest().getBytes(); + + // paranoid deviation from Fortuna: + // update `seed` via `seed = hash(key)` + // instead of initializing to zero once and only + // ever incrementing it + md.start(); + md.update(ctx.keyBytes); + var seedBytes = md.digest().getBytes(); + + // update state + ctx.key = ctx.plugin.formatKey(ctx.keyBytes); + ctx.seed = ctx.plugin.formatSeed(seedBytes); + ctx.generated = 0; + } + + /** + * The built-in default seedFile. This seedFile is used when entropy + * is needed immediately. + * + * @param needed the number of bytes that are needed. + * + * @return the random bytes. + */ + function defaultSeedFile(needed) { + // use window.crypto.getRandomValues strong source of entropy if available + var getRandomValues = null; + var globalScope = forge.util.globalScope; + var _crypto = globalScope.crypto || globalScope.msCrypto; + if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; + } + + var b = forge.util.createBuffer(); + if(getRandomValues) { + while(b.length() < needed) { + // max byte length is 65536 before QuotaExceededError is thrown + // http://www.w3.org/TR/WebCryptoAPI/#RandomSource-method-getRandomValues + var count = Math.max(1, Math.min(needed - b.length(), 65536) / 4); + var entropy = new Uint32Array(Math.floor(count)); + try { + getRandomValues(entropy); + for(var i = 0; i < entropy.length; ++i) { + b.putInt32(entropy[i]); + } + } catch(e) { + /* only ignore QuotaExceededError */ + if(!(typeof QuotaExceededError !== 'undefined' && + e instanceof QuotaExceededError)) { + throw e; + } + } + } + } + + // be sad and add some weak random data + if(b.length() < needed) { + /* Draws from Park-Miller "minimal standard" 31 bit PRNG, + implemented with David G. Carta's optimization: with 32 bit math + and without division (Public Domain). */ + var hi, lo, next; + var seed = Math.floor(Math.random() * 0x010000); + while(b.length() < needed) { + lo = 16807 * (seed & 0xFFFF); + hi = 16807 * (seed >> 16); + lo += (hi & 0x7FFF) << 16; + lo += hi >> 15; + lo = (lo & 0x7FFFFFFF) + (lo >> 31); + seed = lo & 0xFFFFFFFF; + + // consume lower 3 bytes of seed + for(var i = 0; i < 3; ++i) { + // throw in more pseudo random + next = seed >>> (i << 3); + next ^= Math.floor(Math.random() * 0x0100); + b.putByte(String.fromCharCode(next & 0xFF)); + } + } + } + + return b.getBytes(needed); + } + // initialize seed file APIs + if(_crypto) { + // use nodejs async API + ctx.seedFile = function(needed, callback) { + _crypto.randomBytes(needed, function(err, bytes) { + if(err) { + return callback(err); + } + callback(null, bytes.toString()); + }); + }; + // use nodejs sync API + ctx.seedFileSync = function(needed) { + return _crypto.randomBytes(needed).toString(); + }; + } else { + ctx.seedFile = function(needed, callback) { + try { + callback(null, defaultSeedFile(needed)); + } catch(e) { + callback(e); + } + }; + ctx.seedFileSync = defaultSeedFile; + } + + /** + * Adds entropy to a prng ctx's accumulator. + * + * @param bytes the bytes of entropy as a string. + */ + ctx.collect = function(bytes) { + // iterate over pools distributing entropy cyclically + var count = bytes.length; + for(var i = 0; i < count; ++i) { + ctx.pools[ctx.pool].update(bytes.substr(i, 1)); + ctx.pool = (ctx.pool === 31) ? 0 : ctx.pool + 1; + } + }; + + /** + * Collects an integer of n bits. + * + * @param i the integer entropy. + * @param n the number of bits in the integer. + */ + ctx.collectInt = function(i, n) { + var bytes = ''; + for(var x = 0; x < n; x += 8) { + bytes += String.fromCharCode((i >> x) & 0xFF); + } + ctx.collect(bytes); + }; + + /** + * Registers a Web Worker to receive immediate entropy from the main thread. + * This method is required until Web Workers can access the native crypto + * API. This method should be called twice for each created worker, once in + * the main thread, and once in the worker itself. + * + * @param worker the worker to register. + */ + ctx.registerWorker = function(worker) { + // worker receives random bytes + if(worker === self) { + ctx.seedFile = function(needed, callback) { + function listener(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + self.removeEventListener('message', listener); + callback(data.forge.prng.err, data.forge.prng.bytes); + } + } + self.addEventListener('message', listener); + self.postMessage({forge: {prng: {needed: needed}}}); + }; + } else { + // main thread sends random bytes upon request + var listener = function(e) { + var data = e.data; + if(data.forge && data.forge.prng) { + ctx.seedFile(data.forge.prng.needed, function(err, bytes) { + worker.postMessage({forge: {prng: {err: err, bytes: bytes}}}); + }); + } + }; + // TODO: do we need to remove the event listener when the worker dies? + worker.addEventListener('message', listener); + } + }; + + return ctx; +}; + + +/***/ }), + +/***/ 27916: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of PKCS#1 PSS signature padding. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(61698); +__nccwpck_require__(21726); + +// shortcut for PSS API +var pss = module.exports = forge.pss = forge.pss || {}; + +/** + * Creates a PSS signature scheme object. + * + * There are several ways to provide a salt for encoding: + * + * 1. Specify the saltLength only and the built-in PRNG will generate it. + * 2. Specify the saltLength and a custom PRNG with 'getBytesSync' defined that + * will be used. + * 3. Specify the salt itself as a forge.util.ByteBuffer. + * + * @param options the options to use: + * md the message digest object to use, a forge md instance. + * mgf the mask generation function to use, a forge mgf instance. + * [saltLength] the length of the salt in octets. + * [prng] the pseudo-random number generator to use to produce a salt. + * [salt] the salt to use when encoding. + * + * @return a signature scheme object. + */ +pss.create = function(options) { + // backwards compatibility w/legacy args: hash, mgf, sLen + if(arguments.length === 3) { + options = { + md: arguments[0], + mgf: arguments[1], + saltLength: arguments[2] + }; + } + + var hash = options.md; + var mgf = options.mgf; + var hLen = hash.digestLength; + + var salt_ = options.salt || null; + if(typeof salt_ === 'string') { + // assume binary-encoded string + salt_ = forge.util.createBuffer(salt_); + } + + var sLen; + if('saltLength' in options) { + sLen = options.saltLength; + } else if(salt_ !== null) { + sLen = salt_.length(); + } else { + throw new Error('Salt length not specified or specific salt not given.'); + } + + if(salt_ !== null && salt_.length() !== sLen) { + throw new Error('Given salt length does not match length of given salt.'); + } + + var prng = options.prng || forge.random; + + var pssobj = {}; + + /** + * Encodes a PSS signature. + * + * This function implements EMSA-PSS-ENCODE as per RFC 3447, section 9.1.1. + * + * @param md the message digest object with the hash to sign. + * @param modsBits the length of the RSA modulus in bits. + * + * @return the encoded message as a binary-encoded string of length + * ceil((modBits - 1) / 8). + */ + pssobj.encode = function(md, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* 2. Let mHash = Hash(M), an octet string of length hLen. */ + var mHash = md.digest().getBytes(); + + /* 3. If emLen < hLen + sLen + 2, output "encoding error" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Message is too long to encrypt.'); + } + + /* 4. Generate a random octet string salt of length sLen; if sLen = 0, + * then salt is the empty string. */ + var salt; + if(salt_ === null) { + salt = prng.getBytesSync(sLen); + } else { + salt = salt_.bytes(); + } + + /* 5. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt; */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 6. Let H = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h = hash.digest().getBytes(); + + /* 7. Generate an octet string PS consisting of emLen - sLen - hLen - 2 + * zero octets. The length of PS may be 0. */ + var ps = new forge.util.ByteBuffer(); + ps.fillWithByte(0, emLen - sLen - hLen - 2); + + /* 8. Let DB = PS || 0x01 || salt; DB is an octet string of length + * emLen - hLen - 1. */ + ps.putByte(0x01); + ps.putBytes(salt); + var db = ps.getBytes(); + + /* 9. Let dbMask = MGF(H, emLen - hLen - 1). */ + var maskLen = emLen - hLen - 1; + var dbMask = mgf.generate(h, maskLen); + + /* 10. Let maskedDB = DB \xor dbMask. */ + var maskedDB = ''; + for(i = 0; i < maskLen; i++) { + maskedDB += String.fromCharCode(db.charCodeAt(i) ^ dbMask.charCodeAt(i)); + } + + /* 11. Set the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB to zero. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + maskedDB = String.fromCharCode(maskedDB.charCodeAt(0) & ~mask) + + maskedDB.substr(1); + + /* 12. Let EM = maskedDB || H || 0xbc. + * 13. Output EM. */ + return maskedDB + h + String.fromCharCode(0xbc); + }; + + /** + * Verifies a PSS signature. + * + * This function implements EMSA-PSS-VERIFY as per RFC 3447, section 9.1.2. + * + * @param mHash the message digest hash, as a binary-encoded string, to + * compare against the signature. + * @param em the encoded message, as a binary-encoded string + * (RSA decryption result). + * @param modsBits the length of the RSA modulus in bits. + * + * @return true if the signature was verified, false if not. + */ + pssobj.verify = function(mHash, em, modBits) { + var i; + var emBits = modBits - 1; + var emLen = Math.ceil(emBits / 8); + + /* c. Convert the message representative m to an encoded message EM + * of length emLen = ceil((modBits - 1) / 8) octets, where modBits + * is the length in bits of the RSA modulus n */ + em = em.substr(-emLen); + + /* 3. If emLen < hLen + sLen + 2, output "inconsistent" and stop. */ + if(emLen < hLen + sLen + 2) { + throw new Error('Inconsistent parameters to PSS signature verification.'); + } + + /* 4. If the rightmost octet of EM does not have hexadecimal value + * 0xbc, output "inconsistent" and stop. */ + if(em.charCodeAt(emLen - 1) !== 0xbc) { + throw new Error('Encoded message does not end in 0xBC.'); + } + + /* 5. Let maskedDB be the leftmost emLen - hLen - 1 octets of EM, and + * let H be the next hLen octets. */ + var maskLen = emLen - hLen - 1; + var maskedDB = em.substr(0, maskLen); + var h = em.substr(maskLen, hLen); + + /* 6. If the leftmost 8emLen - emBits bits of the leftmost octet in + * maskedDB are not all equal to zero, output "inconsistent" and stop. */ + var mask = (0xFF00 >> (8 * emLen - emBits)) & 0xFF; + if((maskedDB.charCodeAt(0) & mask) !== 0) { + throw new Error('Bits beyond keysize not zero as expected.'); + } + + /* 7. Let dbMask = MGF(H, emLen - hLen - 1). */ + var dbMask = mgf.generate(h, maskLen); + + /* 8. Let DB = maskedDB \xor dbMask. */ + var db = ''; + for(i = 0; i < maskLen; i++) { + db += String.fromCharCode(maskedDB.charCodeAt(i) ^ dbMask.charCodeAt(i)); + } + + /* 9. Set the leftmost 8emLen - emBits bits of the leftmost octet + * in DB to zero. */ + db = String.fromCharCode(db.charCodeAt(0) & ~mask) + db.substr(1); + + /* 10. If the emLen - hLen - sLen - 2 leftmost octets of DB are not zero + * or if the octet at position emLen - hLen - sLen - 1 (the leftmost + * position is "position 1") does not have hexadecimal value 0x01, + * output "inconsistent" and stop. */ + var checkLen = emLen - hLen - sLen - 2; + for(i = 0; i < checkLen; i++) { + if(db.charCodeAt(i) !== 0x00) { + throw new Error('Leftmost octets not zero as expected'); + } + } + + if(db.charCodeAt(checkLen) !== 0x01) { + throw new Error('Inconsistent PSS signature, 0x01 marker not found'); + } + + /* 11. Let salt be the last sLen octets of DB. */ + var salt = db.substr(-sLen); + + /* 12. Let M' = (0x)00 00 00 00 00 00 00 00 || mHash || salt */ + var m_ = new forge.util.ByteBuffer(); + m_.fillWithByte(0, 8); + m_.putBytes(mHash); + m_.putBytes(salt); + + /* 13. Let H' = Hash(M'), an octet string of length hLen. */ + hash.start(); + hash.update(m_.getBytes()); + var h_ = hash.digest().getBytes(); + + /* 14. If H = H', output "consistent." Otherwise, output "inconsistent." */ + return h === h_; + }; + + return pssobj; +}; + + +/***/ }), + +/***/ 61698: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * An API for getting cryptographically-secure random bytes. The bytes are + * generated using the Fortuna algorithm devised by Bruce Schneier and + * Niels Ferguson. + * + * Getting strong random bytes is not yet easy to do in javascript. The only + * truish random entropy that can be collected is from the mouse, keyboard, or + * from timing with respect to page loads, etc. This generator makes a poor + * attempt at providing random bytes when those sources haven't yet provided + * enough entropy to initially seed or to reseed the PRNG. + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(50160); +__nccwpck_require__(99376); +__nccwpck_require__(21726); + +(function() { + +// forge.random already defined +if(forge.random && forge.random.getBytes) { + module.exports = forge.random; + return; +} + +(function(jQuery) { + +// the default prng plugin, uses AES-128 +var prng_aes = {}; +var _prng_aes_output = new Array(4); +var _prng_aes_buffer = forge.util.createBuffer(); +prng_aes.formatKey = function(key) { + // convert the key into 32-bit integers + var tmp = forge.util.createBuffer(key); + key = new Array(4); + key[0] = tmp.getInt32(); + key[1] = tmp.getInt32(); + key[2] = tmp.getInt32(); + key[3] = tmp.getInt32(); + + // return the expanded key + return forge.aes._expandKey(key, false); +}; +prng_aes.formatSeed = function(seed) { + // convert seed into 32-bit integers + var tmp = forge.util.createBuffer(seed); + seed = new Array(4); + seed[0] = tmp.getInt32(); + seed[1] = tmp.getInt32(); + seed[2] = tmp.getInt32(); + seed[3] = tmp.getInt32(); + return seed; +}; +prng_aes.cipher = function(key, seed) { + forge.aes._updateBlock(key, seed, _prng_aes_output, false); + _prng_aes_buffer.putInt32(_prng_aes_output[0]); + _prng_aes_buffer.putInt32(_prng_aes_output[1]); + _prng_aes_buffer.putInt32(_prng_aes_output[2]); + _prng_aes_buffer.putInt32(_prng_aes_output[3]); + return _prng_aes_buffer.getBytes(); +}; +prng_aes.increment = function(seed) { + // FIXME: do we care about carry or signed issues? + ++seed[3]; + return seed; +}; +prng_aes.md = forge.md.sha256; + +/** + * Creates a new PRNG. + */ +function spawnPrng() { + var ctx = forge.prng.create(prng_aes); + + /** + * Gets random bytes. If a native secure crypto API is unavailable, this + * method tries to make the bytes more unpredictable by drawing from data that + * can be collected from the user of the browser, eg: mouse movement. + * + * If a callback is given, this method will be called asynchronously. + * + * @param count the number of random bytes to get. + * @param [callback(err, bytes)] called once the operation completes. + * + * @return the random bytes in a string. + */ + ctx.getBytes = function(count, callback) { + return ctx.generate(count, callback); + }; + + /** + * Gets random bytes asynchronously. If a native secure crypto API is + * unavailable, this method tries to make the bytes more unpredictable by + * drawing from data that can be collected from the user of the browser, + * eg: mouse movement. + * + * @param count the number of random bytes to get. + * + * @return the random bytes in a string. + */ + ctx.getBytesSync = function(count) { + return ctx.generate(count); + }; + + return ctx; +} + +// create default prng context +var _ctx = spawnPrng(); + +// add other sources of entropy only if window.crypto.getRandomValues is not +// available -- otherwise this source will be automatically used by the prng +var getRandomValues = null; +var globalScope = forge.util.globalScope; +var _crypto = globalScope.crypto || globalScope.msCrypto; +if(_crypto && _crypto.getRandomValues) { + getRandomValues = function(arr) { + return _crypto.getRandomValues(arr); + }; +} + +if(forge.options.usePureJavaScript || + (!forge.util.isNodejs && !getRandomValues)) { + // if this is a web worker, do not use weak entropy, instead register to + // receive strong entropy asynchronously from the main thread + if(typeof window === 'undefined' || window.document === undefined) { + // FIXME: + } + + // get load time entropy + _ctx.collectInt(+new Date(), 32); + + // add some entropy from navigator object + if(typeof(navigator) !== 'undefined') { + var _navBytes = ''; + for(var key in navigator) { + try { + if(typeof(navigator[key]) == 'string') { + _navBytes += navigator[key]; + } + } catch(e) { + /* Some navigator keys might not be accessible, e.g. the geolocation + attribute throws an exception if touched in Mozilla chrome:// + context. + + Silently ignore this and just don't use this as a source of + entropy. */ + } + } + _ctx.collect(_navBytes); + _navBytes = null; + } + + // add mouse and keyboard collectors if jquery is available + if(jQuery) { + // set up mouse entropy capture + jQuery().mousemove(function(e) { + // add mouse coords + _ctx.collectInt(e.clientX, 16); + _ctx.collectInt(e.clientY, 16); + }); + + // set up keyboard entropy capture + jQuery().keypress(function(e) { + _ctx.collectInt(e.charCode, 8); + }); + } +} + +/* Random API */ +if(!forge.random) { + forge.random = _ctx; +} else { + // extend forge.random with _ctx + for(var key in _ctx) { + forge.random[key] = _ctx[key]; + } +} + +// expose spawn PRNG +forge.random.createInstance = spawnPrng; + +module.exports = forge.random; + +})(typeof(jQuery) !== 'undefined' ? jQuery : null); + +})(); + + +/***/ }), + +/***/ 28196: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * RC2 implementation. + * + * @author Stefan Siegl + * + * Copyright (c) 2012 Stefan Siegl + * + * Information on the RC2 cipher is available from RFC #2268, + * http://www.ietf.org/rfc/rfc2268.txt + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(21726); + +var piTable = [ + 0xd9, 0x78, 0xf9, 0xc4, 0x19, 0xdd, 0xb5, 0xed, 0x28, 0xe9, 0xfd, 0x79, 0x4a, 0xa0, 0xd8, 0x9d, + 0xc6, 0x7e, 0x37, 0x83, 0x2b, 0x76, 0x53, 0x8e, 0x62, 0x4c, 0x64, 0x88, 0x44, 0x8b, 0xfb, 0xa2, + 0x17, 0x9a, 0x59, 0xf5, 0x87, 0xb3, 0x4f, 0x13, 0x61, 0x45, 0x6d, 0x8d, 0x09, 0x81, 0x7d, 0x32, + 0xbd, 0x8f, 0x40, 0xeb, 0x86, 0xb7, 0x7b, 0x0b, 0xf0, 0x95, 0x21, 0x22, 0x5c, 0x6b, 0x4e, 0x82, + 0x54, 0xd6, 0x65, 0x93, 0xce, 0x60, 0xb2, 0x1c, 0x73, 0x56, 0xc0, 0x14, 0xa7, 0x8c, 0xf1, 0xdc, + 0x12, 0x75, 0xca, 0x1f, 0x3b, 0xbe, 0xe4, 0xd1, 0x42, 0x3d, 0xd4, 0x30, 0xa3, 0x3c, 0xb6, 0x26, + 0x6f, 0xbf, 0x0e, 0xda, 0x46, 0x69, 0x07, 0x57, 0x27, 0xf2, 0x1d, 0x9b, 0xbc, 0x94, 0x43, 0x03, + 0xf8, 0x11, 0xc7, 0xf6, 0x90, 0xef, 0x3e, 0xe7, 0x06, 0xc3, 0xd5, 0x2f, 0xc8, 0x66, 0x1e, 0xd7, + 0x08, 0xe8, 0xea, 0xde, 0x80, 0x52, 0xee, 0xf7, 0x84, 0xaa, 0x72, 0xac, 0x35, 0x4d, 0x6a, 0x2a, + 0x96, 0x1a, 0xd2, 0x71, 0x5a, 0x15, 0x49, 0x74, 0x4b, 0x9f, 0xd0, 0x5e, 0x04, 0x18, 0xa4, 0xec, + 0xc2, 0xe0, 0x41, 0x6e, 0x0f, 0x51, 0xcb, 0xcc, 0x24, 0x91, 0xaf, 0x50, 0xa1, 0xf4, 0x70, 0x39, + 0x99, 0x7c, 0x3a, 0x85, 0x23, 0xb8, 0xb4, 0x7a, 0xfc, 0x02, 0x36, 0x5b, 0x25, 0x55, 0x97, 0x31, + 0x2d, 0x5d, 0xfa, 0x98, 0xe3, 0x8a, 0x92, 0xae, 0x05, 0xdf, 0x29, 0x10, 0x67, 0x6c, 0xba, 0xc9, + 0xd3, 0x00, 0xe6, 0xcf, 0xe1, 0x9e, 0xa8, 0x2c, 0x63, 0x16, 0x01, 0x3f, 0x58, 0xe2, 0x89, 0xa9, + 0x0d, 0x38, 0x34, 0x1b, 0xab, 0x33, 0xff, 0xb0, 0xbb, 0x48, 0x0c, 0x5f, 0xb9, 0xb1, 0xcd, 0x2e, + 0xc5, 0xf3, 0xdb, 0x47, 0xe5, 0xa5, 0x9c, 0x77, 0x0a, 0xa6, 0x20, 0x68, 0xfe, 0x7f, 0xc1, 0xad +]; + +var s = [1, 2, 3, 5]; + +/** + * Rotate a word left by given number of bits. + * + * Bits that are shifted out on the left are put back in on the right + * hand side. + * + * @param word The word to shift left. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var rol = function(word, bits) { + return ((word << bits) & 0xffff) | ((word & 0xffff) >> (16 - bits)); +}; + +/** + * Rotate a word right by given number of bits. + * + * Bits that are shifted out on the right are put back in on the left + * hand side. + * + * @param word The word to shift right. + * @param bits The number of bits to shift by. + * @return The rotated word. + */ +var ror = function(word, bits) { + return ((word & 0xffff) >> bits) | ((word << (16 - bits)) & 0xffff); +}; + +/* RC2 API */ +module.exports = forge.rc2 = forge.rc2 || {}; + +/** + * Perform RC2 key expansion as per RFC #2268, section 2. + * + * @param key variable-length user key (between 1 and 128 bytes) + * @param effKeyBits number of effective key bits (default: 128) + * @return the expanded RC2 key (ByteBuffer of 128 bytes) + */ +forge.rc2.expandKey = function(key, effKeyBits) { + if(typeof key === 'string') { + key = forge.util.createBuffer(key); + } + effKeyBits = effKeyBits || 128; + + /* introduce variables that match the names used in RFC #2268 */ + var L = key; + var T = key.length(); + var T1 = effKeyBits; + var T8 = Math.ceil(T1 / 8); + var TM = 0xff >> (T1 & 0x07); + var i; + + for(i = T; i < 128; i++) { + L.putByte(piTable[(L.at(i - 1) + L.at(i - T)) & 0xff]); + } + + L.setAt(128 - T8, piTable[L.at(128 - T8) & TM]); + + for(i = 127 - T8; i >= 0; i--) { + L.setAt(i, piTable[L.at(i + 1) ^ L.at(i + T8)]); + } + + return L; +}; + +/** + * Creates a RC2 cipher object. + * + * @param key the symmetric key to use (as base for key generation). + * @param bits the number of effective key bits. + * @param encrypt false for decryption, true for encryption. + * + * @return the cipher. + */ +var createCipher = function(key, bits, encrypt) { + var _finish = false, _input = null, _output = null, _iv = null; + var mixRound, mashRound; + var i, j, K = []; + + /* Expand key and fill into K[] Array */ + key = forge.rc2.expandKey(key, bits); + for(i = 0; i < 64; i++) { + K.push(key.getInt16Le()); + } + + if(encrypt) { + /** + * Perform one mixing round "in place". + * + * @param R Array of four words to perform mixing on. + */ + mixRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + R[i] = rol(R[i], s[i]); + j++; + } + }; + + /** + * Perform one mashing round "in place". + * + * @param R Array of four words to perform mashing on. + */ + mashRound = function(R) { + for(i = 0; i < 4; i++) { + R[i] += K[R[(i + 3) % 4] & 63]; + } + }; + } else { + /** + * Perform one r-mixing round "in place". + * + * @param R Array of four words to perform mixing on. + */ + mixRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] = ror(R[i], s[i]); + R[i] -= K[j] + (R[(i + 3) % 4] & R[(i + 2) % 4]) + + ((~R[(i + 3) % 4]) & R[(i + 1) % 4]); + j--; + } + }; + + /** + * Perform one r-mashing round "in place". + * + * @param R Array of four words to perform mashing on. + */ + mashRound = function(R) { + for(i = 3; i >= 0; i--) { + R[i] -= K[R[(i + 3) % 4] & 63]; + } + }; + } + + /** + * Run the specified cipher execution plan. + * + * This function takes four words from the input buffer, applies the IV on + * it (if requested) and runs the provided execution plan. + * + * The plan must be put together in form of a array of arrays. Where the + * outer one is simply a list of steps to perform and the inner one needs + * to have two elements: the first one telling how many rounds to perform, + * the second one telling what to do (i.e. the function to call). + * + * @param {Array} plan The plan to execute. + */ + var runPlan = function(plan) { + var R = []; + + /* Get data from input buffer and fill the four words into R */ + for(i = 0; i < 4; i++) { + var val = _input.getInt16Le(); + + if(_iv !== null) { + if(encrypt) { + /* We're encrypting, apply the IV first. */ + val ^= _iv.getInt16Le(); + } else { + /* We're decryption, keep cipher text for next block. */ + _iv.putInt16Le(val); + } + } + + R.push(val & 0xffff); + } + + /* Reset global "j" variable as per spec. */ + j = encrypt ? 0 : 63; + + /* Run execution plan. */ + for(var ptr = 0; ptr < plan.length; ptr++) { + for(var ctr = 0; ctr < plan[ptr][0]; ctr++) { + plan[ptr][1](R); + } + } + + /* Write back result to output buffer. */ + for(i = 0; i < 4; i++) { + if(_iv !== null) { + if(encrypt) { + /* We're encrypting in CBC-mode, feed back encrypted bytes into + IV buffer to carry it forward to next block. */ + _iv.putInt16Le(R[i]); + } else { + R[i] ^= _iv.getInt16Le(); + } + } + + _output.putInt16Le(R[i]); + } + }; + + /* Create cipher object */ + var cipher = null; + cipher = { + /** + * Starts or restarts the encryption or decryption process, whichever + * was previously configured. + * + * To use the cipher in CBC mode, iv may be given either as a string + * of bytes, or as a byte buffer. For ECB mode, give null as iv. + * + * @param iv the initialization vector to use, null for ECB mode. + * @param output the output the buffer to write to, null to create one. + */ + start: function(iv, output) { + if(iv) { + /* CBC mode */ + if(typeof iv === 'string') { + iv = forge.util.createBuffer(iv); + } + } + + _finish = false; + _input = forge.util.createBuffer(); + _output = output || new forge.util.createBuffer(); + _iv = iv; + + cipher.output = _output; + }, + + /** + * Updates the next block. + * + * @param input the buffer to read from. + */ + update: function(input) { + if(!_finish) { + // not finishing, so fill the input buffer with more input + _input.putBuffer(input); + } + + while(_input.length() >= 8) { + runPlan([ + [ 5, mixRound ], + [ 1, mashRound ], + [ 6, mixRound ], + [ 1, mashRound ], + [ 5, mixRound ] + ]); + } + }, + + /** + * Finishes encrypting or decrypting. + * + * @param pad a padding function to use, null for PKCS#7 padding, + * signature(blockSize, buffer, decrypt). + * + * @return true if successful, false on error. + */ + finish: function(pad) { + var rval = true; + + if(encrypt) { + if(pad) { + rval = pad(8, _input, !encrypt); + } else { + // add PKCS#7 padding to block (each pad byte is the + // value of the number of pad bytes) + var padding = (_input.length() === 8) ? 8 : (8 - _input.length()); + _input.fillWithByte(padding, padding); + } + } + + if(rval) { + // do final update + _finish = true; + cipher.update(); + } + + if(!encrypt) { + // check for error: input data not a multiple of block size + rval = (_input.length() === 0); + if(rval) { + if(pad) { + rval = pad(8, _output, !encrypt); + } else { + // ensure padding byte count is valid + var len = _output.length(); + var count = _output.at(len - 1); + + if(count > len) { + rval = false; + } else { + // trim off padding bytes + _output.truncate(count); + } + } + } + } + + return rval; + } + }; + + return cipher; +}; + +/** + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. + */ +forge.rc2.startEncrypting = function(key, iv, output) { + var cipher = forge.rc2.createEncryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + +/** + * Creates an RC2 cipher object to encrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start encrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. + */ +forge.rc2.createEncryptionCipher = function(key, bits) { + return createCipher(key, bits, true); +}; + +/** + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. The output will be stored in the 'output' member + * of the returned cipher. + * + * The key and iv may be given as a string of bytes or a byte buffer. + * The cipher is initialized to use 128 effective key bits. + * + * @param key the symmetric key to use. + * @param iv the initialization vector to use. + * @param output the buffer to write to, null to create one. + * + * @return the cipher. + */ +forge.rc2.startDecrypting = function(key, iv, output) { + var cipher = forge.rc2.createDecryptionCipher(key, 128); + cipher.start(iv, output); + return cipher; +}; + +/** + * Creates an RC2 cipher object to decrypt data in ECB or CBC mode using the + * given symmetric key. + * + * The key may be given as a string of bytes or a byte buffer. + * + * To start decrypting call start() on the cipher with an iv and optional + * output buffer. + * + * @param key the symmetric key to use. + * + * @return the cipher. + */ +forge.rc2.createDecryptionCipher = function(key, bits) { + return createCipher(key, bits, false); +}; + + +/***/ }), + +/***/ 12343: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of basic RSA algorithms. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The only algorithm currently supported for PKI is RSA. + * + * An RSA key is often stored in ASN.1 DER format. The SubjectPublicKeyInfo + * ASN.1 structure is composed of an algorithm of type AlgorithmIdentifier + * and a subjectPublicKey of type bit string. + * + * The AlgorithmIdentifier contains an Object Identifier (OID) and parameters + * for the algorithm, if any. In the case of RSA, there aren't any. + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * For an RSA public key, the subjectPublicKey is: + * + * RSAPublicKey ::= SEQUENCE { + * modulus INTEGER, -- n + * publicExponent INTEGER -- e + * } + * + * PrivateKeyInfo ::= SEQUENCE { + * version Version, + * privateKeyAlgorithm PrivateKeyAlgorithmIdentifier, + * privateKey PrivateKey, + * attributes [0] IMPLICIT Attributes OPTIONAL + * } + * + * Version ::= INTEGER + * PrivateKeyAlgorithmIdentifier ::= AlgorithmIdentifier + * PrivateKey ::= OCTET STRING + * Attributes ::= SET OF Attribute + * + * An RSA private key as the following structure: + * + * RSAPrivateKey ::= SEQUENCE { + * version Version, + * modulus INTEGER, -- n + * publicExponent INTEGER, -- e + * privateExponent INTEGER, -- d + * prime1 INTEGER, -- p + * prime2 INTEGER, -- q + * exponent1 INTEGER, -- d mod (p-1) + * exponent2 INTEGER, -- d mod (q-1) + * coefficient INTEGER -- (inverse of q) mod p + * } + * + * Version ::= INTEGER + * + * The OID for the RSA key algorithm is: 1.2.840.113549.1.1.1 + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +__nccwpck_require__(59368); +__nccwpck_require__(91658); +__nccwpck_require__(59163); +__nccwpck_require__(55505); +__nccwpck_require__(61698); +__nccwpck_require__(21726); + +if(typeof BigInteger === 'undefined') { + var BigInteger = forge.jsbn.BigInteger; +} + +var _crypto = forge.util.isNodejs ? __nccwpck_require__(6113) : null; + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +// shortcut for util API +var util = forge.util; + +/* + * RSA encryption and decryption, see RFC 2313. + */ +forge.pki = forge.pki || {}; +module.exports = forge.pki.rsa = forge.rsa = forge.rsa || {}; +var pki = forge.pki; + +// for finding primes, which are 30k+i for i = 1, 7, 11, 13, 17, 19, 23, 29 +var GCD_30_DELTA = [6, 4, 2, 4, 2, 4, 6, 2]; + +// validator for a PrivateKeyInfo structure +var privateKeyValidator = { + // PrivateKeyInfo + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'PrivateKeyInfo.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // privateKeyAlgorithm + name: 'PrivateKeyInfo.privateKeyAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'privateKeyOid' + }] + }, { + // PrivateKey + name: 'PrivateKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OCTETSTRING, + constructed: false, + capture: 'privateKey' + }] +}; + +// validator for an RSA private key +var rsaPrivateKeyValidator = { + // RSAPrivateKey + name: 'RSAPrivateKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // Version (INTEGER) + name: 'RSAPrivateKey.version', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyVersion' + }, { + // modulus (n) + name: 'RSAPrivateKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPrivateKey.publicExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPublicExponent' + }, { + // privateExponent (d) + name: 'RSAPrivateKey.privateExponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrivateExponent' + }, { + // prime1 (p) + name: 'RSAPrivateKey.prime1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime1' + }, { + // prime2 (q) + name: 'RSAPrivateKey.prime2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyPrime2' + }, { + // exponent1 (d mod (p-1)) + name: 'RSAPrivateKey.exponent1', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent1' + }, { + // exponent2 (d mod (q-1)) + name: 'RSAPrivateKey.exponent2', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyExponent2' + }, { + // coefficient ((inverse of q) mod p) + name: 'RSAPrivateKey.coefficient', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'privateKeyCoefficient' + }] +}; + +// validator for an RSA public key +var rsaPublicKeyValidator = { + // RSAPublicKey + name: 'RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // modulus (n) + name: 'RSAPublicKey.modulus', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyModulus' + }, { + // publicExponent (e) + name: 'RSAPublicKey.exponent', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'publicKeyExponent' + }] +}; + +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator = { + name: 'SubjectPublicKeyInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'subjectPublicKeyInfo', + value: [{ + name: 'SubjectPublicKeyInfo.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'publicKeyOid' + }] + }, { + // subjectPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + value: [{ + // RSAPublicKey + name: 'SubjectPublicKeyInfo.subjectPublicKey.RSAPublicKey', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + optional: true, + captureAsn1: 'rsaPublicKey' + }] + }] +}; + +/** + * Wrap digest in DigestInfo object. + * + * This function implements EMSA-PKCS1-v1_5-ENCODE as per RFC 3447. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * @param md the message digest object with the hash to sign. + * + * @return the encoded message (ready for RSA encrytion) + */ +var emsaPkcs1v15encode = function(md) { + // get the oid for the algorithm + var oid; + if(md.algorithm in pki.oids) { + oid = pki.oids[md.algorithm]; + } else { + var error = new Error('Unknown message digest algorithm.'); + error.algorithm = md.algorithm; + throw error; + } + var oidBytes = asn1.oidToDer(oid).getBytes(); + + // create the digest info + var digestInfo = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var digestAlgorithm = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, oidBytes)); + digestAlgorithm.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '')); + var digest = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, + false, md.digest().getBytes()); + digestInfo.value.push(digestAlgorithm); + digestInfo.value.push(digest); + + // encode digest info + return asn1.toDer(digestInfo).getBytes(); +}; + +/** + * Performs x^c mod n (RSA encryption or decryption operation). + * + * @param x the number to raise and mod. + * @param key the key to use. + * @param pub true if the key is public, false if private. + * + * @return the result of x^c mod n. + */ +var _modPow = function(x, key, pub) { + if(pub) { + return x.modPow(key.e, key.n); + } + + if(!key.p || !key.q) { + // allow calculation without CRT params (slow) + return x.modPow(key.d, key.n); + } + + // pre-compute dP, dQ, and qInv if necessary + if(!key.dP) { + key.dP = key.d.mod(key.p.subtract(BigInteger.ONE)); + } + if(!key.dQ) { + key.dQ = key.d.mod(key.q.subtract(BigInteger.ONE)); + } + if(!key.qInv) { + key.qInv = key.q.modInverse(key.p); + } + + /* Chinese remainder theorem (CRT) states: + + Suppose n1, n2, ..., nk are positive integers which are pairwise + coprime (n1 and n2 have no common factors other than 1). For any + integers x1, x2, ..., xk there exists an integer x solving the + system of simultaneous congruences (where ~= means modularly + congruent so a ~= b mod n means a mod n = b mod n): + + x ~= x1 mod n1 + x ~= x2 mod n2 + ... + x ~= xk mod nk + + This system of congruences has a single simultaneous solution x + between 0 and n - 1. Furthermore, each xk solution and x itself + is congruent modulo the product n = n1*n2*...*nk. + So x1 mod n = x2 mod n = xk mod n = x mod n. + + The single simultaneous solution x can be solved with the following + equation: + + x = sum(xi*ri*si) mod n where ri = n/ni and si = ri^-1 mod ni. + + Where x is less than n, xi = x mod ni. + + For RSA we are only concerned with k = 2. The modulus n = pq, where + p and q are coprime. The RSA decryption algorithm is: + + y = x^d mod n + + Given the above: + + x1 = x^d mod p + r1 = n/p = q + s1 = q^-1 mod p + x2 = x^d mod q + r2 = n/q = p + s2 = p^-1 mod q + + So y = (x1r1s1 + x2r2s2) mod n + = ((x^d mod p)q(q^-1 mod p) + (x^d mod q)p(p^-1 mod q)) mod n + + According to Fermat's Little Theorem, if the modulus P is prime, + for any integer A not evenly divisible by P, A^(P-1) ~= 1 mod P. + Since A is not divisible by P it follows that if: + N ~= M mod (P - 1), then A^N mod P = A^M mod P. Therefore: + + A^N mod P = A^(M mod (P - 1)) mod P. (The latter takes less effort + to calculate). In order to calculate x^d mod p more quickly the + exponent d mod (p - 1) is stored in the RSA private key (the same + is done for x^d mod q). These values are referred to as dP and dQ + respectively. Therefore we now have: + + y = ((x^dP mod p)q(q^-1 mod p) + (x^dQ mod q)p(p^-1 mod q)) mod n + + Since we'll be reducing x^dP by modulo p (same for q) we can also + reduce x by p (and q respectively) before hand. Therefore, let + + xp = ((x mod p)^dP mod p), and + xq = ((x mod q)^dQ mod q), yielding: + + y = (xp*q*(q^-1 mod p) + xq*p*(p^-1 mod q)) mod n + + This can be further reduced to a simple algorithm that only + requires 1 inverse (the q inverse is used) to be used and stored. + The algorithm is called Garner's algorithm. If qInv is the + inverse of q, we simply calculate: + + y = (qInv*(xp - xq) mod p) * q + xq + + However, there are two further complications. First, we need to + ensure that xp > xq to prevent signed BigIntegers from being used + so we add p until this is true (since we will be mod'ing with + p anyway). Then, there is a known timing attack on algorithms + using the CRT. To mitigate this risk, "cryptographic blinding" + should be used. This requires simply generating a random number r + between 0 and n-1 and its inverse and multiplying x by r^e before + calculating y and then multiplying y by r^-1 afterwards. Note that + r must be coprime with n (gcd(r, n) === 1) in order to have an + inverse. + */ + + // cryptographic blinding + var r; + do { + r = new BigInteger( + forge.util.bytesToHex(forge.random.getBytes(key.n.bitLength() / 8)), + 16); + } while(r.compareTo(key.n) >= 0 || !r.gcd(key.n).equals(BigInteger.ONE)); + x = x.multiply(r.modPow(key.e, key.n)).mod(key.n); + + // calculate xp and xq + var xp = x.mod(key.p).modPow(key.dP, key.p); + var xq = x.mod(key.q).modPow(key.dQ, key.q); + + // xp must be larger than xq to avoid signed bit usage + while(xp.compareTo(xq) < 0) { + xp = xp.add(key.p); + } + + // do last step + var y = xp.subtract(xq) + .multiply(key.qInv).mod(key.p) + .multiply(key.q).add(xq); + + // remove effect of random for cryptographic blinding + y = y.multiply(r.modInverse(key.n)).mod(key.n); + + return y; +}; + +/** + * NOTE: THIS METHOD IS DEPRECATED, use 'sign' on a private key object or + * 'encrypt' on a public key object instead. + * + * Performs RSA encryption. + * + * The parameter bt controls whether to put padding bytes before the + * message passed in. Set bt to either true or false to disable padding + * completely (in order to handle e.g. EMSA-PSS encoding seperately before), + * signaling whether the encryption operation is a public key operation + * (i.e. encrypting data) or not, i.e. private key operation (data signing). + * + * For PKCS#1 v1.5 padding pass in the block type to use, i.e. either 0x01 + * (for signing) or 0x02 (for encryption). The key operation mode (private + * or public) is derived from this flag in that case). + * + * @param m the message to encrypt as a byte string. + * @param key the RSA key to use. + * @param bt for PKCS#1 v1.5 padding, the block type to use + * (0x01 for private key, 0x02 for public), + * to disable padding: true = public key, false = private key. + * + * @return the encrypted bytes as a string. + */ +pki.rsa.encrypt = function(m, key, bt) { + var pub = bt; + var eb; + + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + if(bt !== false && bt !== true) { + // legacy, default to PKCS#1 v1.5 padding + pub = (bt === 0x02); + eb = _encodePkcs1_v1_5(m, key, bt); + } else { + eb = forge.util.createBuffer(); + eb.putBytes(m); + } + + // load encryption block as big integer 'x' + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var x = new BigInteger(eb.toHex(), 16); + + // do RSA encryption + var y = _modPow(x, key, pub); + + // convert y into the encrypted data byte string, if y is shorter in + // bytes than k, then prepend zero bytes to fill up ed + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var yhex = y.toString(16); + var ed = forge.util.createBuffer(); + var zeros = k - Math.ceil(yhex.length / 2); + while(zeros > 0) { + ed.putByte(0x00); + --zeros; + } + ed.putBytes(forge.util.hexToBytes(yhex)); + return ed.getBytes(); +}; + +/** + * NOTE: THIS METHOD IS DEPRECATED, use 'decrypt' on a private key object or + * 'verify' on a public key object instead. + * + * Performs RSA decryption. + * + * The parameter ml controls whether to apply PKCS#1 v1.5 padding + * or not. Set ml = false to disable padding removal completely + * (in order to handle e.g. EMSA-PSS later on) and simply pass back + * the RSA encryption block. + * + * @param ed the encrypted data to decrypt in as a byte string. + * @param key the RSA key to use. + * @param pub true for a public key operation, false for private. + * @param ml the message length, if known, false to disable padding. + * + * @return the decrypted message as a byte string. + */ +pki.rsa.decrypt = function(ed, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + // error if the length of the encrypted data ED is not k + if(ed.length !== k) { + var error = new Error('Encrypted message length is invalid.'); + error.length = ed.length; + error.expected = k; + throw error; + } + + // convert encrypted data into a big integer + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var y = new BigInteger(forge.util.createBuffer(ed).toHex(), 16); + + // y must be less than the modulus or it wasn't the result of + // a previous mod operation (encryption) using that modulus + if(y.compareTo(key.n) >= 0) { + throw new Error('Encrypted message is invalid.'); + } + + // do RSA decryption + var x = _modPow(y, key, pub); + + // create the encryption block, if x is shorter in bytes than k, then + // prepend zero bytes to fill up eb + // FIXME: hex conversion inefficient, get BigInteger w/byte strings + var xhex = x.toString(16); + var eb = forge.util.createBuffer(); + var zeros = k - Math.ceil(xhex.length / 2); + while(zeros > 0) { + eb.putByte(0x00); + --zeros; + } + eb.putBytes(forge.util.hexToBytes(xhex)); + + if(ml !== false) { + // legacy, default to PKCS#1 v1.5 padding + return _decodePkcs1_v1_5(eb.getBytes(), key, pub); + } + + // return message + return eb.getBytes(); +}; + +/** + * Creates an RSA key-pair generation state object. It is used to allow + * key-generation to be performed in steps. It also allows for a UI to + * display progress updates. + * + * @param bits the size for the private key in bits, defaults to 2048. + * @param e the public exponent to use, defaults to 65537 (0x10001). + * @param [options] the options to use. + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". + * algorithm the algorithm to use (default: 'PRIMEINC'). + * + * @return the state object to use to generate the key-pair. + */ +pki.rsa.createKeyPairGenerationState = function(bits, e, options) { + // TODO: migrate step-based prime generation code to forge.prime + + // set default bits + if(typeof(bits) === 'string') { + bits = parseInt(bits, 10); + } + bits = bits || 2048; + + // create prng with api that matches BigInteger secure random + options = options || {}; + var prng = options.prng || forge.random; + var rng = { + // x is an array to fill with bytes + nextBytes: function(x) { + var b = prng.getBytesSync(x.length); + for(var i = 0; i < x.length; ++i) { + x[i] = b.charCodeAt(i); + } + } + }; + + var algorithm = options.algorithm || 'PRIMEINC'; + + // create PRIMEINC algorithm state + var rval; + if(algorithm === 'PRIMEINC') { + rval = { + algorithm: algorithm, + state: 0, + bits: bits, + rng: rng, + eInt: e || 65537, + e: new BigInteger(null), + p: null, + q: null, + qBits: bits >> 1, + pBits: bits - (bits >> 1), + pqState: 0, + num: null, + keys: null + }; + rval.e.fromInt(rval.eInt); + } else { + throw new Error('Invalid key generation algorithm: ' + algorithm); + } + + return rval; +}; + +/** + * Attempts to runs the key-generation algorithm for at most n seconds + * (approximately) using the given state. When key-generation has completed, + * the keys will be stored in state.keys. + * + * To use this function to update a UI while generating a key or to prevent + * causing browser lockups/warnings, set "n" to a value other than 0. A + * simple pattern for generating a key and showing a progress indicator is: + * + * var state = pki.rsa.createKeyPairGenerationState(2048); + * var step = function() { + * // step key-generation, run algorithm for 100 ms, repeat + * if(!forge.pki.rsa.stepKeyPairGenerationState(state, 100)) { + * setTimeout(step, 1); + * } else { + * // key-generation complete + * // TODO: turn off progress indicator here + * // TODO: use the generated key-pair in "state.keys" + * } + * }; + * // TODO: turn on progress indicator here + * setTimeout(step, 0); + * + * @param state the state to use. + * @param n the maximum number of milliseconds to run the algorithm for, 0 + * to run the algorithm to completion. + * + * @return true if the key-generation completed, false if not. + */ +pki.rsa.stepKeyPairGenerationState = function(state, n) { + // set default algorithm if not set + if(!('algorithm' in state)) { + state.algorithm = 'PRIMEINC'; + } + + // TODO: migrate step-based prime generation code to forge.prime + // TODO: abstract as PRIMEINC algorithm + + // do key generation (based on Tom Wu's rsa.js, see jsbn.js license) + // with some minor optimizations and designed to run in steps + + // local state vars + var THIRTY = new BigInteger(null); + THIRTY.fromInt(30); + var deltaIdx = 0; + var op_or = function(x, y) {return x | y;}; + + // keep stepping until time limit is reached or done + var t1 = +new Date(); + var t2; + var total = 0; + while(state.keys === null && (n <= 0 || total < n)) { + // generate p or q + if(state.state === 0) { + /* Note: All primes are of the form: + + 30k+i, for i < 30 and gcd(30, i)=1, where there are 8 values for i + + When we generate a random number, we always align it at 30k + 1. Each + time the number is determined not to be prime we add to get to the + next 'i', eg: if the number was at 30k + 1 we add 6. */ + var bits = (state.p === null) ? state.pBits : state.qBits; + var bits1 = bits - 1; + + // get a random number + if(state.pqState === 0) { + state.num = new BigInteger(bits, state.rng); + // force MSB set + if(!state.num.testBit(bits1)) { + state.num.bitwiseTo( + BigInteger.ONE.shiftLeft(bits1), op_or, state.num); + } + // align number on 30k+1 boundary + state.num.dAddOffset(31 - state.num.mod(THIRTY).byteValue(), 0); + deltaIdx = 0; + + ++state.pqState; + } else if(state.pqState === 1) { + // try to make the number a prime + if(state.num.bitLength() > bits) { + // overflow, try again + state.pqState = 0; + // do primality test + } else if(state.num.isProbablePrime( + _getMillerRabinTests(state.num.bitLength()))) { + ++state.pqState; + } else { + // get next potential prime + state.num.dAddOffset(GCD_30_DELTA[deltaIdx++ % 8], 0); + } + } else if(state.pqState === 2) { + // ensure number is coprime with e + state.pqState = + (state.num.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) === 0) ? 3 : 0; + } else if(state.pqState === 3) { + // store p or q + state.pqState = 0; + if(state.p === null) { + state.p = state.num; + } else { + state.q = state.num; + } + + // advance state if both p and q are ready + if(state.p !== null && state.q !== null) { + ++state.state; + } + state.num = null; + } + } else if(state.state === 1) { + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + state.num = state.p; + state.p = state.q; + state.q = state.num; + } + ++state.state; + } else if(state.state === 2) { + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); + ++state.state; + } else if(state.state === 3) { + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) === 0) { + // phi and e are coprime, advance + ++state.state; + } else { + // phi and e aren't coprime, so generate a new p and q + state.p = null; + state.q = null; + state.state = 0; + } + } else if(state.state === 4) { + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); + + // ensure n is right number of bits + if(state.n.bitLength() === state.bits) { + // success, advance + ++state.state; + } else { + // failed, get new q + state.q = null; + state.state = 0; + } + } else if(state.state === 5) { + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; + } + + // update timing + t2 = +new Date(); + total += t2 - t1; + t1 = t2; + } + + return state.keys !== null; +}; + +/** + * Generates an RSA public-private key pair in a single call. + * + * To generate a key-pair in steps (to allow for progress updates and to + * prevent blocking or warnings in slow browsers) then use the key-pair + * generation state functions. + * + * To generate a key-pair asynchronously (either through web-workers, if + * available, or by breaking up the work on the main thread), pass a + * callback function. + * + * @param [bits] the size for the private key in bits, defaults to 2048. + * @param [e] the public exponent to use, defaults to 65537. + * @param [options] options for key-pair generation, if given then 'bits' + * and 'e' must *not* be given: + * bits the size for the private key in bits, (default: 2048). + * e the public exponent to use, (default: 65537 (0x10001)). + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * prng a custom crypto-secure pseudo-random number generator to use, + * that must define "getBytesSync". Disables use of native APIs. + * algorithm the algorithm to use (default: 'PRIMEINC'). + * @param [callback(err, keypair)] called once the operation completes. + * + * @return an object with privateKey and publicKey properties. + */ +pki.rsa.generateKeyPair = function(bits, e, options, callback) { + // (bits), (options), (callback) + if(arguments.length === 1) { + if(typeof bits === 'object') { + options = bits; + bits = undefined; + } else if(typeof bits === 'function') { + callback = bits; + bits = undefined; + } + } else if(arguments.length === 2) { + // (bits, e), (bits, options), (bits, callback), (options, callback) + if(typeof bits === 'number') { + if(typeof e === 'function') { + callback = e; + e = undefined; + } else if(typeof e !== 'number') { + options = e; + e = undefined; + } + } else { + options = bits; + callback = e; + bits = undefined; + e = undefined; + } + } else if(arguments.length === 3) { + // (bits, e, options), (bits, e, callback), (bits, options, callback) + if(typeof e === 'number') { + if(typeof options === 'function') { + callback = options; + options = undefined; + } + } else { + callback = options; + options = e; + e = undefined; + } + } + options = options || {}; + if(bits === undefined) { + bits = options.bits || 2048; + } + if(e === undefined) { + e = options.e || 0x10001; + } + + // use native code if permitted, available, and parameters are acceptable + if(!forge.options.usePureJavaScript && !options.prng && + bits >= 256 && bits <= 16384 && (e === 0x10001 || e === 3)) { + if(callback) { + // try native async + if(_detectNodeCrypto('generateKeyPair')) { + return _crypto.generateKeyPair('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }, function(err, pub, priv) { + if(err) { + return callback(err); + } + callback(null, { + privateKey: pki.privateKeyFromPem(priv), + publicKey: pki.publicKeyFromPem(pub) + }); + }); + } + if(_detectSubtleCrypto('generateKey') && + _detectSubtleCrypto('exportKey')) { + // use standard native generateKey + return util.globalScope.crypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']) + .then(function(pair) { + return util.globalScope.crypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + // avoiding catch(function(err) {...}) to support IE <= 8 + }).then(undefined, function(err) { + callback(err); + }).then(function(pkcs8) { + if(pkcs8) { + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + } + }); + } + if(_detectSubtleMsCrypto('generateKey') && + _detectSubtleMsCrypto('exportKey')) { + var genOp = util.globalScope.msCrypto.subtle.generateKey({ + name: 'RSASSA-PKCS1-v1_5', + modulusLength: bits, + publicExponent: _intToUint8Array(e), + hash: {name: 'SHA-256'} + }, true /* key can be exported*/, ['sign', 'verify']); + genOp.oncomplete = function(e) { + var pair = e.target.result; + var exportOp = util.globalScope.msCrypto.subtle.exportKey( + 'pkcs8', pair.privateKey); + exportOp.oncomplete = function(e) { + var pkcs8 = e.target.result; + var privateKey = pki.privateKeyFromAsn1( + asn1.fromDer(forge.util.createBuffer(pkcs8))); + callback(null, { + privateKey: privateKey, + publicKey: pki.setRsaPublicKey(privateKey.n, privateKey.e) + }); + }; + exportOp.onerror = function(err) { + callback(err); + }; + }; + genOp.onerror = function(err) { + callback(err); + }; + return; + } + } else { + // try native sync + if(_detectNodeCrypto('generateKeyPairSync')) { + var keypair = _crypto.generateKeyPairSync('rsa', { + modulusLength: bits, + publicExponent: e, + publicKeyEncoding: { + type: 'spki', + format: 'pem' + }, + privateKeyEncoding: { + type: 'pkcs8', + format: 'pem' + } + }); + return { + privateKey: pki.privateKeyFromPem(keypair.privateKey), + publicKey: pki.publicKeyFromPem(keypair.publicKey) + }; + } + } + } + + // use JavaScript implementation + var state = pki.rsa.createKeyPairGenerationState(bits, e, options); + if(!callback) { + pki.rsa.stepKeyPairGenerationState(state, 0); + return state.keys; + } + _generateKeyPair(state, options, callback); +}; + +/** + * Sets an RSA public key from BigIntegers modulus and exponent. + * + * @param n the modulus. + * @param e the exponent. + * + * @return the public key. + */ +pki.setRsaPublicKey = pki.rsa.setPublicKey = function(n, e) { + var key = { + n: n, + e: e + }; + + /** + * Encrypts the given data with this public key. Newer applications + * should use the 'RSA-OAEP' decryption scheme, 'RSAES-PKCS1-V1_5' is for + * legacy applications. + * + * @param data the byte string to encrypt. + * @param scheme the encryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA encryption, + * an object with an 'encode' property set to a function + * with the signature 'function(data, key)' that returns + * a binary-encoded string representing the encoded data. + * @param schemeOptions any scheme-specific options. + * + * @return the encrypted byte string. + */ + key.encrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; + } + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = { + encode: function(m, key, pub) { + return _encodePkcs1_v1_5(m, key, 0x02).getBytes(); + } + }; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + encode: function(m, key) { + return forge.pkcs1.encode_rsa_oaep(key, m, schemeOptions); + } + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {encode: function(e) {return e;}}; + } else if(typeof scheme === 'string') { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); + } + + // do scheme-based encoding then rsa encryption + var e = scheme.encode(data, key, true); + return pki.rsa.encrypt(e, key, true); + }; + + /** + * Verifies the given signature against the given digest. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5, in which case once RSA-decrypted, the + * signature is an OCTET STRING that holds a DigestInfo. + * + * DigestInfo ::= SEQUENCE { + * digestAlgorithm DigestAlgorithmIdentifier, + * digest Digest + * } + * DigestAlgorithmIdentifier ::= AlgorithmIdentifier + * Digest ::= OCTET STRING + * + * To perform PSS signature verification, provide an instance + * of Forge PSS object as the scheme parameter. + * + * @param digest the message digest hash to compare against the signature, + * as a binary-encoded string. + * @param signature the signature to verify, as a binary-encoded string. + * @param scheme signature verification scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be expected, but + * PKCS#1 v1.5 padding will still be used. + * + * @return true if the signature was verified, false if not. + */ + key.verify = function(digest, signature, scheme) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSASSA-PKCS1-V1_5'; + } + + if(scheme === 'RSASSA-PKCS1-V1_5') { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + // d is ASN.1 BER-encoded DigestInfo + var obj = asn1.fromDer(d); + // compare the given digest to the decrypted one + return digest === obj.value[1].value; + } + }; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = { + verify: function(digest, d) { + // remove padding + d = _decodePkcs1_v1_5(d, key, true); + return digest === d; + } + }; + } + + // do rsa decryption w/o any decoding, then verify -- which does decoding + var d = pki.rsa.decrypt(signature, key, true, false); + return scheme.verify(digest, d, key.n.bitLength()); + }; + + return key; +}; + +/** + * Sets an RSA private key from BigIntegers modulus, exponent, primes, + * prime exponents, and modular multiplicative inverse. + * + * @param n the modulus. + * @param e the public exponent. + * @param d the private exponent ((inverse of e) mod n). + * @param p the first prime. + * @param q the second prime. + * @param dP exponent1 (d mod (p-1)). + * @param dQ exponent2 (d mod (q-1)). + * @param qInv ((inverse of q) mod p) + * + * @return the private key. + */ +pki.setRsaPrivateKey = pki.rsa.setPrivateKey = function( + n, e, d, p, q, dP, dQ, qInv) { + var key = { + n: n, + e: e, + d: d, + p: p, + q: q, + dP: dP, + dQ: dQ, + qInv: qInv + }; + + /** + * Decrypts the given data with this private key. The decryption scheme + * must match the one used to encrypt the data. + * + * @param data the byte string to decrypt. + * @param scheme the decryption scheme to use: + * 'RSAES-PKCS1-V1_5' (default), + * 'RSA-OAEP', + * 'RAW', 'NONE', or null to perform raw RSA decryption. + * @param schemeOptions any scheme-specific options. + * + * @return the decrypted byte string. + */ + key.decrypt = function(data, scheme, schemeOptions) { + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } else if(scheme === undefined) { + scheme = 'RSAES-PKCS1-V1_5'; + } + + // do rsa decryption w/o any decoding + var d = pki.rsa.decrypt(data, key, false, false); + + if(scheme === 'RSAES-PKCS1-V1_5') { + scheme = {decode: _decodePkcs1_v1_5}; + } else if(scheme === 'RSA-OAEP' || scheme === 'RSAES-OAEP') { + scheme = { + decode: function(d, key) { + return forge.pkcs1.decode_rsa_oaep(key, d, schemeOptions); + } + }; + } else if(['RAW', 'NONE', 'NULL', null].indexOf(scheme) !== -1) { + scheme = {decode: function(d) {return d;}}; + } else { + throw new Error('Unsupported encryption scheme: "' + scheme + '".'); + } + + // decode according to scheme + return scheme.decode(d, key, false); + }; + + /** + * Signs the given digest, producing a signature. + * + * PKCS#1 supports multiple (currently two) signature schemes: + * RSASSA-PKCS1-V1_5 and RSASSA-PSS. + * + * By default this implementation uses the "old scheme", i.e. + * RSASSA-PKCS1-V1_5. In order to generate a PSS signature, provide + * an instance of Forge PSS object as the scheme parameter. + * + * @param md the message digest object with the hash to sign. + * @param scheme the signature scheme to use: + * 'RSASSA-PKCS1-V1_5' or undefined for RSASSA PKCS#1 v1.5, + * a Forge PSS object for RSASSA-PSS, + * 'NONE' or null for none, DigestInfo will not be used but + * PKCS#1 v1.5 padding will still be used. + * + * @return the signature as a byte string. + */ + key.sign = function(md, scheme) { + /* Note: The internal implementation of RSA operations is being + transitioned away from a PKCS#1 v1.5 hard-coded scheme. Some legacy + code like the use of an encoding block identifier 'bt' will eventually + be removed. */ + + // private key operation + var bt = false; + + if(typeof scheme === 'string') { + scheme = scheme.toUpperCase(); + } + + if(scheme === undefined || scheme === 'RSASSA-PKCS1-V1_5') { + scheme = {encode: emsaPkcs1v15encode}; + bt = 0x01; + } else if(scheme === 'NONE' || scheme === 'NULL' || scheme === null) { + scheme = {encode: function() {return md;}}; + bt = 0x01; + } + + // encode and then encrypt + var d = scheme.encode(md, key.n.bitLength()); + return pki.rsa.encrypt(d, key, bt); + }; + + return key; +}; + +/** + * Wraps an RSAPrivateKey ASN.1 object in an ASN.1 PrivateKeyInfo object. + * + * @param rsaKey the ASN.1 RSAPrivateKey. + * + * @return the ASN.1 PrivateKeyInfo. + */ +pki.wrapRsaPrivateKey = function(rsaKey) { + // PrivateKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // privateKeyAlgorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // PrivateKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, + asn1.toDer(rsaKey).getBytes()) + ]); +}; + +/** + * Converts a private key from an ASN.1 object. + * + * @param obj the ASN.1 representation of a PrivateKeyInfo containing an + * RSAPrivateKey or an RSAPrivateKey. + * + * @return the private key. + */ +pki.privateKeyFromAsn1 = function(obj) { + // get PrivateKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, privateKeyValidator, capture, errors)) { + obj = asn1.fromDer(forge.util.createBuffer(capture.privateKey)); + } + + // get RSAPrivateKey + capture = {}; + errors = []; + if(!asn1.validate(obj, rsaPrivateKeyValidator, capture, errors)) { + var error = new Error('Cannot read private key. ' + + 'ASN.1 object does not contain an RSAPrivateKey.'); + error.errors = errors; + throw error; + } + + // Note: Version is currently ignored. + // capture.privateKeyVersion + // FIXME: inefficient, get a BigInteger that uses byte strings + var n, e, d, p, q, dP, dQ, qInv; + n = forge.util.createBuffer(capture.privateKeyModulus).toHex(); + e = forge.util.createBuffer(capture.privateKeyPublicExponent).toHex(); + d = forge.util.createBuffer(capture.privateKeyPrivateExponent).toHex(); + p = forge.util.createBuffer(capture.privateKeyPrime1).toHex(); + q = forge.util.createBuffer(capture.privateKeyPrime2).toHex(); + dP = forge.util.createBuffer(capture.privateKeyExponent1).toHex(); + dQ = forge.util.createBuffer(capture.privateKeyExponent2).toHex(); + qInv = forge.util.createBuffer(capture.privateKeyCoefficient).toHex(); + + // set private key + return pki.setRsaPrivateKey( + new BigInteger(n, 16), + new BigInteger(e, 16), + new BigInteger(d, 16), + new BigInteger(p, 16), + new BigInteger(q, 16), + new BigInteger(dP, 16), + new BigInteger(dQ, 16), + new BigInteger(qInv, 16)); +}; + +/** + * Converts a private key to an ASN.1 RSAPrivateKey. + * + * @param key the private key. + * + * @return the ASN.1 representation of an RSAPrivateKey. + */ +pki.privateKeyToAsn1 = pki.privateKeyToRSAPrivateKey = function(key) { + // RSAPrivateKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version (0 = only 2 primes, 1 multiple primes) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(0).getBytes()), + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)), + // privateExponent (d) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.d)), + // privateKeyPrime1 (p) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.p)), + // privateKeyPrime2 (q) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.q)), + // privateKeyExponent1 (dP) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dP)), + // privateKeyExponent2 (dQ) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.dQ)), + // coefficient (qInv) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.qInv)) + ]); +}; + +/** + * Converts a public key from an ASN.1 SubjectPublicKeyInfo or RSAPublicKey. + * + * @param obj the asn1 representation of a SubjectPublicKeyInfo or RSAPublicKey. + * + * @return the public key. + */ +pki.publicKeyFromAsn1 = function(obj) { + // get SubjectPublicKeyInfo + var capture = {}; + var errors = []; + if(asn1.validate(obj, publicKeyValidator, capture, errors)) { + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + var error = new Error('Cannot read public key. Unknown OID.'); + error.oid = oid; + throw error; + } + obj = capture.rsaPublicKey; + } + + // get RSA params + errors = []; + if(!asn1.validate(obj, rsaPublicKeyValidator, capture, errors)) { + var error = new Error('Cannot read public key. ' + + 'ASN.1 object does not contain an RSAPublicKey.'); + error.errors = errors; + throw error; + } + + // FIXME: inefficient, get a BigInteger that uses byte strings + var n = forge.util.createBuffer(capture.publicKeyModulus).toHex(); + var e = forge.util.createBuffer(capture.publicKeyExponent).toHex(); + + // set public key + return pki.setRsaPublicKey( + new BigInteger(n, 16), + new BigInteger(e, 16)); +}; + +/** + * Converts a public key to an ASN.1 SubjectPublicKeyInfo. + * + * @param key the public key. + * + * @return the asn1 representation of a SubjectPublicKeyInfo. + */ +pki.publicKeyToAsn1 = pki.publicKeyToSubjectPublicKeyInfo = function(key) { + // SubjectPublicKeyInfo + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AlgorithmIdentifier + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(pki.oids.rsaEncryption).getBytes()), + // parameters (null) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]), + // subjectPublicKey + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, [ + pki.publicKeyToRSAPublicKey(key) + ]) + ]); +}; + +/** + * Converts a public key to an ASN.1 RSAPublicKey. + * + * @param key the public key. + * + * @return the asn1 representation of a RSAPublicKey. + */ +pki.publicKeyToRSAPublicKey = function(key) { + // RSAPublicKey + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // modulus (n) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.n)), + // publicExponent (e) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + _bnToBytes(key.e)) + ]); +}; + +/** + * Encodes a message using PKCS#1 v1.5 padding. + * + * @param m the message to encode. + * @param key the RSA key to use. + * @param bt the block type to use, i.e. either 0x01 (for signing) or 0x02 + * (for encryption). + * + * @return the padded byte buffer. + */ +function _encodePkcs1_v1_5(m, key, bt) { + var eb = forge.util.createBuffer(); + + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + /* use PKCS#1 v1.5 padding */ + if(m.length > (k - 11)) { + var error = new Error('Message is too long for PKCS#1 v1.5 padding.'); + error.length = m.length; + error.max = k - 11; + throw error; + } + + /* A block type BT, a padding string PS, and the data D shall be + formatted into an octet string EB, the encryption block: + + EB = 00 || BT || PS || 00 || D + + The block type BT shall be a single octet indicating the structure of + the encryption block. For this version of the document it shall have + value 00, 01, or 02. For a private-key operation, the block type + shall be 00 or 01. For a public-key operation, it shall be 02. + + The padding string PS shall consist of k-3-||D|| octets. For block + type 00, the octets shall have value 00; for block type 01, they + shall have value FF; and for block type 02, they shall be + pseudorandomly generated and nonzero. This makes the length of the + encryption block EB equal to k. */ + + // build the encryption block + eb.putByte(0x00); + eb.putByte(bt); + + // create the padding + var padNum = k - 3 - m.length; + var padByte; + // private key op + if(bt === 0x00 || bt === 0x01) { + padByte = (bt === 0x00) ? 0x00 : 0xFF; + for(var i = 0; i < padNum; ++i) { + eb.putByte(padByte); + } + } else { + // public key op + // pad with random non-zero values + while(padNum > 0) { + var numZeros = 0; + var padBytes = forge.random.getBytes(padNum); + for(var i = 0; i < padNum; ++i) { + padByte = padBytes.charCodeAt(i); + if(padByte === 0) { + ++numZeros; + } else { + eb.putByte(padByte); + } + } + padNum = numZeros; + } + } + + // zero followed by message + eb.putByte(0x00); + eb.putBytes(m); + + return eb; +} + +/** + * Decodes a message using PKCS#1 v1.5 padding. + * + * @param em the message to decode. + * @param key the RSA key to use. + * @param pub true if the key is a public key, false if it is private. + * @param ml the message length, if specified. + * + * @return the decoded bytes. + */ +function _decodePkcs1_v1_5(em, key, pub, ml) { + // get the length of the modulus in bytes + var k = Math.ceil(key.n.bitLength() / 8); + + /* It is an error if any of the following conditions occurs: + + 1. The encryption block EB cannot be parsed unambiguously. + 2. The padding string PS consists of fewer than eight octets + or is inconsisent with the block type BT. + 3. The decryption process is a public-key operation and the block + type BT is not 00 or 01, or the decryption process is a + private-key operation and the block type is not 02. + */ + + // parse the encryption block + var eb = forge.util.createBuffer(em); + var first = eb.getByte(); + var bt = eb.getByte(); + if(first !== 0x00 || + (pub && bt !== 0x00 && bt !== 0x01) || + (!pub && bt != 0x02) || + (pub && bt === 0x00 && typeof(ml) === 'undefined')) { + throw new Error('Encryption block is invalid.'); + } + + var padNum = 0; + if(bt === 0x00) { + // check all padding bytes for 0x00 + padNum = k - 3 - ml; + for(var i = 0; i < padNum; ++i) { + if(eb.getByte() !== 0x00) { + throw new Error('Encryption block is invalid.'); + } + } + } else if(bt === 0x01) { + // find the first byte that isn't 0xFF, should be after all padding + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() !== 0xFF) { + --eb.read; + break; + } + ++padNum; + } + } else if(bt === 0x02) { + // look for 0x00 byte + padNum = 0; + while(eb.length() > 1) { + if(eb.getByte() === 0x00) { + --eb.read; + break; + } + ++padNum; + } + } + + // zero must be 0x00 and padNum must be (k - 3 - message length) + var zero = eb.getByte(); + if(zero !== 0x00 || padNum !== (k - 3 - eb.length())) { + throw new Error('Encryption block is invalid.'); + } + + return eb.getBytes(); +} + +/** + * Runs the key-generation algorithm asynchronously, either in the background + * via Web Workers, or using the main thread and setImmediate. + * + * @param state the key-pair generation state. + * @param [options] options for key-pair generation: + * workerScript the worker script URL. + * workers the number of web workers (if supported) to use, + * (default: 2, -1 to use estimated cores minus one). + * workLoad the size of the work load, ie: number of possible prime + * numbers for each web worker to check per work assignment, + * (default: 100). + * @param callback(err, keypair) called once the operation completes. + */ +function _generateKeyPair(state, options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + + var opts = { + algorithm: { + name: options.algorithm || 'PRIMEINC', + options: { + workers: options.workers || 2, + workLoad: options.workLoad || 100, + workerScript: options.workerScript + } + } + }; + if('prng' in options) { + opts.prng = options.prng; + } + + generate(); + + function generate() { + // find p and then q (done in series to simplify) + getPrime(state.pBits, function(err, num) { + if(err) { + return callback(err); + } + state.p = num; + if(state.q !== null) { + return finish(err, state.q); + } + getPrime(state.qBits, finish); + }); + } + + function getPrime(bits, callback) { + forge.prime.generateProbablePrime(bits, opts, callback); + } + + function finish(err, num) { + if(err) { + return callback(err); + } + + // set q + state.q = num; + + // ensure p is larger than q (swap them if not) + if(state.p.compareTo(state.q) < 0) { + var tmp = state.p; + state.p = state.q; + state.q = tmp; + } + + // ensure p is coprime with e + if(state.p.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.p = null; + generate(); + return; + } + + // ensure q is coprime with e + if(state.q.subtract(BigInteger.ONE).gcd(state.e) + .compareTo(BigInteger.ONE) !== 0) { + state.q = null; + getPrime(state.qBits, finish); + return; + } + + // compute phi: (p - 1)(q - 1) (Euler's totient function) + state.p1 = state.p.subtract(BigInteger.ONE); + state.q1 = state.q.subtract(BigInteger.ONE); + state.phi = state.p1.multiply(state.q1); + + // ensure e and phi are coprime + if(state.phi.gcd(state.e).compareTo(BigInteger.ONE) !== 0) { + // phi and e aren't coprime, so generate a new p and q + state.p = state.q = null; + generate(); + return; + } + + // create n, ensure n is has the right number of bits + state.n = state.p.multiply(state.q); + if(state.n.bitLength() !== state.bits) { + // failed, get new q + state.q = null; + getPrime(state.qBits, finish); + return; + } + + // set keys + var d = state.e.modInverse(state.phi); + state.keys = { + privateKey: pki.rsa.setPrivateKey( + state.n, state.e, d, state.p, state.q, + d.mod(state.p1), d.mod(state.q1), + state.q.modInverse(state.p)), + publicKey: pki.rsa.setPublicKey(state.n, state.e) + }; + + callback(null, state.keys); + } +} + +/** + * Converts a positive BigInteger into 2's-complement big-endian bytes. + * + * @param b the big integer to convert. + * + * @return the bytes. + */ +function _bnToBytes(b) { + // prepend 0x00 if first byte >= 0x80 + var hex = b.toString(16); + if(hex[0] >= '8') { + hex = '00' + hex; + } + var bytes = forge.util.hexToBytes(hex); + + // ensure integer is minimally-encoded + if(bytes.length > 1 && + // leading 0x00 for positive integer + ((bytes.charCodeAt(0) === 0 && + (bytes.charCodeAt(1) & 0x80) === 0) || + // leading 0xFF for negative integer + (bytes.charCodeAt(0) === 0xFF && + (bytes.charCodeAt(1) & 0x80) === 0x80))) { + return bytes.substr(1); + } + return bytes; +} + +/** + * Returns the required number of Miller-Rabin tests to generate a + * prime with an error probability of (1/2)^80. + * + * See Handbook of Applied Cryptography Chapter 4, Table 4.4. + * + * @param bits the bit size. + * + * @return the required number of iterations. + */ +function _getMillerRabinTests(bits) { + if(bits <= 100) return 27; + if(bits <= 150) return 18; + if(bits <= 200) return 15; + if(bits <= 250) return 12; + if(bits <= 300) return 9; + if(bits <= 350) return 8; + if(bits <= 400) return 7; + if(bits <= 500) return 6; + if(bits <= 600) return 5; + if(bits <= 800) return 4; + if(bits <= 1250) return 3; + return 2; +} + +/** + * Performs feature detection on the Node crypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectNodeCrypto(fn) { + return forge.util.isNodejs && typeof _crypto[fn] === 'function'; +} + +/** + * Performs feature detection on the SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.crypto === 'object' && + typeof util.globalScope.crypto.subtle === 'object' && + typeof util.globalScope.crypto.subtle[fn] === 'function'); +} + +/** + * Performs feature detection on the deprecated Microsoft Internet Explorer + * outdated SubtleCrypto interface. This function should only be used after + * checking for the modern, standard SubtleCrypto interface. + * + * @param fn the feature (function) to detect. + * + * @return true if detected, false if not. + */ +function _detectSubtleMsCrypto(fn) { + return (typeof util.globalScope !== 'undefined' && + typeof util.globalScope.msCrypto === 'object' && + typeof util.globalScope.msCrypto.subtle === 'object' && + typeof util.globalScope.msCrypto.subtle[fn] === 'function'); +} + +function _intToUint8Array(x) { + var bytes = forge.util.hexToBytes(x.toString(16)); + var buffer = new Uint8Array(bytes.length); + for(var i = 0; i < bytes.length; ++i) { + buffer[i] = bytes.charCodeAt(i); + } + return buffer; +} + +function _privateKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error( + 'Unsupported key algorithm "' + jwk.kty + '"; algorithm must be "RSA".'); + } + return pki.setRsaPrivateKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e), + _base64ToBigInt(jwk.d), + _base64ToBigInt(jwk.p), + _base64ToBigInt(jwk.q), + _base64ToBigInt(jwk.dp), + _base64ToBigInt(jwk.dq), + _base64ToBigInt(jwk.qi)); +} + +function _publicKeyFromJwk(jwk) { + if(jwk.kty !== 'RSA') { + throw new Error('Key algorithm must be "RSA".'); + } + return pki.setRsaPublicKey( + _base64ToBigInt(jwk.n), + _base64ToBigInt(jwk.e)); +} + +function _base64ToBigInt(b64) { + return new BigInteger(forge.util.bytesToHex(forge.util.decode64(b64)), 16); +} + + +/***/ }), + +/***/ 30631: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Secure Hash Algorithm with 160-bit digest (SHA-1) implementation. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +var sha1 = module.exports = forge.sha1 = forge.sha1 || {}; +forge.md.sha1 = forge.md.algorithms.sha1 = sha1; + +/** + * Creates a SHA-1 message digest object. + * + * @return a message digest object. + */ +sha1.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // SHA-1 state contains five 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(80); + + // message digest object + var md = { + algorithm: 'sha1', + blockLength: 64, + digestLength: 20, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x67452301, + h1: 0xEFCDAB89, + h2: 0x98BADCFE, + h3: 0x10325476, + h4: 0xC3D2E1F0 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-1 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + return rval; + }; + + return md; +}; + +// sha-1 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-1 state with the given byte buffer. + * + * @param s the SHA-1 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t, a, b, c, d, e, f, i; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 80 32-bit words according to SHA-1 algorithm + // and for 32-79 using Max Locktyukhin's optimization + + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; + + // round 1 + for(i = 0; i < 16; ++i) { + t = bytes.getInt32(); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 20; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = d ^ (b & (c ^ d)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x5A827999 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 2 + for(; i < 32; ++i) { + t = (w[i - 3] ^ w[i - 8] ^ w[i - 14] ^ w[i - 16]); + t = (t << 1) | (t >>> 31); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + for(; i < 40; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0x6ED9EBA1 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 3 + for(; i < 60; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = (b & c) | (d & (b ^ c)); + t = ((a << 5) | (a >>> 27)) + f + e + 0x8F1BBCDC + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + // round 4 + for(; i < 80; ++i) { + t = (w[i - 6] ^ w[i - 16] ^ w[i - 28] ^ w[i - 32]); + t = (t << 2) | (t >>> 30); + w[i] = t; + f = b ^ c ^ d; + t = ((a << 5) | (a >>> 27)) + f + e + 0xCA62C1D6 + t; + e = d; + d = c; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + c = ((b << 30) | (b >>> 2)) >>> 0; + b = a; + a = t; + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; + + len -= 64; + } +} + + +/***/ }), + +/***/ 50160: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Secure Hash Algorithm with 256-bit digest (SHA-256) implementation. + * + * See FIPS 180-2 for details. + * + * @author Dave Longley + * + * Copyright (c) 2010-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +var sha256 = module.exports = forge.sha256 = forge.sha256 || {}; +forge.md.sha256 = forge.md.algorithms.sha256 = sha256; + +/** + * Creates a SHA-256 message digest object. + * + * @return a message digest object. + */ +sha256.create = function() { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + // SHA-256 state contains eight 32-bit integers + var _state = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for word storage + var _w = new Array(64); + + // message digest object + var md = { + algorithm: 'sha256', + blockLength: 64, + digestLength: 32, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 8 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength64 for backwards-compatibility) + md.fullMessageLength = md.messageLength64 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _state = { + h0: 0x6A09E667, + h1: 0xBB67AE85, + h2: 0x3C6EF372, + h3: 0xA54FF53A, + h4: 0x510E527F, + h5: 0x9B05688C, + h6: 0x1F83D9AB, + h7: 0x5BE0CD19 + }; + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_state, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-256 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 448 mod 512. In other words, + the data to be digested must be a multiple of 512 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 8 bytes (64 + bits), that means that the last segment of the data must have 56 bytes + (448 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 448 mod 512 because + 512 - 128 = 448. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 448 mod 512, then 512 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var s2 = { + h0: _state.h0, + h1: _state.h1, + h2: _state.h2, + h3: _state.h3, + h4: _state.h4, + h5: _state.h5, + h6: _state.h6, + h7: _state.h7 + }; + _update(s2, _w, finalBlock); + var rval = forge.util.createBuffer(); + rval.putInt32(s2.h0); + rval.putInt32(s2.h1); + rval.putInt32(s2.h2); + rval.putInt32(s2.h3); + rval.putInt32(s2.h4); + rval.putInt32(s2.h5); + rval.putInt32(s2.h6); + rval.putInt32(s2.h7); + return rval; + }; + + return md; +}; + +// sha-256 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +// table of constants +var _k = null; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 64); + + // create K table for SHA-256 + _k = [ + 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, + 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, + 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, + 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, + 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, + 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, + 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, + 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, + 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, + 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, + 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, + 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, + 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, + 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, + 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, + 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-256 state with the given byte buffer. + * + * @param s the SHA-256 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (64 byte) chunks + var t1, t2, s0, s1, ch, maj, i, a, b, c, d, e, f, g, h; + var len = bytes.length(); + while(len >= 64) { + // the w array will be populated with sixteen 32-bit big-endian words + // and then extended into 64 32-bit words according to SHA-256 + for(i = 0; i < 16; ++i) { + w[i] = bytes.getInt32(); + } + for(; i < 64; ++i) { + // XOR word 2 words ago rot right 17, rot right 19, shft right 10 + t1 = w[i - 2]; + t1 = + ((t1 >>> 17) | (t1 << 15)) ^ + ((t1 >>> 19) | (t1 << 13)) ^ + (t1 >>> 10); + // XOR word 15 words ago rot right 7, rot right 18, shft right 3 + t2 = w[i - 15]; + t2 = + ((t2 >>> 7) | (t2 << 25)) ^ + ((t2 >>> 18) | (t2 << 14)) ^ + (t2 >>> 3); + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^32 + w[i] = (t1 + w[i - 7] + t2 + w[i - 16]) | 0; + } + + // initialize hash value for this chunk + a = s.h0; + b = s.h1; + c = s.h2; + d = s.h3; + e = s.h4; + f = s.h5; + g = s.h6; + h = s.h7; + + // round function + for(i = 0; i < 64; ++i) { + // Sum1(e) + s1 = + ((e >>> 6) | (e << 26)) ^ + ((e >>> 11) | (e << 21)) ^ + ((e >>> 25) | (e << 7)); + // Ch(e, f, g) (optimized the same way as SHA-1) + ch = g ^ (e & (f ^ g)); + // Sum0(a) + s0 = + ((a >>> 2) | (a << 30)) ^ + ((a >>> 13) | (a << 19)) ^ + ((a >>> 22) | (a << 10)); + // Maj(a, b, c) (optimized the same way as SHA-1) + maj = (a & b) | (c & (a ^ b)); + + // main algorithm + t1 = h + s1 + ch + _k[i] + w[i]; + t2 = s0 + maj; + h = g; + g = f; + f = e; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + e = (d + t1) >>> 0; + d = c; + c = b; + b = a; + // `>>> 0` necessary to avoid iOS/Safari 10 optimization bug + // can't truncate with `| 0` + a = (t1 + t2) >>> 0; + } + + // update hash state + s.h0 = (s.h0 + a) | 0; + s.h1 = (s.h1 + b) | 0; + s.h2 = (s.h2 + c) | 0; + s.h3 = (s.h3 + d) | 0; + s.h4 = (s.h4 + e) | 0; + s.h5 = (s.h5 + f) | 0; + s.h6 = (s.h6 + g) | 0; + s.h7 = (s.h7 + h) | 0; + len -= 64; + } +} + + +/***/ }), + +/***/ 83160: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Secure Hash Algorithm with a 1024-bit block size implementation. + * + * This includes: SHA-512, SHA-384, SHA-512/224, and SHA-512/256. For + * SHA-256 (block size 512 bits), see sha256.js. + * + * See FIPS 180-4 for details. + * + * @author Dave Longley + * + * Copyright (c) 2014-2015 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(96224); +__nccwpck_require__(21726); + +var sha512 = module.exports = forge.sha512 = forge.sha512 || {}; + +// SHA-512 +forge.md.sha512 = forge.md.algorithms.sha512 = sha512; + +// SHA-384 +var sha384 = forge.sha384 = forge.sha512.sha384 = forge.sha512.sha384 || {}; +sha384.create = function() { + return sha512.create('SHA-384'); +}; +forge.md.sha384 = forge.md.algorithms.sha384 = sha384; + +// SHA-512/256 +forge.sha512.sha256 = forge.sha512.sha256 || { + create: function() { + return sha512.create('SHA-512/256'); + } +}; +forge.md['sha512/256'] = forge.md.algorithms['sha512/256'] = + forge.sha512.sha256; + +// SHA-512/224 +forge.sha512.sha224 = forge.sha512.sha224 || { + create: function() { + return sha512.create('SHA-512/224'); + } +}; +forge.md['sha512/224'] = forge.md.algorithms['sha512/224'] = + forge.sha512.sha224; + +/** + * Creates a SHA-2 message digest object. + * + * @param algorithm the algorithm to use (SHA-512, SHA-384, SHA-512/224, + * SHA-512/256). + * + * @return a message digest object. + */ +sha512.create = function(algorithm) { + // do initialization as necessary + if(!_initialized) { + _init(); + } + + if(typeof algorithm === 'undefined') { + algorithm = 'SHA-512'; + } + + if(!(algorithm in _states)) { + throw new Error('Invalid SHA-512 algorithm: ' + algorithm); + } + + // SHA-512 state contains eight 64-bit integers (each as two 32-bit ints) + var _state = _states[algorithm]; + var _h = null; + + // input buffer + var _input = forge.util.createBuffer(); + + // used for 64-bit word storage + var _w = new Array(80); + for(var wi = 0; wi < 80; ++wi) { + _w[wi] = new Array(2); + } + + // determine digest length by algorithm name (default) + var digestLength = 64; + switch(algorithm) { + case 'SHA-384': + digestLength = 48; + break; + case 'SHA-512/256': + digestLength = 32; + break; + case 'SHA-512/224': + digestLength = 28; + break; + } + + // message digest object + var md = { + // SHA-512 => sha512 + algorithm: algorithm.replace('-', '').toLowerCase(), + blockLength: 128, + digestLength: digestLength, + // 56-bit length of message so far (does not including padding) + messageLength: 0, + // true message length + fullMessageLength: null, + // size of message length in bytes + messageLengthSize: 16 + }; + + /** + * Starts the digest. + * + * @return this digest object. + */ + md.start = function() { + // up to 56-bit message length for convenience + md.messageLength = 0; + + // full message length (set md.messageLength128 for backwards-compatibility) + md.fullMessageLength = md.messageLength128 = []; + var int32s = md.messageLengthSize / 4; + for(var i = 0; i < int32s; ++i) { + md.fullMessageLength.push(0); + } + _input = forge.util.createBuffer(); + _h = new Array(_state.length); + for(var i = 0; i < _state.length; ++i) { + _h[i] = _state[i].slice(0); + } + return md; + }; + // start digest automatically for first time + md.start(); + + /** + * Updates the digest with the given message input. The given input can + * treated as raw input (no encoding will be applied) or an encoding of + * 'utf8' maybe given to encode the input using UTF-8. + * + * @param msg the message input to update with. + * @param encoding the encoding to use (default: 'raw', other: 'utf8'). + * + * @return this digest object. + */ + md.update = function(msg, encoding) { + if(encoding === 'utf8') { + msg = forge.util.encodeUtf8(msg); + } + + // update message length + var len = msg.length; + md.messageLength += len; + len = [(len / 0x100000000) >>> 0, len >>> 0]; + for(var i = md.fullMessageLength.length - 1; i >= 0; --i) { + md.fullMessageLength[i] += len[1]; + len[1] = len[0] + ((md.fullMessageLength[i] / 0x100000000) >>> 0); + md.fullMessageLength[i] = md.fullMessageLength[i] >>> 0; + len[0] = ((len[1] / 0x100000000) >>> 0); + } + + // add bytes to input buffer + _input.putBytes(msg); + + // process bytes + _update(_h, _w, _input); + + // compact input buffer every 2K or if empty + if(_input.read > 2048 || _input.length() === 0) { + _input.compact(); + } + + return md; + }; + + /** + * Produces the digest. + * + * @return a byte buffer containing the digest value. + */ + md.digest = function() { + /* Note: Here we copy the remaining bytes in the input buffer and + add the appropriate SHA-512 padding. Then we do the final update + on a copy of the state so that if the user wants to get + intermediate digests they can do so. */ + + /* Determine the number of bytes that must be added to the message + to ensure its length is congruent to 896 mod 1024. In other words, + the data to be digested must be a multiple of 1024 bits (or 128 bytes). + This data includes the message, some padding, and the length of the + message. Since the length of the message will be encoded as 16 bytes (128 + bits), that means that the last segment of the data must have 112 bytes + (896 bits) of message and padding. Therefore, the length of the message + plus the padding must be congruent to 896 mod 1024 because + 1024 - 128 = 896. + + In order to fill up the message length it must be filled with + padding that begins with 1 bit followed by all 0 bits. Padding + must *always* be present, so if the message length is already + congruent to 896 mod 1024, then 1024 padding bits must be added. */ + + var finalBlock = forge.util.createBuffer(); + finalBlock.putBytes(_input.bytes()); + + // compute remaining size to be digested (include message length size) + var remaining = ( + md.fullMessageLength[md.fullMessageLength.length - 1] + + md.messageLengthSize); + + // add padding for overflow blockSize - overflow + // _padding starts with 1 byte with first bit is set (byte value 128), then + // there may be up to (blockSize - 1) other pad bytes + var overflow = remaining & (md.blockLength - 1); + finalBlock.putBytes(_padding.substr(0, md.blockLength - overflow)); + + // serialize message length in bits in big-endian order; since length + // is stored in bytes we multiply by 8 and add carry from next int + var next, carry; + var bits = md.fullMessageLength[0] * 8; + for(var i = 0; i < md.fullMessageLength.length - 1; ++i) { + next = md.fullMessageLength[i + 1] * 8; + carry = (next / 0x100000000) >>> 0; + bits += carry; + finalBlock.putInt32(bits >>> 0); + bits = next >>> 0; + } + finalBlock.putInt32(bits); + + var h = new Array(_h.length); + for(var i = 0; i < _h.length; ++i) { + h[i] = _h[i].slice(0); + } + _update(h, _w, finalBlock); + var rval = forge.util.createBuffer(); + var hlen; + if(algorithm === 'SHA-512') { + hlen = h.length; + } else if(algorithm === 'SHA-384') { + hlen = h.length - 2; + } else { + hlen = h.length - 4; + } + for(var i = 0; i < hlen; ++i) { + rval.putInt32(h[i][0]); + if(i !== hlen - 1 || algorithm !== 'SHA-512/224') { + rval.putInt32(h[i][1]); + } + } + return rval; + }; + + return md; +}; + +// sha-512 padding bytes not initialized yet +var _padding = null; +var _initialized = false; + +// table of constants +var _k = null; + +// initial hash states +var _states = null; + +/** + * Initializes the constant tables. + */ +function _init() { + // create padding + _padding = String.fromCharCode(128); + _padding += forge.util.fillString(String.fromCharCode(0x00), 128); + + // create K table for SHA-512 + _k = [ + [0x428a2f98, 0xd728ae22], [0x71374491, 0x23ef65cd], + [0xb5c0fbcf, 0xec4d3b2f], [0xe9b5dba5, 0x8189dbbc], + [0x3956c25b, 0xf348b538], [0x59f111f1, 0xb605d019], + [0x923f82a4, 0xaf194f9b], [0xab1c5ed5, 0xda6d8118], + [0xd807aa98, 0xa3030242], [0x12835b01, 0x45706fbe], + [0x243185be, 0x4ee4b28c], [0x550c7dc3, 0xd5ffb4e2], + [0x72be5d74, 0xf27b896f], [0x80deb1fe, 0x3b1696b1], + [0x9bdc06a7, 0x25c71235], [0xc19bf174, 0xcf692694], + [0xe49b69c1, 0x9ef14ad2], [0xefbe4786, 0x384f25e3], + [0x0fc19dc6, 0x8b8cd5b5], [0x240ca1cc, 0x77ac9c65], + [0x2de92c6f, 0x592b0275], [0x4a7484aa, 0x6ea6e483], + [0x5cb0a9dc, 0xbd41fbd4], [0x76f988da, 0x831153b5], + [0x983e5152, 0xee66dfab], [0xa831c66d, 0x2db43210], + [0xb00327c8, 0x98fb213f], [0xbf597fc7, 0xbeef0ee4], + [0xc6e00bf3, 0x3da88fc2], [0xd5a79147, 0x930aa725], + [0x06ca6351, 0xe003826f], [0x14292967, 0x0a0e6e70], + [0x27b70a85, 0x46d22ffc], [0x2e1b2138, 0x5c26c926], + [0x4d2c6dfc, 0x5ac42aed], [0x53380d13, 0x9d95b3df], + [0x650a7354, 0x8baf63de], [0x766a0abb, 0x3c77b2a8], + [0x81c2c92e, 0x47edaee6], [0x92722c85, 0x1482353b], + [0xa2bfe8a1, 0x4cf10364], [0xa81a664b, 0xbc423001], + [0xc24b8b70, 0xd0f89791], [0xc76c51a3, 0x0654be30], + [0xd192e819, 0xd6ef5218], [0xd6990624, 0x5565a910], + [0xf40e3585, 0x5771202a], [0x106aa070, 0x32bbd1b8], + [0x19a4c116, 0xb8d2d0c8], [0x1e376c08, 0x5141ab53], + [0x2748774c, 0xdf8eeb99], [0x34b0bcb5, 0xe19b48a8], + [0x391c0cb3, 0xc5c95a63], [0x4ed8aa4a, 0xe3418acb], + [0x5b9cca4f, 0x7763e373], [0x682e6ff3, 0xd6b2b8a3], + [0x748f82ee, 0x5defb2fc], [0x78a5636f, 0x43172f60], + [0x84c87814, 0xa1f0ab72], [0x8cc70208, 0x1a6439ec], + [0x90befffa, 0x23631e28], [0xa4506ceb, 0xde82bde9], + [0xbef9a3f7, 0xb2c67915], [0xc67178f2, 0xe372532b], + [0xca273ece, 0xea26619c], [0xd186b8c7, 0x21c0c207], + [0xeada7dd6, 0xcde0eb1e], [0xf57d4f7f, 0xee6ed178], + [0x06f067aa, 0x72176fba], [0x0a637dc5, 0xa2c898a6], + [0x113f9804, 0xbef90dae], [0x1b710b35, 0x131c471b], + [0x28db77f5, 0x23047d84], [0x32caab7b, 0x40c72493], + [0x3c9ebe0a, 0x15c9bebc], [0x431d67c4, 0x9c100d4c], + [0x4cc5d4be, 0xcb3e42b6], [0x597f299c, 0xfc657e2a], + [0x5fcb6fab, 0x3ad6faec], [0x6c44198c, 0x4a475817] + ]; + + // initial hash states + _states = {}; + _states['SHA-512'] = [ + [0x6a09e667, 0xf3bcc908], + [0xbb67ae85, 0x84caa73b], + [0x3c6ef372, 0xfe94f82b], + [0xa54ff53a, 0x5f1d36f1], + [0x510e527f, 0xade682d1], + [0x9b05688c, 0x2b3e6c1f], + [0x1f83d9ab, 0xfb41bd6b], + [0x5be0cd19, 0x137e2179] + ]; + _states['SHA-384'] = [ + [0xcbbb9d5d, 0xc1059ed8], + [0x629a292a, 0x367cd507], + [0x9159015a, 0x3070dd17], + [0x152fecd8, 0xf70e5939], + [0x67332667, 0xffc00b31], + [0x8eb44a87, 0x68581511], + [0xdb0c2e0d, 0x64f98fa7], + [0x47b5481d, 0xbefa4fa4] + ]; + _states['SHA-512/256'] = [ + [0x22312194, 0xFC2BF72C], + [0x9F555FA3, 0xC84C64C2], + [0x2393B86B, 0x6F53B151], + [0x96387719, 0x5940EABD], + [0x96283EE2, 0xA88EFFE3], + [0xBE5E1E25, 0x53863992], + [0x2B0199FC, 0x2C85B8AA], + [0x0EB72DDC, 0x81C52CA2] + ]; + _states['SHA-512/224'] = [ + [0x8C3D37C8, 0x19544DA2], + [0x73E19966, 0x89DCD4D6], + [0x1DFAB7AE, 0x32FF9C82], + [0x679DD514, 0x582F9FCF], + [0x0F6D2B69, 0x7BD44DA8], + [0x77E36F73, 0x04C48942], + [0x3F9D85A8, 0x6A1D36C8], + [0x1112E6AD, 0x91D692A1] + ]; + + // now initialized + _initialized = true; +} + +/** + * Updates a SHA-512 state with the given byte buffer. + * + * @param s the SHA-512 state to update. + * @param w the array to use to store words. + * @param bytes the byte buffer to update with. + */ +function _update(s, w, bytes) { + // consume 512 bit (128 byte) chunks + var t1_hi, t1_lo; + var t2_hi, t2_lo; + var s0_hi, s0_lo; + var s1_hi, s1_lo; + var ch_hi, ch_lo; + var maj_hi, maj_lo; + var a_hi, a_lo; + var b_hi, b_lo; + var c_hi, c_lo; + var d_hi, d_lo; + var e_hi, e_lo; + var f_hi, f_lo; + var g_hi, g_lo; + var h_hi, h_lo; + var i, hi, lo, w2, w7, w15, w16; + var len = bytes.length(); + while(len >= 128) { + // the w array will be populated with sixteen 64-bit big-endian words + // and then extended into 64 64-bit words according to SHA-512 + for(i = 0; i < 16; ++i) { + w[i][0] = bytes.getInt32() >>> 0; + w[i][1] = bytes.getInt32() >>> 0; + } + for(; i < 80; ++i) { + // for word 2 words ago: ROTR 19(x) ^ ROTR 61(x) ^ SHR 6(x) + w2 = w[i - 2]; + hi = w2[0]; + lo = w2[1]; + + // high bits + t1_hi = ( + ((hi >>> 19) | (lo << 13)) ^ // ROTR 19 + ((lo >>> 29) | (hi << 3)) ^ // ROTR 61/(swap + ROTR 29) + (hi >>> 6)) >>> 0; // SHR 6 + // low bits + t1_lo = ( + ((hi << 13) | (lo >>> 19)) ^ // ROTR 19 + ((lo << 3) | (hi >>> 29)) ^ // ROTR 61/(swap + ROTR 29) + ((hi << 26) | (lo >>> 6))) >>> 0; // SHR 6 + + // for word 15 words ago: ROTR 1(x) ^ ROTR 8(x) ^ SHR 7(x) + w15 = w[i - 15]; + hi = w15[0]; + lo = w15[1]; + + // high bits + t2_hi = ( + ((hi >>> 1) | (lo << 31)) ^ // ROTR 1 + ((hi >>> 8) | (lo << 24)) ^ // ROTR 8 + (hi >>> 7)) >>> 0; // SHR 7 + // low bits + t2_lo = ( + ((hi << 31) | (lo >>> 1)) ^ // ROTR 1 + ((hi << 24) | (lo >>> 8)) ^ // ROTR 8 + ((hi << 25) | (lo >>> 7))) >>> 0; // SHR 7 + + // sum(t1, word 7 ago, t2, word 16 ago) modulo 2^64 (carry lo overflow) + w7 = w[i - 7]; + w16 = w[i - 16]; + lo = (t1_lo + w7[1] + t2_lo + w16[1]); + w[i][0] = (t1_hi + w7[0] + t2_hi + w16[0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + w[i][1] = lo >>> 0; + } + + // initialize hash value for this chunk + a_hi = s[0][0]; + a_lo = s[0][1]; + b_hi = s[1][0]; + b_lo = s[1][1]; + c_hi = s[2][0]; + c_lo = s[2][1]; + d_hi = s[3][0]; + d_lo = s[3][1]; + e_hi = s[4][0]; + e_lo = s[4][1]; + f_hi = s[5][0]; + f_lo = s[5][1]; + g_hi = s[6][0]; + g_lo = s[6][1]; + h_hi = s[7][0]; + h_lo = s[7][1]; + + // round function + for(i = 0; i < 80; ++i) { + // Sum1(e) = ROTR 14(e) ^ ROTR 18(e) ^ ROTR 41(e) + s1_hi = ( + ((e_hi >>> 14) | (e_lo << 18)) ^ // ROTR 14 + ((e_hi >>> 18) | (e_lo << 14)) ^ // ROTR 18 + ((e_lo >>> 9) | (e_hi << 23))) >>> 0; // ROTR 41/(swap + ROTR 9) + s1_lo = ( + ((e_hi << 18) | (e_lo >>> 14)) ^ // ROTR 14 + ((e_hi << 14) | (e_lo >>> 18)) ^ // ROTR 18 + ((e_lo << 23) | (e_hi >>> 9))) >>> 0; // ROTR 41/(swap + ROTR 9) + + // Ch(e, f, g) (optimized the same way as SHA-1) + ch_hi = (g_hi ^ (e_hi & (f_hi ^ g_hi))) >>> 0; + ch_lo = (g_lo ^ (e_lo & (f_lo ^ g_lo))) >>> 0; + + // Sum0(a) = ROTR 28(a) ^ ROTR 34(a) ^ ROTR 39(a) + s0_hi = ( + ((a_hi >>> 28) | (a_lo << 4)) ^ // ROTR 28 + ((a_lo >>> 2) | (a_hi << 30)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo >>> 7) | (a_hi << 25))) >>> 0; // ROTR 39/(swap + ROTR 7) + s0_lo = ( + ((a_hi << 4) | (a_lo >>> 28)) ^ // ROTR 28 + ((a_lo << 30) | (a_hi >>> 2)) ^ // ROTR 34/(swap + ROTR 2) + ((a_lo << 25) | (a_hi >>> 7))) >>> 0; // ROTR 39/(swap + ROTR 7) + + // Maj(a, b, c) (optimized the same way as SHA-1) + maj_hi = ((a_hi & b_hi) | (c_hi & (a_hi ^ b_hi))) >>> 0; + maj_lo = ((a_lo & b_lo) | (c_lo & (a_lo ^ b_lo))) >>> 0; + + // main algorithm + // t1 = (h + s1 + ch + _k[i] + _w[i]) modulo 2^64 (carry lo overflow) + lo = (h_lo + s1_lo + ch_lo + _k[i][1] + w[i][1]); + t1_hi = (h_hi + s1_hi + ch_hi + _k[i][0] + w[i][0] + + ((lo / 0x100000000) >>> 0)) >>> 0; + t1_lo = lo >>> 0; + + // t2 = s0 + maj modulo 2^64 (carry lo overflow) + lo = s0_lo + maj_lo; + t2_hi = (s0_hi + maj_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + t2_lo = lo >>> 0; + + h_hi = g_hi; + h_lo = g_lo; + + g_hi = f_hi; + g_lo = f_lo; + + f_hi = e_hi; + f_lo = e_lo; + + // e = (d + t1) modulo 2^64 (carry lo overflow) + lo = d_lo + t1_lo; + e_hi = (d_hi + t1_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + e_lo = lo >>> 0; + + d_hi = c_hi; + d_lo = c_lo; + + c_hi = b_hi; + c_lo = b_lo; + + b_hi = a_hi; + b_lo = a_lo; + + // a = (t1 + t2) modulo 2^64 (carry lo overflow) + lo = t1_lo + t2_lo; + a_hi = (t1_hi + t2_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + a_lo = lo >>> 0; + } + + // update hash state (additional modulo 2^64) + lo = s[0][1] + a_lo; + s[0][0] = (s[0][0] + a_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[0][1] = lo >>> 0; + + lo = s[1][1] + b_lo; + s[1][0] = (s[1][0] + b_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[1][1] = lo >>> 0; + + lo = s[2][1] + c_lo; + s[2][0] = (s[2][0] + c_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[2][1] = lo >>> 0; + + lo = s[3][1] + d_lo; + s[3][0] = (s[3][0] + d_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[3][1] = lo >>> 0; + + lo = s[4][1] + e_lo; + s[4][0] = (s[4][0] + e_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[4][1] = lo >>> 0; + + lo = s[5][1] + f_lo; + s[5][0] = (s[5][0] + f_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[5][1] = lo >>> 0; + + lo = s[6][1] + g_lo; + s[6][0] = (s[6][0] + g_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[6][1] = lo >>> 0; + + lo = s[7][1] + h_lo; + s[7][0] = (s[7][0] + h_hi + ((lo / 0x100000000) >>> 0)) >>> 0; + s[7][1] = lo >>> 0; + + len -= 128; + } +} + + +/***/ }), + +/***/ 69927: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Functions to output keys in SSH-friendly formats. + * + * This is part of the Forge project which may be used under the terms of + * either the BSD License or the GNU General Public License (GPL) Version 2. + * + * See: https://github.com/digitalbazaar/forge/blob/cbebca3780658703d925b61b2caffb1d263a6c1d/LICENSE + * + * @author https://github.com/shellac + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(51774); +__nccwpck_require__(36292); +__nccwpck_require__(30631); +__nccwpck_require__(21726); + +var ssh = module.exports = forge.ssh = forge.ssh || {}; + +/** + * Encodes (and optionally encrypts) a private RSA key as a Putty PPK file. + * + * @param privateKey the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). + * @param comment a comment to include in the key file. + * + * @return the PPK file as a string. + */ +ssh.privateKeyToPutty = function(privateKey, passphrase, comment) { + comment = comment || ''; + passphrase = passphrase || ''; + var algorithm = 'ssh-rsa'; + var encryptionAlgorithm = (passphrase === '') ? 'none' : 'aes256-cbc'; + + var ppk = 'PuTTY-User-Key-File-2: ' + algorithm + '\r\n'; + ppk += 'Encryption: ' + encryptionAlgorithm + '\r\n'; + ppk += 'Comment: ' + comment + '\r\n'; + + // public key into buffer for ppk + var pubbuffer = forge.util.createBuffer(); + _addStringToBuffer(pubbuffer, algorithm); + _addBigIntegerToBuffer(pubbuffer, privateKey.e); + _addBigIntegerToBuffer(pubbuffer, privateKey.n); + + // write public key + var pub = forge.util.encode64(pubbuffer.bytes(), 64); + var length = Math.floor(pub.length / 66) + 1; // 66 = 64 + \r\n + ppk += 'Public-Lines: ' + length + '\r\n'; + ppk += pub; + + // private key into a buffer + var privbuffer = forge.util.createBuffer(); + _addBigIntegerToBuffer(privbuffer, privateKey.d); + _addBigIntegerToBuffer(privbuffer, privateKey.p); + _addBigIntegerToBuffer(privbuffer, privateKey.q); + _addBigIntegerToBuffer(privbuffer, privateKey.qInv); + + // optionally encrypt the private key + var priv; + if(!passphrase) { + // use the unencrypted buffer + priv = forge.util.encode64(privbuffer.bytes(), 64); + } else { + // encrypt RSA key using passphrase + var encLen = privbuffer.length() + 16 - 1; + encLen -= encLen % 16; + + // pad private key with sha1-d data -- needs to be a multiple of 16 + var padding = _sha1(privbuffer.bytes()); + + padding.truncate(padding.length() - encLen + privbuffer.length()); + privbuffer.putBuffer(padding); + + var aeskey = forge.util.createBuffer(); + aeskey.putBuffer(_sha1('\x00\x00\x00\x00', passphrase)); + aeskey.putBuffer(_sha1('\x00\x00\x00\x01', passphrase)); + + // encrypt some bytes using CBC mode + // key is 40 bytes, so truncate *by* 8 bytes + var cipher = forge.aes.createEncryptionCipher(aeskey.truncate(8), 'CBC'); + cipher.start(forge.util.createBuffer().fillWithByte(0, 16)); + cipher.update(privbuffer.copy()); + cipher.finish(); + var encrypted = cipher.output; + + // Note: this appears to differ from Putty -- is forge wrong, or putty? + // due to padding we finish as an exact multiple of 16 + encrypted.truncate(16); // all padding + + priv = forge.util.encode64(encrypted.bytes(), 64); + } + + // output private key + length = Math.floor(priv.length / 66) + 1; // 64 + \r\n + ppk += '\r\nPrivate-Lines: ' + length + '\r\n'; + ppk += priv; + + // MAC + var mackey = _sha1('putty-private-key-file-mac-key', passphrase); + + var macbuffer = forge.util.createBuffer(); + _addStringToBuffer(macbuffer, algorithm); + _addStringToBuffer(macbuffer, encryptionAlgorithm); + _addStringToBuffer(macbuffer, comment); + macbuffer.putInt32(pubbuffer.length()); + macbuffer.putBuffer(pubbuffer); + macbuffer.putInt32(privbuffer.length()); + macbuffer.putBuffer(privbuffer); + + var hmac = forge.hmac.create(); + hmac.start('sha1', mackey); + hmac.update(macbuffer.bytes()); + + ppk += '\r\nPrivate-MAC: ' + hmac.digest().toHex() + '\r\n'; + + return ppk; +}; + +/** + * Encodes a public RSA key as an OpenSSH file. + * + * @param key the key. + * @param comment a comment. + * + * @return the public key in OpenSSH format. + */ +ssh.publicKeyToOpenSSH = function(key, comment) { + var type = 'ssh-rsa'; + comment = comment || ''; + + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + return type + ' ' + forge.util.encode64(buffer.bytes()) + ' ' + comment; +}; + +/** + * Encodes a private RSA key as an OpenSSH file. + * + * @param key the key. + * @param passphrase a passphrase to protect the key (falsy for no encryption). + * + * @return the public key in OpenSSH format. + */ +ssh.privateKeyToOpenSSH = function(privateKey, passphrase) { + if(!passphrase) { + return forge.pki.privateKeyToPem(privateKey); + } + // OpenSSH private key is just a legacy format, it seems + return forge.pki.encryptRsaPrivateKey(privateKey, passphrase, + {legacy: true, algorithm: 'aes128'}); +}; + +/** + * Gets the SSH fingerprint for the given public key. + * + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.md5). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. + */ +ssh.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.md5.create(); + + var type = 'ssh-rsa'; + var buffer = forge.util.createBuffer(); + _addStringToBuffer(buffer, type); + _addBigIntegerToBuffer(buffer, key.e); + _addBigIntegerToBuffer(buffer, key.n); + + // hash public key bytes + md.start(); + md.update(buffer.getBytes()); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); + } + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); + } + return digest; +}; + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a big integer. + */ +function _addBigIntegerToBuffer(buffer, val) { + var hexVal = val.toString(16); + // ensure 2s complement +ve + if(hexVal[0] >= '8') { + hexVal = '00' + hexVal; + } + var bytes = forge.util.hexToBytes(hexVal); + buffer.putInt32(bytes.length); + buffer.putBytes(bytes); +} + +/** + * Adds len(val) then val to a buffer. + * + * @param buffer the buffer to add to. + * @param val a string. + */ +function _addStringToBuffer(buffer, val) { + buffer.putInt32(val.length); + buffer.putString(val); +} + +/** + * Hashes the arguments into one value using SHA-1. + * + * @return the sha1 hash of the provided arguments. + */ +function _sha1() { + var sha = forge.md.sha1.create(); + var num = arguments.length; + for (var i = 0; i < num; ++i) { + sha.update(arguments[i]); + } + return sha.digest(); +} + + +/***/ }), + +/***/ 60131: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Support for concurrent task management and synchronization in web + * applications. + * + * @author Dave Longley + * @author David I. Lehn + * + * Copyright (c) 2009-2013 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(18713); +__nccwpck_require__(94790); +__nccwpck_require__(21726); + +// logging category +var cat = 'forge.task'; + +// verbose level +// 0: off, 1: a little, 2: a whole lot +// Verbose debug logging is surrounded by a level check to avoid the +// performance issues with even calling the logging code regardless if it +// is actually logged. For performance reasons this should not be set to 2 +// for production use. +// ex: if(sVL >= 2) forge.log.verbose(....) +var sVL = 0; + +// track tasks for debugging +var sTasks = {}; +var sNextTaskId = 0; +// debug access +forge.debug.set(cat, 'tasks', sTasks); + +// a map of task type to task queue +var sTaskQueues = {}; +// debug access +forge.debug.set(cat, 'queues', sTaskQueues); + +// name for unnamed tasks +var sNoTaskName = '?'; + +// maximum number of doNext() recursions before a context swap occurs +// FIXME: might need to tweak this based on the browser +var sMaxRecursions = 30; + +// time slice for doing tasks before a context swap occurs +// FIXME: might need to tweak this based on the browser +var sTimeSlice = 20; + +/** + * Task states. + * + * READY: ready to start processing + * RUNNING: task or a subtask is running + * BLOCKED: task is waiting to acquire N permits to continue + * SLEEPING: task is sleeping for a period of time + * DONE: task is done + * ERROR: task has an error + */ +var READY = 'ready'; +var RUNNING = 'running'; +var BLOCKED = 'blocked'; +var SLEEPING = 'sleeping'; +var DONE = 'done'; +var ERROR = 'error'; + +/** + * Task actions. Used to control state transitions. + * + * STOP: stop processing + * START: start processing tasks + * BLOCK: block task from continuing until 1 or more permits are released + * UNBLOCK: release one or more permits + * SLEEP: sleep for a period of time + * WAKEUP: wakeup early from SLEEPING state + * CANCEL: cancel further tasks + * FAIL: a failure occured + */ +var STOP = 'stop'; +var START = 'start'; +var BLOCK = 'block'; +var UNBLOCK = 'unblock'; +var SLEEP = 'sleep'; +var WAKEUP = 'wakeup'; +var CANCEL = 'cancel'; +var FAIL = 'fail'; + +/** + * State transition table. + * + * nextState = sStateTable[currentState][action] + */ +var sStateTable = {}; + +sStateTable[READY] = {}; +sStateTable[READY][STOP] = READY; +sStateTable[READY][START] = RUNNING; +sStateTable[READY][CANCEL] = DONE; +sStateTable[READY][FAIL] = ERROR; + +sStateTable[RUNNING] = {}; +sStateTable[RUNNING][STOP] = READY; +sStateTable[RUNNING][START] = RUNNING; +sStateTable[RUNNING][BLOCK] = BLOCKED; +sStateTable[RUNNING][UNBLOCK] = RUNNING; +sStateTable[RUNNING][SLEEP] = SLEEPING; +sStateTable[RUNNING][WAKEUP] = RUNNING; +sStateTable[RUNNING][CANCEL] = DONE; +sStateTable[RUNNING][FAIL] = ERROR; + +sStateTable[BLOCKED] = {}; +sStateTable[BLOCKED][STOP] = BLOCKED; +sStateTable[BLOCKED][START] = BLOCKED; +sStateTable[BLOCKED][BLOCK] = BLOCKED; +sStateTable[BLOCKED][UNBLOCK] = BLOCKED; +sStateTable[BLOCKED][SLEEP] = BLOCKED; +sStateTable[BLOCKED][WAKEUP] = BLOCKED; +sStateTable[BLOCKED][CANCEL] = DONE; +sStateTable[BLOCKED][FAIL] = ERROR; + +sStateTable[SLEEPING] = {}; +sStateTable[SLEEPING][STOP] = SLEEPING; +sStateTable[SLEEPING][START] = SLEEPING; +sStateTable[SLEEPING][BLOCK] = SLEEPING; +sStateTable[SLEEPING][UNBLOCK] = SLEEPING; +sStateTable[SLEEPING][SLEEP] = SLEEPING; +sStateTable[SLEEPING][WAKEUP] = SLEEPING; +sStateTable[SLEEPING][CANCEL] = DONE; +sStateTable[SLEEPING][FAIL] = ERROR; + +sStateTable[DONE] = {}; +sStateTable[DONE][STOP] = DONE; +sStateTable[DONE][START] = DONE; +sStateTable[DONE][BLOCK] = DONE; +sStateTable[DONE][UNBLOCK] = DONE; +sStateTable[DONE][SLEEP] = DONE; +sStateTable[DONE][WAKEUP] = DONE; +sStateTable[DONE][CANCEL] = DONE; +sStateTable[DONE][FAIL] = ERROR; + +sStateTable[ERROR] = {}; +sStateTable[ERROR][STOP] = ERROR; +sStateTable[ERROR][START] = ERROR; +sStateTable[ERROR][BLOCK] = ERROR; +sStateTable[ERROR][UNBLOCK] = ERROR; +sStateTable[ERROR][SLEEP] = ERROR; +sStateTable[ERROR][WAKEUP] = ERROR; +sStateTable[ERROR][CANCEL] = ERROR; +sStateTable[ERROR][FAIL] = ERROR; + +/** + * Creates a new task. + * + * @param options options for this task + * run: the run function for the task (required) + * name: the run function for the task (optional) + * parent: parent of this task (optional) + * + * @return the empty task. + */ +var Task = function(options) { + // task id + this.id = -1; + + // task name + this.name = options.name || sNoTaskName; + + // task has no parent + this.parent = options.parent || null; + + // save run function + this.run = options.run; + + // create a queue of subtasks to run + this.subtasks = []; + + // error flag + this.error = false; + + // state of the task + this.state = READY; + + // number of times the task has been blocked (also the number + // of permits needed to be released to continue running) + this.blocks = 0; + + // timeout id when sleeping + this.timeoutId = null; + + // no swap time yet + this.swapTime = null; + + // no user data + this.userData = null; + + // initialize task + // FIXME: deal with overflow + this.id = sNextTaskId++; + sTasks[this.id] = this; + if(sVL >= 1) { + forge.log.verbose(cat, '[%s][%s] init', this.id, this.name, this); + } +}; + +/** + * Logs debug information on this task and the system state. + */ +Task.prototype.debug = function(msg) { + msg = msg || ''; + forge.log.debug(cat, msg, + '[%s][%s] task:', this.id, this.name, this, + 'subtasks:', this.subtasks.length, + 'queue:', sTaskQueues); +}; + +/** + * Adds a subtask to run after task.doNext() or task.fail() is called. + * + * @param name human readable name for this task (optional). + * @param subrun a function to run that takes the current task as + * its first parameter. + * + * @return the current task (useful for chaining next() calls). + */ +Task.prototype.next = function(name, subrun) { + // juggle parameters if it looks like no name is given + if(typeof(name) === 'function') { + subrun = name; + + // inherit parent's name + name = this.name; + } + // create subtask, set parent to this task, propagate callbacks + var subtask = new Task({ + run: subrun, + name: name, + parent: this + }); + // start subtasks running + subtask.state = RUNNING; + subtask.type = this.type; + subtask.successCallback = this.successCallback || null; + subtask.failureCallback = this.failureCallback || null; + + // queue a new subtask + this.subtasks.push(subtask); + + return this; +}; + +/** + * Adds subtasks to run in parallel after task.doNext() or task.fail() + * is called. + * + * @param name human readable name for this task (optional). + * @param subrun functions to run that take the current task as + * their first parameter. + * + * @return the current task (useful for chaining next() calls). + */ +Task.prototype.parallel = function(name, subrun) { + // juggle parameters if it looks like no name is given + if(forge.util.isArray(name)) { + subrun = name; + + // inherit parent's name + name = this.name; + } + // Wrap parallel tasks in a regular task so they are started at the + // proper time. + return this.next(name, function(task) { + // block waiting for subtasks + var ptask = task; + ptask.block(subrun.length); + + // we pass the iterator from the loop below as a parameter + // to a function because it is otherwise included in the + // closure and changes as the loop changes -- causing i + // to always be set to its highest value + var startParallelTask = function(pname, pi) { + forge.task.start({ + type: pname, + run: function(task) { + subrun[pi](task); + }, + success: function(task) { + ptask.unblock(); + }, + failure: function(task) { + ptask.unblock(); + } + }); + }; + + for(var i = 0; i < subrun.length; i++) { + // Type must be unique so task starts in parallel: + // name + private string + task id + sub-task index + // start tasks in parallel and unblock when the finish + var pname = name + '__parallel-' + task.id + '-' + i; + var pi = i; + startParallelTask(pname, pi); + } + }); +}; + +/** + * Stops a running task. + */ +Task.prototype.stop = function() { + this.state = sStateTable[this.state][STOP]; +}; + +/** + * Starts running a task. + */ +Task.prototype.start = function() { + this.error = false; + this.state = sStateTable[this.state][START]; + + // try to restart + if(this.state === RUNNING) { + this.start = new Date(); + this.run(this); + runNext(this, 0); + } +}; + +/** + * Blocks a task until it one or more permits have been released. The + * task will not resume until the requested number of permits have + * been released with call(s) to unblock(). + * + * @param n number of permits to wait for(default: 1). + */ +Task.prototype.block = function(n) { + n = typeof(n) === 'undefined' ? 1 : n; + this.blocks += n; + if(this.blocks > 0) { + this.state = sStateTable[this.state][BLOCK]; + } +}; + +/** + * Releases a permit to unblock a task. If a task was blocked by + * requesting N permits via block(), then it will only continue + * running once enough permits have been released via unblock() calls. + * + * If multiple processes need to synchronize with a single task then + * use a condition variable (see forge.task.createCondition). It is + * an error to unblock a task more times than it has been blocked. + * + * @param n number of permits to release (default: 1). + * + * @return the current block count (task is unblocked when count is 0) + */ +Task.prototype.unblock = function(n) { + n = typeof(n) === 'undefined' ? 1 : n; + this.blocks -= n; + if(this.blocks === 0 && this.state !== DONE) { + this.state = RUNNING; + runNext(this, 0); + } + return this.blocks; +}; + +/** + * Sleep for a period of time before resuming tasks. + * + * @param n number of milliseconds to sleep (default: 0). + */ +Task.prototype.sleep = function(n) { + n = typeof(n) === 'undefined' ? 0 : n; + this.state = sStateTable[this.state][SLEEP]; + var self = this; + this.timeoutId = setTimeout(function() { + self.timeoutId = null; + self.state = RUNNING; + runNext(self, 0); + }, n); +}; + +/** + * Waits on a condition variable until notified. The next task will + * not be scheduled until notification. A condition variable can be + * created with forge.task.createCondition(). + * + * Once cond.notify() is called, the task will continue. + * + * @param cond the condition variable to wait on. + */ +Task.prototype.wait = function(cond) { + cond.wait(this); +}; + +/** + * If sleeping, wakeup and continue running tasks. + */ +Task.prototype.wakeup = function() { + if(this.state === SLEEPING) { + cancelTimeout(this.timeoutId); + this.timeoutId = null; + this.state = RUNNING; + runNext(this, 0); + } +}; + +/** + * Cancel all remaining subtasks of this task. + */ +Task.prototype.cancel = function() { + this.state = sStateTable[this.state][CANCEL]; + // remove permits needed + this.permitsNeeded = 0; + // cancel timeouts + if(this.timeoutId !== null) { + cancelTimeout(this.timeoutId); + this.timeoutId = null; + } + // remove subtasks + this.subtasks = []; +}; + +/** + * Finishes this task with failure and sets error flag. The entire + * task will be aborted unless the next task that should execute + * is passed as a parameter. This allows levels of subtasks to be + * skipped. For instance, to abort only this tasks's subtasks, then + * call fail(task.parent). To abort this task's subtasks and its + * parent's subtasks, call fail(task.parent.parent). To abort + * all tasks and simply call the task callback, call fail() or + * fail(null). + * + * The task callback (success or failure) will always, eventually, be + * called. + * + * @param next the task to continue at, or null to abort entirely. + */ +Task.prototype.fail = function(next) { + // set error flag + this.error = true; + + // finish task + finish(this, true); + + if(next) { + // propagate task info + next.error = this.error; + next.swapTime = this.swapTime; + next.userData = this.userData; + + // do next task as specified + runNext(next, 0); + } else { + if(this.parent !== null) { + // finish root task (ensures it is removed from task queue) + var parent = this.parent; + while(parent.parent !== null) { + // propagate task info + parent.error = this.error; + parent.swapTime = this.swapTime; + parent.userData = this.userData; + parent = parent.parent; + } + finish(parent, true); + } + + // call failure callback if one exists + if(this.failureCallback) { + this.failureCallback(this); + } + } +}; + +/** + * Asynchronously start a task. + * + * @param task the task to start. + */ +var start = function(task) { + task.error = false; + task.state = sStateTable[task.state][START]; + setTimeout(function() { + if(task.state === RUNNING) { + task.swapTime = +new Date(); + task.run(task); + runNext(task, 0); + } + }, 0); +}; + +/** + * Run the next subtask or finish this task. + * + * @param task the task to process. + * @param recurse the recursion count. + */ +var runNext = function(task, recurse) { + // get time since last context swap (ms), if enough time has passed set + // swap to true to indicate that doNext was performed asynchronously + // also, if recurse is too high do asynchronously + var swap = + (recurse > sMaxRecursions) || + (+new Date() - task.swapTime) > sTimeSlice; + + var doNext = function(recurse) { + recurse++; + if(task.state === RUNNING) { + if(swap) { + // update swap time + task.swapTime = +new Date(); + } + + if(task.subtasks.length > 0) { + // run next subtask + var subtask = task.subtasks.shift(); + subtask.error = task.error; + subtask.swapTime = task.swapTime; + subtask.userData = task.userData; + subtask.run(subtask); + if(!subtask.error) { + runNext(subtask, recurse); + } + } else { + finish(task); + + if(!task.error) { + // chain back up and run parent + if(task.parent !== null) { + // propagate task info + task.parent.error = task.error; + task.parent.swapTime = task.swapTime; + task.parent.userData = task.userData; + + // no subtasks left, call run next subtask on parent + runNext(task.parent, recurse); + } + } + } + } + }; + + if(swap) { + // we're swapping, so run asynchronously + setTimeout(doNext, 0); + } else { + // not swapping, so run synchronously + doNext(recurse); + } +}; + +/** + * Finishes a task and looks for the next task in the queue to start. + * + * @param task the task to finish. + * @param suppressCallbacks true to suppress callbacks. + */ +var finish = function(task, suppressCallbacks) { + // subtask is now done + task.state = DONE; + + delete sTasks[task.id]; + if(sVL >= 1) { + forge.log.verbose(cat, '[%s][%s] finish', + task.id, task.name, task); + } + + // only do queue processing for root tasks + if(task.parent === null) { + // report error if queue is missing + if(!(task.type in sTaskQueues)) { + forge.log.error(cat, + '[%s][%s] task queue missing [%s]', + task.id, task.name, task.type); + } else if(sTaskQueues[task.type].length === 0) { + // report error if queue is empty + forge.log.error(cat, + '[%s][%s] task queue empty [%s]', + task.id, task.name, task.type); + } else if(sTaskQueues[task.type][0] !== task) { + // report error if this task isn't the first in the queue + forge.log.error(cat, + '[%s][%s] task not first in queue [%s]', + task.id, task.name, task.type); + } else { + // remove ourselves from the queue + sTaskQueues[task.type].shift(); + // clean up queue if it is empty + if(sTaskQueues[task.type].length === 0) { + if(sVL >= 1) { + forge.log.verbose(cat, '[%s][%s] delete queue [%s]', + task.id, task.name, task.type); + } + /* Note: Only a task can delete a queue of its own type. This + is used as a way to synchronize tasks. If a queue for a certain + task type exists, then a task of that type is running. + */ + delete sTaskQueues[task.type]; + } else { + // dequeue the next task and start it + if(sVL >= 1) { + forge.log.verbose(cat, + '[%s][%s] queue start next [%s] remain:%s', + task.id, task.name, task.type, + sTaskQueues[task.type].length); + } + sTaskQueues[task.type][0].start(); + } + } + + if(!suppressCallbacks) { + // call final callback if one exists + if(task.error && task.failureCallback) { + task.failureCallback(task); + } else if(!task.error && task.successCallback) { + task.successCallback(task); + } + } + } +}; + +/* Tasks API */ +module.exports = forge.task = forge.task || {}; + +/** + * Starts a new task that will run the passed function asynchronously. + * + * In order to finish the task, either task.doNext() or task.fail() + * *must* be called. + * + * The task must have a type (a string identifier) that can be used to + * synchronize it with other tasks of the same type. That type can also + * be used to cancel tasks that haven't started yet. + * + * To start a task, the following object must be provided as a parameter + * (each function takes a task object as its first parameter): + * + * { + * type: the type of task. + * run: the function to run to execute the task. + * success: a callback to call when the task succeeds (optional). + * failure: a callback to call when the task fails (optional). + * } + * + * @param options the object as described above. + */ +forge.task.start = function(options) { + // create a new task + var task = new Task({ + run: options.run, + name: options.name || sNoTaskName + }); + task.type = options.type; + task.successCallback = options.success || null; + task.failureCallback = options.failure || null; + + // append the task onto the appropriate queue + if(!(task.type in sTaskQueues)) { + if(sVL >= 1) { + forge.log.verbose(cat, '[%s][%s] create queue [%s]', + task.id, task.name, task.type); + } + // create the queue with the new task + sTaskQueues[task.type] = [task]; + start(task); + } else { + // push the task onto the queue, it will be run after a task + // with the same type completes + sTaskQueues[options.type].push(task); + } +}; + +/** + * Cancels all tasks of the given type that haven't started yet. + * + * @param type the type of task to cancel. + */ +forge.task.cancel = function(type) { + // find the task queue + if(type in sTaskQueues) { + // empty all but the current task from the queue + sTaskQueues[type] = [sTaskQueues[type][0]]; + } +}; + +/** + * Creates a condition variable to synchronize tasks. To make a task wait + * on the condition variable, call task.wait(condition). To notify all + * tasks that are waiting, call condition.notify(). + * + * @return the condition variable. + */ +forge.task.createCondition = function() { + var cond = { + // all tasks that are blocked + tasks: {} + }; + + /** + * Causes the given task to block until notify is called. If the task + * is already waiting on this condition then this is a no-op. + * + * @param task the task to cause to wait. + */ + cond.wait = function(task) { + // only block once + if(!(task.id in cond.tasks)) { + task.block(); + cond.tasks[task.id] = task; + } + }; + + /** + * Notifies all waiting tasks to wake up. + */ + cond.notify = function() { + // since unblock() will run the next task from here, make sure to + // clear the condition's blocked task list before unblocking + var tmp = cond.tasks; + cond.tasks = {}; + for(var id in tmp) { + tmp[id].unblock(); + } + }; + + return cond; +}; + + +/***/ }), + +/***/ 90573: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * A Javascript implementation of Transport Layer Security (TLS). + * + * @author Dave Longley + * + * Copyright (c) 2009-2014 Digital Bazaar, Inc. + * + * The TLS Handshake Protocol involves the following steps: + * + * - Exchange hello messages to agree on algorithms, exchange random values, + * and check for session resumption. + * + * - Exchange the necessary cryptographic parameters to allow the client and + * server to agree on a premaster secret. + * + * - Exchange certificates and cryptographic information to allow the client + * and server to authenticate themselves. + * + * - Generate a master secret from the premaster secret and exchanged random + * values. + * + * - Provide security parameters to the record layer. + * + * - Allow the client and server to verify that their peer has calculated the + * same security parameters and that the handshake occurred without tampering + * by an attacker. + * + * Up to 4 different messages may be sent during a key exchange. The server + * certificate, the server key exchange, the client certificate, and the + * client key exchange. + * + * A typical handshake (from the client's perspective). + * + * 1. Client sends ClientHello. + * 2. Client receives ServerHello. + * 3. Client receives optional Certificate. + * 4. Client receives optional ServerKeyExchange. + * 5. Client receives ServerHelloDone. + * 6. Client sends optional Certificate. + * 7. Client sends ClientKeyExchange. + * 8. Client sends optional CertificateVerify. + * 9. Client sends ChangeCipherSpec. + * 10. Client sends Finished. + * 11. Client receives ChangeCipherSpec. + * 12. Client receives Finished. + * 13. Client sends/receives application data. + * + * To reuse an existing session: + * + * 1. Client sends ClientHello with session ID for reuse. + * 2. Client receives ServerHello with same session ID if reusing. + * 3. Client receives ChangeCipherSpec message if reusing. + * 4. Client receives Finished. + * 5. Client sends ChangeCipherSpec. + * 6. Client sends Finished. + * + * Note: Client ignores HelloRequest if in the middle of a handshake. + * + * Record Layer: + * + * The record layer fragments information blocks into TLSPlaintext records + * carrying data in chunks of 2^14 bytes or less. Client message boundaries are + * not preserved in the record layer (i.e., multiple client messages of the + * same ContentType MAY be coalesced into a single TLSPlaintext record, or a + * single message MAY be fragmented across several records). + * + * struct { + * uint8 major; + * uint8 minor; + * } ProtocolVersion; + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * opaque fragment[TLSPlaintext.length]; + * } TLSPlaintext; + * + * type: + * The higher-level protocol used to process the enclosed fragment. + * + * version: + * The version of the protocol being employed. TLS Version 1.2 uses version + * {3, 3}. TLS Version 1.0 uses version {3, 1}. Note that a client that + * supports multiple versions of TLS may not know what version will be + * employed before it receives the ServerHello. + * + * length: + * The length (in bytes) of the following TLSPlaintext.fragment. The length + * MUST NOT exceed 2^14 = 16384 bytes. + * + * fragment: + * The application data. This data is transparent and treated as an + * independent block to be dealt with by the higher-level protocol specified + * by the type field. + * + * Implementations MUST NOT send zero-length fragments of Handshake, Alert, or + * ChangeCipherSpec content types. Zero-length fragments of Application data + * MAY be sent as they are potentially useful as a traffic analysis + * countermeasure. + * + * Note: Data of different TLS record layer content types MAY be interleaved. + * Application data is generally of lower precedence for transmission than + * other content types. However, records MUST be delivered to the network in + * the same order as they are protected by the record layer. Recipients MUST + * receive and process interleaved application layer traffic during handshakes + * subsequent to the first one on a connection. + * + * struct { + * ContentType type; // same as TLSPlaintext.type + * ProtocolVersion version;// same as TLSPlaintext.version + * uint16 length; + * opaque fragment[TLSCompressed.length]; + * } TLSCompressed; + * + * length: + * The length (in bytes) of the following TLSCompressed.fragment. + * The length MUST NOT exceed 2^14 + 1024. + * + * fragment: + * The compressed form of TLSPlaintext.fragment. + * + * Note: A CompressionMethod.null operation is an identity operation; no fields + * are altered. In this implementation, since no compression is supported, + * uncompressed records are always the same as compressed records. + * + * Encryption Information: + * + * The encryption and MAC functions translate a TLSCompressed structure into a + * TLSCiphertext. The decryption functions reverse the process. The MAC of the + * record also includes a sequence number so that missing, extra, or repeated + * messages are detectable. + * + * struct { + * ContentType type; + * ProtocolVersion version; + * uint16 length; + * select (SecurityParameters.cipher_type) { + * case stream: GenericStreamCipher; + * case block: GenericBlockCipher; + * case aead: GenericAEADCipher; + * } fragment; + * } TLSCiphertext; + * + * type: + * The type field is identical to TLSCompressed.type. + * + * version: + * The version field is identical to TLSCompressed.version. + * + * length: + * The length (in bytes) of the following TLSCiphertext.fragment. + * The length MUST NOT exceed 2^14 + 2048. + * + * fragment: + * The encrypted form of TLSCompressed.fragment, with the MAC. + * + * Note: Only CBC Block Ciphers are supported by this implementation. + * + * The TLSCompressed.fragment structures are converted to/from block + * TLSCiphertext.fragment structures. + * + * struct { + * opaque IV[SecurityParameters.record_iv_length]; + * block-ciphered struct { + * opaque content[TLSCompressed.length]; + * opaque MAC[SecurityParameters.mac_length]; + * uint8 padding[GenericBlockCipher.padding_length]; + * uint8 padding_length; + * }; + * } GenericBlockCipher; + * + * The MAC is generated as described in Section 6.2.3.1. + * + * IV: + * The Initialization Vector (IV) SHOULD be chosen at random, and MUST be + * unpredictable. Note that in versions of TLS prior to 1.1, there was no + * IV field, and the last ciphertext block of the previous record (the "CBC + * residue") was used as the IV. This was changed to prevent the attacks + * described in [CBCATT]. For block ciphers, the IV length is of length + * SecurityParameters.record_iv_length, which is equal to the + * SecurityParameters.block_size. + * + * padding: + * Padding that is added to force the length of the plaintext to be an + * integral multiple of the block cipher's block length. The padding MAY be + * any length up to 255 bytes, as long as it results in the + * TLSCiphertext.length being an integral multiple of the block length. + * Lengths longer than necessary might be desirable to frustrate attacks on + * a protocol that are based on analysis of the lengths of exchanged + * messages. Each uint8 in the padding data vector MUST be filled with the + * padding length value. The receiver MUST check this padding and MUST use + * the bad_record_mac alert to indicate padding errors. + * + * padding_length: + * The padding length MUST be such that the total size of the + * GenericBlockCipher structure is a multiple of the cipher's block length. + * Legal values range from zero to 255, inclusive. This length specifies the + * length of the padding field exclusive of the padding_length field itself. + * + * The encrypted data length (TLSCiphertext.length) is one more than the sum of + * SecurityParameters.block_length, TLSCompressed.length, + * SecurityParameters.mac_length, and padding_length. + * + * Example: If the block length is 8 bytes, the content length + * (TLSCompressed.length) is 61 bytes, and the MAC length is 20 bytes, then the + * length before padding is 82 bytes (this does not include the IV. Thus, the + * padding length modulo 8 must be equal to 6 in order to make the total length + * an even multiple of 8 bytes (the block length). The padding length can be + * 6, 14, 22, and so on, through 254. If the padding length were the minimum + * necessary, 6, the padding would be 6 bytes, each containing the value 6. + * Thus, the last 8 octets of the GenericBlockCipher before block encryption + * would be xx 06 06 06 06 06 06 06, where xx is the last octet of the MAC. + * + * Note: With block ciphers in CBC mode (Cipher Block Chaining), it is critical + * that the entire plaintext of the record be known before any ciphertext is + * transmitted. Otherwise, it is possible for the attacker to mount the attack + * described in [CBCATT]. + * + * Implementation note: Canvel et al. [CBCTIME] have demonstrated a timing + * attack on CBC padding based on the time required to compute the MAC. In + * order to defend against this attack, implementations MUST ensure that + * record processing time is essentially the same whether or not the padding + * is correct. In general, the best way to do this is to compute the MAC even + * if the padding is incorrect, and only then reject the packet. For instance, + * if the pad appears to be incorrect, the implementation might assume a + * zero-length pad and then compute the MAC. This leaves a small timing + * channel, since MAC performance depends, to some extent, on the size of the + * data fragment, but it is not believed to be large enough to be exploitable, + * due to the large block size of existing MACs and the small size of the + * timing signal. + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(93386); +__nccwpck_require__(51774); +__nccwpck_require__(36292); +__nccwpck_require__(45877); +__nccwpck_require__(62106); +__nccwpck_require__(61698); +__nccwpck_require__(30631); +__nccwpck_require__(21726); + +/** + * Generates pseudo random bytes by mixing the result of two hash functions, + * MD5 and SHA-1. + * + * prf_TLS1(secret, label, seed) = + * P_MD5(S1, label + seed) XOR P_SHA-1(S2, label + seed); + * + * Each P_hash function functions as follows: + * + * P_hash(secret, seed) = HMAC_hash(secret, A(1) + seed) + + * HMAC_hash(secret, A(2) + seed) + + * HMAC_hash(secret, A(3) + seed) + ... + * A() is defined as: + * A(0) = seed + * A(i) = HMAC_hash(secret, A(i-1)) + * + * The '+' operator denotes concatenation. + * + * As many iterations A(N) as are needed are performed to generate enough + * pseudo random byte output. If an iteration creates more data than is + * necessary, then it is truncated. + * + * Therefore: + * A(1) = HMAC_hash(secret, A(0)) + * = HMAC_hash(secret, seed) + * A(2) = HMAC_hash(secret, A(1)) + * = HMAC_hash(secret, HMAC_hash(secret, seed)) + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, A(0)) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, A(1)) + seed) + + * ... + * + * Therefore: + * P_hash(secret, seed) = + * HMAC_hash(secret, HMAC_hash(secret, seed) + seed) + + * HMAC_hash(secret, HMAC_hash(secret, HMAC_hash(secret, seed)) + seed) + + * ... + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_TLS1 = function(secret, label, seed, length) { + var rval = forge.util.createBuffer(); + + /* For TLS 1.0, the secret is split in half, into two secrets of equal + length. If the secret has an odd length then the last byte of the first + half will be the same as the first byte of the second. The length of the + two secrets is half of the secret rounded up. */ + var idx = (secret.length >> 1); + var slen = idx + (secret.length & 1); + var s1 = secret.substr(0, slen); + var s2 = secret.substr(idx, slen); + var ai = forge.util.createBuffer(); + var hmac = forge.hmac.create(); + seed = label + seed; + + // determine the number of iterations that must be performed to generate + // enough output bytes, md5 creates 16 byte hashes, sha1 creates 20 + var md5itr = Math.ceil(length / 16); + var sha1itr = Math.ceil(length / 20); + + // do md5 iterations + hmac.start('MD5', s1); + var md5bytes = forge.util.createBuffer(); + ai.putBytes(seed); + for(var i = 0; i < md5itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + md5bytes.putBuffer(hmac.digest()); + } + + // do sha1 iterations + hmac.start('SHA1', s2); + var sha1bytes = forge.util.createBuffer(); + ai.clear(); + ai.putBytes(seed); + for(var i = 0; i < sha1itr; ++i) { + // HMAC_hash(secret, A(i-1)) + hmac.start(null, null); + hmac.update(ai.getBytes()); + ai.putBuffer(hmac.digest()); + + // HMAC_hash(secret, A(i) + seed) + hmac.start(null, null); + hmac.update(ai.bytes() + seed); + sha1bytes.putBuffer(hmac.digest()); + } + + // XOR the md5 bytes with the sha1 bytes + rval.putBytes(forge.util.xorBytes( + md5bytes.getBytes(), sha1bytes.getBytes(), length)); + + return rval; +}; + +/** + * Generates pseudo random bytes using a SHA256 algorithm. For TLS 1.2. + * + * @param secret the secret to use. + * @param label the label to use. + * @param seed the seed value to use. + * @param length the number of bytes to generate. + * + * @return the pseudo random bytes in a byte buffer. + */ +var prf_sha256 = function(secret, label, seed, length) { + // FIXME: implement me for TLS 1.2 +}; + +/** + * Gets a MAC for a record using the SHA-1 hash algorithm. + * + * @param key the mac key. + * @param state the sequence number (array of two 32-bit integers). + * @param record the record. + * + * @return the sha-1 hash (20 bytes) for the given record. + */ +var hmac_sha1 = function(key, seqNum, record) { + /* MAC is computed like so: + HMAC_hash( + key, seqNum + + TLSCompressed.type + + TLSCompressed.version + + TLSCompressed.length + + TLSCompressed.fragment) + */ + var hmac = forge.hmac.create(); + hmac.start('SHA1', key); + var b = forge.util.createBuffer(); + b.putInt32(seqNum[0]); + b.putInt32(seqNum[1]); + b.putByte(record.type); + b.putByte(record.version.major); + b.putByte(record.version.minor); + b.putInt16(record.length); + b.putBytes(record.fragment.bytes()); + hmac.update(b.getBytes()); + return hmac.digest().getBytes(); +}; + +/** + * Compresses the TLSPlaintext record into a TLSCompressed record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSPlaintext record to compress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var deflate = function(c, record, s) { + var rval = false; + + try { + var bytes = c.deflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // deflate error, fail out + } + + return rval; +}; + +/** + * Decompresses the TLSCompressed record into a TLSPlaintext record using the + * deflate algorithm. + * + * @param c the TLS connection. + * @param record the TLSCompressed record to decompress. + * @param s the ConnectionState to use. + * + * @return true on success, false on failure. + */ +var inflate = function(c, record, s) { + var rval = false; + + try { + var bytes = c.inflate(record.fragment.getBytes()); + record.fragment = forge.util.createBuffer(bytes); + record.length = bytes.length; + rval = true; + } catch(ex) { + // inflate error, fail out + } + + return rval; +}; + +/** + * Reads a TLS variable-length vector from a byte buffer. + * + * Variable-length vectors are defined by specifying a subrange of legal + * lengths, inclusively, using the notation . When these are + * encoded, the actual length precedes the vector's contents in the byte + * stream. The length will be in the form of a number consuming as many bytes + * as required to hold the vector's specified maximum (ceiling) length. A + * variable-length vector with an actual length field of zero is referred to + * as an empty vector. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * + * @return the resulting byte buffer. + */ +var readVector = function(b, lenBytes) { + var len = 0; + switch(lenBytes) { + case 1: + len = b.getByte(); + break; + case 2: + len = b.getInt16(); + break; + case 3: + len = b.getInt24(); + break; + case 4: + len = b.getInt32(); + break; + } + + // read vector bytes into a new buffer + return forge.util.createBuffer(b.getBytes(len)); +}; + +/** + * Writes a TLS variable-length vector to a byte buffer. + * + * @param b the byte buffer. + * @param lenBytes the number of bytes required to store the length. + * @param v the byte buffer vector. + */ +var writeVector = function(b, lenBytes, v) { + // encode length at the start of the vector, where the number of bytes for + // the length is the maximum number of bytes it would take to encode the + // vector's ceiling + b.putInt(v.length(), lenBytes << 3); + b.putBuffer(v); +}; + +/** + * The tls implementation. + */ +var tls = {}; + +/** + * Version: TLS 1.2 = 3.3, TLS 1.1 = 3.2, TLS 1.0 = 3.1. Both TLS 1.1 and + * TLS 1.2 were still too new (ie: openSSL didn't implement them) at the time + * of this implementation so TLS 1.0 was implemented instead. + */ +tls.Versions = { + TLS_1_0: {major: 3, minor: 1}, + TLS_1_1: {major: 3, minor: 2}, + TLS_1_2: {major: 3, minor: 3} +}; +tls.SupportedVersions = [ + tls.Versions.TLS_1_1, + tls.Versions.TLS_1_0 +]; +tls.Version = tls.SupportedVersions[0]; + +/** + * Maximum fragment size. True maximum is 16384, but we fragment before that + * to allow for unusual small increases during compression. + */ +tls.MaxFragment = 16384 - 1024; + +/** + * Whether this entity is considered the "client" or "server". + * enum { server, client } ConnectionEnd; + */ +tls.ConnectionEnd = { + server: 0, + client: 1 +}; + +/** + * Pseudo-random function algorithm used to generate keys from the master + * secret. + * enum { tls_prf_sha256 } PRFAlgorithm; + */ +tls.PRFAlgorithm = { + tls_prf_sha256: 0 +}; + +/** + * Bulk encryption algorithms. + * enum { null, rc4, des3, aes } BulkCipherAlgorithm; + */ +tls.BulkCipherAlgorithm = { + none: null, + rc4: 0, + des3: 1, + aes: 2 +}; + +/** + * Cipher types. + * enum { stream, block, aead } CipherType; + */ +tls.CipherType = { + stream: 0, + block: 1, + aead: 2 +}; + +/** + * MAC (Message Authentication Code) algorithms. + * enum { null, hmac_md5, hmac_sha1, hmac_sha256, + * hmac_sha384, hmac_sha512} MACAlgorithm; + */ +tls.MACAlgorithm = { + none: null, + hmac_md5: 0, + hmac_sha1: 1, + hmac_sha256: 2, + hmac_sha384: 3, + hmac_sha512: 4 +}; + +/** + * Compression algorithms. + * enum { null(0), deflate(1), (255) } CompressionMethod; + */ +tls.CompressionMethod = { + none: 0, + deflate: 1 +}; + +/** + * TLS record content types. + * enum { + * change_cipher_spec(20), alert(21), handshake(22), + * application_data(23), (255) + * } ContentType; + */ +tls.ContentType = { + change_cipher_spec: 20, + alert: 21, + handshake: 22, + application_data: 23, + heartbeat: 24 +}; + +/** + * TLS handshake types. + * enum { + * hello_request(0), client_hello(1), server_hello(2), + * certificate(11), server_key_exchange (12), + * certificate_request(13), server_hello_done(14), + * certificate_verify(15), client_key_exchange(16), + * finished(20), (255) + * } HandshakeType; + */ +tls.HandshakeType = { + hello_request: 0, + client_hello: 1, + server_hello: 2, + certificate: 11, + server_key_exchange: 12, + certificate_request: 13, + server_hello_done: 14, + certificate_verify: 15, + client_key_exchange: 16, + finished: 20 +}; + +/** + * TLS Alert Protocol. + * + * enum { warning(1), fatal(2), (255) } AlertLevel; + * + * enum { + * close_notify(0), + * unexpected_message(10), + * bad_record_mac(20), + * decryption_failed(21), + * record_overflow(22), + * decompression_failure(30), + * handshake_failure(40), + * bad_certificate(42), + * unsupported_certificate(43), + * certificate_revoked(44), + * certificate_expired(45), + * certificate_unknown(46), + * illegal_parameter(47), + * unknown_ca(48), + * access_denied(49), + * decode_error(50), + * decrypt_error(51), + * export_restriction(60), + * protocol_version(70), + * insufficient_security(71), + * internal_error(80), + * user_canceled(90), + * no_renegotiation(100), + * (255) + * } AlertDescription; + * + * struct { + * AlertLevel level; + * AlertDescription description; + * } Alert; + */ +tls.Alert = {}; +tls.Alert.Level = { + warning: 1, + fatal: 2 +}; +tls.Alert.Description = { + close_notify: 0, + unexpected_message: 10, + bad_record_mac: 20, + decryption_failed: 21, + record_overflow: 22, + decompression_failure: 30, + handshake_failure: 40, + bad_certificate: 42, + unsupported_certificate: 43, + certificate_revoked: 44, + certificate_expired: 45, + certificate_unknown: 46, + illegal_parameter: 47, + unknown_ca: 48, + access_denied: 49, + decode_error: 50, + decrypt_error: 51, + export_restriction: 60, + protocol_version: 70, + insufficient_security: 71, + internal_error: 80, + user_canceled: 90, + no_renegotiation: 100 +}; + +/** + * TLS Heartbeat Message types. + * enum { + * heartbeat_request(1), + * heartbeat_response(2), + * (255) + * } HeartbeatMessageType; + */ +tls.HeartbeatMessageType = { + heartbeat_request: 1, + heartbeat_response: 2 +}; + +/** + * Supported cipher suites. + */ +tls.CipherSuites = {}; + +/** + * Gets a supported cipher suite from its 2 byte ID. + * + * @param twoBytes two bytes in a string. + * + * @return the matching supported cipher suite or null. + */ +tls.getCipherSuite = function(twoBytes) { + var rval = null; + for(var key in tls.CipherSuites) { + var cs = tls.CipherSuites[key]; + if(cs.id[0] === twoBytes.charCodeAt(0) && + cs.id[1] === twoBytes.charCodeAt(1)) { + rval = cs; + break; + } + } + return rval; +}; + +/** + * Called when an unexpected record is encountered. + * + * @param c the connection. + * @param record the record. + */ +tls.handleUnexpected = function(c, record) { + // if connection is client and closed, ignore unexpected messages + var ignore = (!c.open && c.entity === tls.ConnectionEnd.client); + if(!ignore) { + c.error(c, { + message: 'Unexpected message. Received TLS record out of order.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unexpected_message + } + }); + } +}; + +/** + * Called when a client receives a HelloRequest record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleHelloRequest = function(c, record, length) { + // ignore renegotiation requests from the server during a handshake, but + // if handshaking, send a warning alert that renegotation is denied + if(!c.handshaking && c.handshakes > 0) { + // send alert warning + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.no_renegotiation + })); + tls.flush(c); + } + + // continue + c.process(); +}; + +/** + * Parses a hello message from a ClientHello or ServerHello record. + * + * @param record the record to parse. + * + * @return the parsed message. + */ +tls.parseHelloMessage = function(c, record, length) { + var msg = null; + + var client = (c.entity === tls.ConnectionEnd.client); + + // minimum of 38 bytes in message + if(length < 38) { + c.error(c, { + message: client ? + 'Invalid ServerHello message. Message too short.' : + 'Invalid ClientHello message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } else { + // use 'remaining' to calculate # of remaining bytes in the message + var b = record.fragment; + var remaining = b.length(); + msg = { + version: { + major: b.getByte(), + minor: b.getByte() + }, + random: forge.util.createBuffer(b.getBytes(32)), + session_id: readVector(b, 1), + extensions: [] + }; + if(client) { + msg.cipher_suite = b.getBytes(2); + msg.compression_method = b.getByte(); + } else { + msg.cipher_suites = readVector(b, 2); + msg.compression_methods = readVector(b, 1); + } + + // read extensions if there are any bytes left in the message + remaining = length - (remaining - b.length()); + if(remaining > 0) { + // parse extensions + var exts = readVector(b, 2); + while(exts.length() > 0) { + msg.extensions.push({ + type: [exts.getByte(), exts.getByte()], + data: readVector(exts, 2) + }); + } + + // TODO: make extension support modular + if(!client) { + for(var i = 0; i < msg.extensions.length; ++i) { + var ext = msg.extensions[i]; + + // support SNI extension + if(ext.type[0] === 0x00 && ext.type[1] === 0x00) { + // get server name list + var snl = readVector(ext.data, 2); + while(snl.length() > 0) { + // read server name type + var snType = snl.getByte(); + + // only HostName type (0x00) is known, break out if + // another type is detected + if(snType !== 0x00) { + break; + } + + // add host name to server name list + c.session.extensions.server_name.serverNameList.push( + readVector(snl, 2).getBytes()); + } + } + } + } + } + + // version already set, do not allow version change + if(c.session.version) { + if(msg.version.major !== c.session.version.major || + msg.version.minor !== c.session.version.minor) { + return c.error(c, { + message: 'TLS version change is disallowed during renegotiation.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + } + + // get the chosen (ServerHello) cipher suite + if(client) { + // FIXME: should be checking configured acceptable cipher suites + c.session.cipherSuite = tls.getCipherSuite(msg.cipher_suite); + } else { + // get a supported preferred (ClientHello) cipher suite + // choose the first supported cipher suite + var tmp = forge.util.createBuffer(msg.cipher_suites.bytes()); + while(tmp.length() > 0) { + // FIXME: should be checking configured acceptable suites + // cipher suites take up 2 bytes + c.session.cipherSuite = tls.getCipherSuite(tmp.getBytes(2)); + if(c.session.cipherSuite !== null) { + break; + } + } + } + + // cipher suite not supported + if(c.session.cipherSuite === null) { + return c.error(c, { + message: 'No cipher suites in common.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + }, + cipherSuite: forge.util.bytesToHex(msg.cipher_suite) + }); + } + + // TODO: handle compression methods + if(client) { + c.session.compressionMethod = msg.compression_method; + } else { + // no compression + c.session.compressionMethod = tls.CompressionMethod.none; + } + } + + return msg; +}; + +/** + * Creates security parameters for the given connection based on the given + * hello message. + * + * @param c the TLS connection. + * @param msg the hello message. + */ +tls.createSecurityParameters = function(c, msg) { + /* Note: security params are from TLS 1.2, some values like prf_algorithm + are ignored for TLS 1.0/1.1 and the builtin as specified in the spec is + used. */ + + // TODO: handle other options from server when more supported + + // get client and server randoms + var client = (c.entity === tls.ConnectionEnd.client); + var msgRandom = msg.random.bytes(); + var cRandom = client ? c.session.sp.client_random : msgRandom; + var sRandom = client ? msgRandom : tls.createRandom().getBytes(); + + // create new security parameters + c.session.sp = { + entity: c.entity, + prf_algorithm: tls.PRFAlgorithm.tls_prf_sha256, + bulk_cipher_algorithm: null, + cipher_type: null, + enc_key_length: null, + block_length: null, + fixed_iv_length: null, + record_iv_length: null, + mac_algorithm: null, + mac_length: null, + mac_key_length: null, + compression_algorithm: c.session.compressionMethod, + pre_master_secret: null, + master_secret: null, + client_random: cRandom, + server_random: sRandom + }; +}; + +/** + * Called when a client receives a ServerHello record. + * + * When a ServerHello message will be sent: + * The server will send this message in response to a client hello message + * when it was able to find an acceptable set of algorithms. If it cannot + * find such a match, it will respond with a handshake failure alert. + * + * uint24 length; + * struct { + * ProtocolVersion server_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suite; + * CompressionMethod compression_method; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ServerHello; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; + } + + // ensure server version is compatible + if(msg.version.minor <= c.version.minor) { + c.version.minor = msg.version.minor; + } else { + return c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + + // indicate session version has been set + c.session.version = c.version; + + // get the session ID from the message + var sessionId = msg.session_id.bytes(); + + // if the session ID is not blank and matches the cached one, resume + // the session + if(sessionId.length > 0 && sessionId === c.session.id) { + // resuming session, expect a ChangeCipherSpec next + c.expect = SCC; + c.session.resuming = true; + + // get new server random + c.session.sp.server_random = msg.random.bytes(); + } else { + // not resuming, expect a server Certificate message next + c.expect = SCE; + c.session.resuming = false; + + // create new security parameters + tls.createSecurityParameters(c, msg); + } + + // set new session ID + c.session.id = sessionId; + + // continue + c.process(); +}; + +/** + * Called when a server receives a ClientHello record. + * + * When a ClientHello message will be sent: + * When a client first connects to a server it is required to send the + * client hello as its first message. The client can also send a client + * hello in response to a hello request or on its own initiative in order + * to renegotiate the security parameters in an existing connection. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientHello = function(c, record, length) { + var msg = tls.parseHelloMessage(c, record, length); + if(c.fail) { + return; + } + + // get the session ID from the message + var sessionId = msg.session_id.bytes(); + + // see if the given session ID is in the cache + var session = null; + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + if(session === null) { + // session ID not found + sessionId = ''; + } else if(session.version.major !== msg.version.major || + session.version.minor > msg.version.minor) { + // if session version is incompatible with client version, do not resume + session = null; + sessionId = ''; + } + } + + // no session found to resume, generate a new session ID + if(sessionId.length === 0) { + sessionId = forge.random.getBytes(32); + } + + // update session + c.session.id = sessionId; + c.session.clientHelloVersion = msg.version; + c.session.sp = {}; + if(session) { + // use version and security parameters from resumed session + c.version = c.session.version = session.version; + c.session.sp = session.sp; + } else { + // use highest compatible minor version + var version; + for(var i = 1; i < tls.SupportedVersions.length; ++i) { + version = tls.SupportedVersions[i]; + if(version.minor <= msg.version.minor) { + break; + } + } + c.version = {major: version.major, minor: version.minor}; + c.session.version = c.version; + } + + // if a session is set, resume it + if(session !== null) { + // resuming session, expect a ChangeCipherSpec next + c.expect = CCC; + c.session.resuming = true; + + // get new client random + c.session.sp.client_random = msg.random.bytes(); + } else { + // not resuming, expect a Certificate or ClientKeyExchange + c.expect = (c.verifyClient !== false) ? CCE : CKE; + c.session.resuming = false; + + // create new security parameters + tls.createSecurityParameters(c, msg); + } + + // connection now open + c.open = true; + + // queue server hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHello(c) + })); + + if(c.session.resuming) { + // queue change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); + + // create pending state + c.state.pending = tls.createConnectionState(c); + + // change current write state to pending write state + c.state.current.write = c.state.pending.write; + + // queue finished + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } else { + // queue server certificate + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + })); + + if(!c.fail) { + // queue server key exchange + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerKeyExchange(c) + })); + + // request client certificate if set + if(c.verifyClient !== false) { + // queue certificate request + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateRequest(c) + })); + } + + // queue server hello done + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createServerHelloDone(c) + })); + } + } + + // send records + tls.flush(c); + + // continue + c.process(); +}; + +/** + * Called when a client receives a Certificate record. + * + * When this message will be sent: + * The server must send a certificate whenever the agreed-upon key exchange + * method is not an anonymous one. This message will always immediately + * follow the server hello message. + * + * Meaning of this message: + * The certificate type must be appropriate for the selected cipher suite's + * key exchange algorithm, and is generally an X.509v3 certificate. It must + * contain a key which matches the key exchange method, as follows. Unless + * otherwise specified, the signing algorithm for the certificate must be + * the same as the algorithm for the certificate key. Unless otherwise + * specified, the public key may be of any length. + * + * opaque ASN.1Cert<1..2^24-1>; + * struct { + * ASN.1Cert certificate_list<1..2^24-1>; + * } Certificate; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificate = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid Certificate message. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + var b = record.fragment; + var msg = { + certificate_list: readVector(b, 3) + }; + + /* The sender's certificate will be first in the list (chain), each + subsequent one that follows will certify the previous one, but root + certificates (self-signed) that specify the certificate authority may + be omitted under the assumption that clients must already possess it. */ + var cert, asn1; + var certs = []; + try { + while(msg.certificate_list.length() > 0) { + // each entry in msg.certificate_list is a vector with 3 len bytes + cert = readVector(msg.certificate_list, 3); + asn1 = forge.asn1.fromDer(cert); + cert = forge.pki.certificateFromAsn1(asn1, true); + certs.push(cert); + } + } catch(ex) { + return c.error(c, { + message: 'Could not parse certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); + } + + // ensure at least 1 certificate was provided if in client-mode + // or if verifyClient was set to true to require a certificate + // (as opposed to 'optional') + var client = (c.entity === tls.ConnectionEnd.client); + if((client || c.verifyClient === true) && certs.length === 0) { + // error, no certificate + c.error(c, { + message: client ? + 'No server certificate provided.' : + 'No client certificate provided.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } else if(certs.length === 0) { + // no certs to verify + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } else { + // save certificate in session + if(client) { + c.session.serverCertificate = certs[0]; + } else { + c.session.clientCertificate = certs[0]; + } + + if(tls.verifyCertificateChain(c, certs)) { + // expect a ServerKeyExchange or ClientKeyExchange message next + c.expect = client ? SKE : CKE; + } + } + + // continue + c.process(); +}; + +/** + * Called when a client receives a ServerKeyExchange record. + * + * When this message will be sent: + * This message will be sent immediately after the server certificate + * message (or the server hello message, if this is an anonymous + * negotiation). + * + * The server key exchange message is sent by the server only when the + * server certificate message (if sent) does not contain enough data to + * allow the client to exchange a premaster secret. + * + * Meaning of this message: + * This message conveys cryptographic information to allow the client to + * communicate the premaster secret: either an RSA public key to encrypt + * the premaster secret with, or a Diffie-Hellman public key with which the + * client can complete a key exchange (with the result being the premaster + * secret.) + * + * enum { + * dhe_dss, dhe_rsa, dh_anon, rsa, dh_dss, dh_rsa + * } KeyExchangeAlgorithm; + * + * struct { + * opaque dh_p<1..2^16-1>; + * opaque dh_g<1..2^16-1>; + * opaque dh_Ys<1..2^16-1>; + * } ServerDHParams; + * + * struct { + * select(KeyExchangeAlgorithm) { + * case dh_anon: + * ServerDHParams params; + * case dhe_dss: + * case dhe_rsa: + * ServerDHParams params; + * digitally-signed struct { + * opaque client_random[32]; + * opaque server_random[32]; + * ServerDHParams params; + * } signed_params; + * case rsa: + * case dh_dss: + * case dh_rsa: + * struct {}; + * }; + * } ServerKeyExchange; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length > 0 is invalid + if(length > 0) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } + + // expect an optional CertificateRequest message next + c.expect = SCR; + + // continue + c.process(); +}; + +/** + * Called when a client receives a ClientKeyExchange record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleClientKeyExchange = function(c, record, length) { + // this implementation only supports RSA, no Diffie-Hellman support + // so any length < 48 is invalid + if(length < 48) { + return c.error(c, { + message: 'Invalid key parameters. Only RSA is supported.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.unsupported_certificate + } + }); + } + + var b = record.fragment; + var msg = { + enc_pre_master_secret: readVector(b, 2).getBytes() + }; + + // do rsa decryption + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.serverCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + } + + if(privateKey === null) { + return c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + + try { + // decrypt 48-byte pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = privateKey.decrypt(msg.enc_pre_master_secret); + + // ensure client hello version matches first 2 bytes + var version = c.session.clientHelloVersion; + if(version.major !== sp.pre_master_secret.charCodeAt(0) || + version.minor !== sp.pre_master_secret.charCodeAt(1)) { + // error, do not send alert (see BLEI attack below) + throw new Error('TLS version rollback attack detected.'); + } + } catch(ex) { + /* Note: Daniel Bleichenbacher [BLEI] can be used to attack a + TLS server which is using PKCS#1 encoded RSA, so instead of + failing here, we generate 48 random bytes and use that as + the pre-master secret. */ + sp.pre_master_secret = forge.random.getBytes(48); + } + + // expect a CertificateVerify message if a Certificate was received that + // does not have fixed Diffie-Hellman params, otherwise expect + // ChangeCipherSpec + c.expect = CCC; + if(c.session.clientCertificate !== null) { + // only RSA support, so expect CertificateVerify + // TODO: support Diffie-Hellman + c.expect = CCV; + } + + // continue + c.process(); +}; + +/** + * Called when a client receives a CertificateRequest record. + * + * When this message will be sent: + * A non-anonymous server can optionally request a certificate from the + * client, if appropriate for the selected cipher suite. This message, if + * sent, will immediately follow the Server Key Exchange message (if it is + * sent; otherwise, the Server Certificate message). + * + * enum { + * rsa_sign(1), dss_sign(2), rsa_fixed_dh(3), dss_fixed_dh(4), + * rsa_ephemeral_dh_RESERVED(5), dss_ephemeral_dh_RESERVED(6), + * fortezza_dms_RESERVED(20), (255) + * } ClientCertificateType; + * + * opaque DistinguishedName<1..2^16-1>; + * + * struct { + * ClientCertificateType certificate_types<1..2^8-1>; + * SignatureAndHashAlgorithm supported_signature_algorithms<2^16-1>; + * DistinguishedName certificate_authorities<0..2^16-1>; + * } CertificateRequest; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateRequest = function(c, record, length) { + // minimum of 3 bytes in message + if(length < 3) { + return c.error(c, { + message: 'Invalid CertificateRequest. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // TODO: TLS 1.2+ has different format including + // SignatureAndHashAlgorithm after cert types + var b = record.fragment; + var msg = { + certificate_types: readVector(b, 1), + certificate_authorities: readVector(b, 2) + }; + + // save certificate request in session + c.session.certificateRequest = msg; + + // expect a ServerHelloDone message next + c.expect = SHD; + + // continue + c.process(); +}; + +/** + * Called when a server receives a CertificateVerify record. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleCertificateVerify = function(c, record, length) { + if(length < 2) { + return c.error(c, { + message: 'Invalid CertificateVerify. Message too short.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // rewind to get full bytes for message so it can be manually + // digested below (special case for CertificateVerify messages because + // they must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; + + var msg = { + signature: readVector(b, 2).getBytes() + }; + + // TODO: add support for DSA + + // generate data to verify + var verify = forge.util.createBuffer(); + verify.putBuffer(c.session.md5.digest()); + verify.putBuffer(c.session.sha1.digest()); + verify = verify.getBytes(); + + try { + var cert = c.session.clientCertificate; + /*b = forge.pki.rsa.decrypt( + msg.signature, cert.publicKey, true, verify.length); + if(b !== verify) {*/ + if(!cert.publicKey.verify(verify, msg.signature, 'NONE')) { + throw new Error('CertificateVerify signature does not match.'); + } + + // digest message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); + } catch(ex) { + return c.error(c, { + message: 'Bad signature in CertificateVerify.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.handshake_failure + } + }); + } + + // expect ChangeCipherSpec + c.expect = CCC; + + // continue + c.process(); +}; + +/** + * Called when a client receives a ServerHelloDone record. + * + * When this message will be sent: + * The server hello done message is sent by the server to indicate the end + * of the server hello and associated messages. After sending this message + * the server will wait for a client response. + * + * Meaning of this message: + * This message means that the server is done sending messages to support + * the key exchange, and the client can proceed with its phase of the key + * exchange. + * + * Upon receipt of the server hello done message the client should verify + * that the server provided a valid certificate if required and check that + * the server hello parameters are acceptable. + * + * struct {} ServerHelloDone; + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleServerHelloDone = function(c, record, length) { + // len must be 0 bytes + if(length > 0) { + return c.error(c, { + message: 'Invalid ServerHelloDone message. Invalid length.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.record_overflow + } + }); + } + + if(c.serverCertificate === null) { + // no server certificate was provided + var error = { + message: 'No server certificate provided. Not enough security.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.insufficient_security + } + }; + + // call application callback + var depth = 0; + var ret = c.verify(c, error.alert.description, depth, []); + if(ret !== true) { + // check for custom alert info + if(ret || ret === 0) { + // set custom message and alert description + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; + } + if(ret.alert) { + error.alert.description = ret.alert; + } + } else if(typeof ret === 'number') { + // set custom alert description + error.alert.description = ret; + } + } + + // send error + return c.error(c, error); + } + } + + // create client certificate message if requested + if(c.session.certificateRequest !== null) { + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificate(c) + }); + tls.queue(c, record); + } + + // create client key exchange message + record = tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientKeyExchange(c) + }); + tls.queue(c, record); + + // expect no messages until the following callback has been called + c.expect = SER; + + // create callback to handle client signature (for client-certs) + var callback = function(c, signature) { + if(c.session.certificateRequest !== null && + c.session.clientCertificate !== null) { + // create certificate verify message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createCertificateVerify(c, signature) + })); + } + + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); + + // create pending state + c.state.pending = tls.createConnectionState(c); + + // change current write state to pending write state + c.state.current.write = c.state.pending.write; + + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + + // expect a server ChangeCipherSpec message next + c.expect = SCC; + + // send records + tls.flush(c); + + // continue + c.process(); + }; + + // if there is no certificate request or no client certificate, do + // callback immediately + if(c.session.certificateRequest === null || + c.session.clientCertificate === null) { + return callback(c, null); + } + + // otherwise get the client signature + tls.getClientSignature(c, callback); +}; + +/** + * Called when a ChangeCipherSpec record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleChangeCipherSpec = function(c, record) { + if(record.fragment.getByte() !== 0x01) { + return c.error(c, { + message: 'Invalid ChangeCipherSpec message received.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.illegal_parameter + } + }); + } + + // create pending state if: + // 1. Resuming session in client mode OR + // 2. NOT resuming session in server mode + var client = (c.entity === tls.ConnectionEnd.client); + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + c.state.pending = tls.createConnectionState(c); + } + + // change current read state to pending read state + c.state.current.read = c.state.pending.read; + + // clear pending state if: + // 1. NOT resuming session in client mode OR + // 2. resuming a session in server mode + if((!c.session.resuming && client) || (c.session.resuming && !client)) { + c.state.pending = null; + } + + // expect a Finished record next + c.expect = client ? SFI : CFI; + + // continue + c.process(); +}; + +/** + * Called when a Finished record is received. + * + * When this message will be sent: + * A finished message is always sent immediately after a change + * cipher spec message to verify that the key exchange and + * authentication processes were successful. It is essential that a + * change cipher spec message be received between the other + * handshake messages and the Finished message. + * + * Meaning of this message: + * The finished message is the first protected with the just- + * negotiated algorithms, keys, and secrets. Recipients of finished + * messages must verify that the contents are correct. Once a side + * has sent its Finished message and received and validated the + * Finished message from its peer, it may begin to send and receive + * application data over the connection. + * + * struct { + * opaque verify_data[verify_data_length]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, Hash(handshake_messages)) + * [0..verify_data_length-1]; + * + * finished_label + * For Finished messages sent by the client, the string + * "client finished". For Finished messages sent by the server, the + * string "server finished". + * + * verify_data_length depends on the cipher suite. If it is not specified + * by the cipher suite, then it is 12. Versions of TLS < 1.2 always used + * 12 bytes. + * + * @param c the connection. + * @param record the record. + * @param length the length of the handshake message. + */ +tls.handleFinished = function(c, record, length) { + // rewind to get full bytes for message so it can be manually + // digested below (special case for Finished messages because they + // must be digested *after* handling as opposed to all others) + var b = record.fragment; + b.read -= 4; + var msgBytes = b.bytes(); + b.read += 4; + + // message contains only verify_data + var vd = record.fragment.getBytes(); + + // ensure verify data is correct + b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + + // set label based on entity type + var client = (c.entity === tls.ConnectionEnd.client); + var label = client ? 'server finished' : 'client finished'; + + // TODO: determine prf function and verify length for TLS 1.2 + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + b = prf(sp.master_secret, label, b.getBytes(), vdl); + if(b.getBytes() !== vd) { + return c.error(c, { + message: 'Invalid verify_data in Finished message.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decrypt_error + } + }); + } + + // digest finished message now that it has been handled + c.session.md5.update(msgBytes); + c.session.sha1.update(msgBytes); + + // resuming session as client or NOT resuming session as server + if((c.session.resuming && client) || (!c.session.resuming && !client)) { + // create change cipher spec message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.change_cipher_spec, + data: tls.createChangeCipherSpec() + })); + + // change current write state to pending write state, clear pending + c.state.current.write = c.state.pending.write; + c.state.pending = null; + + // create finished message + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createFinished(c) + })); + } + + // expect application data next + c.expect = client ? SAD : CAD; + + // handshake complete + c.handshaking = false; + ++c.handshakes; + + // save access to peer certificate + c.peerCertificate = client ? + c.session.serverCertificate : c.session.clientCertificate; + + // send records + tls.flush(c); + + // now connected + c.isConnected = true; + c.connected(c); + + // continue + c.process(); +}; + +/** + * Called when an Alert record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleAlert = function(c, record) { + // read alert + var b = record.fragment; + var alert = { + level: b.getByte(), + description: b.getByte() + }; + + // TODO: consider using a table? + // get appropriate message + var msg; + switch(alert.description) { + case tls.Alert.Description.close_notify: + msg = 'Connection closed.'; + break; + case tls.Alert.Description.unexpected_message: + msg = 'Unexpected message.'; + break; + case tls.Alert.Description.bad_record_mac: + msg = 'Bad record MAC.'; + break; + case tls.Alert.Description.decryption_failed: + msg = 'Decryption failed.'; + break; + case tls.Alert.Description.record_overflow: + msg = 'Record overflow.'; + break; + case tls.Alert.Description.decompression_failure: + msg = 'Decompression failed.'; + break; + case tls.Alert.Description.handshake_failure: + msg = 'Handshake failure.'; + break; + case tls.Alert.Description.bad_certificate: + msg = 'Bad certificate.'; + break; + case tls.Alert.Description.unsupported_certificate: + msg = 'Unsupported certificate.'; + break; + case tls.Alert.Description.certificate_revoked: + msg = 'Certificate revoked.'; + break; + case tls.Alert.Description.certificate_expired: + msg = 'Certificate expired.'; + break; + case tls.Alert.Description.certificate_unknown: + msg = 'Certificate unknown.'; + break; + case tls.Alert.Description.illegal_parameter: + msg = 'Illegal parameter.'; + break; + case tls.Alert.Description.unknown_ca: + msg = 'Unknown certificate authority.'; + break; + case tls.Alert.Description.access_denied: + msg = 'Access denied.'; + break; + case tls.Alert.Description.decode_error: + msg = 'Decode error.'; + break; + case tls.Alert.Description.decrypt_error: + msg = 'Decrypt error.'; + break; + case tls.Alert.Description.export_restriction: + msg = 'Export restriction.'; + break; + case tls.Alert.Description.protocol_version: + msg = 'Unsupported protocol version.'; + break; + case tls.Alert.Description.insufficient_security: + msg = 'Insufficient security.'; + break; + case tls.Alert.Description.internal_error: + msg = 'Internal error.'; + break; + case tls.Alert.Description.user_canceled: + msg = 'User canceled.'; + break; + case tls.Alert.Description.no_renegotiation: + msg = 'Renegotiation not supported.'; + break; + default: + msg = 'Unknown error.'; + break; + } + + // close connection on close_notify, not an error + if(alert.description === tls.Alert.Description.close_notify) { + return c.close(); + } + + // call error handler + c.error(c, { + message: msg, + send: false, + // origin is the opposite end + origin: (c.entity === tls.ConnectionEnd.client) ? 'server' : 'client', + alert: alert + }); + + // continue + c.process(); +}; + +/** + * Called when a Handshake record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHandshake = function(c, record) { + // get the handshake type and message length + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt24(); + + // see if the record fragment doesn't yet contain the full message + if(length > b.length()) { + // cache the record, clear its fragment, and reset the buffer read + // pointer before the type and length were read + c.fragmented = record; + record.fragment = forge.util.createBuffer(); + b.read -= 4; + + // continue + return c.process(); + } + + // full message now available, clear cache, reset read pointer to + // before type and length + c.fragmented = null; + b.read -= 4; + + // save the handshake bytes for digestion after handler is found + // (include type and length of handshake msg) + var bytes = b.bytes(length + 4); + + // restore read pointer + b.read += 4; + + // handle expected message + if(type in hsTable[c.entity][c.expect]) { + // initialize server session + if(c.entity === tls.ConnectionEnd.server && !c.open && !c.fail) { + c.handshaking = true; + c.session = { + version: null, + extensions: { + server_name: { + serverNameList: [] + } + }, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + clientCertificate: null, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; + } + + /* Update handshake messages digest. Finished and CertificateVerify + messages are not digested here. They can't be digested as part of + the verify_data that they contain. These messages are manually + digested in their handlers. HelloRequest messages are simply never + included in the handshake message digest according to spec. */ + if(type !== tls.HandshakeType.hello_request && + type !== tls.HandshakeType.certificate_verify && + type !== tls.HandshakeType.finished) { + c.session.md5.update(bytes); + c.session.sha1.update(bytes); + } + + // handle specific handshake type record + hsTable[c.entity][c.expect][type](c, record, length); + } else { + // unexpected record + tls.handleUnexpected(c, record); + } +}; + +/** + * Called when an ApplicationData record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleApplicationData = function(c, record) { + // buffer data, notify that its ready + c.data.putBuffer(record.fragment); + c.dataReady(c); + + // continue + c.process(); +}; + +/** + * Called when a Heartbeat record is received. + * + * @param c the connection. + * @param record the record. + */ +tls.handleHeartbeat = function(c, record) { + // get the heartbeat type and payload + var b = record.fragment; + var type = b.getByte(); + var length = b.getInt16(); + var payload = b.getBytes(length); + + if(type === tls.HeartbeatMessageType.heartbeat_request) { + // discard request during handshake or if length is too large + if(c.handshaking || length > payload.length) { + // continue + return c.process(); + } + // retransmit payload + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_response, payload) + })); + tls.flush(c); + } else if(type === tls.HeartbeatMessageType.heartbeat_response) { + // check payload against expected payload, discard heartbeat if no match + if(payload !== c.expectedHeartbeatPayload) { + // continue + return c.process(); + } + + // notify that a valid heartbeat was received + if(c.heartbeatReceived) { + c.heartbeatReceived(c, forge.util.createBuffer(payload)); + } + } + + // continue + c.process(); +}; + +/** + * The transistional state tables for receiving TLS records. It maps the + * current TLS engine state and a received record to a function to handle the + * record and update the state. + * + * For instance, if the current state is SHE, then the TLS engine is expecting + * a ServerHello record. Once a record is received, the handler function is + * looked up using the state SHE and the record's content type. + * + * The resulting function will either be an error handler or a record handler. + * The function will take whatever action is appropriate and update the state + * for the next record. + * + * The states are all based on possible server record types. Note that the + * client will never specifically expect to receive a HelloRequest or an alert + * from the server so there is no state that reflects this. These messages may + * occur at any time. + * + * There are two tables for mapping states because there is a second tier of + * types for handshake messages. Once a record with a content type of handshake + * is received, the handshake record handler will look up the handshake type in + * the secondary map to get its appropriate handler. + * + * Valid message orders are as follows: + * + * =======================FULL HANDSHAKE====================== + * Client Server + * + * ClientHello --------> + * ServerHello + * Certificate* + * ServerKeyExchange* + * CertificateRequest* + * <-------- ServerHelloDone + * Certificate* + * ClientKeyExchange + * CertificateVerify* + * [ChangeCipherSpec] + * Finished --------> + * [ChangeCipherSpec] + * <-------- Finished + * Application Data <-------> Application Data + * + * =====================SESSION RESUMPTION===================== + * Client Server + * + * ClientHello --------> + * ServerHello + * [ChangeCipherSpec] + * <-------- Finished + * [ChangeCipherSpec] + * Finished --------> + * Application Data <-------> Application Data + */ +// client expect states (indicate which records are expected to be received) +var SHE = 0; // rcv server hello +var SCE = 1; // rcv server certificate +var SKE = 2; // rcv server key exchange +var SCR = 3; // rcv certificate request +var SHD = 4; // rcv server hello done +var SCC = 5; // rcv change cipher spec +var SFI = 6; // rcv finished +var SAD = 7; // rcv application data +var SER = 8; // not expecting any messages at this point + +// server expect states +var CHE = 0; // rcv client hello +var CCE = 1; // rcv client certificate +var CKE = 2; // rcv client key exchange +var CCV = 3; // rcv certificate verify +var CCC = 4; // rcv change cipher spec +var CFI = 5; // rcv finished +var CAD = 6; // rcv application data +var CER = 7; // not expecting any messages at this point + +// map client current expect state and content type to function +var __ = tls.handleUnexpected; +var R0 = tls.handleChangeCipherSpec; +var R1 = tls.handleAlert; +var R2 = tls.handleHandshake; +var R3 = tls.handleApplicationData; +var R4 = tls.handleHeartbeat; +var ctTable = []; +ctTable[tls.ConnectionEnd.client] = [ +// CC,AL,HS,AD,HB +/*SHE*/[__,R1,R2,__,R4], +/*SCE*/[__,R1,R2,__,R4], +/*SKE*/[__,R1,R2,__,R4], +/*SCR*/[__,R1,R2,__,R4], +/*SHD*/[__,R1,R2,__,R4], +/*SCC*/[R0,R1,__,__,R4], +/*SFI*/[__,R1,R2,__,R4], +/*SAD*/[__,R1,R2,R3,R4], +/*SER*/[__,R1,R2,__,R4] +]; + +// map server current expect state and content type to function +ctTable[tls.ConnectionEnd.server] = [ +// CC,AL,HS,AD +/*CHE*/[__,R1,R2,__,R4], +/*CCE*/[__,R1,R2,__,R4], +/*CKE*/[__,R1,R2,__,R4], +/*CCV*/[__,R1,R2,__,R4], +/*CCC*/[R0,R1,__,__,R4], +/*CFI*/[__,R1,R2,__,R4], +/*CAD*/[__,R1,R2,R3,R4], +/*CER*/[__,R1,R2,__,R4] +]; + +// map client current expect state and handshake type to function +var H0 = tls.handleHelloRequest; +var H1 = tls.handleServerHello; +var H2 = tls.handleCertificate; +var H3 = tls.handleServerKeyExchange; +var H4 = tls.handleCertificateRequest; +var H5 = tls.handleServerHelloDone; +var H6 = tls.handleFinished; +var hsTable = []; +hsTable[tls.ConnectionEnd.client] = [ +// HR,01,SH,03,04,05,06,07,08,09,10,SC,SK,CR,HD,15,CK,17,18,19,FI +/*SHE*/[__,__,H1,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SCE*/[H0,__,__,__,__,__,__,__,__,__,__,H2,H3,H4,H5,__,__,__,__,__,__], +/*SKE*/[H0,__,__,__,__,__,__,__,__,__,__,__,H3,H4,H5,__,__,__,__,__,__], +/*SCR*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,H4,H5,__,__,__,__,__,__], +/*SHD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,H5,__,__,__,__,__,__], +/*SCC*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SFI*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*SAD*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*SER*/[H0,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; + +// map server current expect state and handshake type to function +// Note: CAD[CH] does not map to FB because renegotation is prohibited +var H7 = tls.handleClientHello; +var H8 = tls.handleClientKeyExchange; +var H9 = tls.handleCertificateVerify; +hsTable[tls.ConnectionEnd.server] = [ +// 01,CH,02,03,04,05,06,07,08,09,10,CC,12,13,14,CV,CK,17,18,19,FI +/*CHE*/[__,H7,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CCE*/[__,__,__,__,__,__,__,__,__,__,__,H2,__,__,__,__,__,__,__,__,__], +/*CKE*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H8,__,__,__,__], +/*CCV*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H9,__,__,__,__,__], +/*CCC*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CFI*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,H6], +/*CAD*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__], +/*CER*/[__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__,__] +]; + +/** + * Generates the master_secret and keys using the given security parameters. + * + * The security parameters for a TLS connection state are defined as such: + * + * struct { + * ConnectionEnd entity; + * PRFAlgorithm prf_algorithm; + * BulkCipherAlgorithm bulk_cipher_algorithm; + * CipherType cipher_type; + * uint8 enc_key_length; + * uint8 block_length; + * uint8 fixed_iv_length; + * uint8 record_iv_length; + * MACAlgorithm mac_algorithm; + * uint8 mac_length; + * uint8 mac_key_length; + * CompressionMethod compression_algorithm; + * opaque master_secret[48]; + * opaque client_random[32]; + * opaque server_random[32]; + * } SecurityParameters; + * + * Note that this definition is from TLS 1.2. In TLS 1.0 some of these + * parameters are ignored because, for instance, the PRFAlgorithm is a + * builtin-fixed algorithm combining iterations of MD5 and SHA-1 in TLS 1.0. + * + * The Record Protocol requires an algorithm to generate keys required by the + * current connection state. + * + * The master secret is expanded into a sequence of secure bytes, which is then + * split to a client write MAC key, a server write MAC key, a client write + * encryption key, and a server write encryption key. In TLS 1.0 a client write + * IV and server write IV are also generated. Each of these is generated from + * the byte sequence in that order. Unused values are empty. In TLS 1.2, some + * AEAD ciphers may additionally require a client write IV and a server write + * IV (see Section 6.2.3.3). + * + * When keys, MAC keys, and IVs are generated, the master secret is used as an + * entropy source. + * + * To generate the key material, compute: + * + * master_secret = PRF(pre_master_secret, "master secret", + * ClientHello.random + ServerHello.random) + * + * key_block = PRF(SecurityParameters.master_secret, + * "key expansion", + * SecurityParameters.server_random + + * SecurityParameters.client_random); + * + * until enough output has been generated. Then, the key_block is + * partitioned as follows: + * + * client_write_MAC_key[SecurityParameters.mac_key_length] + * server_write_MAC_key[SecurityParameters.mac_key_length] + * client_write_key[SecurityParameters.enc_key_length] + * server_write_key[SecurityParameters.enc_key_length] + * client_write_IV[SecurityParameters.fixed_iv_length] + * server_write_IV[SecurityParameters.fixed_iv_length] + * + * In TLS 1.2, the client_write_IV and server_write_IV are only generated for + * implicit nonce techniques as described in Section 3.2.1 of [AEAD]. This + * implementation uses TLS 1.0 so IVs are generated. + * + * Implementation note: The currently defined cipher suite which requires the + * most material is AES_256_CBC_SHA256. It requires 2 x 32 byte keys and 2 x 32 + * byte MAC keys, for a total 128 bytes of key material. In TLS 1.0 it also + * requires 2 x 16 byte IVs, so it actually takes 160 bytes of key material. + * + * @param c the connection. + * @param sp the security parameters to use. + * + * @return the security keys. + */ +tls.generateKeys = function(c, sp) { + // TLS_RSA_WITH_AES_128_CBC_SHA (required to be compliant with TLS 1.2) & + // TLS_RSA_WITH_AES_256_CBC_SHA are the only cipher suites implemented + // at present + + // TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA is required to be compliant with + // TLS 1.0 but we don't care right now because AES is better and we have + // an implementation for it + + // TODO: TLS 1.2 implementation + /* + // determine the PRF + var prf; + switch(sp.prf_algorithm) { + case tls.PRFAlgorithm.tls_prf_sha256: + prf = prf_sha256; + break; + default: + // should never happen + throw new Error('Invalid PRF'); + } + */ + + // TLS 1.0/1.1 implementation + var prf = prf_TLS1; + + // concatenate server and client random + var random = sp.client_random + sp.server_random; + + // only create master secret if session is new + if(!c.session.resuming) { + // create master secret, clean up pre-master secret + sp.master_secret = prf( + sp.pre_master_secret, 'master secret', random, 48).bytes(); + sp.pre_master_secret = null; + } + + // generate the amount of key material needed + random = sp.server_random + sp.client_random; + var length = 2 * sp.mac_key_length + 2 * sp.enc_key_length; + + // include IV for TLS/1.0 + var tls10 = (c.version.major === tls.Versions.TLS_1_0.major && + c.version.minor === tls.Versions.TLS_1_0.minor); + if(tls10) { + length += 2 * sp.fixed_iv_length; + } + var km = prf(sp.master_secret, 'key expansion', random, length); + + // split the key material into the MAC and encryption keys + var rval = { + client_write_MAC_key: km.getBytes(sp.mac_key_length), + server_write_MAC_key: km.getBytes(sp.mac_key_length), + client_write_key: km.getBytes(sp.enc_key_length), + server_write_key: km.getBytes(sp.enc_key_length) + }; + + // include TLS 1.0 IVs + if(tls10) { + rval.client_write_IV = km.getBytes(sp.fixed_iv_length); + rval.server_write_IV = km.getBytes(sp.fixed_iv_length); + } + + return rval; +}; + +/** + * Creates a new initialized TLS connection state. A connection state has + * a read mode and a write mode. + * + * compression state: + * The current state of the compression algorithm. + * + * cipher state: + * The current state of the encryption algorithm. This will consist of the + * scheduled key for that connection. For stream ciphers, this will also + * contain whatever state information is necessary to allow the stream to + * continue to encrypt or decrypt data. + * + * MAC key: + * The MAC key for the connection. + * + * sequence number: + * Each connection state contains a sequence number, which is maintained + * separately for read and write states. The sequence number MUST be set to + * zero whenever a connection state is made the active state. Sequence + * numbers are of type uint64 and may not exceed 2^64-1. Sequence numbers do + * not wrap. If a TLS implementation would need to wrap a sequence number, + * it must renegotiate instead. A sequence number is incremented after each + * record: specifically, the first record transmitted under a particular + * connection state MUST use sequence number 0. + * + * @param c the connection. + * + * @return the new initialized TLS connection state. + */ +tls.createConnectionState = function(c) { + var client = (c.entity === tls.ConnectionEnd.client); + + var createMode = function() { + var mode = { + // two 32-bit numbers, first is most significant + sequenceNumber: [0, 0], + macKey: null, + macLength: 0, + macFunction: null, + cipherState: null, + cipherFunction: function(record) {return true;}, + compressionState: null, + compressFunction: function(record) {return true;}, + updateSequenceNumber: function() { + if(mode.sequenceNumber[1] === 0xFFFFFFFF) { + mode.sequenceNumber[1] = 0; + ++mode.sequenceNumber[0]; + } else { + ++mode.sequenceNumber[1]; + } + } + }; + return mode; + }; + var state = { + read: createMode(), + write: createMode() + }; + + // update function in read mode will decrypt then decompress a record + state.read.update = function(c, record) { + if(!state.read.cipherFunction(record, state.read)) { + c.error(c, { + message: 'Could not decrypt record or bad MAC.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + // doesn't matter if decryption failed or MAC was + // invalid, return the same error so as not to reveal + // which one occurred + description: tls.Alert.Description.bad_record_mac + } + }); + } else if(!state.read.compressFunction(c, record, state.read)) { + c.error(c, { + message: 'Could not decompress record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.decompression_failure + } + }); + } + return !c.fail; + }; + + // update function in write mode will compress then encrypt a record + state.write.update = function(c, record) { + if(!state.write.compressFunction(c, record, state.write)) { + // error, but do not send alert since it would require + // compression as well + c.error(c, { + message: 'Could not compress record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } else if(!state.write.cipherFunction(record, state.write)) { + // error, but do not send alert since it would require + // encryption as well + c.error(c, { + message: 'Could not encrypt record.', + send: false, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + return !c.fail; + }; + + // handle security parameters + if(c.session) { + var sp = c.session.sp; + c.session.cipherSuite.initSecurityParameters(sp); + + // generate keys + sp.keys = tls.generateKeys(c, sp); + state.read.macKey = client ? + sp.keys.server_write_MAC_key : sp.keys.client_write_MAC_key; + state.write.macKey = client ? + sp.keys.client_write_MAC_key : sp.keys.server_write_MAC_key; + + // cipher suite setup + c.session.cipherSuite.initConnectionState(state, c, sp); + + // compression setup + switch(sp.compression_algorithm) { + case tls.CompressionMethod.none: + break; + case tls.CompressionMethod.deflate: + state.read.compressFunction = inflate; + state.write.compressFunction = deflate; + break; + default: + throw new Error('Unsupported compression algorithm.'); + } + } + + return state; +}; + +/** + * Creates a Random structure. + * + * struct { + * uint32 gmt_unix_time; + * opaque random_bytes[28]; + * } Random; + * + * gmt_unix_time: + * The current time and date in standard UNIX 32-bit format (seconds since + * the midnight starting Jan 1, 1970, UTC, ignoring leap seconds) according + * to the sender's internal clock. Clocks are not required to be set + * correctly by the basic TLS protocol; higher-level or application + * protocols may define additional requirements. Note that, for historical + * reasons, the data element is named using GMT, the predecessor of the + * current worldwide time base, UTC. + * random_bytes: + * 28 bytes generated by a secure random number generator. + * + * @return the Random structure as a byte array. + */ +tls.createRandom = function() { + // get UTC milliseconds + var d = new Date(); + var utc = +d + d.getTimezoneOffset() * 60000; + var rval = forge.util.createBuffer(); + rval.putInt32(utc); + rval.putBytes(forge.random.getBytes(28)); + return rval; +}; + +/** + * Creates a TLS record with the given type and data. + * + * @param c the connection. + * @param options: + * type: the record type. + * data: the plain text data in a byte buffer. + * + * @return the created record. + */ +tls.createRecord = function(c, options) { + if(!options.data) { + return null; + } + var record = { + type: options.type, + version: { + major: c.version.major, + minor: c.version.minor + }, + length: options.data.length(), + fragment: options.data + }; + return record; +}; + +/** + * Creates a TLS alert record. + * + * @param c the connection. + * @param alert: + * level: the TLS alert level. + * description: the TLS alert description. + * + * @return the created alert record. + */ +tls.createAlert = function(c, alert) { + var b = forge.util.createBuffer(); + b.putByte(alert.level); + b.putByte(alert.description); + return tls.createRecord(c, { + type: tls.ContentType.alert, + data: b + }); +}; + +/* The structure of a TLS handshake message. + * + * struct { + * HandshakeType msg_type; // handshake type + * uint24 length; // bytes in message + * select(HandshakeType) { + * case hello_request: HelloRequest; + * case client_hello: ClientHello; + * case server_hello: ServerHello; + * case certificate: Certificate; + * case server_key_exchange: ServerKeyExchange; + * case certificate_request: CertificateRequest; + * case server_hello_done: ServerHelloDone; + * case certificate_verify: CertificateVerify; + * case client_key_exchange: ClientKeyExchange; + * case finished: Finished; + * } body; + * } Handshake; + */ + +/** + * Creates a ClientHello message. + * + * opaque SessionID<0..32>; + * enum { null(0), deflate(1), (255) } CompressionMethod; + * uint8 CipherSuite[2]; + * + * struct { + * ProtocolVersion client_version; + * Random random; + * SessionID session_id; + * CipherSuite cipher_suites<2..2^16-2>; + * CompressionMethod compression_methods<1..2^8-1>; + * select(extensions_present) { + * case false: + * struct {}; + * case true: + * Extension extensions<0..2^16-1>; + * }; + * } ClientHello; + * + * The extension format for extended client hellos and server hellos is: + * + * struct { + * ExtensionType extension_type; + * opaque extension_data<0..2^16-1>; + * } Extension; + * + * Here: + * + * - "extension_type" identifies the particular extension type. + * - "extension_data" contains information specific to the particular + * extension type. + * + * The extension types defined in this document are: + * + * enum { + * server_name(0), max_fragment_length(1), + * client_certificate_url(2), trusted_ca_keys(3), + * truncated_hmac(4), status_request(5), (65535) + * } ExtensionType; + * + * @param c the connection. + * + * @return the ClientHello byte buffer. + */ +tls.createClientHello = function(c) { + // save hello version + c.session.clientHelloVersion = { + major: c.version.major, + minor: c.version.minor + }; + + // create supported cipher suites + var cipherSuites = forge.util.createBuffer(); + for(var i = 0; i < c.cipherSuites.length; ++i) { + var cs = c.cipherSuites[i]; + cipherSuites.putByte(cs.id[0]); + cipherSuites.putByte(cs.id[1]); + } + var cSuites = cipherSuites.length(); + + // create supported compression methods, null always supported, but + // also support deflate if connection has inflate and deflate methods + var compressionMethods = forge.util.createBuffer(); + compressionMethods.putByte(tls.CompressionMethod.none); + // FIXME: deflate support disabled until issues with raw deflate data + // without zlib headers are resolved + /* + if(c.inflate !== null && c.deflate !== null) { + compressionMethods.putByte(tls.CompressionMethod.deflate); + } + */ + var cMethods = compressionMethods.length(); + + // create TLS SNI (server name indication) extension if virtual host + // has been specified, see RFC 3546 + var extensions = forge.util.createBuffer(); + if(c.virtualHost) { + // create extension struct + var ext = forge.util.createBuffer(); + ext.putByte(0x00); // type server_name (ExtensionType is 2 bytes) + ext.putByte(0x00); + + /* In order to provide the server name, clients MAY include an + * extension of type "server_name" in the (extended) client hello. + * The "extension_data" field of this extension SHALL contain + * "ServerNameList" where: + * + * struct { + * NameType name_type; + * select(name_type) { + * case host_name: HostName; + * } name; + * } ServerName; + * + * enum { + * host_name(0), (255) + * } NameType; + * + * opaque HostName<1..2^16-1>; + * + * struct { + * ServerName server_name_list<1..2^16-1> + * } ServerNameList; + */ + var serverName = forge.util.createBuffer(); + serverName.putByte(0x00); // type host_name + writeVector(serverName, 2, forge.util.createBuffer(c.virtualHost)); + + // ServerNameList is in extension_data + var snList = forge.util.createBuffer(); + writeVector(snList, 2, serverName); + writeVector(ext, 2, snList); + extensions.putBuffer(ext); + } + var extLength = extensions.length(); + if(extLength > 0) { + // add extension vector length + extLength += 2; + } + + // determine length of the handshake message + // cipher suites and compression methods size will need to be + // updated if more get added to the list + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + cSuites + // cipher suites vector + 1 + cMethods + // compression methods vector + extLength; // extensions vector + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.client_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + writeVector(rval, 2, cipherSuites); + writeVector(rval, 1, compressionMethods); + if(extLength > 0) { + writeVector(rval, 2, extensions); + } + return rval; +}; + +/** + * Creates a ServerHello message. + * + * @param c the connection. + * + * @return the ServerHello byte buffer. + */ +tls.createServerHello = function(c) { + // determine length of the handshake message + var sessionId = c.session.id; + var length = + sessionId.length + 1 + // session ID vector + 2 + // version (major + minor) + 4 + 28 + // random time and random bytes + 2 + // chosen cipher suite + 1; // chosen compression method + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello); + rval.putInt24(length); // handshake length + rval.putByte(c.version.major); // major version + rval.putByte(c.version.minor); // minor version + rval.putBytes(c.session.sp.server_random); // random time + bytes + writeVector(rval, 1, forge.util.createBuffer(sessionId)); + rval.putByte(c.session.cipherSuite.id[0]); + rval.putByte(c.session.cipherSuite.id[1]); + rval.putByte(c.session.compressionMethod); + return rval; +}; + +/** + * Creates a Certificate message. + * + * When this message will be sent: + * This is the first message the client can send after receiving a server + * hello done message and the first message the server can send after + * sending a ServerHello. This client message is only sent if the server + * requests a certificate. If no suitable certificate is available, the + * client should send a certificate message containing no certificates. If + * client authentication is required by the server for the handshake to + * continue, it may respond with a fatal handshake failure alert. + * + * opaque ASN.1Cert<1..2^24-1>; + * + * struct { + * ASN.1Cert certificate_list<0..2^24-1>; + * } Certificate; + * + * @param c the connection. + * + * @return the Certificate byte buffer. + */ +tls.createCertificate = function(c) { + // TODO: check certificate request to ensure types are supported + + // get a certificate (a certificate as a PEM string) + var client = (c.entity === tls.ConnectionEnd.client); + var cert = null; + if(c.getCertificate) { + var hint; + if(client) { + hint = c.session.certificateRequest; + } else { + hint = c.session.extensions.server_name.serverNameList; + } + cert = c.getCertificate(c, hint); + } + + // buffer to hold certificate list + var certList = forge.util.createBuffer(); + if(cert !== null) { + try { + // normalize cert to a chain of certificates + if(!forge.util.isArray(cert)) { + cert = [cert]; + } + var asn1 = null; + for(var i = 0; i < cert.length; ++i) { + var msg = forge.pem.decode(cert[i])[0]; + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error('Could not convert certificate from PEM; PEM ' + + 'header type is not "CERTIFICATE", "X509 CERTIFICATE", or ' + + '"TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certificate from PEM; PEM is encrypted.'); + } + + var der = forge.util.createBuffer(msg.body); + if(asn1 === null) { + asn1 = forge.asn1.fromDer(der.bytes(), false); + } + + // certificate entry is itself a vector with 3 length bytes + var certBuffer = forge.util.createBuffer(); + writeVector(certBuffer, 3, der); + + // add cert vector to cert list vector + certList.putBuffer(certBuffer); + } + + // save certificate + cert = forge.pki.certificateFromAsn1(asn1); + if(client) { + c.session.clientCertificate = cert; + } else { + c.session.serverCertificate = cert; + } + } catch(ex) { + return c.error(c, { + message: 'Could not send certificate list.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + } + }); + } + } + + // determine length of the handshake message + var length = 3 + certList.length(); // cert list vector + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate); + rval.putInt24(length); + writeVector(rval, 3, certList); + return rval; +}; + +/** + * Creates a ClientKeyExchange message. + * + * When this message will be sent: + * This message is always sent by the client. It will immediately follow the + * client certificate message, if it is sent. Otherwise it will be the first + * message sent by the client after it receives the server hello done + * message. + * + * Meaning of this message: + * With this message, the premaster secret is set, either though direct + * transmission of the RSA-encrypted secret, or by the transmission of + * Diffie-Hellman parameters which will allow each side to agree upon the + * same premaster secret. When the key exchange method is DH_RSA or DH_DSS, + * client certification has been requested, and the client was able to + * respond with a certificate which contained a Diffie-Hellman public key + * whose parameters (group and generator) matched those specified by the + * server in its certificate, this message will not contain any data. + * + * Meaning of this message: + * If RSA is being used for key agreement and authentication, the client + * generates a 48-byte premaster secret, encrypts it using the public key + * from the server's certificate or the temporary RSA key provided in a + * server key exchange message, and sends the result in an encrypted + * premaster secret message. This structure is a variant of the client + * key exchange message, not a message in itself. + * + * struct { + * select(KeyExchangeAlgorithm) { + * case rsa: EncryptedPreMasterSecret; + * case diffie_hellman: ClientDiffieHellmanPublic; + * } exchange_keys; + * } ClientKeyExchange; + * + * struct { + * ProtocolVersion client_version; + * opaque random[46]; + * } PreMasterSecret; + * + * struct { + * public-key-encrypted PreMasterSecret pre_master_secret; + * } EncryptedPreMasterSecret; + * + * A public-key-encrypted element is encoded as a vector <0..2^16-1>. + * + * @param c the connection. + * + * @return the ClientKeyExchange byte buffer. + */ +tls.createClientKeyExchange = function(c) { + // create buffer to encrypt + var b = forge.util.createBuffer(); + + // add highest client-supported protocol to help server avoid version + // rollback attacks + b.putByte(c.session.clientHelloVersion.major); + b.putByte(c.session.clientHelloVersion.minor); + + // generate and add 46 random bytes + b.putBytes(forge.random.getBytes(46)); + + // save pre-master secret + var sp = c.session.sp; + sp.pre_master_secret = b.getBytes(); + + // RSA-encrypt the pre-master secret + var key = c.session.serverCertificate.publicKey; + b = key.encrypt(sp.pre_master_secret); + + /* Note: The encrypted pre-master secret will be stored in a + public-key-encrypted opaque vector that has the length prefixed using + 2 bytes, so include those 2 bytes in the handshake message length. This + is done as a minor optimization instead of calling writeVector(). */ + + // determine length of the handshake message + var length = b.length + 2; + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.client_key_exchange); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(b.length); + rval.putBytes(b); + return rval; +}; + +/** + * Creates a ServerKeyExchange message. + * + * @param c the connection. + * + * @return the ServerKeyExchange byte buffer. + */ +tls.createServerKeyExchange = function(c) { + // this implementation only supports RSA, no Diffie-Hellman support, + // so this record is empty + + // determine length of the handshake message + var length = 0; + + // build record fragment + var rval = forge.util.createBuffer(); + if(length > 0) { + rval.putByte(tls.HandshakeType.server_key_exchange); + rval.putInt24(length); + } + return rval; +}; + +/** + * Gets the signed data used to verify a client-side certificate. See + * tls.createCertificateVerify() for details. + * + * @param c the connection. + * @param callback the callback to call once the signed data is ready. + */ +tls.getClientSignature = function(c, callback) { + // generate data to RSA encrypt + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + b = b.getBytes(); + + // create default signing function as necessary + c.getSignature = c.getSignature || function(c, b, callback) { + // do rsa encryption, call callback + var privateKey = null; + if(c.getPrivateKey) { + try { + privateKey = c.getPrivateKey(c, c.session.clientCertificate); + privateKey = forge.pki.privateKeyFromPem(privateKey); + } catch(ex) { + c.error(c, { + message: 'Could not get private key.', + cause: ex, + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } + } + if(privateKey === null) { + c.error(c, { + message: 'No private key set.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.internal_error + } + }); + } else { + b = privateKey.sign(b, null); + } + callback(c, b); + }; + + // get client signature + c.getSignature(c, b, callback); +}; + +/** + * Creates a CertificateVerify message. + * + * Meaning of this message: + * This structure conveys the client's Diffie-Hellman public value + * (Yc) if it was not already included in the client's certificate. + * The encoding used for Yc is determined by the enumerated + * PublicValueEncoding. This structure is a variant of the client + * key exchange message, not a message in itself. + * + * When this message will be sent: + * This message is used to provide explicit verification of a client + * certificate. This message is only sent following a client + * certificate that has signing capability (i.e. all certificates + * except those containing fixed Diffie-Hellman parameters). When + * sent, it will immediately follow the client key exchange message. + * + * struct { + * Signature signature; + * } CertificateVerify; + * + * CertificateVerify.signature.md5_hash + * MD5(handshake_messages); + * + * Certificate.signature.sha_hash + * SHA(handshake_messages); + * + * Here handshake_messages refers to all handshake messages sent or + * received starting at client hello up to but not including this + * message, including the type and length fields of the handshake + * messages. + * + * select(SignatureAlgorithm) { + * case anonymous: struct { }; + * case rsa: + * digitally-signed struct { + * opaque md5_hash[16]; + * opaque sha_hash[20]; + * }; + * case dsa: + * digitally-signed struct { + * opaque sha_hash[20]; + * }; + * } Signature; + * + * In digital signing, one-way hash functions are used as input for a + * signing algorithm. A digitally-signed element is encoded as an opaque + * vector <0..2^16-1>, where the length is specified by the signing + * algorithm and key. + * + * In RSA signing, a 36-byte structure of two hashes (one SHA and one + * MD5) is signed (encrypted with the private key). It is encoded with + * PKCS #1 block type 0 or type 1 as described in [PKCS1]. + * + * In DSS, the 20 bytes of the SHA hash are run directly through the + * Digital Signing Algorithm with no additional hashing. + * + * @param c the connection. + * @param signature the signature to include in the message. + * + * @return the CertificateVerify byte buffer. + */ +tls.createCertificateVerify = function(c, signature) { + /* Note: The signature will be stored in a "digitally-signed" opaque + vector that has the length prefixed using 2 bytes, so include those + 2 bytes in the handshake message length. This is done as a minor + optimization instead of calling writeVector(). */ + + // determine length of the handshake message + var length = signature.length + 2; + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_verify); + rval.putInt24(length); + // add vector length bytes + rval.putInt16(signature.length); + rval.putBytes(signature); + return rval; +}; + +/** + * Creates a CertificateRequest message. + * + * @param c the connection. + * + * @return the CertificateRequest byte buffer. + */ +tls.createCertificateRequest = function(c) { + // TODO: support other certificate types + var certTypes = forge.util.createBuffer(); + + // common RSA certificate type + certTypes.putByte(0x01); + + // add distinguished names from CA store + var cAs = forge.util.createBuffer(); + for(var key in c.caStore.certs) { + var cert = c.caStore.certs[key]; + var dn = forge.pki.distinguishedNameToAsn1(cert.subject); + var byteBuffer = forge.asn1.toDer(dn); + cAs.putInt16(byteBuffer.length()); + cAs.putBuffer(byteBuffer); + } + + // TODO: TLS 1.2+ has a different format + + // determine length of the handshake message + var length = + 1 + certTypes.length() + + 2 + cAs.length(); + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.certificate_request); + rval.putInt24(length); + writeVector(rval, 1, certTypes); + writeVector(rval, 2, cAs); + return rval; +}; + +/** + * Creates a ServerHelloDone message. + * + * @param c the connection. + * + * @return the ServerHelloDone byte buffer. + */ +tls.createServerHelloDone = function(c) { + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.server_hello_done); + rval.putInt24(0); + return rval; +}; + +/** + * Creates a ChangeCipherSpec message. + * + * The change cipher spec protocol exists to signal transitions in + * ciphering strategies. The protocol consists of a single message, + * which is encrypted and compressed under the current (not the pending) + * connection state. The message consists of a single byte of value 1. + * + * struct { + * enum { change_cipher_spec(1), (255) } type; + * } ChangeCipherSpec; + * + * @return the ChangeCipherSpec byte buffer. + */ +tls.createChangeCipherSpec = function() { + var rval = forge.util.createBuffer(); + rval.putByte(0x01); + return rval; +}; + +/** + * Creates a Finished message. + * + * struct { + * opaque verify_data[12]; + * } Finished; + * + * verify_data + * PRF(master_secret, finished_label, MD5(handshake_messages) + + * SHA-1(handshake_messages)) [0..11]; + * + * finished_label + * For Finished messages sent by the client, the string "client + * finished". For Finished messages sent by the server, the + * string "server finished". + * + * handshake_messages + * All of the data from all handshake messages up to but not + * including this message. This is only data visible at the + * handshake layer and does not include record layer headers. + * This is the concatenation of all the Handshake structures as + * defined in 7.4 exchanged thus far. + * + * @param c the connection. + * + * @return the Finished byte buffer. + */ +tls.createFinished = function(c) { + // generate verify_data + var b = forge.util.createBuffer(); + b.putBuffer(c.session.md5.digest()); + b.putBuffer(c.session.sha1.digest()); + + // TODO: determine prf function and verify length for TLS 1.2 + var client = (c.entity === tls.ConnectionEnd.client); + var sp = c.session.sp; + var vdl = 12; + var prf = prf_TLS1; + var label = client ? 'client finished' : 'server finished'; + b = prf(sp.master_secret, label, b.getBytes(), vdl); + + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(tls.HandshakeType.finished); + rval.putInt24(b.length()); + rval.putBuffer(b); + return rval; +}; + +/** + * Creates a HeartbeatMessage (See RFC 6520). + * + * struct { + * HeartbeatMessageType type; + * uint16 payload_length; + * opaque payload[HeartbeatMessage.payload_length]; + * opaque padding[padding_length]; + * } HeartbeatMessage; + * + * The total length of a HeartbeatMessage MUST NOT exceed 2^14 or + * max_fragment_length when negotiated as defined in [RFC6066]. + * + * type: The message type, either heartbeat_request or heartbeat_response. + * + * payload_length: The length of the payload. + * + * payload: The payload consists of arbitrary content. + * + * padding: The padding is random content that MUST be ignored by the + * receiver. The length of a HeartbeatMessage is TLSPlaintext.length + * for TLS and DTLSPlaintext.length for DTLS. Furthermore, the + * length of the type field is 1 byte, and the length of the + * payload_length is 2. Therefore, the padding_length is + * TLSPlaintext.length - payload_length - 3 for TLS and + * DTLSPlaintext.length - payload_length - 3 for DTLS. The + * padding_length MUST be at least 16. + * + * The sender of a HeartbeatMessage MUST use a random padding of at + * least 16 bytes. The padding of a received HeartbeatMessage message + * MUST be ignored. + * + * If the payload_length of a received HeartbeatMessage is too large, + * the received HeartbeatMessage MUST be discarded silently. + * + * @param c the connection. + * @param type the tls.HeartbeatMessageType. + * @param payload the heartbeat data to send as the payload. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return the HeartbeatRequest byte buffer. + */ +tls.createHeartbeat = function(type, payload, payloadLength) { + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + // build record fragment + var rval = forge.util.createBuffer(); + rval.putByte(type); // heartbeat message type + rval.putInt16(payloadLength); // payload length + rval.putBytes(payload); // payload + // padding + var plaintextLength = rval.length(); + var paddingLength = Math.max(16, plaintextLength - payloadLength - 3); + rval.putBytes(forge.random.getBytes(paddingLength)); + return rval; +}; + +/** + * Fragments, compresses, encrypts, and queues a record for delivery. + * + * @param c the connection. + * @param record the record to queue. + */ +tls.queue = function(c, record) { + // error during record creation + if(!record) { + return; + } + + if(record.fragment.length() === 0) { + if(record.type === tls.ContentType.handshake || + record.type === tls.ContentType.alert || + record.type === tls.ContentType.change_cipher_spec) { + // Empty handshake, alert of change cipher spec messages are not allowed per the TLS specification and should not be sent. + return; + } + } + + // if the record is a handshake record, update handshake hashes + if(record.type === tls.ContentType.handshake) { + var bytes = record.fragment.bytes(); + c.session.md5.update(bytes); + c.session.sha1.update(bytes); + bytes = null; + } + + // handle record fragmentation + var records; + if(record.fragment.length() <= tls.MaxFragment) { + records = [record]; + } else { + // fragment data as long as it is too long + records = []; + var data = record.fragment.bytes(); + while(data.length > tls.MaxFragment) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data.slice(0, tls.MaxFragment)) + })); + data = data.slice(tls.MaxFragment); + } + // add last record + if(data.length > 0) { + records.push(tls.createRecord(c, { + type: record.type, + data: forge.util.createBuffer(data) + })); + } + } + + // compress and encrypt all fragmented records + for(var i = 0; i < records.length && !c.fail; ++i) { + // update the record using current write state + var rec = records[i]; + var s = c.state.current.write; + if(s.update(c, rec)) { + // store record + c.records.push(rec); + } + } +}; + +/** + * Flushes all queued records to the output buffer and calls the + * tlsDataReady() handler on the given connection. + * + * @param c the connection. + * + * @return true on success, false on failure. + */ +tls.flush = function(c) { + for(var i = 0; i < c.records.length; ++i) { + var record = c.records[i]; + + // add record header and fragment + c.tlsData.putByte(record.type); + c.tlsData.putByte(record.version.major); + c.tlsData.putByte(record.version.minor); + c.tlsData.putInt16(record.fragment.length()); + c.tlsData.putBuffer(c.records[i].fragment); + } + c.records = []; + return c.tlsDataReady(c); +}; + +/** + * Maps a pki.certificateError to a tls.Alert.Description. + * + * @param error the error to map. + * + * @return the alert description. + */ +var _certErrorToAlertDesc = function(error) { + switch(error) { + case true: + return true; + case forge.pki.certificateError.bad_certificate: + return tls.Alert.Description.bad_certificate; + case forge.pki.certificateError.unsupported_certificate: + return tls.Alert.Description.unsupported_certificate; + case forge.pki.certificateError.certificate_revoked: + return tls.Alert.Description.certificate_revoked; + case forge.pki.certificateError.certificate_expired: + return tls.Alert.Description.certificate_expired; + case forge.pki.certificateError.certificate_unknown: + return tls.Alert.Description.certificate_unknown; + case forge.pki.certificateError.unknown_ca: + return tls.Alert.Description.unknown_ca; + default: + return tls.Alert.Description.bad_certificate; + } +}; + +/** + * Maps a tls.Alert.Description to a pki.certificateError. + * + * @param desc the alert description. + * + * @return the certificate error. + */ +var _alertDescToCertError = function(desc) { + switch(desc) { + case true: + return true; + case tls.Alert.Description.bad_certificate: + return forge.pki.certificateError.bad_certificate; + case tls.Alert.Description.unsupported_certificate: + return forge.pki.certificateError.unsupported_certificate; + case tls.Alert.Description.certificate_revoked: + return forge.pki.certificateError.certificate_revoked; + case tls.Alert.Description.certificate_expired: + return forge.pki.certificateError.certificate_expired; + case tls.Alert.Description.certificate_unknown: + return forge.pki.certificateError.certificate_unknown; + case tls.Alert.Description.unknown_ca: + return forge.pki.certificateError.unknown_ca; + default: + return forge.pki.certificateError.bad_certificate; + } +}; + +/** + * Verifies a certificate chain against the given connection's + * Certificate Authority store. + * + * @param c the TLS connection. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end. + * + * @return true if successful, false if not. + */ +tls.verifyCertificateChain = function(c, chain) { + try { + // Make a copy of c.verifyOptions so that we can modify options.verify + // without modifying c.verifyOptions. + var options = {}; + for (var key in c.verifyOptions) { + options[key] = c.verifyOptions[key]; + } + + options.verify = function(vfd, depth, chain) { + // convert pki.certificateError to tls alert description + var desc = _certErrorToAlertDesc(vfd); + + // call application callback + var ret = c.verify(c, vfd, depth, chain); + if(ret !== true) { + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + // throw custom error + var error = new Error('The application rejected the certificate.'); + error.send = true; + error.alert = { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.bad_certificate + }; + if(ret.message) { + error.message = ret.message; + } + if(ret.alert) { + error.alert.description = ret.alert; + } + throw error; + } + + // convert tls alert description to pki.certificateError + if(ret !== vfd) { + ret = _alertDescToCertError(ret); + } + } + + return ret; + }; + + // verify chain + forge.pki.verifyCertificateChain(c.caStore, chain, options); + } catch(ex) { + // build tls error if not already customized + var err = ex; + if(typeof err !== 'object' || forge.util.isArray(err)) { + err = { + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(ex) + } + }; + } + if(!('send' in err)) { + err.send = true; + } + if(!('alert' in err)) { + err.alert = { + level: tls.Alert.Level.fatal, + description: _certErrorToAlertDesc(err.error) + }; + } + + // send error + c.error(c, err); + } + + return !c.fail; +}; + +/** + * Creates a new TLS session cache. + * + * @param cache optional map of session ID to cached session. + * @param capacity the maximum size for the cache (default: 100). + * + * @return the new TLS session cache. + */ +tls.createSessionCache = function(cache, capacity) { + var rval = null; + + // assume input is already a session cache object + if(cache && cache.getSession && cache.setSession && cache.order) { + rval = cache; + } else { + // create cache + rval = {}; + rval.cache = cache || {}; + rval.capacity = Math.max(capacity || 100, 1); + rval.order = []; + + // store order for sessions, delete session overflow + for(var key in cache) { + if(rval.order.length <= capacity) { + rval.order.push(key); + } else { + delete cache[key]; + } + } + + // get a session from a session ID (or get any session) + rval.getSession = function(sessionId) { + var session = null; + var key = null; + + // if session ID provided, use it + if(sessionId) { + key = forge.util.bytesToHex(sessionId); + } else if(rval.order.length > 0) { + // get first session from cache + key = rval.order[0]; + } + + if(key !== null && key in rval.cache) { + // get cached session and remove from cache + session = rval.cache[key]; + delete rval.cache[key]; + for(var i in rval.order) { + if(rval.order[i] === key) { + rval.order.splice(i, 1); + break; + } + } + } + + return session; + }; + + // set a session in the cache + rval.setSession = function(sessionId, session) { + // remove session from cache if at capacity + if(rval.order.length === rval.capacity) { + var key = rval.order.shift(); + delete rval.cache[key]; + } + // add session to cache + var key = forge.util.bytesToHex(sessionId); + rval.order.push(key); + rval.cache[key] = session; + }; + } + + return rval; +}; + +/** + * Creates a new TLS connection. + * + * See public createConnection() docs for more details. + * + * @param options the options for this connection. + * + * @return the new TLS connection. + */ +tls.createConnection = function(options) { + var caStore = null; + if(options.caStore) { + // if CA store is an array, convert it to a CA store object + if(forge.util.isArray(options.caStore)) { + caStore = forge.pki.createCaStore(options.caStore); + } else { + caStore = options.caStore; + } + } else { + // create empty CA store + caStore = forge.pki.createCaStore(); + } + + // setup default cipher suites + var cipherSuites = options.cipherSuites || null; + if(cipherSuites === null) { + cipherSuites = []; + for(var key in tls.CipherSuites) { + cipherSuites.push(tls.CipherSuites[key]); + } + } + + // set default entity + var entity = (options.server || false) ? + tls.ConnectionEnd.server : tls.ConnectionEnd.client; + + // create session cache if requested + var sessionCache = options.sessionCache ? + tls.createSessionCache(options.sessionCache) : null; + + // create TLS connection + var c = { + version: {major: tls.Version.major, minor: tls.Version.minor}, + entity: entity, + sessionId: options.sessionId, + caStore: caStore, + sessionCache: sessionCache, + cipherSuites: cipherSuites, + connected: options.connected, + virtualHost: options.virtualHost || null, + verifyClient: options.verifyClient || false, + verify: options.verify || function(cn, vfd, dpth, cts) {return vfd;}, + verifyOptions: options.verifyOptions || {}, + getCertificate: options.getCertificate || null, + getPrivateKey: options.getPrivateKey || null, + getSignature: options.getSignature || null, + input: forge.util.createBuffer(), + tlsData: forge.util.createBuffer(), + data: forge.util.createBuffer(), + tlsDataReady: options.tlsDataReady, + dataReady: options.dataReady, + heartbeatReceived: options.heartbeatReceived, + closed: options.closed, + error: function(c, ex) { + // set origin if not set + ex.origin = ex.origin || + ((c.entity === tls.ConnectionEnd.client) ? 'client' : 'server'); + + // send TLS alert + if(ex.send) { + tls.queue(c, tls.createAlert(c, ex.alert)); + tls.flush(c); + } + + // error is fatal by default + var fatal = (ex.fatal !== false); + if(fatal) { + // set fail flag + c.fail = true; + } + + // call error handler first + options.error(c, ex); + + if(fatal) { + // fatal error, close connection, do not clear fail + c.close(false); + } + }, + deflate: options.deflate || null, + inflate: options.inflate || null + }; + + /** + * Resets a closed TLS connection for reuse. Called in c.close(). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.reset = function(clearFail) { + c.version = {major: tls.Version.major, minor: tls.Version.minor}; + c.record = null; + c.session = null; + c.peerCertificate = null; + c.state = { + pending: null, + current: null + }; + c.expect = (c.entity === tls.ConnectionEnd.client) ? SHE : CHE; + c.fragmented = null; + c.records = []; + c.open = false; + c.handshakes = 0; + c.handshaking = false; + c.isConnected = false; + c.fail = !(clearFail || typeof(clearFail) === 'undefined'); + c.input.clear(); + c.tlsData.clear(); + c.data.clear(); + c.state.current = tls.createConnectionState(c); + }; + + // do initial reset of connection + c.reset(); + + /** + * Updates the current TLS engine state based on the given record. + * + * @param c the TLS connection. + * @param record the TLS record to act on. + */ + var _update = function(c, record) { + // get record handler (align type in table by subtracting lowest) + var aligned = record.type - tls.ContentType.change_cipher_spec; + var handlers = ctTable[c.entity][c.expect]; + if(aligned in handlers) { + handlers[aligned](c, record); + } else { + // unexpected record + tls.handleUnexpected(c, record); + } + }; + + /** + * Reads the record header and initializes the next record on the given + * connection. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecordHeader = function(c) { + var rval = 0; + + // get input buffer and its length + var b = c.input; + var len = b.length(); + + // need at least 5 bytes to initialize a record + if(len < 5) { + rval = 5 - len; + } else { + // enough bytes for header + // initialize record + c.record = { + type: b.getByte(), + version: { + major: b.getByte(), + minor: b.getByte() + }, + length: b.getInt16(), + fragment: forge.util.createBuffer(), + ready: false + }; + + // check record version + var compatibleVersion = (c.record.version.major === c.version.major); + if(compatibleVersion && c.session && c.session.version) { + // session version already set, require same minor version + compatibleVersion = (c.record.version.minor === c.version.minor); + } + if(!compatibleVersion) { + c.error(c, { + message: 'Incompatible TLS version.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: tls.Alert.Description.protocol_version + } + }); + } + } + + return rval; + }; + + /** + * Reads the next record's contents and appends its message to any + * previously fragmented message. + * + * @param c the TLS connection with the next record. + * + * @return 0 if the input data could be processed, otherwise the + * number of bytes required for data to be processed. + */ + var _readRecord = function(c) { + var rval = 0; + + // ensure there is enough input data to get the entire record + var b = c.input; + var len = b.length(); + if(len < c.record.length) { + // not enough data yet, return how much is required + rval = c.record.length - len; + } else { + // there is enough data to parse the pending record + // fill record fragment and compact input buffer + c.record.fragment.putBytes(b.getBytes(c.record.length)); + b.compact(); + + // update record using current read state + var s = c.state.current.read; + if(s.update(c, c.record)) { + // see if there is a previously fragmented message that the + // new record's message fragment should be appended to + if(c.fragmented !== null) { + // if the record type matches a previously fragmented + // record, append the record fragment to it + if(c.fragmented.type === c.record.type) { + // concatenate record fragments + c.fragmented.fragment.putBuffer(c.record.fragment); + c.record = c.fragmented; + } else { + // error, invalid fragmented record + c.error(c, { + message: 'Invalid fragmented record.', + send: true, + alert: { + level: tls.Alert.Level.fatal, + description: + tls.Alert.Description.unexpected_message + } + }); + } + } + + // record is now ready + c.record.ready = true; + } + } + + return rval; + }; + + /** + * Performs a handshake using the TLS Handshake Protocol, as a client. + * + * This method should only be called if the connection is in client mode. + * + * @param sessionId the session ID to use, null to start a new one. + */ + c.handshake = function(sessionId) { + // error to call this in non-client mode + if(c.entity !== tls.ConnectionEnd.client) { + // not fatal error + c.error(c, { + message: 'Cannot initiate handshake as a server.', + fatal: false + }); + } else if(c.handshaking) { + // handshake is already in progress, fail but not fatal error + c.error(c, { + message: 'Handshake already in progress.', + fatal: false + }); + } else { + // clear fail flag on reuse + if(c.fail && !c.open && c.handshakes === 0) { + c.fail = false; + } + + // now handshaking + c.handshaking = true; + + // default to blank (new session) + sessionId = sessionId || ''; + + // if a session ID was specified, try to find it in the cache + var session = null; + if(sessionId.length > 0) { + if(c.sessionCache) { + session = c.sessionCache.getSession(sessionId); + } + + // matching session not found in cache, clear session ID + if(session === null) { + sessionId = ''; + } + } + + // no session given, grab a session from the cache, if available + if(sessionId.length === 0 && c.sessionCache) { + session = c.sessionCache.getSession(); + if(session !== null) { + sessionId = session.id; + } + } + + // set up session + c.session = { + id: sessionId, + version: null, + cipherSuite: null, + compressionMethod: null, + serverCertificate: null, + certificateRequest: null, + clientCertificate: null, + sp: {}, + md5: forge.md.md5.create(), + sha1: forge.md.sha1.create() + }; + + // use existing session information + if(session) { + // only update version on connection, session version not yet set + c.version = session.version; + c.session.sp = session.sp; + } + + // generate new client random + c.session.sp.client_random = tls.createRandom().getBytes(); + + // connection now open + c.open = true; + + // send hello + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.handshake, + data: tls.createClientHello(c) + })); + tls.flush(c); + } + }; + + /** + * Called when TLS protocol data has been received from somewhere and should + * be processed by the TLS engine. + * + * @param data the TLS protocol data, as a string, to process. + * + * @return 0 if the data could be processed, otherwise the number of bytes + * required for data to be processed. + */ + c.process = function(data) { + var rval = 0; + + // buffer input data + if(data) { + c.input.putBytes(data); + } + + // process next record if no failure, process will be called after + // each record is handled (since handling can be asynchronous) + if(!c.fail) { + // reset record if ready and now empty + if(c.record !== null && + c.record.ready && c.record.fragment.isEmpty()) { + c.record = null; + } + + // if there is no pending record, try to read record header + if(c.record === null) { + rval = _readRecordHeader(c); + } + + // read the next record (if record not yet ready) + if(!c.fail && c.record !== null && !c.record.ready) { + rval = _readRecord(c); + } + + // record ready to be handled, update engine state + if(!c.fail && c.record !== null && c.record.ready) { + _update(c, c.record); + } + } + + return rval; + }; + + /** + * Requests that application data be packaged into a TLS record. The + * tlsDataReady handler will be called when the TLS record(s) have been + * prepared. + * + * @param data the application data, as a raw 'binary' encoded string, to + * be sent; to send utf-16/utf-8 string data, use the return value + * of util.encodeUtf8(str). + * + * @return true on success, false on failure. + */ + c.prepare = function(data) { + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.application_data, + data: forge.util.createBuffer(data) + })); + return tls.flush(c); + }; + + /** + * Requests that a heartbeat request be packaged into a TLS record for + * transmission. The tlsDataReady handler will be called when TLS record(s) + * have been prepared. + * + * When a heartbeat response has been received, the heartbeatReceived + * handler will be called with the matching payload. This handler can + * be used to clear a retransmission timer, etc. + * + * @param payload the heartbeat data to send as the payload in the message. + * @param [payloadLength] the payload length to use, defaults to the + * actual payload length. + * + * @return true on success, false on failure. + */ + c.prepareHeartbeatRequest = function(payload, payloadLength) { + if(payload instanceof forge.util.ByteBuffer) { + payload = payload.bytes(); + } + if(typeof payloadLength === 'undefined') { + payloadLength = payload.length; + } + c.expectedHeartbeatPayload = payload; + tls.queue(c, tls.createRecord(c, { + type: tls.ContentType.heartbeat, + data: tls.createHeartbeat( + tls.HeartbeatMessageType.heartbeat_request, payload, payloadLength) + })); + return tls.flush(c); + }; + + /** + * Closes the connection (sends a close_notify alert). + * + * @param clearFail true to clear the fail flag (default: true). + */ + c.close = function(clearFail) { + // save session if connection didn't fail + if(!c.fail && c.sessionCache && c.session) { + // only need to preserve session ID, version, and security params + var session = { + id: c.session.id, + version: c.session.version, + sp: c.session.sp + }; + session.sp.keys = null; + c.sessionCache.setSession(session.id, session); + } + + if(c.open) { + // connection no longer open, clear input + c.open = false; + c.input.clear(); + + // if connected or handshaking, send an alert + if(c.isConnected || c.handshaking) { + c.isConnected = c.handshaking = false; + + // send close_notify alert + tls.queue(c, tls.createAlert(c, { + level: tls.Alert.Level.warning, + description: tls.Alert.Description.close_notify + })); + tls.flush(c); + } + + // call handler + c.closed(c); + } + + // reset TLS connection, do not clear fail flag + c.reset(clearFail); + }; + + return c; +}; + +/* TLS API */ +module.exports = forge.tls = forge.tls || {}; + +// expose non-functions +for(var key in tls) { + if(typeof tls[key] !== 'function') { + forge.tls[key] = tls[key]; + } +} + +// expose prf_tls1 for testing +forge.tls.prf_tls1 = prf_TLS1; + +// expose sha1 hmac method +forge.tls.hmac_sha1 = hmac_sha1; + +// expose session cache creation +forge.tls.createSessionCache = tls.createSessionCache; + +/** + * Creates a new TLS connection. This does not make any assumptions about the + * transport layer that TLS is working on top of, ie: it does not assume there + * is a TCP/IP connection or establish one. A TLS connection is totally + * abstracted away from the layer is runs on top of, it merely establishes a + * secure channel between a client" and a "server". + * + * A TLS connection contains 4 connection states: pending read and write, and + * current read and write. + * + * At initialization, the current read and write states will be null. Only once + * the security parameters have been set and the keys have been generated can + * the pending states be converted into current states. Current states will be + * updated for each record processed. + * + * A custom certificate verify callback may be provided to check information + * like the common name on the server's certificate. It will be called for + * every certificate in the chain. It has the following signature: + * + * variable func(c, certs, index, preVerify) + * Where: + * c The TLS connection + * verified Set to true if certificate was verified, otherwise the alert + * tls.Alert.Description for why the certificate failed. + * depth The current index in the chain, where 0 is the server's cert. + * certs The certificate chain, *NOTE* if the server was anonymous then + * the chain will be empty. + * + * The function returns true on success and on failure either the appropriate + * tls.Alert.Description or an object with 'alert' set to the appropriate + * tls.Alert.Description and 'message' set to a custom error message. If true + * is not returned then the connection will abort using, in order of + * availability, first the returned alert description, second the preVerify + * alert description, and lastly the default 'bad_certificate'. + * + * There are three callbacks that can be used to make use of client-side + * certificates where each takes the TLS connection as the first parameter: + * + * getCertificate(conn, hint) + * The second parameter is a hint as to which certificate should be + * returned. If the connection entity is a client, then the hint will be + * the CertificateRequest message from the server that is part of the + * TLS protocol. If the connection entity is a server, then it will be + * the servername list provided via an SNI extension the ClientHello, if + * one was provided (empty array if not). The hint can be examined to + * determine which certificate to use (advanced). Most implementations + * will just return a certificate. The return value must be a + * PEM-formatted certificate or an array of PEM-formatted certificates + * that constitute a certificate chain, with the first in the array/chain + * being the client's certificate. + * getPrivateKey(conn, certificate) + * The second parameter is an forge.pki X.509 certificate object that + * is associated with the requested private key. The return value must + * be a PEM-formatted private key. + * getSignature(conn, bytes, callback) + * This callback can be used instead of getPrivateKey if the private key + * is not directly accessible in javascript or should not be. For + * instance, a secure external web service could provide the signature + * in exchange for appropriate credentials. The second parameter is a + * string of bytes to be signed that are part of the TLS protocol. These + * bytes are used to verify that the private key for the previously + * provided client-side certificate is accessible to the client. The + * callback is a function that takes 2 parameters, the TLS connection + * and the RSA encrypted (signed) bytes as a string. This callback must + * be called once the signature is ready. + * + * @param options the options for this connection: + * server: true if the connection is server-side, false for client. + * sessionId: a session ID to reuse, null for a new connection. + * caStore: an array of certificates to trust. + * sessionCache: a session cache to use. + * cipherSuites: an optional array of cipher suites to use, + * see tls.CipherSuites. + * connected: function(conn) called when the first handshake completes. + * virtualHost: the virtual server name to use in a TLS SNI extension. + * verifyClient: true to require a client certificate in server mode, + * 'optional' to request one, false not to (default: false). + * verify: a handler used to custom verify certificates in the chain. + * verifyOptions: an object with options for the certificate chain validation. + * See documentation of pki.verifyCertificateChain for possible options. + * verifyOptions.verify is ignored. If you wish to specify a verify handler + * use the verify key. + * getCertificate: an optional callback used to get a certificate or + * a chain of certificates (as an array). + * getPrivateKey: an optional callback used to get a private key. + * getSignature: an optional callback used to get a signature. + * tlsDataReady: function(conn) called when TLS protocol data has been + * prepared and is ready to be used (typically sent over a socket + * connection to its destination), read from conn.tlsData buffer. + * dataReady: function(conn) called when application data has + * been parsed from a TLS record and should be consumed by the + * application, read from conn.data buffer. + * closed: function(conn) called when the connection has been closed. + * error: function(conn, error) called when there was an error. + * deflate: function(inBytes) if provided, will deflate TLS records using + * the deflate algorithm if the server supports it. + * inflate: function(inBytes) if provided, will inflate TLS records using + * the deflate algorithm if the server supports it. + * + * @return the new TLS connection. + */ +forge.tls.createConnection = tls.createConnection; + + +/***/ }), + +/***/ 21726: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Utility functions for web applications. + * + * @author Dave Longley + * + * Copyright (c) 2010-2018 Digital Bazaar, Inc. + */ +var forge = __nccwpck_require__(35703); +var baseN = __nccwpck_require__(25148); + +/* Utilities API */ +var util = module.exports = forge.util = forge.util || {}; + +// define setImmediate and nextTick +(function() { + // use native nextTick (unless we're in webpack) + // webpack (or better node-libs-browser polyfill) sets process.browser. + // this way we can detect webpack properly + if(typeof process !== 'undefined' && process.nextTick && !process.browser) { + util.nextTick = process.nextTick; + if(typeof setImmediate === 'function') { + util.setImmediate = setImmediate; + } else { + // polyfill setImmediate with nextTick, older versions of node + // (those w/o setImmediate) won't totally starve IO + util.setImmediate = util.nextTick; + } + return; + } + + // polyfill nextTick with native setImmediate + if(typeof setImmediate === 'function') { + util.setImmediate = function() { return setImmediate.apply(undefined, arguments); }; + util.nextTick = function(callback) { + return setImmediate(callback); + }; + return; + } + + /* Note: A polyfill upgrade pattern is used here to allow combining + polyfills. For example, MutationObserver is fast, but blocks UI updates, + so it needs to allow UI updates periodically, so it falls back on + postMessage or setTimeout. */ + + // polyfill with setTimeout + util.setImmediate = function(callback) { + setTimeout(callback, 0); + }; + + // upgrade polyfill to use postMessage + if(typeof window !== 'undefined' && + typeof window.postMessage === 'function') { + var msg = 'forge.setImmediate'; + var callbacks = []; + util.setImmediate = function(callback) { + callbacks.push(callback); + // only send message when one hasn't been sent in + // the current turn of the event loop + if(callbacks.length === 1) { + window.postMessage(msg, '*'); + } + }; + function handler(event) { + if(event.source === window && event.data === msg) { + event.stopPropagation(); + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + } + } + window.addEventListener('message', handler, true); + } + + // upgrade polyfill to use MutationObserver + if(typeof MutationObserver !== 'undefined') { + // polyfill with MutationObserver + var now = Date.now(); + var attr = true; + var div = document.createElement('div'); + var callbacks = []; + new MutationObserver(function() { + var copy = callbacks.slice(); + callbacks.length = 0; + copy.forEach(function(callback) { + callback(); + }); + }).observe(div, {attributes: true}); + var oldSetImmediate = util.setImmediate; + util.setImmediate = function(callback) { + if(Date.now() - now > 15) { + now = Date.now(); + oldSetImmediate(callback); + } else { + callbacks.push(callback); + // only trigger observer when it hasn't been triggered in + // the current turn of the event loop + if(callbacks.length === 1) { + div.setAttribute('a', attr = !attr); + } + } + }; + } + + util.nextTick = util.setImmediate; +})(); + +// check if running under Node.js +util.isNodejs = + typeof process !== 'undefined' && process.versions && process.versions.node; + + +// 'self' will also work in Web Workers (instance of WorkerGlobalScope) while +// it will point to `window` in the main thread. +// To remain compatible with older browsers, we fall back to 'window' if 'self' +// is not available. +util.globalScope = (function() { + if(util.isNodejs) { + return global; + } + + return typeof self === 'undefined' ? window : self; +})(); + +// define isArray +util.isArray = Array.isArray || function(x) { + return Object.prototype.toString.call(x) === '[object Array]'; +}; + +// define isArrayBuffer +util.isArrayBuffer = function(x) { + return typeof ArrayBuffer !== 'undefined' && x instanceof ArrayBuffer; +}; + +// define isArrayBufferView +util.isArrayBufferView = function(x) { + return x && util.isArrayBuffer(x.buffer) && x.byteLength !== undefined; +}; + +/** + * Ensure a bits param is 8, 16, 24, or 32. Used to validate input for + * algorithms where bit manipulation, JavaScript limitations, and/or algorithm + * design only allow for byte operations of a limited size. + * + * @param n number of bits. + * + * Throw Error if n invalid. + */ +function _checkBitsParam(n) { + if(!(n === 8 || n === 16 || n === 24 || n === 32)) { + throw new Error('Only 8, 16, 24, or 32 bits supported: ' + n); + } +} + +// TODO: set ByteBuffer to best available backing +util.ByteBuffer = ByteStringBuffer; + +/** Buffer w/BinaryString backing */ + +/** + * Constructor for a binary string backed byte buffer. + * + * @param [b] the bytes to wrap (either encoded as string, one byte per + * character, or as an ArrayBuffer or Typed Array). + */ +function ByteStringBuffer(b) { + // TODO: update to match DataBuffer API + + // the data in this buffer + this.data = ''; + // the pointer for reading from this buffer + this.read = 0; + + if(typeof b === 'string') { + this.data = b; + } else if(util.isArrayBuffer(b) || util.isArrayBufferView(b)) { + if(typeof Buffer !== 'undefined' && b instanceof Buffer) { + this.data = b.toString('binary'); + } else { + // convert native buffer to forge buffer + // FIXME: support native buffers internally instead + var arr = new Uint8Array(b); + try { + this.data = String.fromCharCode.apply(null, arr); + } catch(e) { + for(var i = 0; i < arr.length; ++i) { + this.putByte(arr[i]); + } + } + } + } else if(b instanceof ByteStringBuffer || + (typeof b === 'object' && typeof b.data === 'string' && + typeof b.read === 'number')) { + // copy existing buffer + this.data = b.data; + this.read = b.read; + } + + // used for v8 optimization + this._constructedStringLength = 0; +} +util.ByteStringBuffer = ByteStringBuffer; + +/* Note: This is an optimization for V8-based browsers. When V8 concatenates + a string, the strings are only joined logically using a "cons string" or + "constructed/concatenated string". These containers keep references to one + another and can result in very large memory usage. For example, if a 2MB + string is constructed by concatenating 4 bytes together at a time, the + memory usage will be ~44MB; so ~22x increase. The strings are only joined + together when an operation requiring their joining takes place, such as + substr(). This function is called when adding data to this buffer to ensure + these types of strings are periodically joined to reduce the memory + footprint. */ +var _MAX_CONSTRUCTED_STRING_LENGTH = 4096; +util.ByteStringBuffer.prototype._optimizeConstructedString = function(x) { + this._constructedStringLength += x; + if(this._constructedStringLength > _MAX_CONSTRUCTED_STRING_LENGTH) { + // this substr() should cause the constructed string to join + this.data.substr(0, 1); + this._constructedStringLength = 0; + } +}; + +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.ByteStringBuffer.prototype.length = function() { + return this.data.length - this.read; +}; + +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.ByteStringBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; + +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putByte = function(b) { + return this.putBytes(String.fromCharCode(b)); +}; + +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.fillWithByte = function(b, n) { + b = String.fromCharCode(b); + var d = this.data; + while(n > 0) { + if(n & 1) { + d += b; + } + n >>>= 1; + if(n > 0) { + b += b; + } + } + this.data = d; + this._optimizeConstructedString(n); + return this; +}; + +/** + * Puts bytes in this buffer. + * + * @param bytes the bytes (as a binary encoded string) to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBytes = function(bytes) { + this.data += bytes; + this._optimizeConstructedString(bytes.length); + return this; +}; + +/** + * Puts a UTF-16 encoded string into this buffer. + * + * @param str the string to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putString = function(str) { + return this.putBytes(util.encodeUtf8(str)); +}; + +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32 = function(i) { + return this.putBytes( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt16Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF)); +}; + +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt24Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF)); +}; + +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt32Le = function(i) { + return this.putBytes( + String.fromCharCode(i & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 24 & 0xFF)); +}; + +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + var bytes = ''; + do { + n -= 8; + bytes += String.fromCharCode((i >> n) & 0xFF); + } while(n > 0); + return this.putBytes(bytes); +}; + +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putSignedInt = function(i, n) { + // putInt checks n + if(i < 0) { + i += 2 << (n - 1); + } + return this.putInt(i, n); +}; + +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.putBuffer = function(buffer) { + return this.putBytes(buffer.getBytes()); +}; + +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.getByte = function() { + return this.data.charCodeAt(this.read++); +}; + +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 8 ^ + this.data.charCodeAt(this.read + 1)); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 16 ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2)); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32 = function() { + var rval = ( + this.data.charCodeAt(this.read) << 24 ^ + this.data.charCodeAt(this.read + 1) << 16 ^ + this.data.charCodeAt(this.read + 2) << 8 ^ + this.data.charCodeAt(this.read + 3)); + this.read += 4; + return rval; +}; + +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.ByteStringBuffer.prototype.getInt16Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.ByteStringBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.ByteStringBuffer.prototype.getInt32Le = function() { + var rval = ( + this.data.charCodeAt(this.read) ^ + this.data.charCodeAt(this.read + 1) << 8 ^ + this.data.charCodeAt(this.read + 2) << 16 ^ + this.data.charCodeAt(this.read + 3) << 24); + this.read += 4; + return rval; +}; + +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by ceil(n/8). + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.charCodeAt(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; + +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.ByteStringBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; + } + return x; +}; + +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. Note that the resulting string is binary encoded (in node.js this + * encoding is referred to as `binary`, it is *not* `utf8`). + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.ByteStringBuffer.prototype.getBytes = function(count) { + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); + } + return rval; +}; + +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.ByteStringBuffer.prototype.bytes = function(count) { + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; + +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.ByteStringBuffer.prototype.at = function(i) { + return this.data.charCodeAt(this.read + i); +}; + +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.setAt = function(i, b) { + this.data = this.data.substr(0, this.read + i) + + String.fromCharCode(b) + + this.data.substr(this.read + i + 1); + return this; +}; + +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.ByteStringBuffer.prototype.last = function() { + return this.data.charCodeAt(this.data.length - 1); +}; + +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.ByteStringBuffer.prototype.copy = function() { + var c = util.createBuffer(this.data); + c.read = this.read; + return c; +}; + +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.compact = function() { + if(this.read > 0) { + this.data = this.data.slice(this.read); + this.read = 0; + } + return this; +}; + +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.clear = function() { + this.data = ''; + this.read = 0; + return this; +}; + +/** + * Shortens this buffer by triming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.ByteStringBuffer.prototype.truncate = function(count) { + var len = Math.max(0, this.length() - count); + this.data = this.data.substr(this.read, len); + this.read = 0; + return this; +}; + +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.ByteStringBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.length; ++i) { + var b = this.data.charCodeAt(i); + if(b < 16) { + rval += '0'; + } + rval += b.toString(16); + } + return rval; +}; + +/** + * Converts this buffer to a UTF-16 string (standard JavaScript string). + * + * @return a UTF-16 string. + */ +util.ByteStringBuffer.prototype.toString = function() { + return util.decodeUtf8(this.bytes()); +}; + +/** End Buffer w/BinaryString backing */ + +/** Buffer w/UInt8Array backing */ + +/** + * FIXME: Experimental. Do not use yet. + * + * Constructor for an ArrayBuffer-backed byte buffer. + * + * The buffer may be constructed from a string, an ArrayBuffer, DataView, or a + * TypedArray. + * + * If a string is given, its encoding should be provided as an option, + * otherwise it will default to 'binary'. A 'binary' string is encoded such + * that each character is one byte in length and size. + * + * If an ArrayBuffer, DataView, or TypedArray is given, it will be used + * *directly* without any copying. Note that, if a write to the buffer requires + * more space, the buffer will allocate a new backing ArrayBuffer to + * accommodate. The starting read and write offsets for the buffer may be + * given as options. + * + * @param [b] the initial bytes for this buffer. + * @param options the options to use: + * [readOffset] the starting read offset to use (default: 0). + * [writeOffset] the starting write offset to use (default: the + * length of the first parameter). + * [growSize] the minimum amount, in bytes, to grow the buffer by to + * accommodate writes (default: 1024). + * [encoding] the encoding ('binary', 'utf8', 'utf16', 'hex') for the + * first parameter, if it is a string (default: 'binary'). + */ +function DataBuffer(b, options) { + // default options + options = options || {}; + + // pointers for read from/write to buffer + this.read = options.readOffset || 0; + this.growSize = options.growSize || 1024; + + var isArrayBuffer = util.isArrayBuffer(b); + var isArrayBufferView = util.isArrayBufferView(b); + if(isArrayBuffer || isArrayBufferView) { + // use ArrayBuffer directly + if(isArrayBuffer) { + this.data = new DataView(b); + } else { + // TODO: adjust read/write offset based on the type of view + // or specify that this must be done in the options ... that the + // offsets are byte-based + this.data = new DataView(b.buffer, b.byteOffset, b.byteLength); + } + this.write = ('writeOffset' in options ? + options.writeOffset : this.data.byteLength); + return; + } + + // initialize to empty array buffer and add any given bytes using putBytes + this.data = new DataView(new ArrayBuffer(0)); + this.write = 0; + + if(b !== null && b !== undefined) { + this.putBytes(b); + } + + if('writeOffset' in options) { + this.write = options.writeOffset; + } +} +util.DataBuffer = DataBuffer; + +/** + * Gets the number of bytes in this buffer. + * + * @return the number of bytes in this buffer. + */ +util.DataBuffer.prototype.length = function() { + return this.write - this.read; +}; + +/** + * Gets whether or not this buffer is empty. + * + * @return true if this buffer is empty, false if not. + */ +util.DataBuffer.prototype.isEmpty = function() { + return this.length() <= 0; +}; + +/** + * Ensures this buffer has enough empty space to accommodate the given number + * of bytes. An optional parameter may be given that indicates a minimum + * amount to grow the buffer if necessary. If the parameter is not given, + * the buffer will be grown by some previously-specified default amount + * or heuristic. + * + * @param amount the number of bytes to accommodate. + * @param [growSize] the minimum amount, in bytes, to grow the buffer by if + * necessary. + */ +util.DataBuffer.prototype.accommodate = function(amount, growSize) { + if(this.length() >= amount) { + return this; + } + growSize = Math.max(growSize || this.growSize, amount); + + // grow buffer + var src = new Uint8Array( + this.data.buffer, this.data.byteOffset, this.data.byteLength); + var dst = new Uint8Array(this.length() + growSize); + dst.set(src); + this.data = new DataView(dst.buffer); + + return this; +}; + +/** + * Puts a byte in this buffer. + * + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putByte = function(b) { + this.accommodate(1); + this.data.setUint8(this.write++, b); + return this; +}; + +/** + * Puts a byte in this buffer N times. + * + * @param b the byte to put. + * @param n the number of bytes of value b to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.fillWithByte = function(b, n) { + this.accommodate(n); + for(var i = 0; i < n; ++i) { + this.data.setUint8(b); + } + return this; +}; + +/** + * Puts bytes in this buffer. The bytes may be given as a string, an + * ArrayBuffer, a DataView, or a TypedArray. + * + * @param bytes the bytes to put. + * @param [encoding] the encoding for the first parameter ('binary', 'utf8', + * 'utf16', 'hex'), if it is a string (default: 'binary'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBytes = function(bytes, encoding) { + if(util.isArrayBufferView(bytes)) { + var src = new Uint8Array(bytes.buffer, bytes.byteOffset, bytes.byteLength); + var len = src.byteLength - src.byteOffset; + this.accommodate(len); + var dst = new Uint8Array(this.data.buffer, this.write); + dst.set(src); + this.write += len; + return this; + } + + if(util.isArrayBuffer(bytes)) { + var src = new Uint8Array(bytes); + this.accommodate(src.byteLength); + var dst = new Uint8Array(this.data.buffer); + dst.set(src, this.write); + this.write += src.byteLength; + return this; + } + + // bytes is a util.DataBuffer or equivalent + if(bytes instanceof util.DataBuffer || + (typeof bytes === 'object' && + typeof bytes.read === 'number' && typeof bytes.write === 'number' && + util.isArrayBufferView(bytes.data))) { + var src = new Uint8Array(bytes.data.byteLength, bytes.read, bytes.length()); + this.accommodate(src.byteLength); + var dst = new Uint8Array(bytes.data.byteLength, this.write); + dst.set(src); + this.write += src.byteLength; + return this; + } + + if(bytes instanceof util.ByteStringBuffer) { + // copy binary string and process as the same as a string parameter below + bytes = bytes.data; + encoding = 'binary'; + } + + // string conversion + encoding = encoding || 'binary'; + if(typeof bytes === 'string') { + var view; + + // decode from string + if(encoding === 'hex') { + this.accommodate(Math.ceil(bytes.length / 2)); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.hex.decode(bytes, view, this.write); + return this; + } + if(encoding === 'base64') { + this.accommodate(Math.ceil(bytes.length / 4) * 3); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.base64.decode(bytes, view, this.write); + return this; + } + + // encode text as UTF-8 bytes + if(encoding === 'utf8') { + // encode as UTF-8 then decode string as raw binary + bytes = util.encodeUtf8(bytes); + encoding = 'binary'; + } + + // decode string as raw binary + if(encoding === 'binary' || encoding === 'raw') { + // one byte per character + this.accommodate(bytes.length); + view = new Uint8Array(this.data.buffer, this.write); + this.write += util.binary.raw.decode(view); + return this; + } + + // encode text as UTF-16 bytes + if(encoding === 'utf16') { + // two bytes per character + this.accommodate(bytes.length * 2); + view = new Uint16Array(this.data.buffer, this.write); + this.write += util.text.utf16.encode(view); + return this; + } + + throw new Error('Invalid encoding: ' + encoding); + } + + throw Error('Invalid parameter: ' + bytes); +}; + +/** + * Puts the given buffer into this buffer. + * + * @param buffer the buffer to put into this one. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putBuffer = function(buffer) { + this.putBytes(buffer); + buffer.clear(); + return this; +}; + +/** + * Puts a string into this buffer. + * + * @param str the string to put. + * @param [encoding] the encoding for the string (default: 'utf16'). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putString = function(str) { + return this.putBytes(str, 'utf16'); +}; + +/** + * Puts a 16-bit integer in this buffer in big-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16 = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i); + this.write += 2; + return this; +}; + +/** + * Puts a 24-bit integer in this buffer in big-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24 = function(i) { + this.accommodate(3); + this.data.setInt16(this.write, i >> 8 & 0xFFFF); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.write += 3; + return this; +}; + +/** + * Puts a 32-bit integer in this buffer in big-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32 = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i); + this.write += 4; + return this; +}; + +/** + * Puts a 16-bit integer in this buffer in little-endian order. + * + * @param i the 16-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt16Le = function(i) { + this.accommodate(2); + this.data.setInt16(this.write, i, true); + this.write += 2; + return this; +}; + +/** + * Puts a 24-bit integer in this buffer in little-endian order. + * + * @param i the 24-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt24Le = function(i) { + this.accommodate(3); + this.data.setInt8(this.write, i >> 16 & 0xFF); + this.data.setInt16(this.write, i >> 8 & 0xFFFF, true); + this.write += 3; + return this; +}; + +/** + * Puts a 32-bit integer in this buffer in little-endian order. + * + * @param i the 32-bit integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt32Le = function(i) { + this.accommodate(4); + this.data.setInt32(this.write, i, true); + this.write += 4; + return this; +}; + +/** + * Puts an n-bit integer in this buffer in big-endian order. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return this buffer. + */ +util.DataBuffer.prototype.putInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + do { + n -= 8; + this.data.setInt8(this.write++, (i >> n) & 0xFF); + } while(n > 0); + return this; +}; + +/** + * Puts a signed n-bit integer in this buffer in big-endian order. Two's + * complement representation is used. + * + * @param i the n-bit integer. + * @param n the number of bits in the integer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.putSignedInt = function(i, n) { + _checkBitsParam(n); + this.accommodate(n / 8); + if(i < 0) { + i += 2 << (n - 1); + } + return this.putInt(i, n); +}; + +/** + * Gets a byte from this buffer and advances the read pointer by 1. + * + * @return the byte. + */ +util.DataBuffer.prototype.getByte = function() { + return this.data.getInt8(this.read++); +}; + +/** + * Gets a uint16 from this buffer in big-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16 = function() { + var rval = this.data.getInt16(this.read); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in big-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24 = function() { + var rval = ( + this.data.getInt16(this.read) << 8 ^ + this.data.getInt8(this.read + 2)); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in big-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32 = function() { + var rval = this.data.getInt32(this.read); + this.read += 4; + return rval; +}; + +/** + * Gets a uint16 from this buffer in little-endian order and advances the read + * pointer by 2. + * + * @return the uint16. + */ +util.DataBuffer.prototype.getInt16Le = function() { + var rval = this.data.getInt16(this.read, true); + this.read += 2; + return rval; +}; + +/** + * Gets a uint24 from this buffer in little-endian order and advances the read + * pointer by 3. + * + * @return the uint24. + */ +util.DataBuffer.prototype.getInt24Le = function() { + var rval = ( + this.data.getInt8(this.read) ^ + this.data.getInt16(this.read + 1, true) << 8); + this.read += 3; + return rval; +}; + +/** + * Gets a uint32 from this buffer in little-endian order and advances the read + * pointer by 4. + * + * @return the word. + */ +util.DataBuffer.prototype.getInt32Le = function() { + var rval = this.data.getInt32(this.read, true); + this.read += 4; + return rval; +}; + +/** + * Gets an n-bit integer from this buffer in big-endian order and advances the + * read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getInt = function(n) { + _checkBitsParam(n); + var rval = 0; + do { + // TODO: Use (rval * 0x100) if adding support for 33 to 53 bits. + rval = (rval << 8) + this.data.getInt8(this.read++); + n -= 8; + } while(n > 0); + return rval; +}; + +/** + * Gets a signed n-bit integer from this buffer in big-endian order, using + * two's complement, and advances the read pointer by n/8. + * + * @param n the number of bits in the integer (8, 16, 24, or 32). + * + * @return the integer. + */ +util.DataBuffer.prototype.getSignedInt = function(n) { + // getInt checks n + var x = this.getInt(n); + var max = 2 << (n - 2); + if(x >= max) { + x -= max << 1; + } + return x; +}; + +/** + * Reads bytes out as a binary encoded string and clears them from the + * buffer. + * + * @param count the number of bytes to read, undefined or null for all. + * + * @return a binary encoded string of bytes. + */ +util.DataBuffer.prototype.getBytes = function(count) { + // TODO: deprecate this method, it is poorly named and + // this.toString('binary') replaces it + // add a toTypedArray()/toArrayBuffer() function + var rval; + if(count) { + // read count bytes + count = Math.min(this.length(), count); + rval = this.data.slice(this.read, this.read + count); + this.read += count; + } else if(count === 0) { + rval = ''; + } else { + // read all bytes, optimize to only copy when needed + rval = (this.read === 0) ? this.data : this.data.slice(this.read); + this.clear(); + } + return rval; +}; + +/** + * Gets a binary encoded string of the bytes from this buffer without + * modifying the read pointer. + * + * @param count the number of bytes to get, omit to get all. + * + * @return a string full of binary encoded characters. + */ +util.DataBuffer.prototype.bytes = function(count) { + // TODO: deprecate this method, it is poorly named, add "getString()" + return (typeof(count) === 'undefined' ? + this.data.slice(this.read) : + this.data.slice(this.read, this.read + count)); +}; + +/** + * Gets a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * + * @return the byte. + */ +util.DataBuffer.prototype.at = function(i) { + return this.data.getUint8(this.read + i); +}; + +/** + * Puts a byte at the given index without modifying the read pointer. + * + * @param i the byte index. + * @param b the byte to put. + * + * @return this buffer. + */ +util.DataBuffer.prototype.setAt = function(i, b) { + this.data.setUint8(i, b); + return this; +}; + +/** + * Gets the last byte without modifying the read pointer. + * + * @return the last byte. + */ +util.DataBuffer.prototype.last = function() { + return this.data.getUint8(this.write - 1); +}; + +/** + * Creates a copy of this buffer. + * + * @return the copy. + */ +util.DataBuffer.prototype.copy = function() { + return new util.DataBuffer(this); +}; + +/** + * Compacts this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.compact = function() { + if(this.read > 0) { + var src = new Uint8Array(this.data.buffer, this.read); + var dst = new Uint8Array(src.byteLength); + dst.set(src); + this.data = new DataView(dst); + this.write -= this.read; + this.read = 0; + } + return this; +}; + +/** + * Clears this buffer. + * + * @return this buffer. + */ +util.DataBuffer.prototype.clear = function() { + this.data = new DataView(new ArrayBuffer(0)); + this.read = this.write = 0; + return this; +}; + +/** + * Shortens this buffer by triming bytes off of the end of this buffer. + * + * @param count the number of bytes to trim off. + * + * @return this buffer. + */ +util.DataBuffer.prototype.truncate = function(count) { + this.write = Math.max(0, this.length() - count); + this.read = Math.min(this.read, this.write); + return this; +}; + +/** + * Converts this buffer to a hexadecimal string. + * + * @return a hexadecimal string. + */ +util.DataBuffer.prototype.toHex = function() { + var rval = ''; + for(var i = this.read; i < this.data.byteLength; ++i) { + var b = this.data.getUint8(i); + if(b < 16) { + rval += '0'; + } + rval += b.toString(16); + } + return rval; +}; + +/** + * Converts this buffer to a string, using the given encoding. If no + * encoding is given, 'utf8' (UTF-8) is used. + * + * @param [encoding] the encoding to use: 'binary', 'utf8', 'utf16', 'hex', + * 'base64' (default: 'utf8'). + * + * @return a string representation of the bytes in this buffer. + */ +util.DataBuffer.prototype.toString = function(encoding) { + var view = new Uint8Array(this.data, this.read, this.length()); + encoding = encoding || 'utf8'; + + // encode to string + if(encoding === 'binary' || encoding === 'raw') { + return util.binary.raw.encode(view); + } + if(encoding === 'hex') { + return util.binary.hex.encode(view); + } + if(encoding === 'base64') { + return util.binary.base64.encode(view); + } + + // decode to text + if(encoding === 'utf8') { + return util.text.utf8.decode(view); + } + if(encoding === 'utf16') { + return util.text.utf16.decode(view); + } + + throw new Error('Invalid encoding: ' + encoding); +}; + +/** End Buffer w/UInt8Array backing */ + +/** + * Creates a buffer that stores bytes. A value may be given to populate the + * buffer with data. This value can either be string of encoded bytes or a + * regular string of characters. When passing a string of binary encoded + * bytes, the encoding `raw` should be given. This is also the default. When + * passing a string of characters, the encoding `utf8` should be given. + * + * @param [input] a string with encoded bytes to store in the buffer. + * @param [encoding] (default: 'raw', other: 'utf8'). + */ +util.createBuffer = function(input, encoding) { + // TODO: deprecate, use new ByteBuffer() instead + encoding = encoding || 'raw'; + if(input !== undefined && encoding === 'utf8') { + input = util.encodeUtf8(input); + } + return new util.ByteBuffer(input); +}; + +/** + * Fills a string with a particular value. If you want the string to be a byte + * string, pass in String.fromCharCode(theByte). + * + * @param c the character to fill the string with, use String.fromCharCode + * to fill the string with a byte value. + * @param n the number of characters of value c to fill with. + * + * @return the filled string. + */ +util.fillString = function(c, n) { + var s = ''; + while(n > 0) { + if(n & 1) { + s += c; + } + n >>>= 1; + if(n > 0) { + c += c; + } + } + return s; +}; + +/** + * Performs a per byte XOR between two byte strings and returns the result as a + * string of bytes. + * + * @param s1 first string of bytes. + * @param s2 second string of bytes. + * @param n the number of bytes to XOR. + * + * @return the XOR'd result. + */ +util.xorBytes = function(s1, s2, n) { + var s3 = ''; + var b = ''; + var t = ''; + var i = 0; + var c = 0; + for(; n > 0; --n, ++i) { + b = s1.charCodeAt(i) ^ s2.charCodeAt(i); + if(c >= 10) { + s3 += t; + t = ''; + c = 0; + } + t += String.fromCharCode(b); + ++c; + } + s3 += t; + return s3; +}; + +/** + * Converts a hex string into a 'binary' encoded string of bytes. + * + * @param hex the hexadecimal string to convert. + * + * @return the binary-encoded string of bytes. + */ +util.hexToBytes = function(hex) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.decode instead." + var rval = ''; + var i = 0; + if(hex.length & 1 == 1) { + // odd number of characters, convert first character alone + i = 1; + rval += String.fromCharCode(parseInt(hex[0], 16)); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + rval += String.fromCharCode(parseInt(hex.substr(i, 2), 16)); + } + return rval; +}; + +/** + * Converts a 'binary' encoded string of bytes to hex. + * + * @param bytes the byte string to convert. + * + * @return the string of hexadecimal characters. + */ +util.bytesToHex = function(bytes) { + // TODO: deprecate: "Deprecated. Use util.binary.hex.encode instead." + return util.createBuffer(bytes).toHex(); +}; + +/** + * Converts an 32-bit integer to 4-big-endian byte string. + * + * @param i the integer. + * + * @return the byte string. + */ +util.int32ToBytes = function(i) { + return ( + String.fromCharCode(i >> 24 & 0xFF) + + String.fromCharCode(i >> 16 & 0xFF) + + String.fromCharCode(i >> 8 & 0xFF) + + String.fromCharCode(i & 0xFF)); +}; + +// base64 characters, reverse mapping +var _base64 = + 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='; +var _base64Idx = [ +/*43 -43 = 0*/ +/*'+', 1, 2, 3,'/' */ + 62, -1, -1, -1, 63, + +/*'0','1','2','3','4','5','6','7','8','9' */ + 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, + +/*15, 16, 17,'=', 19, 20, 21 */ + -1, -1, -1, 64, -1, -1, -1, + +/*65 - 43 = 22*/ +/*'A','B','C','D','E','F','G','H','I','J','K','L','M', */ + 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, + +/*'N','O','P','Q','R','S','T','U','V','W','X','Y','Z' */ + 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, + +/*91 - 43 = 48 */ +/*48, 49, 50, 51, 52, 53 */ + -1, -1, -1, -1, -1, -1, + +/*97 - 43 = 54*/ +/*'a','b','c','d','e','f','g','h','i','j','k','l','m' */ + 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, + +/*'n','o','p','q','r','s','t','u','v','w','x','y','z' */ + 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51 +]; + +// base58 characters (Bitcoin alphabet) +var _base58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'; + +/** + * Base64 encodes a 'binary' encoded string of bytes. + * + * @param input the binary encoded string of bytes to base64-encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output. + */ +util.encode64 = function(input, maxline) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.encode instead." + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.length) { + chr1 = input.charCodeAt(i++); + chr2 = input.charCodeAt(i++); + chr3 = input.charCodeAt(i++); + + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; + } else { + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); + } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); + } + } + output += line; + return output; +}; + +/** + * Base64 decodes a string into a 'binary' encoded string of bytes. + * + * @param input the base64-encoded input. + * + * @return the binary encoded string. + */ +util.decode64 = function(input) { + // TODO: deprecate: "Deprecated. Use util.binary.base64.decode instead." + + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); + + var output = ''; + var enc1, enc2, enc3, enc4; + var i = 0; + + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; + + output += String.fromCharCode((enc1 << 2) | (enc2 >> 4)); + if(enc3 !== 64) { + // decoded at least 2 bytes + output += String.fromCharCode(((enc2 & 15) << 4) | (enc3 >> 2)); + if(enc4 !== 64) { + // decoded 3 bytes + output += String.fromCharCode(((enc3 & 3) << 6) | enc4); + } + } + } + + return output; +}; + +/** + * Encodes the given string of characters (a standard JavaScript + * string) as a binary encoded string where the bytes represent + * a UTF-8 encoded string of characters. Non-ASCII characters will be + * encoded as multiple bytes according to UTF-8. + * + * @param str a standard string of characters to encode. + * + * @return the binary encoded string. + */ +util.encodeUtf8 = function(str) { + return unescape(encodeURIComponent(str)); +}; + +/** + * Decodes a binary encoded string that contains bytes that + * represent a UTF-8 encoded string of characters -- into a + * string of characters (a standard JavaScript string). + * + * @param str the binary encoded string to decode. + * + * @return the resulting standard string of characters. + */ +util.decodeUtf8 = function(str) { + return decodeURIComponent(escape(str)); +}; + +// binary encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.binary = { + raw: {}, + hex: {}, + base64: {}, + base58: {}, + baseN : { + encode: baseN.encode, + decode: baseN.decode + } +}; + +/** + * Encodes a Uint8Array as a binary-encoded string. This encoding uses + * a value between 0 and 255 for each character. + * + * @param bytes the Uint8Array to encode. + * + * @return the binary-encoded string. + */ +util.binary.raw.encode = function(bytes) { + return String.fromCharCode.apply(null, bytes); +}; + +/** + * Decodes a binary-encoded string to a Uint8Array. This encoding uses + * a value between 0 and 255 for each character. + * + * @param str the binary-encoded string to decode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.raw.decode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; + +/** + * Encodes a 'binary' string, ArrayBuffer, DataView, TypedArray, or + * ByteBuffer as a string of hexadecimal characters. + * + * @param bytes the bytes to convert. + * + * @return the string of hexadecimal characters. + */ +util.binary.hex.encode = util.bytesToHex; + +/** + * Decodes a hex-encoded string to a Uint8Array. + * + * @param hex the hexadecimal string to convert. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.hex.decode = function(hex, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(hex.length / 2)); + } + offset = offset || 0; + var i = 0, j = offset; + if(hex.length & 1) { + // odd number of characters, convert first character alone + i = 1; + out[j++] = parseInt(hex[0], 16); + } + // convert 2 characters (1 byte) at a time + for(; i < hex.length; i += 2) { + out[j++] = parseInt(hex.substr(i, 2), 16); + } + return output ? (j - offset) : out; +}; + +/** + * Base64-encodes a Uint8Array. + * + * @param input the Uint8Array to encode. + * @param maxline the maximum number of encoded characters per line to use, + * defaults to none. + * + * @return the base64-encoded output string. + */ +util.binary.base64.encode = function(input, maxline) { + var line = ''; + var output = ''; + var chr1, chr2, chr3; + var i = 0; + while(i < input.byteLength) { + chr1 = input[i++]; + chr2 = input[i++]; + chr3 = input[i++]; + + // encode 4 character group + line += _base64.charAt(chr1 >> 2); + line += _base64.charAt(((chr1 & 3) << 4) | (chr2 >> 4)); + if(isNaN(chr2)) { + line += '=='; + } else { + line += _base64.charAt(((chr2 & 15) << 2) | (chr3 >> 6)); + line += isNaN(chr3) ? '=' : _base64.charAt(chr3 & 63); + } + + if(maxline && line.length > maxline) { + output += line.substr(0, maxline) + '\r\n'; + line = line.substr(maxline); + } + } + output += line; + return output; +}; + +/** + * Decodes a base64-encoded string to a Uint8Array. + * + * @param input the base64-encoded input string. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.binary.base64.decode = function(input, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(Math.ceil(input.length / 4) * 3); + } + + // remove all non-base64 characters + input = input.replace(/[^A-Za-z0-9\+\/\=]/g, ''); + + offset = offset || 0; + var enc1, enc2, enc3, enc4; + var i = 0, j = offset; + + while(i < input.length) { + enc1 = _base64Idx[input.charCodeAt(i++) - 43]; + enc2 = _base64Idx[input.charCodeAt(i++) - 43]; + enc3 = _base64Idx[input.charCodeAt(i++) - 43]; + enc4 = _base64Idx[input.charCodeAt(i++) - 43]; + + out[j++] = (enc1 << 2) | (enc2 >> 4); + if(enc3 !== 64) { + // decoded at least 2 bytes + out[j++] = ((enc2 & 15) << 4) | (enc3 >> 2); + if(enc4 !== 64) { + // decoded 3 bytes + out[j++] = ((enc3 & 3) << 6) | enc4; + } + } + } + + // make sure result is the exact decoded length + return output ? (j - offset) : out.subarray(0, j); +}; + +// add support for base58 encoding/decoding with Bitcoin alphabet +util.binary.base58.encode = function(input, maxline) { + return util.binary.baseN.encode(input, _base58, maxline); +}; +util.binary.base58.decode = function(input, maxline) { + return util.binary.baseN.decode(input, _base58, maxline); +}; + +// text encoding/decoding tools +// FIXME: Experimental. Do not use yet. +util.text = { + utf8: {}, + utf16: {} +}; + +/** + * Encodes the given string as UTF-8 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf8.encode = function(str, output, offset) { + str = util.encodeUtf8(str); + var out = output; + if(!out) { + out = new Uint8Array(str.length); + } + offset = offset || 0; + var j = offset; + for(var i = 0; i < str.length; ++i) { + out[j++] = str.charCodeAt(i); + } + return output ? (j - offset) : out; +}; + +/** + * Decodes the UTF-8 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf8.decode = function(bytes) { + return util.decodeUtf8(String.fromCharCode.apply(null, bytes)); +}; + +/** + * Encodes the given string as UTF-16 in a Uint8Array. + * + * @param str the string to encode. + * @param [output] an optional Uint8Array to write the output to; if it + * is too small, an exception will be thrown. + * @param [offset] the start offset for writing to the output (default: 0). + * + * @return the Uint8Array or the number of bytes written if output was given. + */ +util.text.utf16.encode = function(str, output, offset) { + var out = output; + if(!out) { + out = new Uint8Array(str.length * 2); + } + var view = new Uint16Array(out.buffer); + offset = offset || 0; + var j = offset; + var k = offset; + for(var i = 0; i < str.length; ++i) { + view[k++] = str.charCodeAt(i); + j += 2; + } + return output ? (j - offset) : out; +}; + +/** + * Decodes the UTF-16 contents from a Uint8Array. + * + * @param bytes the Uint8Array to decode. + * + * @return the resulting string. + */ +util.text.utf16.decode = function(bytes) { + return String.fromCharCode.apply(null, new Uint16Array(bytes.buffer)); +}; + +/** + * Deflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true to return only raw deflate data, false to include zlib + * header and trailer. + * + * @return the deflated data as a string. + */ +util.deflate = function(api, bytes, raw) { + bytes = util.decode64(api.deflate(util.encode64(bytes)).rval); + + // strip zlib header and trailer if necessary + if(raw) { + // zlib header is 2 bytes (CMF,FLG) where FLG indicates that + // there is a 4-byte DICT (alder-32) block before the data if + // its 5th bit is set + var start = 2; + var flg = bytes.charCodeAt(1); + if(flg & 0x20) { + start = 6; + } + // zlib trailer is 4 bytes of adler-32 + bytes = bytes.substring(start, bytes.length - 4); + } + + return bytes; +}; + +/** + * Inflates the given data using a flash interface. + * + * @param api the flash interface. + * @param bytes the data. + * @param raw true if the incoming data has no zlib header or trailer and is + * raw DEFLATE data. + * + * @return the inflated data as a string, null on error. + */ +util.inflate = function(api, bytes, raw) { + // TODO: add zlib header and trailer if necessary/possible + var rval = api.inflate(util.encode64(bytes)).rval; + return (rval === null) ? null : util.decode64(rval); +}; + +/** + * Sets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param obj the storage object, null to remove. + */ +var _setStorageObject = function(api, id, obj) { + if(!api) { + throw new Error('WebStorage not available.'); + } + + var rval; + if(obj === null) { + rval = api.removeItem(id); + } else { + // json-encode and base64-encode object + obj = util.encode64(JSON.stringify(obj)); + rval = api.setItem(id, obj); + } + + // handle potential flash error + if(typeof(rval) !== 'undefined' && rval.rval !== true) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; + } +}; + +/** + * Gets a storage object. + * + * @param api the storage interface. + * @param id the storage ID to use. + * + * @return the storage object entry or null if none exists. + */ +var _getStorageObject = function(api, id) { + if(!api) { + throw new Error('WebStorage not available.'); + } + + // get the existing entry + var rval = api.getItem(id); + + /* Note: We check api.init because we can't do (api == localStorage) + on IE because of "Class doesn't support Automation" exception. Only + the flash api has an init method so this works too, but we need a + better solution in the future. */ + + // flash returns item wrapped in an object, handle special case + if(api.init) { + if(rval.rval === null) { + if(rval.error) { + var error = new Error(rval.error.message); + error.id = rval.error.id; + error.name = rval.error.name; + throw error; + } + // no error, but also no item + rval = null; + } else { + rval = rval.rval; + } + } + + // handle decoding + if(rval !== null) { + // base64-decode and json-decode data + rval = JSON.parse(util.decode64(rval)); + } + + return rval; +}; + +/** + * Stores an item in local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + */ +var _setItem = function(api, id, key, data) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj === null) { + // create a new storage object + obj = {}; + } + // update key + obj[key] = data; + + // set storage object + _setStorageObject(api, id, obj); +}; + +/** + * Gets an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + * + * @return the item. + */ +var _getItem = function(api, id, key) { + // get storage object + var rval = _getStorageObject(api, id); + if(rval !== null) { + // return data at key + rval = (key in rval) ? rval[key] : null; + } + + return rval; +}; + +/** + * Removes an item from local storage. + * + * @param api the storage interface. + * @param id the storage ID to use. + * @param key the key for the item. + */ +var _removeItem = function(api, id, key) { + // get storage object + var obj = _getStorageObject(api, id); + if(obj !== null && key in obj) { + // remove key + delete obj[key]; + + // see if entry has no keys remaining + var empty = true; + for(var prop in obj) { + empty = false; + break; + } + if(empty) { + // remove entry entirely if no keys are left + obj = null; + } + + // set storage object + _setStorageObject(api, id, obj); + } +}; + +/** + * Clears the local disk storage identified by the given ID. + * + * @param api the storage interface. + * @param id the storage ID to use. + */ +var _clearItems = function(api, id) { + _setStorageObject(api, id, null); +}; + +/** + * Calls a storage function. + * + * @param func the function to call. + * @param args the arguments for the function. + * @param location the location argument. + * + * @return the return value from the function. + */ +var _callStorageFunction = function(func, args, location) { + var rval = null; + + // default storage types + if(typeof(location) === 'undefined') { + location = ['web', 'flash']; + } + + // apply storage types in order of preference + var type; + var done = false; + var exception = null; + for(var idx in location) { + type = location[idx]; + try { + if(type === 'flash' || type === 'both') { + if(args[0] === null) { + throw new Error('Flash local storage not available.'); + } + rval = func.apply(this, args); + done = (type === 'flash'); + } + if(type === 'web' || type === 'both') { + args[0] = localStorage; + rval = func.apply(this, args); + done = true; + } + } catch(ex) { + exception = ex; + } + if(done) { + break; + } + } + + if(!done) { + throw exception; + } + + return rval; +}; + +/** + * Stores an item on local disk. + * + * The available types of local storage include 'flash', 'web', and 'both'. + * + * The type 'flash' refers to flash local storage (SharedObject). In order + * to use flash local storage, the 'api' parameter must be valid. The type + * 'web' refers to WebStorage, if supported by the browser. The type 'both' + * refers to storing using both 'flash' and 'web', not just one or the + * other. + * + * The location array should list the storage types to use in order of + * preference: + * + * ['flash']: flash only storage + * ['web']: web only storage + * ['both']: try to store in both + * ['flash','web']: store in flash first, but if not available, 'web' + * ['web','flash']: store in web first, but if not available, 'flash' + * + * The location array defaults to: ['web', 'flash'] + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param data the data for the item (any javascript object/primitive). + * @param location an array with the preferred types of storage to use. + */ +util.setItem = function(api, id, key, data, location) { + _callStorageFunction(_setItem, arguments, location); +}; + +/** + * Gets an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface, null to use only WebStorage. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + * + * @return the item. + */ +util.getItem = function(api, id, key, location) { + return _callStorageFunction(_getItem, arguments, location); +}; + +/** + * Removes an item on local disk. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface. + * @param id the storage ID to use. + * @param key the key for the item. + * @param location an array with the preferred types of storage to use. + */ +util.removeItem = function(api, id, key, location) { + _callStorageFunction(_removeItem, arguments, location); +}; + +/** + * Clears the local disk storage identified by the given ID. + * + * Set setItem() for details on storage types. + * + * @param api the flash interface if flash is available. + * @param id the storage ID to use. + * @param location an array with the preferred types of storage to use. + */ +util.clearItems = function(api, id, location) { + _callStorageFunction(_clearItems, arguments, location); +}; + +/** + * Parses the scheme, host, and port from an http(s) url. + * + * @param str the url string. + * + * @return the parsed url object or null if the url is invalid. + */ +util.parseUrl = function(str) { + // FIXME: this regex looks a bit broken + var regex = /^(https?):\/\/([^:&^\/]*):?(\d*)(.*)$/g; + regex.lastIndex = 0; + var m = regex.exec(str); + var url = (m === null) ? null : { + full: str, + scheme: m[1], + host: m[2], + port: m[3], + path: m[4] + }; + if(url) { + url.fullHost = url.host; + if(url.port) { + if(url.port !== 80 && url.scheme === 'http') { + url.fullHost += ':' + url.port; + } else if(url.port !== 443 && url.scheme === 'https') { + url.fullHost += ':' + url.port; + } + } else if(url.scheme === 'http') { + url.port = 80; + } else if(url.scheme === 'https') { + url.port = 443; + } + url.full = url.scheme + '://' + url.fullHost; + } + return url; +}; + +/* Storage for query variables */ +var _queryVariables = null; + +/** + * Returns the window location query variables. Query is parsed on the first + * call and the same object is returned on subsequent calls. The mapping + * is from keys to an array of values. Parameters without values will have + * an object key set but no value added to the value array. Values are + * unescaped. + * + * ...?k1=v1&k2=v2: + * { + * "k1": ["v1"], + * "k2": ["v2"] + * } + * + * ...?k1=v1&k1=v2: + * { + * "k1": ["v1", "v2"] + * } + * + * ...?k1=v1&k2: + * { + * "k1": ["v1"], + * "k2": [] + * } + * + * ...?k1=v1&k1: + * { + * "k1": ["v1"] + * } + * + * ...?k1&k1: + * { + * "k1": [] + * } + * + * @param query the query string to parse (optional, default to cached + * results from parsing window location search query). + * + * @return object mapping keys to variables. + */ +util.getQueryVariables = function(query) { + var parse = function(q) { + var rval = {}; + var kvpairs = q.split('&'); + for(var i = 0; i < kvpairs.length; i++) { + var pos = kvpairs[i].indexOf('='); + var key; + var val; + if(pos > 0) { + key = kvpairs[i].substring(0, pos); + val = kvpairs[i].substring(pos + 1); + } else { + key = kvpairs[i]; + val = null; + } + if(!(key in rval)) { + rval[key] = []; + } + // disallow overriding object prototype keys + if(!(key in Object.prototype) && val !== null) { + rval[key].push(unescape(val)); + } + } + return rval; + }; + + var rval; + if(typeof(query) === 'undefined') { + // set cached variables if needed + if(_queryVariables === null) { + if(typeof(window) !== 'undefined' && window.location && window.location.search) { + // parse window search query + _queryVariables = parse(window.location.search.substring(1)); + } else { + // no query variables available + _queryVariables = {}; + } + } + rval = _queryVariables; + } else { + // parse given query + rval = parse(query); + } + return rval; +}; + +/** + * Parses a fragment into a path and query. This method will take a URI + * fragment and break it up as if it were the main URI. For example: + * /bar/baz?a=1&b=2 + * results in: + * { + * path: ["bar", "baz"], + * query: {"k1": ["v1"], "k2": ["v2"]} + * } + * + * @return object with a path array and query object. + */ +util.parseFragment = function(fragment) { + // default to whole fragment + var fp = fragment; + var fq = ''; + // split into path and query if possible at the first '?' + var pos = fragment.indexOf('?'); + if(pos > 0) { + fp = fragment.substring(0, pos); + fq = fragment.substring(pos + 1); + } + // split path based on '/' and ignore first element if empty + var path = fp.split('/'); + if(path.length > 0 && path[0] === '') { + path.shift(); + } + // convert query into object + var query = (fq === '') ? {} : util.getQueryVariables(fq); + + return { + pathString: fp, + queryString: fq, + path: path, + query: query + }; +}; + +/** + * Makes a request out of a URI-like request string. This is intended to + * be used where a fragment id (after a URI '#') is parsed as a URI with + * path and query parts. The string should have a path beginning and + * delimited by '/' and optional query parameters following a '?'. The + * query should be a standard URL set of key value pairs delimited by + * '&'. For backwards compatibility the initial '/' on the path is not + * required. The request object has the following API, (fully described + * in the method code): + * { + * path: . + * query: , + * getPath(i): get part or all of the split path array, + * getQuery(k, i): get part or all of a query key array, + * getQueryLast(k, _default): get last element of a query key array. + * } + * + * @return object with request parameters. + */ +util.makeRequest = function(reqString) { + var frag = util.parseFragment(reqString); + var req = { + // full path string + path: frag.pathString, + // full query string + query: frag.queryString, + /** + * Get path or element in path. + * + * @param i optional path index. + * + * @return path or part of path if i provided. + */ + getPath: function(i) { + return (typeof(i) === 'undefined') ? frag.path : frag.path[i]; + }, + /** + * Get query, values for a key, or value for a key index. + * + * @param k optional query key. + * @param i optional query key index. + * + * @return query, values for a key, or value for a key index. + */ + getQuery: function(k, i) { + var rval; + if(typeof(k) === 'undefined') { + rval = frag.query; + } else { + rval = frag.query[k]; + if(rval && typeof(i) !== 'undefined') { + rval = rval[i]; + } + } + return rval; + }, + getQueryLast: function(k, _default) { + var rval; + var vals = req.getQuery(k); + if(vals) { + rval = vals[vals.length - 1]; + } else { + rval = _default; + } + return rval; + } + }; + return req; +}; + +/** + * Makes a URI out of a path, an object with query parameters, and a + * fragment. Uses jQuery.param() internally for query string creation. + * If the path is an array, it will be joined with '/'. + * + * @param path string path or array of strings. + * @param query object with query parameters. (optional) + * @param fragment fragment string. (optional) + * + * @return string object with request parameters. + */ +util.makeLink = function(path, query, fragment) { + // join path parts if needed + path = jQuery.isArray(path) ? path.join('/') : path; + + var qstr = jQuery.param(query || {}); + fragment = fragment || ''; + return path + + ((qstr.length > 0) ? ('?' + qstr) : '') + + ((fragment.length > 0) ? ('#' + fragment) : ''); +}; + +/** + * Follows a path of keys deep into an object hierarchy and set a value. + * If a key does not exist or it's value is not an object, create an + * object in it's place. This can be destructive to a object tree if + * leaf nodes are given as non-final path keys. + * Used to avoid exceptions from missing parts of the path. + * + * @param object the starting object. + * @param keys an array of string keys. + * @param value the value to set. + */ +util.setPath = function(object, keys, value) { + // need to start at an object + if(typeof(object) === 'object' && object !== null) { + var i = 0; + var len = keys.length; + while(i < len) { + var next = keys[i++]; + if(i == len) { + // last + object[next] = value; + } else { + // more + var hasNext = (next in object); + if(!hasNext || + (hasNext && typeof(object[next]) !== 'object') || + (hasNext && object[next] === null)) { + object[next] = {}; + } + object = object[next]; + } + } + } +}; + +/** + * Follows a path of keys deep into an object hierarchy and return a value. + * If a key does not exist, create an object in it's place. + * Used to avoid exceptions from missing parts of the path. + * + * @param object the starting object. + * @param keys an array of string keys. + * @param _default value to return if path not found. + * + * @return the value at the path if found, else default if given, else + * undefined. + */ +util.getPath = function(object, keys, _default) { + var i = 0; + var len = keys.length; + var hasNext = true; + while(hasNext && i < len && + typeof(object) === 'object' && object !== null) { + var next = keys[i++]; + hasNext = next in object; + if(hasNext) { + object = object[next]; + } + } + return (hasNext ? object : _default); +}; + +/** + * Follow a path of keys deep into an object hierarchy and delete the + * last one. If a key does not exist, do nothing. + * Used to avoid exceptions from missing parts of the path. + * + * @param object the starting object. + * @param keys an array of string keys. + */ +util.deletePath = function(object, keys) { + // need to start at an object + if(typeof(object) === 'object' && object !== null) { + var i = 0; + var len = keys.length; + while(i < len) { + var next = keys[i++]; + if(i == len) { + // last + delete object[next]; + } else { + // more + if(!(next in object) || + (typeof(object[next]) !== 'object') || + (object[next] === null)) { + break; + } + object = object[next]; + } + } + } +}; + +/** + * Check if an object is empty. + * + * Taken from: + * http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 + * + * @param object the object to check. + */ +util.isEmpty = function(obj) { + for(var prop in obj) { + if(obj.hasOwnProperty(prop)) { + return false; + } + } + return true; +}; + +/** + * Format with simple printf-style interpolation. + * + * %%: literal '%' + * %s,%o: convert next argument into a string. + * + * @param format the string to format. + * @param ... arguments to interpolate into the format string. + */ +util.format = function(format) { + var re = /%./g; + // current match + var match; + // current part + var part; + // current arg index + var argi = 0; + // collected parts to recombine later + var parts = []; + // last index found + var last = 0; + // loop while matches remain + while((match = re.exec(format))) { + part = format.substring(last, re.lastIndex - 2); + // don't add empty strings (ie, parts between %s%s) + if(part.length > 0) { + parts.push(part); + } + last = re.lastIndex; + // switch on % code + var code = match[0][1]; + switch(code) { + case 's': + case 'o': + // check if enough arguments were given + if(argi < arguments.length) { + parts.push(arguments[argi++ + 1]); + } else { + parts.push(''); + } + break; + // FIXME: do proper formating for numbers, etc + //case 'f': + //case 'd': + case '%': + parts.push('%'); + break; + default: + parts.push('<%' + code + '?>'); + } + } + // add trailing part of format string + parts.push(format.substring(last)); + return parts.join(''); +}; + +/** + * Formats a number. + * + * http://snipplr.com/view/5945/javascript-numberformat--ported-from-php/ + */ +util.formatNumber = function(number, decimals, dec_point, thousands_sep) { + // http://kevin.vanzonneveld.net + // + original by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // + improved by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) + // + bugfix by: Michael White (http://crestidg.com) + // + bugfix by: Benjamin Lupton + // + bugfix by: Allan Jensen (http://www.winternet.no) + // + revised by: Jonas Raoni Soares Silva (http://www.jsfromhell.com) + // * example 1: number_format(1234.5678, 2, '.', ''); + // * returns 1: 1234.57 + + var n = number, c = isNaN(decimals = Math.abs(decimals)) ? 2 : decimals; + var d = dec_point === undefined ? ',' : dec_point; + var t = thousands_sep === undefined ? + '.' : thousands_sep, s = n < 0 ? '-' : ''; + var i = parseInt((n = Math.abs(+n || 0).toFixed(c)), 10) + ''; + var j = (i.length > 3) ? i.length % 3 : 0; + return s + (j ? i.substr(0, j) + t : '') + + i.substr(j).replace(/(\d{3})(?=\d)/g, '$1' + t) + + (c ? d + Math.abs(n - i).toFixed(c).slice(2) : ''); +}; + +/** + * Formats a byte size. + * + * http://snipplr.com/view/5949/format-humanize-file-byte-size-presentation-in-javascript/ + */ +util.formatSize = function(size) { + if(size >= 1073741824) { + size = util.formatNumber(size / 1073741824, 2, '.', '') + ' GiB'; + } else if(size >= 1048576) { + size = util.formatNumber(size / 1048576, 2, '.', '') + ' MiB'; + } else if(size >= 1024) { + size = util.formatNumber(size / 1024, 0) + ' KiB'; + } else { + size = util.formatNumber(size, 0) + ' bytes'; + } + return size; +}; + +/** + * Converts an IPv4 or IPv6 string representation into bytes (in network order). + * + * @param ip the IPv4 or IPv6 address to convert. + * + * @return the 4-byte IPv6 or 16-byte IPv6 address or null if the address can't + * be parsed. + */ +util.bytesFromIP = function(ip) { + if(ip.indexOf('.') !== -1) { + return util.bytesFromIPv4(ip); + } + if(ip.indexOf(':') !== -1) { + return util.bytesFromIPv6(ip); + } + return null; +}; + +/** + * Converts an IPv4 string representation into bytes (in network order). + * + * @param ip the IPv4 address to convert. + * + * @return the 4-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv4 = function(ip) { + ip = ip.split('.'); + if(ip.length !== 4) { + return null; + } + var b = util.createBuffer(); + for(var i = 0; i < ip.length; ++i) { + var num = parseInt(ip[i], 10); + if(isNaN(num)) { + return null; + } + b.putByte(num); + } + return b.getBytes(); +}; + +/** + * Converts an IPv6 string representation into bytes (in network order). + * + * @param ip the IPv6 address to convert. + * + * @return the 16-byte address or null if the address can't be parsed. + */ +util.bytesFromIPv6 = function(ip) { + var blanks = 0; + ip = ip.split(':').filter(function(e) { + if(e.length === 0) ++blanks; + return true; + }); + var zeros = (8 - ip.length + blanks) * 2; + var b = util.createBuffer(); + for(var i = 0; i < 8; ++i) { + if(!ip[i] || ip[i].length === 0) { + b.fillWithByte(0, zeros); + zeros = 0; + continue; + } + var bytes = util.hexToBytes(ip[i]); + if(bytes.length < 2) { + b.putByte(0); + } + b.putBytes(bytes); + } + return b.getBytes(); +}; + +/** + * Converts 4-bytes into an IPv4 string representation or 16-bytes into + * an IPv6 string representation. The bytes must be in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 or IPv6 string representation if 4 or 16 bytes, + * respectively, are given, otherwise null. + */ +util.bytesToIP = function(bytes) { + if(bytes.length === 4) { + return util.bytesToIPv4(bytes); + } + if(bytes.length === 16) { + return util.bytesToIPv6(bytes); + } + return null; +}; + +/** + * Converts 4-bytes into an IPv4 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv4 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv4 = function(bytes) { + if(bytes.length !== 4) { + return null; + } + var ip = []; + for(var i = 0; i < bytes.length; ++i) { + ip.push(bytes.charCodeAt(i)); + } + return ip.join('.'); +}; + +/** + * Converts 16-bytes into an IPv16 string representation. The bytes must be + * in network order. + * + * @param bytes the bytes to convert. + * + * @return the IPv16 string representation or null for an invalid # of bytes. + */ +util.bytesToIPv6 = function(bytes) { + if(bytes.length !== 16) { + return null; + } + var ip = []; + var zeroGroups = []; + var zeroMaxGroup = 0; + for(var i = 0; i < bytes.length; i += 2) { + var hex = util.bytesToHex(bytes[i] + bytes[i + 1]); + // canonicalize zero representation + while(hex[0] === '0' && hex !== '0') { + hex = hex.substr(1); + } + if(hex === '0') { + var last = zeroGroups[zeroGroups.length - 1]; + var idx = ip.length; + if(!last || idx !== last.end + 1) { + zeroGroups.push({start: idx, end: idx}); + } else { + last.end = idx; + if((last.end - last.start) > + (zeroGroups[zeroMaxGroup].end - zeroGroups[zeroMaxGroup].start)) { + zeroMaxGroup = zeroGroups.length - 1; + } + } + } + ip.push(hex); + } + if(zeroGroups.length > 0) { + var group = zeroGroups[zeroMaxGroup]; + // only shorten group of length > 0 + if(group.end - group.start > 0) { + ip.splice(group.start, group.end - group.start + 1, ''); + if(group.start === 0) { + ip.unshift(''); + } + if(group.end === 7) { + ip.push(''); + } + } + } + return ip.join(':'); +}; + +/** + * Estimates the number of processes that can be run concurrently. If + * creating Web Workers, keep in mind that the main JavaScript process needs + * its own core. + * + * @param options the options to use: + * update true to force an update (not use the cached value). + * @param callback(err, max) called once the operation completes. + */ +util.estimateCores = function(options, callback) { + if(typeof options === 'function') { + callback = options; + options = {}; + } + options = options || {}; + if('cores' in util && !options.update) { + return callback(null, util.cores); + } + if(typeof navigator !== 'undefined' && + 'hardwareConcurrency' in navigator && + navigator.hardwareConcurrency > 0) { + util.cores = navigator.hardwareConcurrency; + return callback(null, util.cores); + } + if(typeof Worker === 'undefined') { + // workers not available + util.cores = 1; + return callback(null, util.cores); + } + if(typeof Blob === 'undefined') { + // can't estimate, default to 2 + util.cores = 2; + return callback(null, util.cores); + } + + // create worker concurrency estimation code as blob + var blobUrl = URL.createObjectURL(new Blob(['(', + function() { + self.addEventListener('message', function(e) { + // run worker for 4 ms + var st = Date.now(); + var et = st + 4; + while(Date.now() < et); + self.postMessage({st: st, et: et}); + }); + }.toString(), + ')()'], {type: 'application/javascript'})); + + // take 5 samples using 16 workers + sample([], 5, 16); + + function sample(max, samples, numWorkers) { + if(samples === 0) { + // get overlap average + var avg = Math.floor(max.reduce(function(avg, x) { + return avg + x; + }, 0) / max.length); + util.cores = Math.max(1, avg); + URL.revokeObjectURL(blobUrl); + return callback(null, util.cores); + } + map(numWorkers, function(err, results) { + max.push(reduce(numWorkers, results)); + sample(max, samples - 1, numWorkers); + }); + } + + function map(numWorkers, callback) { + var workers = []; + var results = []; + for(var i = 0; i < numWorkers; ++i) { + var worker = new Worker(blobUrl); + worker.addEventListener('message', function(e) { + results.push(e.data); + if(results.length === numWorkers) { + for(var i = 0; i < numWorkers; ++i) { + workers[i].terminate(); + } + callback(null, results); + } + }); + workers.push(worker); + } + for(var i = 0; i < numWorkers; ++i) { + workers[i].postMessage(i); + } + } + + function reduce(numWorkers, results) { + // find overlapping time windows + var overlaps = []; + for(var n = 0; n < numWorkers; ++n) { + var r1 = results[n]; + var overlap = overlaps[n] = []; + for(var i = 0; i < numWorkers; ++i) { + if(n === i) { + continue; + } + var r2 = results[i]; + if((r1.st > r2.st && r1.st < r2.et) || + (r2.st > r1.st && r2.st < r1.et)) { + overlap.push(i); + } + } + } + // get maximum overlaps ... don't include overlapping worker itself + // as the main JS process was also being scheduled during the work and + // would have to be subtracted from the estimate anyway + return overlaps.reduce(function(max, overlap) { + return Math.max(max, overlap.length); + }, 0); + } +}; + + +/***/ }), + +/***/ 14837: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * Javascript implementation of X.509 and related components (such as + * Certification Signing Requests) of a Public Key Infrastructure. + * + * @author Dave Longley + * + * Copyright (c) 2010-2014 Digital Bazaar, Inc. + * + * The ASN.1 representation of an X.509v3 certificate is as follows + * (see RFC 2459): + * + * Certificate ::= SEQUENCE { + * tbsCertificate TBSCertificate, + * signatureAlgorithm AlgorithmIdentifier, + * signatureValue BIT STRING + * } + * + * TBSCertificate ::= SEQUENCE { + * version [0] EXPLICIT Version DEFAULT v1, + * serialNumber CertificateSerialNumber, + * signature AlgorithmIdentifier, + * issuer Name, + * validity Validity, + * subject Name, + * subjectPublicKeyInfo SubjectPublicKeyInfo, + * issuerUniqueID [1] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * subjectUniqueID [2] IMPLICIT UniqueIdentifier OPTIONAL, + * -- If present, version shall be v2 or v3 + * extensions [3] EXPLICIT Extensions OPTIONAL + * -- If present, version shall be v3 + * } + * + * Version ::= INTEGER { v1(0), v2(1), v3(2) } + * + * CertificateSerialNumber ::= INTEGER + * + * Name ::= CHOICE { + * // only one possible choice for now + * RDNSequence + * } + * + * RDNSequence ::= SEQUENCE OF RelativeDistinguishedName + * + * RelativeDistinguishedName ::= SET OF AttributeTypeAndValue + * + * AttributeTypeAndValue ::= SEQUENCE { + * type AttributeType, + * value AttributeValue + * } + * AttributeType ::= OBJECT IDENTIFIER + * AttributeValue ::= ANY DEFINED BY AttributeType + * + * Validity ::= SEQUENCE { + * notBefore Time, + * notAfter Time + * } + * + * Time ::= CHOICE { + * utcTime UTCTime, + * generalTime GeneralizedTime + * } + * + * UniqueIdentifier ::= BIT STRING + * + * SubjectPublicKeyInfo ::= SEQUENCE { + * algorithm AlgorithmIdentifier, + * subjectPublicKey BIT STRING + * } + * + * Extensions ::= SEQUENCE SIZE (1..MAX) OF Extension + * + * Extension ::= SEQUENCE { + * extnID OBJECT IDENTIFIER, + * critical BOOLEAN DEFAULT FALSE, + * extnValue OCTET STRING + * } + * + * The only key algorithm currently supported for PKI is RSA. + * + * RSASSA-PSS signatures are described in RFC 3447 and RFC 4055. + * + * PKCS#10 v1.7 describes certificate signing requests: + * + * CertificationRequestInfo: + * + * CertificationRequestInfo ::= SEQUENCE { + * version INTEGER { v1(0) } (v1,...), + * subject Name, + * subjectPKInfo SubjectPublicKeyInfo{{ PKInfoAlgorithms }}, + * attributes [0] Attributes{{ CRIAttributes }} + * } + * + * Attributes { ATTRIBUTE:IOSet } ::= SET OF Attribute{{ IOSet }} + * + * CRIAttributes ATTRIBUTE ::= { + * ... -- add any locally defined attributes here -- } + * + * Attribute { ATTRIBUTE:IOSet } ::= SEQUENCE { + * type ATTRIBUTE.&id({IOSet}), + * values SET SIZE(1..MAX) OF ATTRIBUTE.&Type({IOSet}{@type}) + * } + * + * CertificationRequest ::= SEQUENCE { + * certificationRequestInfo CertificationRequestInfo, + * signatureAlgorithm AlgorithmIdentifier{{ SignatureAlgorithms }}, + * signature BIT STRING + * } + */ +var forge = __nccwpck_require__(35703); +__nccwpck_require__(28568); +__nccwpck_require__(93386); +__nccwpck_require__(88450); +__nccwpck_require__(96224); +__nccwpck_require__(50374); +__nccwpck_require__(91658); +__nccwpck_require__(45877); +__nccwpck_require__(27916); +__nccwpck_require__(12343); +__nccwpck_require__(21726); + +// shortcut for asn.1 API +var asn1 = forge.asn1; + +/* Public Key Infrastructure (PKI) implementation. */ +var pki = module.exports = forge.pki = forge.pki || {}; +var oids = pki.oids; + +// short name OID mappings +var _shortNames = {}; +_shortNames['CN'] = oids['commonName']; +_shortNames['commonName'] = 'CN'; +_shortNames['C'] = oids['countryName']; +_shortNames['countryName'] = 'C'; +_shortNames['L'] = oids['localityName']; +_shortNames['localityName'] = 'L'; +_shortNames['ST'] = oids['stateOrProvinceName']; +_shortNames['stateOrProvinceName'] = 'ST'; +_shortNames['O'] = oids['organizationName']; +_shortNames['organizationName'] = 'O'; +_shortNames['OU'] = oids['organizationalUnitName']; +_shortNames['organizationalUnitName'] = 'OU'; +_shortNames['E'] = oids['emailAddress']; +_shortNames['emailAddress'] = 'E'; + +// validator for an SubjectPublicKeyInfo structure +// Note: Currently only works with an RSA public key +var publicKeyValidator = forge.pki.rsa.publicKeyValidator; + +// validator for an X.509v3 certificate +var x509CertificateValidator = { + name: 'Certificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'tbsCertificate', + value: [{ + name: 'Certificate.TBSCertificate.version', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.version.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certVersion' + }] + }, { + name: 'Certificate.TBSCertificate.serialNumber', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certSerialNumber' + }, { + name: 'Certificate.TBSCertificate.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'Certificate.TBSCertificate.signature.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certinfoSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certinfoSignatureParams' + }] + }, { + name: 'Certificate.TBSCertificate.issuer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certIssuer' + }, { + name: 'Certificate.TBSCertificate.validity', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + // Note: UTC and generalized times may both appear so the capture + // names are based on their detected order, the names used below + // are only for the common case, which validity time really means + // "notBefore" and which means "notAfter" will be determined by order + value: [{ + // notBefore (Time) (UTC time case) + name: 'Certificate.TBSCertificate.validity.notBefore (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity1UTCTime' + }, { + // notBefore (Time) (generalized time case) + name: 'Certificate.TBSCertificate.validity.notBefore (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity2GeneralizedTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (utc)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.UTCTIME, + constructed: false, + optional: true, + capture: 'certValidity3UTCTime' + }, { + // notAfter (Time) (only UTC time is supported) + name: 'Certificate.TBSCertificate.validity.notAfter (generalized)', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.GENERALIZEDTIME, + constructed: false, + optional: true, + capture: 'certValidity4GeneralizedTime' + }] + }, { + // Name (subject) (RDNSequence) + name: 'Certificate.TBSCertificate.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + // issuerUniqueID (optional) + name: 'Certificate.TBSCertificate.issuerUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.issuerUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certIssuerUniqueId' + }] + }, { + // subjectUniqueID (optional) + name: 'Certificate.TBSCertificate.subjectUniqueID', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + constructed: true, + optional: true, + value: [{ + name: 'Certificate.TBSCertificate.subjectUniqueID.id', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + // TODO: support arbitrary bit length ids + captureBitStringValue: 'certSubjectUniqueId' + }] + }, { + // Extensions (optional) + name: 'Certificate.TBSCertificate.extensions', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + constructed: true, + captureAsn1: 'certExtensions', + optional: true + }] + }, { + // AlgorithmIdentifier (signature algorithm) + name: 'Certificate.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'Certificate.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'certSignatureOid' + }, { + name: 'Certificate.TBSCertificate.signature.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'certSignatureParams' + }] + }, { + // SignatureValue + name: 'Certificate.signatureValue', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'certSignature' + }] +}; + +var rsassaPssParameterValidator = { + name: 'rsapss', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.hashAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'hashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }, { + name: 'rsapss.maskGenAlgorithm', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 1, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.SEQUENCE, + constructed: true, + optional: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenOid' + }, { + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'rsapss.maskGenAlgorithm.AlgorithmIdentifier.params.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'maskGenHashOid' + /* parameter block omitted, for SHA1 NULL anyhow. */ + }] + }] + }] + }, { + name: 'rsapss.saltLength', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 2, + optional: true, + value: [{ + name: 'rsapss.saltLength.saltLength', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'saltLength' + }] + }, { + name: 'rsapss.trailerField', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 3, + optional: true, + value: [{ + name: 'rsapss.trailer.trailer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Class.INTEGER, + constructed: false, + capture: 'trailer' + }] + }] +}; + +// validator for a CertificationRequestInfo structure +var certificationRequestInfoValidator = { + name: 'CertificationRequestInfo', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfo', + value: [{ + name: 'CertificationRequestInfo.integer', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.INTEGER, + constructed: false, + capture: 'certificationRequestInfoVersion' + }, { + // Name (subject) (RDNSequence) + name: 'CertificationRequestInfo.subject', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'certificationRequestInfoSubject' + }, + // SubjectPublicKeyInfo + publicKeyValidator, + { + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.CONTEXT_SPECIFIC, + type: 0, + constructed: true, + optional: true, + capture: 'certificationRequestInfoAttributes', + value: [{ + name: 'CertificationRequestInfo.attributes', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + name: 'CertificationRequestInfo.attributes.type', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false + }, { + name: 'CertificationRequestInfo.attributes.value', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SET, + constructed: true + }] + }] + }] +}; + +// validator for a CertificationRequest structure +var certificationRequestValidator = { + name: 'CertificationRequest', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + captureAsn1: 'csr', + value: [ + certificationRequestInfoValidator, { + // AlgorithmIdentifier (signature algorithm) + name: 'CertificationRequest.signatureAlgorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.SEQUENCE, + constructed: true, + value: [{ + // algorithm + name: 'CertificationRequest.signatureAlgorithm.algorithm', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.OID, + constructed: false, + capture: 'csrSignatureOid' + }, { + name: 'CertificationRequest.signatureAlgorithm.parameters', + tagClass: asn1.Class.UNIVERSAL, + optional: true, + captureAsn1: 'csrSignatureParams' + }] + }, { + // signature + name: 'CertificationRequest.signature', + tagClass: asn1.Class.UNIVERSAL, + type: asn1.Type.BITSTRING, + constructed: false, + captureBitStringValue: 'csrSignature' + } + ] +}; + +/** + * Converts an RDNSequence of ASN.1 DER-encoded RelativeDistinguishedName + * sets into an array with objects that have type and value properties. + * + * @param rdn the RDNSequence to convert. + * @param md a message digest to append type and value to if provided. + */ +pki.RDNAttributesAsArray = function(rdn, md) { + var rval = []; + + // each value in 'rdn' in is a SET of RelativeDistinguishedName + var set, attr, obj; + for(var si = 0; si < rdn.value.length; ++si) { + // get the RelativeDistinguishedName set + set = rdn.value[si]; + + // each value in the SET is an AttributeTypeAndValue sequence + // containing first a type (an OID) and second a value (defined by + // the OID) + for(var i = 0; i < set.value.length; ++i) { + obj = {}; + attr = set.value[i]; + obj.type = asn1.derToOid(attr.value[0].value); + obj.value = attr.value[1].value; + obj.valueTagClass = attr.value[1].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + if(md) { + md.update(obj.type); + md.update(obj.value); + } + rval.push(obj); + } + } + + return rval; +}; + +/** + * Converts ASN.1 CRIAttributes into an array with objects that have type and + * value properties. + * + * @param attributes the CRIAttributes to convert. + */ +pki.CRIAttributesAsArray = function(attributes) { + var rval = []; + + // each value in 'attributes' in is a SEQUENCE with an OID and a SET + for(var si = 0; si < attributes.length; ++si) { + // get the attribute sequence + var seq = attributes[si]; + + // each value in the SEQUENCE containing first a type (an OID) and + // second a set of values (defined by the OID) + var type = asn1.derToOid(seq.value[0].value); + var values = seq.value[1].value; + for(var vi = 0; vi < values.length; ++vi) { + var obj = {}; + obj.type = type; + obj.value = values[vi].value; + obj.valueTagClass = values[vi].type; + // if the OID is known, get its name and short name + if(obj.type in oids) { + obj.name = oids[obj.type]; + if(obj.name in _shortNames) { + obj.shortName = _shortNames[obj.name]; + } + } + // parse extensions + if(obj.type === oids.extensionRequest) { + obj.extensions = []; + for(var ei = 0; ei < obj.value.length; ++ei) { + obj.extensions.push(pki.certificateExtensionFromAsn1(obj.value[ei])); + } + } + rval.push(obj); + } + } + + return rval; +}; + +/** + * Gets an issuer or subject attribute from its name, type, or short name. + * + * @param obj the issuer or subject object. + * @param options a short name string or an object with: + * shortName the short name for the attribute. + * name the name for the attribute. + * type the type for the attribute. + * + * @return the attribute. + */ +function _getAttribute(obj, options) { + if(typeof options === 'string') { + options = {shortName: options}; + } + + var rval = null; + var attr; + for(var i = 0; rval === null && i < obj.attributes.length; ++i) { + attr = obj.attributes[i]; + if(options.type && options.type === attr.type) { + rval = attr; + } else if(options.name && options.name === attr.name) { + rval = attr; + } else if(options.shortName && options.shortName === attr.shortName) { + rval = attr; + } + } + return rval; +} + +/** + * Converts signature parameters from ASN.1 structure. + * + * Currently only RSASSA-PSS supported. The PKCS#1 v1.5 signature scheme had + * no parameters. + * + * RSASSA-PSS-params ::= SEQUENCE { + * hashAlgorithm [0] HashAlgorithm DEFAULT + * sha1Identifier, + * maskGenAlgorithm [1] MaskGenAlgorithm DEFAULT + * mgf1SHA1Identifier, + * saltLength [2] INTEGER DEFAULT 20, + * trailerField [3] INTEGER DEFAULT 1 + * } + * + * HashAlgorithm ::= AlgorithmIdentifier + * + * MaskGenAlgorithm ::= AlgorithmIdentifier + * + * AlgorithmIdentifer ::= SEQUENCE { + * algorithm OBJECT IDENTIFIER, + * parameters ANY DEFINED BY algorithm OPTIONAL + * } + * + * @param oid The OID specifying the signature algorithm + * @param obj The ASN.1 structure holding the parameters + * @param fillDefaults Whether to use return default values where omitted + * @return signature parameter object + */ +var _readSignatureParameters = function(oid, obj, fillDefaults) { + var params = {}; + + if(oid !== oids['RSASSA-PSS']) { + return params; + } + + if(fillDefaults) { + params = { + hash: { + algorithmOid: oids['sha1'] + }, + mgf: { + algorithmOid: oids['mgf1'], + hash: { + algorithmOid: oids['sha1'] + } + }, + saltLength: 20 + }; + } + + var capture = {}; + var errors = []; + if(!asn1.validate(obj, rsassaPssParameterValidator, capture, errors)) { + var error = new Error('Cannot read RSASSA-PSS parameter block.'); + error.errors = errors; + throw error; + } + + if(capture.hashOid !== undefined) { + params.hash = params.hash || {}; + params.hash.algorithmOid = asn1.derToOid(capture.hashOid); + } + + if(capture.maskGenOid !== undefined) { + params.mgf = params.mgf || {}; + params.mgf.algorithmOid = asn1.derToOid(capture.maskGenOid); + params.mgf.hash = params.mgf.hash || {}; + params.mgf.hash.algorithmOid = asn1.derToOid(capture.maskGenHashOid); + } + + if(capture.saltLength !== undefined) { + params.saltLength = capture.saltLength.charCodeAt(0); + } + + return params; +}; + +/** + * Converts an X.509 certificate from PEM format. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. This will scan the TBSCertificate part of the ASN.1 + * object while it is converted so it doesn't need to be converted back + * to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certificate. + */ +pki.certificateFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'CERTIFICATE' && + msg.type !== 'X509 CERTIFICATE' && + msg.type !== 'TRUSTED CERTIFICATE') { + var error = new Error( + 'Could not convert certificate from PEM; PEM header type ' + + 'is not "CERTIFICATE", "X509 CERTIFICATE", or "TRUSTED CERTIFICATE".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error( + 'Could not convert certificate from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); + + return pki.certificateFromAsn1(obj, computeHash); +}; + +/** + * Converts an X.509 certificate to PEM format. + * + * @param cert the certificate. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certificate. + */ +pki.certificateToPem = function(cert, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE', + body: asn1.toDer(pki.certificateToAsn1(cert)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts an RSA public key from PEM format. + * + * @param pem the PEM-formatted public key. + * + * @return the public key. + */ +pki.publicKeyFromPem = function(pem) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'PUBLIC KEY' && msg.type !== 'RSA PUBLIC KEY') { + var error = new Error('Could not convert public key from PEM; PEM header ' + + 'type is not "PUBLIC KEY" or "RSA PUBLIC KEY".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert public key from PEM; PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body); + + return pki.publicKeyFromAsn1(obj); +}; + +/** + * Converts an RSA public key to PEM format (using a SubjectPublicKeyInfo). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToAsn1(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Converts an RSA public key to PEM format (using an RSAPublicKey). + * + * @param key the public key. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted public key. + */ +pki.publicKeyToRSAPublicKeyPem = function(key, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'RSA PUBLIC KEY', + body: asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Gets a fingerprint for the given public key. + * + * @param options the options to use. + * [md] the message digest object to use (defaults to forge.md.sha1). + * [type] the type of fingerprint, such as 'RSAPublicKey', + * 'SubjectPublicKeyInfo' (defaults to 'RSAPublicKey'). + * [encoding] an alternative output encoding, such as 'hex' + * (defaults to none, outputs a byte buffer). + * [delimiter] the delimiter to use between bytes for 'hex' encoded + * output, eg: ':' (defaults to none). + * + * @return the fingerprint as a byte buffer or other encoding based on options. + */ +pki.getPublicKeyFingerprint = function(key, options) { + options = options || {}; + var md = options.md || forge.md.sha1.create(); + var type = options.type || 'RSAPublicKey'; + + var bytes; + switch(type) { + case 'RSAPublicKey': + bytes = asn1.toDer(pki.publicKeyToRSAPublicKey(key)).getBytes(); + break; + case 'SubjectPublicKeyInfo': + bytes = asn1.toDer(pki.publicKeyToAsn1(key)).getBytes(); + break; + default: + throw new Error('Unknown fingerprint type "' + options.type + '".'); + } + + // hash public key bytes + md.start(); + md.update(bytes); + var digest = md.digest(); + if(options.encoding === 'hex') { + var hex = digest.toHex(); + if(options.delimiter) { + return hex.match(/.{2}/g).join(options.delimiter); + } + return hex; + } else if(options.encoding === 'binary') { + return digest.getBytes(); + } else if(options.encoding) { + throw new Error('Unknown encoding "' + options.encoding + '".'); + } + return digest; +}; + +/** + * Converts a PKCS#10 certification request (CSR) from PEM format. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. This will scan the CertificationRequestInfo part of + * the ASN.1 object while it is converted so it doesn't need to be converted + * back to ASN.1-DER-encoding later. + * + * @param pem the PEM-formatted certificate. + * @param computeHash true to compute the hash for verification. + * @param strict true to be strict when checking ASN.1 value lengths, false to + * allow truncated values (default: true). + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromPem = function(pem, computeHash, strict) { + var msg = forge.pem.decode(pem)[0]; + + if(msg.type !== 'CERTIFICATE REQUEST') { + var error = new Error('Could not convert certification request from PEM; ' + + 'PEM header type is not "CERTIFICATE REQUEST".'); + error.headerType = msg.type; + throw error; + } + if(msg.procType && msg.procType.type === 'ENCRYPTED') { + throw new Error('Could not convert certification request from PEM; ' + + 'PEM is encrypted.'); + } + + // convert DER to ASN.1 object + var obj = asn1.fromDer(msg.body, strict); + + return pki.certificationRequestFromAsn1(obj, computeHash); +}; + +/** + * Converts a PKCS#10 certification request (CSR) to PEM format. + * + * @param csr the certification request. + * @param maxline the maximum characters per line, defaults to 64. + * + * @return the PEM-formatted certification request. + */ +pki.certificationRequestToPem = function(csr, maxline) { + // convert to ASN.1, then DER, then PEM-encode + var msg = { + type: 'CERTIFICATE REQUEST', + body: asn1.toDer(pki.certificationRequestToAsn1(csr)).getBytes() + }; + return forge.pem.encode(msg, {maxline: maxline}); +}; + +/** + * Creates an empty X.509v3 RSA certificate. + * + * @return the certificate. + */ +pki.createCertificate = function() { + var cert = {}; + cert.version = 0x02; + cert.serialNumber = '00'; + cert.signatureOid = null; + cert.signature = null; + cert.siginfo = {}; + cert.siginfo.algorithmOid = null; + cert.validity = {}; + cert.validity.notBefore = new Date(); + cert.validity.notAfter = new Date(); + + cert.issuer = {}; + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = []; + cert.issuer.hash = null; + + cert.subject = {}; + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = []; + cert.subject.hash = null; + + cert.extensions = []; + cert.publicKey = null; + cert.md = null; + + /** + * Sets the subject of this certificate. + * + * @param attrs the array of subject attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setSubject = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.subject.attributes = attrs; + delete cert.subject.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.subject.uniqueId = uniqueId; + } + cert.subject.hash = null; + }; + + /** + * Sets the issuer of this certificate. + * + * @param attrs the array of issuer attributes to use. + * @param uniqueId an optional a unique ID to use. + */ + cert.setIssuer = function(attrs, uniqueId) { + // set new attributes, clear hash + _fillMissingFields(attrs); + cert.issuer.attributes = attrs; + delete cert.issuer.uniqueId; + if(uniqueId) { + // TODO: support arbitrary bit length ids + cert.issuer.uniqueId = uniqueId; + } + cert.issuer.hash = null; + }; + + /** + * Sets the extensions of this certificate. + * + * @param exts the array of extensions to use. + */ + cert.setExtensions = function(exts) { + for(var i = 0; i < exts.length; ++i) { + _fillMissingExtensionFields(exts[i], {cert: cert}); + } + // set new extensions + cert.extensions = exts; + }; + + /** + * Gets an extension by its name or id. + * + * @param options the name to use or an object with: + * name the name to use. + * id the id to use. + * + * @return the extension or null if not found. + */ + cert.getExtension = function(options) { + if(typeof options === 'string') { + options = {name: options}; + } + + var rval = null; + var ext; + for(var i = 0; rval === null && i < cert.extensions.length; ++i) { + ext = cert.extensions[i]; + if(options.id && ext.id === options.id) { + rval = ext; + } else if(options.name && ext.name === options.name) { + rval = ext; + } + } + return rval; + }; + + /** + * Signs this certificate using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + cert.sign = function(key, md) { + // TODO: get signature OID from private key + cert.md = md || forge.md.sha1.create(); + var algorithmOid = oids[cert.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certificate digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = cert.md.algorithm; + throw error; + } + cert.signatureOid = cert.siginfo.algorithmOid = algorithmOid; + + // get TBSCertificate, convert to DER + cert.tbsCertificate = pki.getTBSCertificate(cert); + var bytes = asn1.toDer(cert.tbsCertificate); + + // digest and sign + cert.md.update(bytes.getBytes()); + cert.signature = key.sign(cert.md); + }; + + /** + * Attempts verify the signature on the passed certificate using this + * certificate's public key. + * + * @param child the certificate to verify. + * + * @return true if verified, false if not. + */ + cert.verify = function(child) { + var rval = false; + + if(!cert.issued(child)) { + var issuer = child.issuer; + var subject = cert.subject; + var error = new Error( + 'The parent certificate did not issue the given child ' + + 'certificate; the child certificate\'s issuer does not match the ' + + 'parent\'s subject.'); + error.expectedIssuer = issuer.attributes; + error.actualIssuer = subject.attributes; + throw error; + } + + var md = child.md; + if(md === null) { + // check signature OID for supported signature types + if(child.signatureOid in oids) { + var oid = oids[child.signatureOid]; + switch(oid) { + case 'sha1WithRSAEncryption': + md = forge.md.sha1.create(); + break; + case 'md5WithRSAEncryption': + md = forge.md.md5.create(); + break; + case 'sha256WithRSAEncryption': + md = forge.md.sha256.create(); + break; + case 'sha384WithRSAEncryption': + md = forge.md.sha384.create(); + break; + case 'sha512WithRSAEncryption': + md = forge.md.sha512.create(); + break; + case 'RSASSA-PSS': + md = forge.md.sha256.create(); + break; + } + } + if(md === null) { + var error = new Error('Could not compute certificate digest. ' + + 'Unknown signature OID.'); + error.signatureOid = child.signatureOid; + throw error; + } + + // produce DER formatted TBSCertificate and digest it + var tbsCertificate = child.tbsCertificate || pki.getTBSCertificate(child); + var bytes = asn1.toDer(tbsCertificate); + md.update(bytes.getBytes()); + } + + if(md !== null) { + var scheme; + + switch(child.signatureOid) { + case oids.sha1WithRSAEncryption: + scheme = undefined; /* use PKCS#1 v1.5 padding scheme */ + break; + case oids['RSASSA-PSS']: + var hash, mgf; + + /* initialize mgf */ + hash = oids[child.signatureParameters.mgf.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported MGF hash function.'); + error.oid = child.signatureParameters.mgf.hash.algorithmOid; + error.name = hash; + throw error; + } + + mgf = oids[child.signatureParameters.mgf.algorithmOid]; + if(mgf === undefined || forge.mgf[mgf] === undefined) { + var error = new Error('Unsupported MGF function.'); + error.oid = child.signatureParameters.mgf.algorithmOid; + error.name = mgf; + throw error; + } + + mgf = forge.mgf[mgf].create(forge.md[hash].create()); + + /* initialize hash function */ + hash = oids[child.signatureParameters.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + throw { + message: 'Unsupported RSASSA-PSS hash function.', + oid: child.signatureParameters.hash.algorithmOid, + name: hash + }; + } + + scheme = forge.pss.create(forge.md[hash].create(), mgf, + child.signatureParameters.saltLength); + break; + } + + // verify signature on cert using public key + rval = cert.publicKey.verify( + md.digest().getBytes(), child.signature, scheme); + } + + return rval; + }; + + /** + * Returns true if this certificate's issuer matches the passed + * certificate's subject. Note that no signature check is performed. + * + * @param parent the certificate to check. + * + * @return true if this certificate's issuer matches the passed certificate's + * subject. + */ + cert.isIssuer = function(parent) { + var rval = false; + + var i = cert.issuer; + var s = parent.subject; + + // compare hashes if present + if(i.hash && s.hash) { + rval = (i.hash === s.hash); + } else if(i.attributes.length === s.attributes.length) { + // all attributes are the same so issuer matches subject + rval = true; + var iattr, sattr; + for(var n = 0; rval && n < i.attributes.length; ++n) { + iattr = i.attributes[n]; + sattr = s.attributes[n]; + if(iattr.type !== sattr.type || iattr.value !== sattr.value) { + // attribute mismatch + rval = false; + } + } + } + + return rval; + }; + + /** + * Returns true if this certificate's subject matches the issuer of the + * given certificate). Note that not signature check is performed. + * + * @param child the certificate to check. + * + * @return true if this certificate's subject matches the passed + * certificate's issuer. + */ + cert.issued = function(child) { + return child.isIssuer(cert); + }; + + /** + * Generates the subjectKeyIdentifier for this certificate as byte buffer. + * + * @return the subjectKeyIdentifier for this certificate as byte buffer. + */ + cert.generateSubjectKeyIdentifier = function() { + /* See: 4.2.1.2 section of the the RFC3280, keyIdentifier is either: + + (1) The keyIdentifier is composed of the 160-bit SHA-1 hash of the + value of the BIT STRING subjectPublicKey (excluding the tag, + length, and number of unused bits). + + (2) The keyIdentifier is composed of a four bit type field with + the value 0100 followed by the least significant 60 bits of the + SHA-1 hash of the value of the BIT STRING subjectPublicKey + (excluding the tag, length, and number of unused bit string bits). + */ + + // skipping the tag, length, and number of unused bits is the same + // as just using the RSAPublicKey (for RSA keys, which are the + // only ones supported) + return pki.getPublicKeyFingerprint(cert.publicKey, {type: 'RSAPublicKey'}); + }; + + /** + * Verifies the subjectKeyIdentifier extension value for this certificate + * against its public key. If no extension is found, false will be + * returned. + * + * @return true if verified, false if not. + */ + cert.verifySubjectKeyIdentifier = function() { + var oid = oids['subjectKeyIdentifier']; + for(var i = 0; i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.id === oid) { + var ski = cert.generateSubjectKeyIdentifier().getBytes(); + return (forge.util.hexToBytes(ext.subjectKeyIdentifier) === ski); + } + } + return false; + }; + + return cert; +}; + +/** + * Converts an X.509v3 RSA certificate from an ASN.1 object. + * + * Note: If the certificate is to be verified then compute hash should + * be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the TBSCertificate part of the ASN.1 + * object needs to be scanned before the cert object is created. + * + * @param obj the asn1 representation of an X.509v3 RSA certificate. + * @param computeHash true to compute the hash for verification. + * + * @return the certificate. + */ +pki.certificateFromAsn1 = function(obj, computeHash) { + // validate certificate and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, x509CertificateValidator, capture, errors)) { + var error = new Error('Cannot read X.509 certificate. ' + + 'ASN.1 object is not an X509v3 Certificate.'); + error.errors = errors; + throw error; + } + + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } + + // create certificate + var cert = pki.createCertificate(); + cert.version = capture.certVersion ? + capture.certVersion.charCodeAt(0) : 0; + var serial = forge.util.createBuffer(capture.certSerialNumber); + cert.serialNumber = serial.toHex(); + cert.signatureOid = forge.asn1.derToOid(capture.certSignatureOid); + cert.signatureParameters = _readSignatureParameters( + cert.signatureOid, capture.certSignatureParams, true); + cert.siginfo.algorithmOid = forge.asn1.derToOid(capture.certinfoSignatureOid); + cert.siginfo.parameters = _readSignatureParameters(cert.siginfo.algorithmOid, + capture.certinfoSignatureParams, false); + cert.signature = capture.certSignature; + + var validity = []; + if(capture.certValidity1UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity1UTCTime)); + } + if(capture.certValidity2GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity2GeneralizedTime)); + } + if(capture.certValidity3UTCTime !== undefined) { + validity.push(asn1.utcTimeToDate(capture.certValidity3UTCTime)); + } + if(capture.certValidity4GeneralizedTime !== undefined) { + validity.push(asn1.generalizedTimeToDate( + capture.certValidity4GeneralizedTime)); + } + if(validity.length > 2) { + throw new Error('Cannot read notBefore/notAfter validity times; more ' + + 'than two times were provided in the certificate.'); + } + if(validity.length < 2) { + throw new Error('Cannot read notBefore/notAfter validity times; they ' + + 'were not provided as either UTCTime or GeneralizedTime.'); + } + cert.validity.notBefore = validity[0]; + cert.validity.notAfter = validity[1]; + + // keep TBSCertificate to preserve signature when exporting + cert.tbsCertificate = capture.tbsCertificate; + + if(computeHash) { + // check signature OID for supported signature types + cert.md = null; + if(cert.signatureOid in oids) { + var oid = oids[cert.signatureOid]; + switch(oid) { + case 'sha1WithRSAEncryption': + cert.md = forge.md.sha1.create(); + break; + case 'md5WithRSAEncryption': + cert.md = forge.md.md5.create(); + break; + case 'sha256WithRSAEncryption': + cert.md = forge.md.sha256.create(); + break; + case 'sha384WithRSAEncryption': + cert.md = forge.md.sha384.create(); + break; + case 'sha512WithRSAEncryption': + cert.md = forge.md.sha512.create(); + break; + case 'RSASSA-PSS': + cert.md = forge.md.sha256.create(); + break; + } + } + if(cert.md === null) { + var error = new Error('Could not compute certificate digest. ' + + 'Unknown signature OID.'); + error.signatureOid = cert.signatureOid; + throw error; + } + + // produce DER formatted TBSCertificate and digest it + var bytes = asn1.toDer(cert.tbsCertificate); + cert.md.update(bytes.getBytes()); + } + + // handle issuer, build issuer message digest + var imd = forge.md.sha1.create(); + cert.issuer.getField = function(sn) { + return _getAttribute(cert.issuer, sn); + }; + cert.issuer.addField = function(attr) { + _fillMissingFields([attr]); + cert.issuer.attributes.push(attr); + }; + cert.issuer.attributes = pki.RDNAttributesAsArray(capture.certIssuer, imd); + if(capture.certIssuerUniqueId) { + cert.issuer.uniqueId = capture.certIssuerUniqueId; + } + cert.issuer.hash = imd.digest().toHex(); + + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + cert.subject.getField = function(sn) { + return _getAttribute(cert.subject, sn); + }; + cert.subject.addField = function(attr) { + _fillMissingFields([attr]); + cert.subject.attributes.push(attr); + }; + cert.subject.attributes = pki.RDNAttributesAsArray(capture.certSubject, smd); + if(capture.certSubjectUniqueId) { + cert.subject.uniqueId = capture.certSubjectUniqueId; + } + cert.subject.hash = smd.digest().toHex(); + + // handle extensions + if(capture.certExtensions) { + cert.extensions = pki.certificateExtensionsFromAsn1(capture.certExtensions); + } else { + cert.extensions = []; + } + + // convert RSA public key from ASN.1 + cert.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); + + return cert; +}; + +/** + * Converts an ASN.1 extensions object (with extension sequences as its + * values) into an array of extension objects with types and values. + * + * Supported extensions: + * + * id-ce-keyUsage OBJECT IDENTIFIER ::= { id-ce 15 } + * KeyUsage ::= BIT STRING { + * digitalSignature (0), + * nonRepudiation (1), + * keyEncipherment (2), + * dataEncipherment (3), + * keyAgreement (4), + * keyCertSign (5), + * cRLSign (6), + * encipherOnly (7), + * decipherOnly (8) + * } + * + * id-ce-basicConstraints OBJECT IDENTIFIER ::= { id-ce 19 } + * BasicConstraints ::= SEQUENCE { + * cA BOOLEAN DEFAULT FALSE, + * pathLenConstraint INTEGER (0..MAX) OPTIONAL + * } + * + * subjectAltName EXTENSION ::= { + * SYNTAX GeneralNames + * IDENTIFIED BY id-ce-subjectAltName + * } + * + * GeneralNames ::= SEQUENCE SIZE (1..MAX) OF GeneralName + * + * GeneralName ::= CHOICE { + * otherName [0] INSTANCE OF OTHER-NAME, + * rfc822Name [1] IA5String, + * dNSName [2] IA5String, + * x400Address [3] ORAddress, + * directoryName [4] Name, + * ediPartyName [5] EDIPartyName, + * uniformResourceIdentifier [6] IA5String, + * IPAddress [7] OCTET STRING, + * registeredID [8] OBJECT IDENTIFIER + * } + * + * OTHER-NAME ::= TYPE-IDENTIFIER + * + * EDIPartyName ::= SEQUENCE { + * nameAssigner [0] DirectoryString {ub-name} OPTIONAL, + * partyName [1] DirectoryString {ub-name} + * } + * + * @param exts the extensions ASN.1 with extension sequences to parse. + * + * @return the array. + */ +pki.certificateExtensionsFromAsn1 = function(exts) { + var rval = []; + for(var i = 0; i < exts.value.length; ++i) { + // get extension sequence + var extseq = exts.value[i]; + for(var ei = 0; ei < extseq.value.length; ++ei) { + rval.push(pki.certificateExtensionFromAsn1(extseq.value[ei])); + } + } + + return rval; +}; + +/** + * Parses a single certificate extension from ASN.1. + * + * @param ext the extension in ASN.1 format. + * + * @return the parsed extension as an object. + */ +pki.certificateExtensionFromAsn1 = function(ext) { + // an extension has: + // [0] extnID OBJECT IDENTIFIER + // [1] critical BOOLEAN DEFAULT FALSE + // [2] extnValue OCTET STRING + var e = {}; + e.id = asn1.derToOid(ext.value[0].value); + e.critical = false; + if(ext.value[1].type === asn1.Type.BOOLEAN) { + e.critical = (ext.value[1].value.charCodeAt(0) !== 0x00); + e.value = ext.value[2].value; + } else { + e.value = ext.value[1].value; + } + // if the oid is known, get its name + if(e.id in oids) { + e.name = oids[e.id]; + + // handle key usage + if(e.name === 'keyUsage') { + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + var b3 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + b3 = ev.value.length > 2 ? ev.value.charCodeAt(2) : 0; + } + // set flags + e.digitalSignature = (b2 & 0x80) === 0x80; + e.nonRepudiation = (b2 & 0x40) === 0x40; + e.keyEncipherment = (b2 & 0x20) === 0x20; + e.dataEncipherment = (b2 & 0x10) === 0x10; + e.keyAgreement = (b2 & 0x08) === 0x08; + e.keyCertSign = (b2 & 0x04) === 0x04; + e.cRLSign = (b2 & 0x02) === 0x02; + e.encipherOnly = (b2 & 0x01) === 0x01; + e.decipherOnly = (b3 & 0x80) === 0x80; + } else if(e.name === 'basicConstraints') { + // handle basic constraints + // get value as SEQUENCE + var ev = asn1.fromDer(e.value); + // get cA BOOLEAN flag (defaults to false) + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.BOOLEAN) { + e.cA = (ev.value[0].value.charCodeAt(0) !== 0x00); + } else { + e.cA = false; + } + // get path length constraint + var value = null; + if(ev.value.length > 0 && ev.value[0].type === asn1.Type.INTEGER) { + value = ev.value[0].value; + } else if(ev.value.length > 1) { + value = ev.value[1].value; + } + if(value !== null) { + e.pathLenConstraint = asn1.derToInteger(value); + } + } else if(e.name === 'extKeyUsage') { + // handle extKeyUsage + // value is a SEQUENCE of OIDs + var ev = asn1.fromDer(e.value); + for(var vi = 0; vi < ev.value.length; ++vi) { + var oid = asn1.derToOid(ev.value[vi].value); + if(oid in oids) { + e[oids[oid]] = true; + } else { + e[oid] = true; + } + } + } else if(e.name === 'nsCertType') { + // handle nsCertType + // get value as BIT STRING + var ev = asn1.fromDer(e.value); + var b2 = 0x00; + if(ev.value.length > 1) { + // skip first byte, just indicates unused bits which + // will be padded with 0s anyway + // get bytes with flag bits + b2 = ev.value.charCodeAt(1); + } + // set flags + e.client = (b2 & 0x80) === 0x80; + e.server = (b2 & 0x40) === 0x40; + e.email = (b2 & 0x20) === 0x20; + e.objsign = (b2 & 0x10) === 0x10; + e.reserved = (b2 & 0x08) === 0x08; + e.sslCA = (b2 & 0x04) === 0x04; + e.emailCA = (b2 & 0x02) === 0x02; + e.objCA = (b2 & 0x01) === 0x01; + } else if( + e.name === 'subjectAltName' || + e.name === 'issuerAltName') { + // handle subjectAltName/issuerAltName + e.altNames = []; + + // ev is a SYNTAX SEQUENCE + var gn; + var ev = asn1.fromDer(e.value); + for(var n = 0; n < ev.value.length; ++n) { + // get GeneralName + gn = ev.value[n]; + + var altName = { + type: gn.type, + value: gn.value + }; + e.altNames.push(altName); + + // Note: Support for types 1,2,6,7,8 + switch(gn.type) { + // rfc822Name + case 1: + // dNSName + case 2: + // uniformResourceIdentifier (URI) + case 6: + break; + // IPAddress + case 7: + // convert to IPv4/IPv6 string representation + altName.ip = forge.util.bytesToIP(gn.value); + break; + // registeredID + case 8: + altName.oid = asn1.derToOid(gn.value); + break; + default: + // unsupported + } + } + } else if(e.name === 'subjectKeyIdentifier') { + // value is an OCTETSTRING w/the hash of the key-type specific + // public key structure (eg: RSAPublicKey) + var ev = asn1.fromDer(e.value); + e.subjectKeyIdentifier = forge.util.bytesToHex(ev.value); + } + } + return e; +}; + +/** + * Converts a PKCS#10 certification request (CSR) from an ASN.1 object. + * + * Note: If the certification request is to be verified then compute hash + * should be set to true. There is currently no implementation for converting + * a certificate back to ASN.1 so the CertificationRequestInfo part of the + * ASN.1 object needs to be scanned before the csr object is created. + * + * @param obj the asn1 representation of a PKCS#10 certification request (CSR). + * @param computeHash true to compute the hash for verification. + * + * @return the certification request (CSR). + */ +pki.certificationRequestFromAsn1 = function(obj, computeHash) { + // validate certification request and capture data + var capture = {}; + var errors = []; + if(!asn1.validate(obj, certificationRequestValidator, capture, errors)) { + var error = new Error('Cannot read PKCS#10 certificate request. ' + + 'ASN.1 object is not a PKCS#10 CertificationRequest.'); + error.errors = errors; + throw error; + } + + // get oid + var oid = asn1.derToOid(capture.publicKeyOid); + if(oid !== pki.oids.rsaEncryption) { + throw new Error('Cannot read public key. OID is not RSA.'); + } + + // create certification request + var csr = pki.createCertificationRequest(); + csr.version = capture.csrVersion ? capture.csrVersion.charCodeAt(0) : 0; + csr.signatureOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.signatureParameters = _readSignatureParameters( + csr.signatureOid, capture.csrSignatureParams, true); + csr.siginfo.algorithmOid = forge.asn1.derToOid(capture.csrSignatureOid); + csr.siginfo.parameters = _readSignatureParameters( + csr.siginfo.algorithmOid, capture.csrSignatureParams, false); + csr.signature = capture.csrSignature; + + // keep CertificationRequestInfo to preserve signature when exporting + csr.certificationRequestInfo = capture.certificationRequestInfo; + + if(computeHash) { + // check signature OID for supported signature types + csr.md = null; + if(csr.signatureOid in oids) { + var oid = oids[csr.signatureOid]; + switch(oid) { + case 'sha1WithRSAEncryption': + csr.md = forge.md.sha1.create(); + break; + case 'md5WithRSAEncryption': + csr.md = forge.md.md5.create(); + break; + case 'sha256WithRSAEncryption': + csr.md = forge.md.sha256.create(); + break; + case 'sha384WithRSAEncryption': + csr.md = forge.md.sha384.create(); + break; + case 'sha512WithRSAEncryption': + csr.md = forge.md.sha512.create(); + break; + case 'RSASSA-PSS': + csr.md = forge.md.sha256.create(); + break; + } + } + if(csr.md === null) { + var error = new Error('Could not compute certification request digest. ' + + 'Unknown signature OID.'); + error.signatureOid = csr.signatureOid; + throw error; + } + + // produce DER formatted CertificationRequestInfo and digest it + var bytes = asn1.toDer(csr.certificationRequestInfo); + csr.md.update(bytes.getBytes()); + } + + // handle subject, build subject message digest + var smd = forge.md.sha1.create(); + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = pki.RDNAttributesAsArray( + capture.certificationRequestInfoSubject, smd); + csr.subject.hash = smd.digest().toHex(); + + // convert RSA public key from ASN.1 + csr.publicKey = pki.publicKeyFromAsn1(capture.subjectPublicKeyInfo); + + // convert attributes from ASN.1 + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.attributes = pki.CRIAttributesAsArray( + capture.certificationRequestInfoAttributes || []); + + return csr; +}; + +/** + * Creates an empty certification request (a CSR or certificate signing + * request). Once created, its public key and attributes can be set and then + * it can be signed. + * + * @return the empty certification request. + */ +pki.createCertificationRequest = function() { + var csr = {}; + csr.version = 0x00; + csr.signatureOid = null; + csr.signature = null; + csr.siginfo = {}; + csr.siginfo.algorithmOid = null; + + csr.subject = {}; + csr.subject.getField = function(sn) { + return _getAttribute(csr.subject, sn); + }; + csr.subject.addField = function(attr) { + _fillMissingFields([attr]); + csr.subject.attributes.push(attr); + }; + csr.subject.attributes = []; + csr.subject.hash = null; + + csr.publicKey = null; + csr.attributes = []; + csr.getAttribute = function(sn) { + return _getAttribute(csr, sn); + }; + csr.addAttribute = function(attr) { + _fillMissingFields([attr]); + csr.attributes.push(attr); + }; + csr.md = null; + + /** + * Sets the subject of this certification request. + * + * @param attrs the array of subject attributes to use. + */ + csr.setSubject = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.subject.attributes = attrs; + csr.subject.hash = null; + }; + + /** + * Sets the attributes of this certification request. + * + * @param attrs the array of attributes to use. + */ + csr.setAttributes = function(attrs) { + // set new attributes + _fillMissingFields(attrs); + csr.attributes = attrs; + }; + + /** + * Signs this certification request using the given private key. + * + * @param key the private key to sign with. + * @param md the message digest object to use (defaults to forge.md.sha1). + */ + csr.sign = function(key, md) { + // TODO: get signature OID from private key + csr.md = md || forge.md.sha1.create(); + var algorithmOid = oids[csr.md.algorithm + 'WithRSAEncryption']; + if(!algorithmOid) { + var error = new Error('Could not compute certification request digest. ' + + 'Unknown message digest algorithm OID.'); + error.algorithm = csr.md.algorithm; + throw error; + } + csr.signatureOid = csr.siginfo.algorithmOid = algorithmOid; + + // get CertificationRequestInfo, convert to DER + csr.certificationRequestInfo = pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(csr.certificationRequestInfo); + + // digest and sign + csr.md.update(bytes.getBytes()); + csr.signature = key.sign(csr.md); + }; + + /** + * Attempts verify the signature on the passed certification request using + * its public key. + * + * A CSR that has been exported to a file in PEM format can be verified using + * OpenSSL using this command: + * + * openssl req -in -verify -noout -text + * + * @return true if verified, false if not. + */ + csr.verify = function() { + var rval = false; + + var md = csr.md; + if(md === null) { + // check signature OID for supported signature types + if(csr.signatureOid in oids) { + // TODO: create DRY `OID to md` function + var oid = oids[csr.signatureOid]; + switch(oid) { + case 'sha1WithRSAEncryption': + md = forge.md.sha1.create(); + break; + case 'md5WithRSAEncryption': + md = forge.md.md5.create(); + break; + case 'sha256WithRSAEncryption': + md = forge.md.sha256.create(); + break; + case 'sha384WithRSAEncryption': + md = forge.md.sha384.create(); + break; + case 'sha512WithRSAEncryption': + md = forge.md.sha512.create(); + break; + case 'RSASSA-PSS': + md = forge.md.sha256.create(); + break; + } + } + if(md === null) { + var error = new Error( + 'Could not compute certification request digest. ' + + 'Unknown signature OID.'); + error.signatureOid = csr.signatureOid; + throw error; + } + + // produce DER formatted CertificationRequestInfo and digest it + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + var bytes = asn1.toDer(cri); + md.update(bytes.getBytes()); + } + + if(md !== null) { + var scheme; + + switch(csr.signatureOid) { + case oids.sha1WithRSAEncryption: + /* use PKCS#1 v1.5 padding scheme */ + break; + case oids['RSASSA-PSS']: + var hash, mgf; + + /* initialize mgf */ + hash = oids[csr.signatureParameters.mgf.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported MGF hash function.'); + error.oid = csr.signatureParameters.mgf.hash.algorithmOid; + error.name = hash; + throw error; + } + + mgf = oids[csr.signatureParameters.mgf.algorithmOid]; + if(mgf === undefined || forge.mgf[mgf] === undefined) { + var error = new Error('Unsupported MGF function.'); + error.oid = csr.signatureParameters.mgf.algorithmOid; + error.name = mgf; + throw error; + } + + mgf = forge.mgf[mgf].create(forge.md[hash].create()); + + /* initialize hash function */ + hash = oids[csr.signatureParameters.hash.algorithmOid]; + if(hash === undefined || forge.md[hash] === undefined) { + var error = new Error('Unsupported RSASSA-PSS hash function.'); + error.oid = csr.signatureParameters.hash.algorithmOid; + error.name = hash; + throw error; + } + + scheme = forge.pss.create(forge.md[hash].create(), mgf, + csr.signatureParameters.saltLength); + break; + } + + // verify signature on csr using its public key + rval = csr.publicKey.verify( + md.digest().getBytes(), csr.signature, scheme); + } + + return rval; + }; + + return csr; +}; + +/** + * Converts an X.509 subject or issuer to an ASN.1 RDNSequence. + * + * @param obj the subject or issuer (distinguished name). + * + * @return the ASN.1 RDNSequence. + */ +function _dnToAsn1(obj) { + // create an empty RDNSequence + var rval = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // iterate over attributes + var attr, set; + var attrs = obj.attributes; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + var value = attr.value; + + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.PRINTABLESTRING; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; + + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + // FIXME: handle more encodings + } + + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + set = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + // AttributeValue + asn1.create(asn1.Class.UNIVERSAL, valueTagClass, false, value) + ]) + ]); + rval.value.push(set); + } + + return rval; +} + +/** + * Gets all printable attributes (typically of an issuer or subject) in a + * simplified JSON format for display. + * + * @param attrs the attributes. + * + * @return the JSON for display. + */ +function _getAttributesAsJson(attrs) { + var rval = {}; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + if(attr.shortName && ( + attr.valueTagClass === asn1.Type.UTF8 || + attr.valueTagClass === asn1.Type.PRINTABLESTRING || + attr.valueTagClass === asn1.Type.IA5STRING)) { + var value = attr.value; + if(attr.valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(attr.value); + } + if(!(attr.shortName in rval)) { + rval[attr.shortName] = value; + } else if(forge.util.isArray(rval[attr.shortName])) { + rval[attr.shortName].push(value); + } else { + rval[attr.shortName] = [rval[attr.shortName], value]; + } + } + } + return rval; +} + +/** + * Fills in missing fields in attributes. + * + * @param attrs the attributes to fill missing fields in. + */ +function _fillMissingFields(attrs) { + var attr; + for(var i = 0; i < attrs.length; ++i) { + attr = attrs[i]; + + // populate missing name + if(typeof attr.name === 'undefined') { + if(attr.type && attr.type in pki.oids) { + attr.name = pki.oids[attr.type]; + } else if(attr.shortName && attr.shortName in _shortNames) { + attr.name = pki.oids[_shortNames[attr.shortName]]; + } + } + + // populate missing type (OID) + if(typeof attr.type === 'undefined') { + if(attr.name && attr.name in pki.oids) { + attr.type = pki.oids[attr.name]; + } else { + var error = new Error('Attribute type not specified.'); + error.attribute = attr; + throw error; + } + } + + // populate missing shortname + if(typeof attr.shortName === 'undefined') { + if(attr.name && attr.name in _shortNames) { + attr.shortName = _shortNames[attr.name]; + } + } + + // convert extensions to value + if(attr.type === oids.extensionRequest) { + attr.valueConstructed = true; + attr.valueTagClass = asn1.Type.SEQUENCE; + if(!attr.value && attr.extensions) { + attr.value = []; + for(var ei = 0; ei < attr.extensions.length; ++ei) { + attr.value.push(pki.certificateExtensionToAsn1( + _fillMissingExtensionFields(attr.extensions[ei]))); + } + } + } + + if(typeof attr.value === 'undefined') { + var error = new Error('Attribute value not specified.'); + error.attribute = attr; + throw error; + } + } +} + +/** + * Fills in missing fields in certificate extensions. + * + * @param e the extension. + * @param [options] the options to use. + * [cert] the certificate the extensions are for. + * + * @return the extension. + */ +function _fillMissingExtensionFields(e, options) { + options = options || {}; + + // populate missing name + if(typeof e.name === 'undefined') { + if(e.id && e.id in pki.oids) { + e.name = pki.oids[e.id]; + } + } + + // populate missing id + if(typeof e.id === 'undefined') { + if(e.name && e.name in pki.oids) { + e.id = pki.oids[e.name]; + } else { + var error = new Error('Extension ID not specified.'); + error.extension = e; + throw error; + } + } + + if(typeof e.value !== 'undefined') { + return e; + } + + // handle missing value: + + // value is a BIT STRING + if(e.name === 'keyUsage') { + // build flags + var unused = 0; + var b2 = 0x00; + var b3 = 0x00; + if(e.digitalSignature) { + b2 |= 0x80; + unused = 7; + } + if(e.nonRepudiation) { + b2 |= 0x40; + unused = 6; + } + if(e.keyEncipherment) { + b2 |= 0x20; + unused = 5; + } + if(e.dataEncipherment) { + b2 |= 0x10; + unused = 4; + } + if(e.keyAgreement) { + b2 |= 0x08; + unused = 3; + } + if(e.keyCertSign) { + b2 |= 0x04; + unused = 2; + } + if(e.cRLSign) { + b2 |= 0x02; + unused = 1; + } + if(e.encipherOnly) { + b2 |= 0x01; + unused = 0; + } + if(e.decipherOnly) { + b3 |= 0x80; + unused = 7; + } + + // create bit string + var value = String.fromCharCode(unused); + if(b3 !== 0) { + value += String.fromCharCode(b2) + String.fromCharCode(b3); + } else if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'basicConstraints') { + // basicConstraints is a SEQUENCE + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + // cA BOOLEAN flag defaults to false + if(e.cA) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); + } + if('pathLenConstraint' in e) { + e.value.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(e.pathLenConstraint).getBytes())); + } + } else if(e.name === 'extKeyUsage') { + // extKeyUsage is a SEQUENCE of OIDs + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + for(var key in e) { + if(e[key] !== true) { + continue; + } + // key is name in OID map + if(key in oids) { + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(oids[key]).getBytes())); + } else if(key.indexOf('.') !== -1) { + // assume key is an OID + seq.push(asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, + false, asn1.oidToDer(key).getBytes())); + } + } + } else if(e.name === 'nsCertType') { + // nsCertType is a BIT STRING + // build flags + var unused = 0; + var b2 = 0x00; + + if(e.client) { + b2 |= 0x80; + unused = 7; + } + if(e.server) { + b2 |= 0x40; + unused = 6; + } + if(e.email) { + b2 |= 0x20; + unused = 5; + } + if(e.objsign) { + b2 |= 0x10; + unused = 4; + } + if(e.reserved) { + b2 |= 0x08; + unused = 3; + } + if(e.sslCA) { + b2 |= 0x04; + unused = 2; + } + if(e.emailCA) { + b2 |= 0x02; + unused = 1; + } + if(e.objCA) { + b2 |= 0x01; + unused = 0; + } + + // create bit string + var value = String.fromCharCode(unused); + if(b2 !== 0) { + value += String.fromCharCode(b2); + } + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, value); + } else if(e.name === 'subjectAltName' || e.name === 'issuerAltName') { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } + } + e.value.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); + } + } else if(e.name === 'nsComment' && options.cert) { + // sanity check value is ASCII (req'd) and not too big + if(!(/^[\x00-\x7F]*$/.test(e.comment)) || + (e.comment.length < 1) || (e.comment.length > 128)) { + throw new Error('Invalid "nsComment" content.'); + } + // IA5STRING opaque comment + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.IA5STRING, false, e.comment); + } else if(e.name === 'subjectKeyIdentifier' && options.cert) { + var ski = options.cert.generateSubjectKeyIdentifier(); + e.subjectKeyIdentifier = ski.toHex(); + // OCTETSTRING w/digest + e.value = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, ski.getBytes()); + } else if(e.name === 'authorityKeyIdentifier' && options.cert) { + // SYNTAX SEQUENCE + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + + if(e.keyIdentifier) { + var keyIdentifier = (e.keyIdentifier === true ? + options.cert.generateSubjectKeyIdentifier().getBytes() : + e.keyIdentifier); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, false, keyIdentifier)); + } + + if(e.authorityCertIssuer) { + var authorityCertIssuer = [ + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 4, true, [ + _dnToAsn1(e.authorityCertIssuer === true ? + options.cert.issuer : e.authorityCertIssuer) + ]) + ]; + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, authorityCertIssuer)); + } + + if(e.serialNumber) { + var serialNumber = forge.util.hexToBytes(e.serialNumber === true ? + options.cert.serialNumber : e.serialNumber); + seq.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, false, serialNumber)); + } + } else if(e.name === 'cRLDistributionPoints') { + e.value = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + var seq = e.value.value; + + // Create sub SEQUENCE of DistributionPointName + var subSeq = asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // Create fullName CHOICE + var fullNameGeneralNames = asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + var altName; + for(var n = 0; n < e.altNames.length; ++n) { + altName = e.altNames[n]; + var value = altName.value; + // handle IP + if(altName.type === 7 && altName.ip) { + value = forge.util.bytesFromIP(altName.ip); + if(value === null) { + var error = new Error( + 'Extension "ip" value is not a valid IPv4 or IPv6 address.'); + error.extension = e; + throw error; + } + } else if(altName.type === 8) { + // handle OID + if(altName.oid) { + value = asn1.oidToDer(asn1.oidToDer(altName.oid)); + } else { + // deprecated ... convert value to OID + value = asn1.oidToDer(value); + } + } + fullNameGeneralNames.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, altName.type, false, + value)); + } + + // Add to the parent SEQUENCE + subSeq.value.push(asn1.create( + asn1.Class.CONTEXT_SPECIFIC, 0, true, [fullNameGeneralNames])); + seq.push(subSeq); + } + + // ensure value has been defined by now + if(typeof e.value === 'undefined') { + var error = new Error('Extension value not specified.'); + error.extension = e; + throw error; + } + + return e; +} + +/** + * Convert signature parameters object to ASN.1 + * + * @param {String} oid Signature algorithm OID + * @param params The signature parametrs object + * @return ASN.1 object representing signature parameters + */ +function _signatureParametersToAsn1(oid, params) { + switch(oid) { + case oids['RSASSA-PSS']: + var parts = []; + + if(params.hash.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ])); + } + + if(params.mgf.algorithmOid !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(params.mgf.hash.algorithmOid).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, '') + ]) + ]) + ])); + } + + if(params.saltLength !== undefined) { + parts.push(asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(params.saltLength).getBytes()) + ])); + } + + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, parts); + + default: + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.NULL, false, ''); + } +} + +/** + * Converts a certification request's attributes to an ASN.1 set of + * CRIAttributes. + * + * @param csr certification request. + * + * @return the ASN.1 set of CRIAttributes. + */ +function _CRIAttributesToAsn1(csr) { + // create an empty context-specific container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, []); + + // no attributes, return empty container + if(csr.attributes.length === 0) { + return rval; + } + + // each attribute has a sequence with a type and a set of values + var attrs = csr.attributes; + for(var i = 0; i < attrs.length; ++i) { + var attr = attrs[i]; + var value = attr.value; + + // reuse tag class for attribute value if available + var valueTagClass = asn1.Type.UTF8; + if('valueTagClass' in attr) { + valueTagClass = attr.valueTagClass; + } + if(valueTagClass === asn1.Type.UTF8) { + value = forge.util.encodeUtf8(value); + } + var valueConstructed = false; + if('valueConstructed' in attr) { + valueConstructed = attr.valueConstructed; + } + // FIXME: handle more encodings + + // create a RelativeDistinguishedName set + // each value in the set is an AttributeTypeAndValue first + // containing the type (an OID) and second the value + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // AttributeType + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(attr.type).getBytes()), + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SET, true, [ + // AttributeValue + asn1.create( + asn1.Class.UNIVERSAL, valueTagClass, valueConstructed, value) + ]) + ]); + rval.value.push(seq); + } + + return rval; +} + +var jan_1_1950 = new Date('1950-01-01T00:00:00Z'); +var jan_1_2050 = new Date('2050-01-01T00:00:00Z'); + +/** + * Converts a Date object to ASN.1 + * Handles the different format before and after 1st January 2050 + * + * @param date date object. + * + * @return the ASN.1 object representing the date. + */ +function _dateToAsn1(date) { + if(date >= jan_1_1950 && date < jan_1_2050) { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.UTCTIME, false, + asn1.dateToUtcTime(date)); + } else { + return asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.GENERALIZEDTIME, false, + asn1.dateToGeneralizedTime(date)); + } +} + +/** + * Gets the ASN.1 TBSCertificate part of an X.509v3 certificate. + * + * @param cert the certificate. + * + * @return the asn1 TBSCertificate. + */ +pki.getTBSCertificate = function(cert) { + // TBSCertificate + var notBefore = _dateToAsn1(cert.validity.notBefore); + var notAfter = _dateToAsn1(cert.validity.notAfter); + var tbs = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 0, true, [ + // integer + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(cert.version).getBytes()) + ]), + // serialNumber + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + forge.util.hexToBytes(cert.serialNumber)), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.siginfo.algorithmOid).getBytes()), + // parameters + _signatureParametersToAsn1( + cert.siginfo.algorithmOid, cert.siginfo.parameters) + ]), + // issuer + _dnToAsn1(cert.issuer), + // validity + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + notBefore, + notAfter + ]), + // subject + _dnToAsn1(cert.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(cert.publicKey) + ]); + + if(cert.issuer.uniqueId) { + // issuerUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 1, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.issuer.uniqueId + ) + ]) + ); + } + if(cert.subject.uniqueId) { + // subjectUniqueID (optional) + tbs.value.push( + asn1.create(asn1.Class.CONTEXT_SPECIFIC, 2, true, [ + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + // TODO: support arbitrary bit length ids + String.fromCharCode(0x00) + + cert.subject.uniqueId + ) + ]) + ); + } + + if(cert.extensions.length > 0) { + // extensions (optional) + tbs.value.push(pki.certificateExtensionsToAsn1(cert.extensions)); + } + + return tbs; +}; + +/** + * Gets the ASN.1 CertificationRequestInfo part of a + * PKCS#10 CertificationRequest. + * + * @param csr the certification request. + * + * @return the asn1 CertificationRequestInfo. + */ +pki.getCertificationRequestInfo = function(csr) { + // CertificationRequestInfo + var cri = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // version + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.INTEGER, false, + asn1.integerToDer(csr.version).getBytes()), + // subject + _dnToAsn1(csr.subject), + // SubjectPublicKeyInfo + pki.publicKeyToAsn1(csr.publicKey), + // attributes + _CRIAttributesToAsn1(csr) + ]); + + return cri; +}; + +/** + * Converts a DistinguishedName (subject or issuer) to an ASN.1 object. + * + * @param dn the DistinguishedName. + * + * @return the asn1 representation of a DistinguishedName. + */ +pki.distinguishedNameToAsn1 = function(dn) { + return _dnToAsn1(dn); +}; + +/** + * Converts an X.509v3 RSA certificate to an ASN.1 object. + * + * @param cert the certificate. + * + * @return the asn1 representation of an X.509v3 RSA certificate. + */ +pki.certificateToAsn1 = function(cert) { + // prefer cached TBSCertificate over generating one + var tbsCertificate = cert.tbsCertificate || pki.getTBSCertificate(cert); + + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // TBSCertificate + tbsCertificate, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(cert.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(cert.signatureOid, cert.signatureParameters) + ]), + // SignatureValue + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + cert.signature) + ]); +}; + +/** + * Converts X.509v3 certificate extensions to ASN.1. + * + * @param exts the extensions to convert. + * + * @return the extensions in ASN.1 format. + */ +pki.certificateExtensionsToAsn1 = function(exts) { + // create top-level extension container + var rval = asn1.create(asn1.Class.CONTEXT_SPECIFIC, 3, true, []); + + // create extension sequence (stores a sequence for each extension) + var seq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + rval.value.push(seq); + + for(var i = 0; i < exts.length; ++i) { + seq.value.push(pki.certificateExtensionToAsn1(exts[i])); + } + + return rval; +}; + +/** + * Converts a single certificate extension to ASN.1. + * + * @param ext the extension to convert. + * + * @return the extension in ASN.1 format. + */ +pki.certificateExtensionToAsn1 = function(ext) { + // create a sequence for each extension + var extseq = asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, []); + + // extnID (OID) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(ext.id).getBytes())); + + // critical defaults to false + if(ext.critical) { + // critical BOOLEAN DEFAULT FALSE + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.BOOLEAN, false, + String.fromCharCode(0xFF))); + } + + var value = ext.value; + if(typeof ext.value !== 'string') { + // value is asn.1 + value = asn1.toDer(value).getBytes(); + } + + // extnValue (OCTET STRING) + extseq.value.push(asn1.create( + asn1.Class.UNIVERSAL, asn1.Type.OCTETSTRING, false, value)); + + return extseq; +}; + +/** + * Converts a PKCS#10 certification request to an ASN.1 object. + * + * @param csr the certification request. + * + * @return the asn1 representation of a certification request. + */ +pki.certificationRequestToAsn1 = function(csr) { + // prefer cached CertificationRequestInfo over generating one + var cri = csr.certificationRequestInfo || + pki.getCertificationRequestInfo(csr); + + // Certificate + return asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // CertificationRequestInfo + cri, + // AlgorithmIdentifier (signature algorithm) + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.SEQUENCE, true, [ + // algorithm + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.OID, false, + asn1.oidToDer(csr.signatureOid).getBytes()), + // parameters + _signatureParametersToAsn1(csr.signatureOid, csr.signatureParameters) + ]), + // signature + asn1.create(asn1.Class.UNIVERSAL, asn1.Type.BITSTRING, false, + String.fromCharCode(0x00) + csr.signature) + ]); +}; + +/** + * Creates a CA store. + * + * @param certs an optional array of certificate objects or PEM-formatted + * certificate strings to add to the CA store. + * + * @return the CA store. + */ +pki.createCaStore = function(certs) { + // create CA store + var caStore = { + // stored certificates + certs: {} + }; + + /** + * Gets the certificate that issued the passed certificate or its + * 'parent'. + * + * @param cert the certificate to get the parent for. + * + * @return the parent certificate or null if none was found. + */ + caStore.getIssuer = function(cert) { + var rval = getBySubject(cert.issuer); + + // see if there are multiple matches + /*if(forge.util.isArray(rval)) { + // TODO: resolve multiple matches by checking + // authorityKey/subjectKey/issuerUniqueID/other identifiers, etc. + // FIXME: or alternatively do authority key mapping + // if possible (X.509v1 certs can't work?) + throw new Error('Resolving multiple issuer matches not implemented yet.'); + }*/ + + return rval; + }; + + /** + * Adds a trusted certificate to the store. + * + * @param cert the certificate to add as a trusted certificate (either a + * pki.certificate object or a PEM-formatted certificate). + */ + caStore.addCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + + ensureSubjectHasHash(cert.subject); + + if(!caStore.hasCertificate(cert)) { // avoid duplicate certificates in store + if(cert.subject.hash in caStore.certs) { + // subject hash already exists, append to array + var tmp = caStore.certs[cert.subject.hash]; + if(!forge.util.isArray(tmp)) { + tmp = [tmp]; + } + tmp.push(cert); + caStore.certs[cert.subject.hash] = tmp; + } else { + caStore.certs[cert.subject.hash] = cert; + } + } + }; + + /** + * Checks to see if the given certificate is in the store. + * + * @param cert the certificate to check (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return true if the certificate is in the store, false if not. + */ + caStore.hasCertificate = function(cert) { + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + + var match = getBySubject(cert.subject); + if(!match) { + return false; + } + if(!forge.util.isArray(match)) { + match = [match]; + } + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + return true; + } + } + return false; + }; + + /** + * Lists all of the certificates kept in the store. + * + * @return an array of all of the pki.certificate objects in the store. + */ + caStore.listAllCertificates = function() { + var certList = []; + + for(var hash in caStore.certs) { + if(caStore.certs.hasOwnProperty(hash)) { + var value = caStore.certs[hash]; + if(!forge.util.isArray(value)) { + certList.push(value); + } else { + for(var i = 0; i < value.length; ++i) { + certList.push(value[i]); + } + } + } + } + + return certList; + }; + + /** + * Removes a certificate from the store. + * + * @param cert the certificate to remove (either a pki.certificate or a + * PEM-formatted certificate). + * + * @return the certificate that was removed or null if the certificate + * wasn't in store. + */ + caStore.removeCertificate = function(cert) { + var result; + + // convert from pem if necessary + if(typeof cert === 'string') { + cert = forge.pki.certificateFromPem(cert); + } + ensureSubjectHasHash(cert.subject); + if(!caStore.hasCertificate(cert)) { + return null; + } + + var match = getBySubject(cert.subject); + + if(!forge.util.isArray(match)) { + result = caStore.certs[cert.subject.hash]; + delete caStore.certs[cert.subject.hash]; + return result; + } + + // compare DER-encoding of certificates + var der1 = asn1.toDer(pki.certificateToAsn1(cert)).getBytes(); + for(var i = 0; i < match.length; ++i) { + var der2 = asn1.toDer(pki.certificateToAsn1(match[i])).getBytes(); + if(der1 === der2) { + result = match[i]; + match.splice(i, 1); + } + } + if(match.length === 0) { + delete caStore.certs[cert.subject.hash]; + } + + return result; + }; + + function getBySubject(subject) { + ensureSubjectHasHash(subject); + return caStore.certs[subject.hash] || null; + } + + function ensureSubjectHasHash(subject) { + // produce subject hash if it doesn't exist + if(!subject.hash) { + var md = forge.md.sha1.create(); + subject.attributes = pki.RDNAttributesAsArray(_dnToAsn1(subject), md); + subject.hash = md.digest().toHex(); + } + } + + // auto-add passed in certs + if(certs) { + // parse PEM-formatted certificates as necessary + for(var i = 0; i < certs.length; ++i) { + var cert = certs[i]; + caStore.addCertificate(cert); + } + } + + return caStore; +}; + +/** + * Certificate verification errors, based on TLS. + */ +pki.certificateError = { + bad_certificate: 'forge.pki.BadCertificate', + unsupported_certificate: 'forge.pki.UnsupportedCertificate', + certificate_revoked: 'forge.pki.CertificateRevoked', + certificate_expired: 'forge.pki.CertificateExpired', + certificate_unknown: 'forge.pki.CertificateUnknown', + unknown_ca: 'forge.pki.UnknownCertificateAuthority' +}; + +/** + * Verifies a certificate chain against the given Certificate Authority store + * with an optional custom verify callback. + * + * @param caStore a certificate store to verify against. + * @param chain the certificate chain to verify, with the root or highest + * authority at the end (an array of certificates). + * @param options a callback to be called for every certificate in the chain or + * an object with: + * verify a callback to be called for every certificate in the + * chain + * validityCheckDate the date against which the certificate + * validity period should be checked. Pass null to not check + * the validity period. By default, the current date is used. + * + * The verify callback has the following signature: + * + * verified - Set to true if certificate was verified, otherwise the + * pki.certificateError for why the certificate failed. + * depth - The current index in the chain, where 0 is the end point's cert. + * certs - The certificate chain, *NOTE* an empty chain indicates an anonymous + * end point. + * + * The function returns true on success and on failure either the appropriate + * pki.certificateError or an object with 'error' set to the appropriate + * pki.certificateError and 'message' set to a custom error message. + * + * @return true if successful, error thrown if not. + */ +pki.verifyCertificateChain = function(caStore, chain, options) { + /* From: RFC3280 - Internet X.509 Public Key Infrastructure Certificate + Section 6: Certification Path Validation + See inline parentheticals related to this particular implementation. + + The primary goal of path validation is to verify the binding between + a subject distinguished name or a subject alternative name and subject + public key, as represented in the end entity certificate, based on the + public key of the trust anchor. This requires obtaining a sequence of + certificates that support that binding. That sequence should be provided + in the passed 'chain'. The trust anchor should be in the given CA + store. The 'end entity' certificate is the certificate provided by the + end point (typically a server) and is the first in the chain. + + To meet this goal, the path validation process verifies, among other + things, that a prospective certification path (a sequence of n + certificates or a 'chain') satisfies the following conditions: + + (a) for all x in {1, ..., n-1}, the subject of certificate x is + the issuer of certificate x+1; + + (b) certificate 1 is issued by the trust anchor; + + (c) certificate n is the certificate to be validated; and + + (d) for all x in {1, ..., n}, the certificate was valid at the + time in question. + + Note that here 'n' is index 0 in the chain and 1 is the last certificate + in the chain and it must be signed by a certificate in the connection's + CA store. + + The path validation process also determines the set of certificate + policies that are valid for this path, based on the certificate policies + extension, policy mapping extension, policy constraints extension, and + inhibit any-policy extension. + + Note: Policy mapping extension not supported (Not Required). + + Note: If the certificate has an unsupported critical extension, then it + must be rejected. + + Note: A certificate is self-issued if the DNs that appear in the subject + and issuer fields are identical and are not empty. + + The path validation algorithm assumes the following seven inputs are + provided to the path processing logic. What this specific implementation + will use is provided parenthetically: + + (a) a prospective certification path of length n (the 'chain') + (b) the current date/time: ('now'). + (c) user-initial-policy-set: A set of certificate policy identifiers + naming the policies that are acceptable to the certificate user. + The user-initial-policy-set contains the special value any-policy + if the user is not concerned about certificate policy + (Not implemented. Any policy is accepted). + (d) trust anchor information, describing a CA that serves as a trust + anchor for the certification path. The trust anchor information + includes: + + (1) the trusted issuer name, + (2) the trusted public key algorithm, + (3) the trusted public key, and + (4) optionally, the trusted public key parameters associated + with the public key. + + (Trust anchors are provided via certificates in the CA store). + + The trust anchor information may be provided to the path processing + procedure in the form of a self-signed certificate. The trusted anchor + information is trusted because it was delivered to the path processing + procedure by some trustworthy out-of-band procedure. If the trusted + public key algorithm requires parameters, then the parameters are + provided along with the trusted public key (No parameters used in this + implementation). + + (e) initial-policy-mapping-inhibit, which indicates if policy mapping is + allowed in the certification path. + (Not implemented, no policy checking) + + (f) initial-explicit-policy, which indicates if the path must be valid + for at least one of the certificate policies in the user-initial- + policy-set. + (Not implemented, no policy checking) + + (g) initial-any-policy-inhibit, which indicates whether the + anyPolicy OID should be processed if it is included in a + certificate. + (Not implemented, so any policy is valid provided that it is + not marked as critical) */ + + /* Basic Path Processing: + + For each certificate in the 'chain', the following is checked: + + 1. The certificate validity period includes the current time. + 2. The certificate was signed by its parent (where the parent is either + the next in the chain or from the CA store). Allow processing to + continue to the next step if no parent is found but the certificate is + in the CA store. + 3. TODO: The certificate has not been revoked. + 4. The certificate issuer name matches the parent's subject name. + 5. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is within one of the permitted subtrees of X.500 distinguished names + and that each of the alternative names in the subjectAltName extension + (critical or non-critical) is within one of the permitted subtrees for + that name type. + 6. TODO: If the certificate is self-issued and not the final certificate + in the chain, skip this step, otherwise verify that the subject name + is not within one of the excluded subtrees for X.500 distinguished + names and none of the subjectAltName extension names are excluded for + that name type. + 7. The other steps in the algorithm for basic path processing involve + handling the policy extension which is not presently supported in this + implementation. Instead, if a critical policy extension is found, the + certificate is rejected as not supported. + 8. If the certificate is not the first or if its the only certificate in + the chain (having no parent from the CA store or is self-signed) and it + has a critical key usage extension, verify that the keyCertSign bit is + set. If the key usage extension exists, verify that the basic + constraints extension exists. If the basic constraints extension exists, + verify that the cA flag is set. If pathLenConstraint is set, ensure that + the number of certificates that precede in the chain (come earlier + in the chain as implemented below), excluding the very first in the + chain (typically the end-entity one), isn't greater than the + pathLenConstraint. This constraint limits the number of intermediate + CAs that may appear below a CA before only end-entity certificates + may be issued. */ + + // if a verify callback is passed as the third parameter, package it within + // the options object. This is to support a legacy function signature that + // expected the verify callback as the third parameter. + if(typeof options === 'function') { + options = {verify: options}; + } + options = options || {}; + + // copy cert chain references to another array to protect against changes + // in verify callback + chain = chain.slice(0); + var certs = chain.slice(0); + + var validityCheckDate = options.validityCheckDate; + // if no validityCheckDate is specified, default to the current date. Make + // sure to maintain the value null because it indicates that the validity + // period should not be checked. + if(typeof validityCheckDate === 'undefined') { + validityCheckDate = new Date(); + } + + // verify each cert in the chain using its parent, where the parent + // is either the next in the chain or from the CA store + var first = true; + var error = null; + var depth = 0; + do { + var cert = chain.shift(); + var parent = null; + var selfSigned = false; + + if(validityCheckDate) { + // 1. check valid time + if(validityCheckDate < cert.validity.notBefore || + validityCheckDate > cert.validity.notAfter) { + error = { + message: 'Certificate is not valid yet or has expired.', + error: pki.certificateError.certificate_expired, + notBefore: cert.validity.notBefore, + notAfter: cert.validity.notAfter, + // TODO: we might want to reconsider renaming 'now' to + // 'validityCheckDate' should this API be changed in the future. + now: validityCheckDate + }; + } + } + + // 2. verify with parent from chain or CA store + if(error === null) { + parent = chain[0] || caStore.getIssuer(cert); + if(parent === null) { + // check for self-signed cert + if(cert.isIssuer(cert)) { + selfSigned = true; + parent = cert; + } + } + + if(parent) { + // FIXME: current CA store implementation might have multiple + // certificates where the issuer can't be determined from the + // certificate (happens rarely with, eg: old certificates) so normalize + // by always putting parents into an array + // TODO: there's may be an extreme degenerate case currently uncovered + // where an old intermediate certificate seems to have a matching parent + // but none of the parents actually verify ... but the intermediate + // is in the CA and it should pass this check; needs investigation + var parents = parent; + if(!forge.util.isArray(parents)) { + parents = [parents]; + } + + // try to verify with each possible parent (typically only one) + var verified = false; + while(!verified && parents.length > 0) { + parent = parents.shift(); + try { + verified = parent.verify(cert); + } catch(ex) { + // failure to verify, don't care why, try next one + } + } + + if(!verified) { + error = { + message: 'Certificate signature is invalid.', + error: pki.certificateError.bad_certificate + }; + } + } + + if(error === null && (!parent || selfSigned) && + !caStore.hasCertificate(cert)) { + // no parent issuer and certificate itself is not trusted + error = { + message: 'Certificate is not trusted.', + error: pki.certificateError.unknown_ca + }; + } + } + + // TODO: 3. check revoked + + // 4. check for matching issuer/subject + if(error === null && parent && !cert.isIssuer(parent)) { + // parent is not issuer + error = { + message: 'Certificate issuer is invalid.', + error: pki.certificateError.bad_certificate + }; + } + + // 5. TODO: check names with permitted names tree + + // 6. TODO: check names against excluded names tree + + // 7. check for unsupported critical extensions + if(error === null) { + // supported extensions + var se = { + keyUsage: true, + basicConstraints: true + }; + for(var i = 0; error === null && i < cert.extensions.length; ++i) { + var ext = cert.extensions[i]; + if(ext.critical && !(ext.name in se)) { + error = { + message: + 'Certificate has an unsupported critical extension.', + error: pki.certificateError.unsupported_certificate + }; + } + } + } + + // 8. check for CA if cert is not first or is the only certificate + // remaining in chain with no parent or is self-signed + if(error === null && + (!first || (chain.length === 0 && (!parent || selfSigned)))) { + // first check keyUsage extension and then basic constraints + var bcExt = cert.getExtension('basicConstraints'); + var keyUsageExt = cert.getExtension('keyUsage'); + if(keyUsageExt !== null) { + // keyCertSign must be true and there must be a basic + // constraints extension + if(!keyUsageExt.keyCertSign || bcExt === null) { + // bad certificate + error = { + message: + 'Certificate keyUsage or basicConstraints conflict ' + + 'or indicate that the certificate is not a CA. ' + + 'If the certificate is the only one in the chain or ' + + 'isn\'t the first then the certificate must be a ' + + 'valid CA.', + error: pki.certificateError.bad_certificate + }; + } + } + // basic constraints cA flag must be set + if(error === null && bcExt !== null && !bcExt.cA) { + // bad certificate + error = { + message: + 'Certificate basicConstraints indicates the certificate ' + + 'is not a CA.', + error: pki.certificateError.bad_certificate + }; + } + // if error is not null and keyUsage is available, then we know it + // has keyCertSign and there is a basic constraints extension too, + // which means we can check pathLenConstraint (if it exists) + if(error === null && keyUsageExt !== null && + 'pathLenConstraint' in bcExt) { + // pathLen is the maximum # of intermediate CA certs that can be + // found between the current certificate and the end-entity (depth 0) + // certificate; this number does not include the end-entity (depth 0, + // last in the chain) even if it happens to be a CA certificate itself + var pathLen = depth - 1; + if(pathLen > bcExt.pathLenConstraint) { + // pathLenConstraint violated, bad certificate + error = { + message: + 'Certificate basicConstraints pathLenConstraint violated.', + error: pki.certificateError.bad_certificate + }; + } + } + } + + // call application callback + var vfd = (error === null) ? true : error.error; + var ret = options.verify ? options.verify(vfd, depth, certs) : vfd; + if(ret === true) { + // clear any set error + error = null; + } else { + // if passed basic tests, set default message and alert + if(vfd === true) { + error = { + message: 'The application rejected the certificate.', + error: pki.certificateError.bad_certificate + }; + } + + // check for custom error info + if(ret || ret === 0) { + // set custom message and error + if(typeof ret === 'object' && !forge.util.isArray(ret)) { + if(ret.message) { + error.message = ret.message; + } + if(ret.error) { + error.error = ret.error; + } + } else if(typeof ret === 'string') { + // set custom error + error.error = ret; + } + } + + // throw error + throw error; + } + + // no longer first cert in chain + first = false; + ++depth; + } while(chain.length > 0); + + return true; +}; + + +/***/ }), + +/***/ 98629: +/***/ ((module) => { + +/*! + * normalize-path + * + * Copyright (c) 2014-2018, Jon Schlinkert. + * Released under the MIT License. + */ + +module.exports = function(path, stripTrailing) { + if (typeof path !== 'string') { + throw new TypeError('expected path to be a string'); + } + + if (path === '\\' || path === '/') return '/'; + + var len = path.length; + if (len <= 1) return path; + + // ensure that win32 namespaces has two leading slashes, so that the path is + // handled properly by the win32 version of path.parse() after being normalized + // https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces + var prefix = ''; + if (len > 4 && path[3] === '\\') { + var ch = path[2]; + if ((ch === '?' || ch === '.') && path.slice(0, 2) === '\\\\') { + path = path.slice(2); + prefix = '//'; + } + } + + var segs = path.split(/[/\\]+/); + if (stripTrailing !== false && segs[segs.length - 1] === '') { + segs.pop(); + } + return prefix + segs.join('/'); +}; + + +/***/ }), + +/***/ 15287: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var wrappy = __nccwpck_require__(87509) +module.exports = wrappy(once) +module.exports.strict = wrappy(onceStrict) + +once.proto = once(function () { + Object.defineProperty(Function.prototype, 'once', { + value: function () { + return once(this) + }, + configurable: true + }) + + Object.defineProperty(Function.prototype, 'onceStrict', { + value: function () { + return onceStrict(this) + }, + configurable: true + }) +}) + +function once (fn) { + var f = function () { + if (f.called) return f.value + f.called = true + return f.value = fn.apply(this, arguments) + } + f.called = false + return f +} + +function onceStrict (fn) { + var f = function () { + if (f.called) + throw new Error(f.onceError) + f.called = true + return f.value = fn.apply(this, arguments) + } + var name = fn.name || 'Function wrapped with `once`' + f.onceError = name + " shouldn't be called more than once" + f.called = false + return f +} + + +/***/ }), + +/***/ 20234: +/***/ ((module) => { + +"use strict"; + + +function posix(path) { + return path.charAt(0) === '/'; +} + +function win32(path) { + // https://github.com/nodejs/node/blob/b3fcc245fb25539909ef1d5eaa01dbf92e168633/lib/path.js#L56 + var splitDeviceRe = /^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/; + var result = splitDeviceRe.exec(path); + var device = result[1] || ''; + var isUnc = Boolean(device && device.charAt(1) !== ':'); + + // UNC paths are always absolute + return Boolean(result[2] || isUnc); +} + +module.exports = process.platform === 'win32' ? win32 : posix; +module.exports.posix = posix; +module.exports.win32 = win32; + + +/***/ }), + +/***/ 43533: +/***/ ((module) => { + +"use strict"; + + +if (typeof process === 'undefined' || + !process.version || + process.version.indexOf('v0.') === 0 || + process.version.indexOf('v1.') === 0 && process.version.indexOf('v1.8.') !== 0) { + module.exports = { nextTick: nextTick }; +} else { + module.exports = process +} + +function nextTick(fn, arg1, arg2, arg3) { + if (typeof fn !== 'function') { + throw new TypeError('"callback" argument must be a function'); + } + var len = arguments.length; + var args, i; + switch (len) { + case 0: + case 1: + return process.nextTick(fn); + case 2: + return process.nextTick(function afterTickOne() { + fn.call(null, arg1); + }); + case 3: + return process.nextTick(function afterTickTwo() { + fn.call(null, arg1, arg2); + }); + case 4: + return process.nextTick(function afterTickThree() { + fn.call(null, arg1, arg2, arg3); + }); + default: + args = new Array(len - 1); + i = 0; + while (i < args.length) { + args[i++] = arguments[i]; + } + return process.nextTick(function afterTick() { + fn.apply(null, args); + }); + } +} + + + +/***/ }), + +/***/ 40219: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var replace = String.prototype.replace; +var percentTwenties = /%20/g; + +var util = __nccwpck_require__(8756); + +var Format = { + RFC1738: 'RFC1738', + RFC3986: 'RFC3986' +}; + +module.exports = util.assign( + { + 'default': Format.RFC3986, + formatters: { + RFC1738: function (value) { + return replace.call(value, percentTwenties, '+'); + }, + RFC3986: function (value) { + return String(value); + } + } + }, + Format +); + + +/***/ }), + +/***/ 40002: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var stringify = __nccwpck_require__(5939); +var parse = __nccwpck_require__(35914); +var formats = __nccwpck_require__(40219); + +module.exports = { + formats: formats, + parse: parse, + stringify: stringify +}; + + +/***/ }), + +/***/ 35914: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var utils = __nccwpck_require__(8756); + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var defaults = { + allowDots: false, + allowPrototypes: false, + arrayLimit: 20, + charset: 'utf-8', + charsetSentinel: false, + comma: false, + decoder: utils.decode, + delimiter: '&', + depth: 5, + ignoreQueryPrefix: false, + interpretNumericEntities: false, + parameterLimit: 1000, + parseArrays: true, + plainObjects: false, + strictNullHandling: false +}; + +var interpretNumericEntities = function (str) { + return str.replace(/&#(\d+);/g, function ($0, numberStr) { + return String.fromCharCode(parseInt(numberStr, 10)); + }); +}; + +var parseArrayValue = function (val, options) { + if (val && typeof val === 'string' && options.comma && val.indexOf(',') > -1) { + return val.split(','); + } + + return val; +}; + +// This is what browsers will submit when the ✓ character occurs in an +// application/x-www-form-urlencoded body and the encoding of the page containing +// the form is iso-8859-1, or when the submitted form has an accept-charset +// attribute of iso-8859-1. Presumably also with other charsets that do not contain +// the ✓ character, such as us-ascii. +var isoSentinel = 'utf8=%26%2310003%3B'; // encodeURIComponent('✓') + +// These are the percent-encoded utf-8 octets representing a checkmark, indicating that the request actually is utf-8 encoded. +var charsetSentinel = 'utf8=%E2%9C%93'; // encodeURIComponent('✓') + +var parseValues = function parseQueryStringValues(str, options) { + var obj = {}; + var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, '') : str; + var limit = options.parameterLimit === Infinity ? undefined : options.parameterLimit; + var parts = cleanStr.split(options.delimiter, limit); + var skipIndex = -1; // Keep track of where the utf8 sentinel was found + var i; + + var charset = options.charset; + if (options.charsetSentinel) { + for (i = 0; i < parts.length; ++i) { + if (parts[i].indexOf('utf8=') === 0) { + if (parts[i] === charsetSentinel) { + charset = 'utf-8'; + } else if (parts[i] === isoSentinel) { + charset = 'iso-8859-1'; + } + skipIndex = i; + i = parts.length; // The eslint settings do not allow break; + } + } + } + + for (i = 0; i < parts.length; ++i) { + if (i === skipIndex) { + continue; + } + var part = parts[i]; + + var bracketEqualsPos = part.indexOf(']='); + var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1; + + var key, val; + if (pos === -1) { + key = options.decoder(part, defaults.decoder, charset, 'key'); + val = options.strictNullHandling ? null : ''; + } else { + key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key'); + val = utils.maybeMap( + parseArrayValue(part.slice(pos + 1), options), + function (encodedVal) { + return options.decoder(encodedVal, defaults.decoder, charset, 'value'); + } + ); + } + + if (val && options.interpretNumericEntities && charset === 'iso-8859-1') { + val = interpretNumericEntities(val); + } + + if (part.indexOf('[]=') > -1) { + val = isArray(val) ? [val] : val; + } + + if (has.call(obj, key)) { + obj[key] = utils.combine(obj[key], val); + } else { + obj[key] = val; + } + } + + return obj; +}; + +var parseObject = function (chain, val, options, valuesParsed) { + var leaf = valuesParsed ? val : parseArrayValue(val, options); + + for (var i = chain.length - 1; i >= 0; --i) { + var obj; + var root = chain[i]; + + if (root === '[]' && options.parseArrays) { + obj = [].concat(leaf); + } else { + obj = options.plainObjects ? Object.create(null) : {}; + var cleanRoot = root.charAt(0) === '[' && root.charAt(root.length - 1) === ']' ? root.slice(1, -1) : root; + var index = parseInt(cleanRoot, 10); + if (!options.parseArrays && cleanRoot === '') { + obj = { 0: leaf }; + } else if ( + !isNaN(index) + && root !== cleanRoot + && String(index) === cleanRoot + && index >= 0 + && (options.parseArrays && index <= options.arrayLimit) + ) { + obj = []; + obj[index] = leaf; + } else { + obj[cleanRoot] = leaf; + } + } + + leaf = obj; // eslint-disable-line no-param-reassign + } + + return leaf; +}; + +var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) { + if (!givenKey) { + return; + } + + // Transform dot notation to bracket notation + var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, '[$1]') : givenKey; + + // The regex chunks + + var brackets = /(\[[^[\]]*])/; + var child = /(\[[^[\]]*])/g; + + // Get the parent + + var segment = options.depth > 0 && brackets.exec(key); + var parent = segment ? key.slice(0, segment.index) : key; + + // Stash the parent if it exists + + var keys = []; + if (parent) { + // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties + if (!options.plainObjects && has.call(Object.prototype, parent)) { + if (!options.allowPrototypes) { + return; + } + } + + keys.push(parent); + } + + // Loop through children appending to the array until we hit depth + + var i = 0; + while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) { + i += 1; + if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) { + if (!options.allowPrototypes) { + return; + } + } + keys.push(segment[1]); + } + + // If there's a remainder, just add whatever is left + + if (segment) { + keys.push('[' + key.slice(segment.index) + ']'); + } + + return parseObject(keys, val, options, valuesParsed); +}; + +var normalizeParseOptions = function normalizeParseOptions(opts) { + if (!opts) { + return defaults; + } + + if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') { + throw new TypeError('Decoder has to be a function.'); + } + + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset; + + return { + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes, + arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma, + decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder, + delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter, + // eslint-disable-next-line no-implicit-coercion, no-extra-parens + depth: (typeof opts.depth === 'number' || opts.depth === false) ? +opts.depth : defaults.depth, + ignoreQueryPrefix: opts.ignoreQueryPrefix === true, + interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities, + parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit, + parseArrays: opts.parseArrays !== false, + plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (str, opts) { + var options = normalizeParseOptions(opts); + + if (str === '' || str === null || typeof str === 'undefined') { + return options.plainObjects ? Object.create(null) : {}; + } + + var tempObj = typeof str === 'string' ? parseValues(str, options) : str; + var obj = options.plainObjects ? Object.create(null) : {}; + + // Iterate over the keys and setup the new object + + var keys = Object.keys(tempObj); + for (var i = 0; i < keys.length; ++i) { + var key = keys[i]; + var newObj = parseKeys(key, tempObj[key], options, typeof str === 'string'); + obj = utils.merge(obj, newObj, options); + } + + return utils.compact(obj); +}; + + +/***/ }), + +/***/ 5939: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var utils = __nccwpck_require__(8756); +var formats = __nccwpck_require__(40219); +var has = Object.prototype.hasOwnProperty; + +var arrayPrefixGenerators = { + brackets: function brackets(prefix) { + return prefix + '[]'; + }, + comma: 'comma', + indices: function indices(prefix, key) { + return prefix + '[' + key + ']'; + }, + repeat: function repeat(prefix) { + return prefix; + } +}; + +var isArray = Array.isArray; +var push = Array.prototype.push; +var pushToArray = function (arr, valueOrArray) { + push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]); +}; + +var toISO = Date.prototype.toISOString; + +var defaultFormat = formats['default']; +var defaults = { + addQueryPrefix: false, + allowDots: false, + charset: 'utf-8', + charsetSentinel: false, + delimiter: '&', + encode: true, + encoder: utils.encode, + encodeValuesOnly: false, + format: defaultFormat, + formatter: formats.formatters[defaultFormat], + // deprecated + indices: false, + serializeDate: function serializeDate(date) { + return toISO.call(date); + }, + skipNulls: false, + strictNullHandling: false +}; + +var isNonNullishPrimitive = function isNonNullishPrimitive(v) { + return typeof v === 'string' + || typeof v === 'number' + || typeof v === 'boolean' + || typeof v === 'symbol' + || typeof v === 'bigint'; +}; + +var stringify = function stringify( + object, + prefix, + generateArrayPrefix, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + formatter, + encodeValuesOnly, + charset +) { + var obj = object; + if (typeof filter === 'function') { + obj = filter(prefix, obj); + } else if (obj instanceof Date) { + obj = serializeDate(obj); + } else if (generateArrayPrefix === 'comma' && isArray(obj)) { + obj = utils.maybeMap(obj, function (value) { + if (value instanceof Date) { + return serializeDate(value); + } + return value; + }).join(','); + } + + if (obj === null) { + if (strictNullHandling) { + return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key') : prefix; + } + + obj = ''; + } + + if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) { + if (encoder) { + var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key'); + return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value'))]; + } + return [formatter(prefix) + '=' + formatter(String(obj))]; + } + + var values = []; + + if (typeof obj === 'undefined') { + return values; + } + + var objKeys; + if (isArray(filter)) { + objKeys = filter; + } else { + var keys = Object.keys(obj); + objKeys = sort ? keys.sort(sort) : keys; + } + + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + var value = obj[key]; + + if (skipNulls && value === null) { + continue; + } + + var keyPrefix = isArray(obj) + ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(prefix, key) : prefix + : prefix + (allowDots ? '.' + key : '[' + key + ']'); + + pushToArray(values, stringify( + value, + keyPrefix, + generateArrayPrefix, + strictNullHandling, + skipNulls, + encoder, + filter, + sort, + allowDots, + serializeDate, + formatter, + encodeValuesOnly, + charset + )); + } + + return values; +}; + +var normalizeStringifyOptions = function normalizeStringifyOptions(opts) { + if (!opts) { + return defaults; + } + + if (opts.encoder !== null && opts.encoder !== undefined && typeof opts.encoder !== 'function') { + throw new TypeError('Encoder has to be a function.'); + } + + var charset = opts.charset || defaults.charset; + if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') { + throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined'); + } + + var format = formats['default']; + if (typeof opts.format !== 'undefined') { + if (!has.call(formats.formatters, opts.format)) { + throw new TypeError('Unknown format option provided.'); + } + format = opts.format; + } + var formatter = formats.formatters[format]; + + var filter = defaults.filter; + if (typeof opts.filter === 'function' || isArray(opts.filter)) { + filter = opts.filter; + } + + return { + addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix, + allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots, + charset: charset, + charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel, + delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter, + encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode, + encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder, + encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly, + filter: filter, + formatter: formatter, + serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate, + skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls, + sort: typeof opts.sort === 'function' ? opts.sort : null, + strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling + }; +}; + +module.exports = function (object, opts) { + var obj = object; + var options = normalizeStringifyOptions(opts); + + var objKeys; + var filter; + + if (typeof options.filter === 'function') { + filter = options.filter; + obj = filter('', obj); + } else if (isArray(options.filter)) { + filter = options.filter; + objKeys = filter; + } + + var keys = []; + + if (typeof obj !== 'object' || obj === null) { + return ''; + } + + var arrayFormat; + if (opts && opts.arrayFormat in arrayPrefixGenerators) { + arrayFormat = opts.arrayFormat; + } else if (opts && 'indices' in opts) { + arrayFormat = opts.indices ? 'indices' : 'repeat'; + } else { + arrayFormat = 'indices'; + } + + var generateArrayPrefix = arrayPrefixGenerators[arrayFormat]; + + if (!objKeys) { + objKeys = Object.keys(obj); + } + + if (options.sort) { + objKeys.sort(options.sort); + } + + for (var i = 0; i < objKeys.length; ++i) { + var key = objKeys[i]; + + if (options.skipNulls && obj[key] === null) { + continue; + } + pushToArray(keys, stringify( + obj[key], + key, + generateArrayPrefix, + options.strictNullHandling, + options.skipNulls, + options.encode ? options.encoder : null, + options.filter, + options.sort, + options.allowDots, + options.serializeDate, + options.formatter, + options.encodeValuesOnly, + options.charset + )); + } + + var joined = keys.join(options.delimiter); + var prefix = options.addQueryPrefix === true ? '?' : ''; + + if (options.charsetSentinel) { + if (options.charset === 'iso-8859-1') { + // encodeURIComponent('✓'), the "numeric entity" representation of a checkmark + prefix += 'utf8=%26%2310003%3B&'; + } else { + // encodeURIComponent('✓') + prefix += 'utf8=%E2%9C%93&'; + } + } + + return joined.length > 0 ? prefix + joined : ''; +}; + + +/***/ }), + +/***/ 8756: +/***/ ((module) => { + +"use strict"; + + +var has = Object.prototype.hasOwnProperty; +var isArray = Array.isArray; + +var hexTable = (function () { + var array = []; + for (var i = 0; i < 256; ++i) { + array.push('%' + ((i < 16 ? '0' : '') + i.toString(16)).toUpperCase()); + } + + return array; +}()); + +var compactQueue = function compactQueue(queue) { + while (queue.length > 1) { + var item = queue.pop(); + var obj = item.obj[item.prop]; + + if (isArray(obj)) { + var compacted = []; + + for (var j = 0; j < obj.length; ++j) { + if (typeof obj[j] !== 'undefined') { + compacted.push(obj[j]); + } + } + + item.obj[item.prop] = compacted; + } + } +}; + +var arrayToObject = function arrayToObject(source, options) { + var obj = options && options.plainObjects ? Object.create(null) : {}; + for (var i = 0; i < source.length; ++i) { + if (typeof source[i] !== 'undefined') { + obj[i] = source[i]; + } + } + + return obj; +}; + +var merge = function merge(target, source, options) { + /* eslint no-param-reassign: 0 */ + if (!source) { + return target; + } + + if (typeof source !== 'object') { + if (isArray(target)) { + target.push(source); + } else if (target && typeof target === 'object') { + if ((options && (options.plainObjects || options.allowPrototypes)) || !has.call(Object.prototype, source)) { + target[source] = true; + } + } else { + return [target, source]; + } + + return target; + } + + if (!target || typeof target !== 'object') { + return [target].concat(source); + } + + var mergeTarget = target; + if (isArray(target) && !isArray(source)) { + mergeTarget = arrayToObject(target, options); + } + + if (isArray(target) && isArray(source)) { + source.forEach(function (item, i) { + if (has.call(target, i)) { + var targetItem = target[i]; + if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') { + target[i] = merge(targetItem, item, options); + } else { + target.push(item); + } + } else { + target[i] = item; + } + }); + return target; + } + + return Object.keys(source).reduce(function (acc, key) { + var value = source[key]; + + if (has.call(acc, key)) { + acc[key] = merge(acc[key], value, options); + } else { + acc[key] = value; + } + return acc; + }, mergeTarget); +}; + +var assign = function assignSingleSource(target, source) { + return Object.keys(source).reduce(function (acc, key) { + acc[key] = source[key]; + return acc; + }, target); +}; + +var decode = function (str, decoder, charset) { + var strWithoutPlus = str.replace(/\+/g, ' '); + if (charset === 'iso-8859-1') { + // unescape never throws, no try...catch needed: + return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape); + } + // utf-8 + try { + return decodeURIComponent(strWithoutPlus); + } catch (e) { + return strWithoutPlus; + } +}; + +var encode = function encode(str, defaultEncoder, charset) { + // This code was originally written by Brian White (mscdex) for the io.js core querystring library. + // It has been adapted here for stricter adherence to RFC 3986 + if (str.length === 0) { + return str; + } + + var string = str; + if (typeof str === 'symbol') { + string = Symbol.prototype.toString.call(str); + } else if (typeof str !== 'string') { + string = String(str); + } + + if (charset === 'iso-8859-1') { + return escape(string).replace(/%u[0-9a-f]{4}/gi, function ($0) { + return '%26%23' + parseInt($0.slice(2), 16) + '%3B'; + }); + } + + var out = ''; + for (var i = 0; i < string.length; ++i) { + var c = string.charCodeAt(i); + + if ( + c === 0x2D // - + || c === 0x2E // . + || c === 0x5F // _ + || c === 0x7E // ~ + || (c >= 0x30 && c <= 0x39) // 0-9 + || (c >= 0x41 && c <= 0x5A) // a-z + || (c >= 0x61 && c <= 0x7A) // A-Z + ) { + out += string.charAt(i); + continue; + } + + if (c < 0x80) { + out = out + hexTable[c]; + continue; + } + + if (c < 0x800) { + out = out + (hexTable[0xC0 | (c >> 6)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + if (c < 0xD800 || c >= 0xE000) { + out = out + (hexTable[0xE0 | (c >> 12)] + hexTable[0x80 | ((c >> 6) & 0x3F)] + hexTable[0x80 | (c & 0x3F)]); + continue; + } + + i += 1; + c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); + out += hexTable[0xF0 | (c >> 18)] + + hexTable[0x80 | ((c >> 12) & 0x3F)] + + hexTable[0x80 | ((c >> 6) & 0x3F)] + + hexTable[0x80 | (c & 0x3F)]; + } + + return out; +}; + +var compact = function compact(value) { + var queue = [{ obj: { o: value }, prop: 'o' }]; + var refs = []; + + for (var i = 0; i < queue.length; ++i) { + var item = queue[i]; + var obj = item.obj[item.prop]; + + var keys = Object.keys(obj); + for (var j = 0; j < keys.length; ++j) { + var key = keys[j]; + var val = obj[key]; + if (typeof val === 'object' && val !== null && refs.indexOf(val) === -1) { + queue.push({ obj: obj, prop: key }); + refs.push(val); + } + } + } + + compactQueue(queue); + + return value; +}; + +var isRegExp = function isRegExp(obj) { + return Object.prototype.toString.call(obj) === '[object RegExp]'; +}; + +var isBuffer = function isBuffer(obj) { + if (!obj || typeof obj !== 'object') { + return false; + } + + return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj)); +}; + +var combine = function combine(a, b) { + return [].concat(a, b); +}; + +var maybeMap = function maybeMap(val, fn) { + if (isArray(val)) { + var mapped = []; + for (var i = 0; i < val.length; i += 1) { + mapped.push(fn(val[i])); + } + return mapped; + } + return fn(val); +}; + +module.exports = { + arrayToObject: arrayToObject, + assign: assign, + combine: combine, + compact: compact, + decode: decode, + encode: encode, + isBuffer: isBuffer, + isRegExp: isRegExp, + maybeMap: maybeMap, + merge: merge +}; + + +/***/ }), + +/***/ 8651: +/***/ ((module) => { + +"use strict"; + + +const codes = {}; + +function createErrorType(code, message, Base) { + if (!Base) { + Base = Error + } + + function getMessage (arg1, arg2, arg3) { + if (typeof message === 'string') { + return message + } else { + return message(arg1, arg2, arg3) + } + } + + class NodeError extends Base { + constructor (arg1, arg2, arg3) { + super(getMessage(arg1, arg2, arg3)); + } + } + + NodeError.prototype.name = Base.name; + NodeError.prototype.code = code; + + codes[code] = NodeError; +} + +// https://github.com/nodejs/node/blob/v10.8.0/lib/internal/errors.js +function oneOf(expected, thing) { + if (Array.isArray(expected)) { + const len = expected.length; + expected = expected.map((i) => String(i)); + if (len > 2) { + return `one of ${thing} ${expected.slice(0, len - 1).join(', ')}, or ` + + expected[len - 1]; + } else if (len === 2) { + return `one of ${thing} ${expected[0]} or ${expected[1]}`; + } else { + return `of ${thing} ${expected[0]}`; + } + } else { + return `of ${thing} ${String(expected)}`; + } +} + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/startsWith +function startsWith(str, search, pos) { + return str.substr(!pos || pos < 0 ? 0 : +pos, search.length) === search; +} + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/endsWith +function endsWith(str, search, this_len) { + if (this_len === undefined || this_len > str.length) { + this_len = str.length; + } + return str.substring(this_len - search.length, this_len) === search; +} + +// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes +function includes(str, search, start) { + if (typeof start !== 'number') { + start = 0; + } + + if (start + search.length > str.length) { + return false; + } else { + return str.indexOf(search, start) !== -1; + } +} + +createErrorType('ERR_INVALID_OPT_VALUE', function (name, value) { + return 'The value "' + value + '" is invalid for option "' + name + '"' +}, TypeError); +createErrorType('ERR_INVALID_ARG_TYPE', function (name, expected, actual) { + // determiner: 'must be' or 'must not be' + let determiner; + if (typeof expected === 'string' && startsWith(expected, 'not ')) { + determiner = 'must not be'; + expected = expected.replace(/^not /, ''); + } else { + determiner = 'must be'; + } + + let msg; + if (endsWith(name, ' argument')) { + // For cases like 'first argument' + msg = `The ${name} ${determiner} ${oneOf(expected, 'type')}`; + } else { + const type = includes(name, '.') ? 'property' : 'argument'; + msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, 'type')}`; + } + + msg += `. Received type ${typeof actual}`; + return msg; +}, TypeError); +createErrorType('ERR_STREAM_PUSH_AFTER_EOF', 'stream.push() after EOF'); +createErrorType('ERR_METHOD_NOT_IMPLEMENTED', function (name) { + return 'The ' + name + ' method is not implemented' +}); +createErrorType('ERR_STREAM_PREMATURE_CLOSE', 'Premature close'); +createErrorType('ERR_STREAM_DESTROYED', function (name) { + return 'Cannot call ' + name + ' after a stream was destroyed'; +}); +createErrorType('ERR_MULTIPLE_CALLBACK', 'Callback called multiple times'); +createErrorType('ERR_STREAM_CANNOT_PIPE', 'Cannot pipe, not readable'); +createErrorType('ERR_STREAM_WRITE_AFTER_END', 'write after end'); +createErrorType('ERR_STREAM_NULL_VALUES', 'May not write null values to stream', TypeError); +createErrorType('ERR_UNKNOWN_ENCODING', function (arg) { + return 'Unknown encoding: ' + arg +}, TypeError); +createErrorType('ERR_STREAM_UNSHIFT_AFTER_END_EVENT', 'stream.unshift() after end event'); + +module.exports.q = codes; + + +/***/ }), + +/***/ 26693: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +// a duplex stream is just a stream that is both readable and writable. +// Since JS doesn't have multiple prototypal inheritance, this class +// prototypally inherits from Readable, and then parasitically from +// Writable. + +/**/ + +var objectKeys = Object.keys || function (obj) { + var keys = []; + + for (var key in obj) { + keys.push(key); + } + + return keys; +}; +/**/ + + +module.exports = Duplex; + +var Readable = __nccwpck_require__(70681); + +var Writable = __nccwpck_require__(19722); + +__nccwpck_require__(25333)(Duplex, Readable); + +{ + // Allow the keys array to be GC'ed. + var keys = objectKeys(Writable.prototype); + + for (var v = 0; v < keys.length; v++) { + var method = keys[v]; + if (!Duplex.prototype[method]) Duplex.prototype[method] = Writable.prototype[method]; + } +} + +function Duplex(options) { + if (!(this instanceof Duplex)) return new Duplex(options); + Readable.call(this, options); + Writable.call(this, options); + this.allowHalfOpen = true; + + if (options) { + if (options.readable === false) this.readable = false; + if (options.writable === false) this.writable = false; + + if (options.allowHalfOpen === false) { + this.allowHalfOpen = false; + this.once('end', onend); + } + } +} + +Object.defineProperty(Duplex.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.highWaterMark; + } +}); +Object.defineProperty(Duplex.prototype, 'writableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState && this._writableState.getBuffer(); + } +}); +Object.defineProperty(Duplex.prototype, 'writableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.length; + } +}); // the no-half-open enforcer + +function onend() { + // If the writable side ended, then we're ok. + if (this._writableState.ended) return; // no more data can be written. + // But allow more writes to happen in this tick. + + process.nextTick(onEndNT, this); +} + +function onEndNT(self) { + self.end(); +} + +Object.defineProperty(Duplex.prototype, 'destroyed', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + if (this._readableState === undefined || this._writableState === undefined) { + return false; + } + + return this._readableState.destroyed && this._writableState.destroyed; + }, + set: function set(value) { + // we ignore the value if the stream + // has not been initialized yet + if (this._readableState === undefined || this._writableState === undefined) { + return; + } // backward compatibility, the user is explicitly + // managing destroyed + + + this._readableState.destroyed = value; + this._writableState.destroyed = value; + } +}); + +/***/ }), + +/***/ 44820: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +// a passthrough stream. +// basically just the most minimal sort of Transform stream. +// Every written chunk gets output as-is. + + +module.exports = PassThrough; + +var Transform = __nccwpck_require__(88720); + +__nccwpck_require__(25333)(PassThrough, Transform); + +function PassThrough(options) { + if (!(this instanceof PassThrough)) return new PassThrough(options); + Transform.call(this, options); +} + +PassThrough.prototype._transform = function (chunk, encoding, cb) { + cb(null, chunk); +}; + +/***/ }), + +/***/ 70681: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + +module.exports = Readable; +/**/ + +var Duplex; +/**/ + +Readable.ReadableState = ReadableState; +/**/ + +var EE = (__nccwpck_require__(82361).EventEmitter); + +var EElistenerCount = function EElistenerCount(emitter, type) { + return emitter.listeners(type).length; +}; +/**/ + +/**/ + + +var Stream = __nccwpck_require__(69444); +/**/ + + +var Buffer = (__nccwpck_require__(14300).Buffer); + +var OurUint8Array = global.Uint8Array || function () {}; + +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} + +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} +/**/ + + +var debugUtil = __nccwpck_require__(73837); + +var debug; + +if (debugUtil && debugUtil.debuglog) { + debug = debugUtil.debuglog('stream'); +} else { + debug = function debug() {}; +} +/**/ + + +var BufferList = __nccwpck_require__(87670); + +var destroyImpl = __nccwpck_require__(31859); + +var _require = __nccwpck_require__(44095), + getHighWaterMark = _require.getHighWaterMark; + +var _require$codes = (__nccwpck_require__(8651)/* .codes */ .q), + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_STREAM_PUSH_AFTER_EOF = _require$codes.ERR_STREAM_PUSH_AFTER_EOF, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_STREAM_UNSHIFT_AFTER_END_EVENT = _require$codes.ERR_STREAM_UNSHIFT_AFTER_END_EVENT; // Lazy loaded to improve the startup performance. + + +var StringDecoder; +var createReadableStreamAsyncIterator; +var from; + +__nccwpck_require__(25333)(Readable, Stream); + +var errorOrDestroy = destroyImpl.errorOrDestroy; +var kProxyEvents = ['error', 'close', 'destroy', 'pause', 'resume']; + +function prependListener(emitter, event, fn) { + // Sadly this is not cacheable as some libraries bundle their own + // event emitter implementation with them. + if (typeof emitter.prependListener === 'function') return emitter.prependListener(event, fn); // This is a hack to make sure that our error handler is attached before any + // userland ones. NEVER DO THIS. This is here only because this code needs + // to continue to work with older versions of Node.js that do not include + // the prependListener() method. The goal is to eventually remove this hack. + + if (!emitter._events || !emitter._events[event]) emitter.on(event, fn);else if (Array.isArray(emitter._events[event])) emitter._events[event].unshift(fn);else emitter._events[event] = [fn, emitter._events[event]]; +} + +function ReadableState(options, stream, isDuplex) { + Duplex = Duplex || __nccwpck_require__(26693); + options = options || {}; // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream. + // These options can be provided separately as readableXXX and writableXXX. + + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag. Used to make read(n) ignore n and to + // make all the buffer merging and length checks go away + + this.objectMode = !!options.objectMode; + if (isDuplex) this.objectMode = this.objectMode || !!options.readableObjectMode; // the point at which it stops calling _read() to fill the buffer + // Note: 0 is a valid value, means "don't call _read preemptively ever" + + this.highWaterMark = getHighWaterMark(this, options, 'readableHighWaterMark', isDuplex); // A linked list is used to store data chunks instead of an array because the + // linked list can remove elements from the beginning faster than + // array.shift() + + this.buffer = new BufferList(); + this.length = 0; + this.pipes = null; + this.pipesCount = 0; + this.flowing = null; + this.ended = false; + this.endEmitted = false; + this.reading = false; // a flag to be able to tell if the event 'readable'/'data' is emitted + // immediately, or on a later tick. We set this to true at first, because + // any actions that shouldn't happen until "later" should generally also + // not happen before the first read call. + + this.sync = true; // whenever we return null, then we set a flag to say + // that we're awaiting a 'readable' event emission. + + this.needReadable = false; + this.emittedReadable = false; + this.readableListening = false; + this.resumeScheduled = false; + this.paused = true; // Should close be emitted on destroy. Defaults to true. + + this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'end' (and potentially 'finish') + + this.autoDestroy = !!options.autoDestroy; // has it been destroyed + + this.destroyed = false; // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + + this.defaultEncoding = options.defaultEncoding || 'utf8'; // the number of writers that are awaiting a drain event in .pipe()s + + this.awaitDrain = 0; // if true, a maybeReadMore has been scheduled + + this.readingMore = false; + this.decoder = null; + this.encoding = null; + + if (options.encoding) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + this.decoder = new StringDecoder(options.encoding); + this.encoding = options.encoding; + } +} + +function Readable(options) { + Duplex = Duplex || __nccwpck_require__(26693); + if (!(this instanceof Readable)) return new Readable(options); // Checking for a Stream.Duplex instance is faster here instead of inside + // the ReadableState constructor, at least with V8 6.5 + + var isDuplex = this instanceof Duplex; + this._readableState = new ReadableState(options, this, isDuplex); // legacy + + this.readable = true; + + if (options) { + if (typeof options.read === 'function') this._read = options.read; + if (typeof options.destroy === 'function') this._destroy = options.destroy; + } + + Stream.call(this); +} + +Object.defineProperty(Readable.prototype, 'destroyed', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + if (this._readableState === undefined) { + return false; + } + + return this._readableState.destroyed; + }, + set: function set(value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._readableState) { + return; + } // backward compatibility, the user is explicitly + // managing destroyed + + + this._readableState.destroyed = value; + } +}); +Readable.prototype.destroy = destroyImpl.destroy; +Readable.prototype._undestroy = destroyImpl.undestroy; + +Readable.prototype._destroy = function (err, cb) { + cb(err); +}; // Manually shove something into the read() buffer. +// This returns true if the highWaterMark has not been hit yet, +// similar to how Writable.write() returns true if you should +// write() some more. + + +Readable.prototype.push = function (chunk, encoding) { + var state = this._readableState; + var skipChunkCheck; + + if (!state.objectMode) { + if (typeof chunk === 'string') { + encoding = encoding || state.defaultEncoding; + + if (encoding !== state.encoding) { + chunk = Buffer.from(chunk, encoding); + encoding = ''; + } + + skipChunkCheck = true; + } + } else { + skipChunkCheck = true; + } + + return readableAddChunk(this, chunk, encoding, false, skipChunkCheck); +}; // Unshift should *always* be something directly out of read() + + +Readable.prototype.unshift = function (chunk) { + return readableAddChunk(this, chunk, null, true, false); +}; + +function readableAddChunk(stream, chunk, encoding, addToFront, skipChunkCheck) { + debug('readableAddChunk', chunk); + var state = stream._readableState; + + if (chunk === null) { + state.reading = false; + onEofChunk(stream, state); + } else { + var er; + if (!skipChunkCheck) er = chunkInvalid(state, chunk); + + if (er) { + errorOrDestroy(stream, er); + } else if (state.objectMode || chunk && chunk.length > 0) { + if (typeof chunk !== 'string' && !state.objectMode && Object.getPrototypeOf(chunk) !== Buffer.prototype) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (addToFront) { + if (state.endEmitted) errorOrDestroy(stream, new ERR_STREAM_UNSHIFT_AFTER_END_EVENT());else addChunk(stream, state, chunk, true); + } else if (state.ended) { + errorOrDestroy(stream, new ERR_STREAM_PUSH_AFTER_EOF()); + } else if (state.destroyed) { + return false; + } else { + state.reading = false; + + if (state.decoder && !encoding) { + chunk = state.decoder.write(chunk); + if (state.objectMode || chunk.length !== 0) addChunk(stream, state, chunk, false);else maybeReadMore(stream, state); + } else { + addChunk(stream, state, chunk, false); + } + } + } else if (!addToFront) { + state.reading = false; + maybeReadMore(stream, state); + } + } // We can push more data if we are below the highWaterMark. + // Also, if we have no data yet, we can stand some more bytes. + // This is to work around cases where hwm=0, such as the repl. + + + return !state.ended && (state.length < state.highWaterMark || state.length === 0); +} + +function addChunk(stream, state, chunk, addToFront) { + if (state.flowing && state.length === 0 && !state.sync) { + state.awaitDrain = 0; + stream.emit('data', chunk); + } else { + // update the buffer info. + state.length += state.objectMode ? 1 : chunk.length; + if (addToFront) state.buffer.unshift(chunk);else state.buffer.push(chunk); + if (state.needReadable) emitReadable(stream); + } + + maybeReadMore(stream, state); +} + +function chunkInvalid(state, chunk) { + var er; + + if (!_isUint8Array(chunk) && typeof chunk !== 'string' && chunk !== undefined && !state.objectMode) { + er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer', 'Uint8Array'], chunk); + } + + return er; +} + +Readable.prototype.isPaused = function () { + return this._readableState.flowing === false; +}; // backwards compatibility. + + +Readable.prototype.setEncoding = function (enc) { + if (!StringDecoder) StringDecoder = (__nccwpck_require__(19096)/* .StringDecoder */ .s); + var decoder = new StringDecoder(enc); + this._readableState.decoder = decoder; // If setEncoding(null), decoder.encoding equals utf8 + + this._readableState.encoding = this._readableState.decoder.encoding; // Iterate over current buffer to convert already stored Buffers: + + var p = this._readableState.buffer.head; + var content = ''; + + while (p !== null) { + content += decoder.write(p.data); + p = p.next; + } + + this._readableState.buffer.clear(); + + if (content !== '') this._readableState.buffer.push(content); + this._readableState.length = content.length; + return this; +}; // Don't raise the hwm > 1GB + + +var MAX_HWM = 0x40000000; + +function computeNewHighWaterMark(n) { + if (n >= MAX_HWM) { + // TODO(ronag): Throw ERR_VALUE_OUT_OF_RANGE. + n = MAX_HWM; + } else { + // Get the next highest power of 2 to prevent increasing hwm excessively in + // tiny amounts + n--; + n |= n >>> 1; + n |= n >>> 2; + n |= n >>> 4; + n |= n >>> 8; + n |= n >>> 16; + n++; + } + + return n; +} // This function is designed to be inlinable, so please take care when making +// changes to the function body. + + +function howMuchToRead(n, state) { + if (n <= 0 || state.length === 0 && state.ended) return 0; + if (state.objectMode) return 1; + + if (n !== n) { + // Only flow one buffer at a time + if (state.flowing && state.length) return state.buffer.head.data.length;else return state.length; + } // If we're asking for more than the current hwm, then raise the hwm. + + + if (n > state.highWaterMark) state.highWaterMark = computeNewHighWaterMark(n); + if (n <= state.length) return n; // Don't have enough + + if (!state.ended) { + state.needReadable = true; + return 0; + } + + return state.length; +} // you can override either this method, or the async _read(n) below. + + +Readable.prototype.read = function (n) { + debug('read', n); + n = parseInt(n, 10); + var state = this._readableState; + var nOrig = n; + if (n !== 0) state.emittedReadable = false; // if we're doing read(0) to trigger a readable event, but we + // already have a bunch of data in the buffer, then just trigger + // the 'readable' event and move on. + + if (n === 0 && state.needReadable && ((state.highWaterMark !== 0 ? state.length >= state.highWaterMark : state.length > 0) || state.ended)) { + debug('read: emitReadable', state.length, state.ended); + if (state.length === 0 && state.ended) endReadable(this);else emitReadable(this); + return null; + } + + n = howMuchToRead(n, state); // if we've ended, and we're now clear, then finish it up. + + if (n === 0 && state.ended) { + if (state.length === 0) endReadable(this); + return null; + } // All the actual chunk generation logic needs to be + // *below* the call to _read. The reason is that in certain + // synthetic stream cases, such as passthrough streams, _read + // may be a completely synchronous operation which may change + // the state of the read buffer, providing enough data when + // before there was *not* enough. + // + // So, the steps are: + // 1. Figure out what the state of things will be after we do + // a read from the buffer. + // + // 2. If that resulting state will trigger a _read, then call _read. + // Note that this may be asynchronous, or synchronous. Yes, it is + // deeply ugly to write APIs this way, but that still doesn't mean + // that the Readable class should behave improperly, as streams are + // designed to be sync/async agnostic. + // Take note if the _read call is sync or async (ie, if the read call + // has returned yet), so that we know whether or not it's safe to emit + // 'readable' etc. + // + // 3. Actually pull the requested chunks out of the buffer and return. + // if we need a readable event, then we need to do some reading. + + + var doRead = state.needReadable; + debug('need readable', doRead); // if we currently have less than the highWaterMark, then also read some + + if (state.length === 0 || state.length - n < state.highWaterMark) { + doRead = true; + debug('length less than watermark', doRead); + } // however, if we've ended, then there's no point, and if we're already + // reading, then it's unnecessary. + + + if (state.ended || state.reading) { + doRead = false; + debug('reading or ended', doRead); + } else if (doRead) { + debug('do read'); + state.reading = true; + state.sync = true; // if the length is currently zero, then we *need* a readable event. + + if (state.length === 0) state.needReadable = true; // call internal read method + + this._read(state.highWaterMark); + + state.sync = false; // If _read pushed data synchronously, then `reading` will be false, + // and we need to re-evaluate how much data we can return to the user. + + if (!state.reading) n = howMuchToRead(nOrig, state); + } + + var ret; + if (n > 0) ret = fromList(n, state);else ret = null; + + if (ret === null) { + state.needReadable = state.length <= state.highWaterMark; + n = 0; + } else { + state.length -= n; + state.awaitDrain = 0; + } + + if (state.length === 0) { + // If we have nothing in the buffer, then we want to know + // as soon as we *do* get something into the buffer. + if (!state.ended) state.needReadable = true; // If we tried to read() past the EOF, then emit end on the next tick. + + if (nOrig !== n && state.ended) endReadable(this); + } + + if (ret !== null) this.emit('data', ret); + return ret; +}; + +function onEofChunk(stream, state) { + debug('onEofChunk'); + if (state.ended) return; + + if (state.decoder) { + var chunk = state.decoder.end(); + + if (chunk && chunk.length) { + state.buffer.push(chunk); + state.length += state.objectMode ? 1 : chunk.length; + } + } + + state.ended = true; + + if (state.sync) { + // if we are sync, wait until next tick to emit the data. + // Otherwise we risk emitting data in the flow() + // the readable code triggers during a read() call + emitReadable(stream); + } else { + // emit 'readable' now to make sure it gets picked up. + state.needReadable = false; + + if (!state.emittedReadable) { + state.emittedReadable = true; + emitReadable_(stream); + } + } +} // Don't emit readable right away in sync mode, because this can trigger +// another read() call => stack overflow. This way, it might trigger +// a nextTick recursion warning, but that's not so bad. + + +function emitReadable(stream) { + var state = stream._readableState; + debug('emitReadable', state.needReadable, state.emittedReadable); + state.needReadable = false; + + if (!state.emittedReadable) { + debug('emitReadable', state.flowing); + state.emittedReadable = true; + process.nextTick(emitReadable_, stream); + } +} + +function emitReadable_(stream) { + var state = stream._readableState; + debug('emitReadable_', state.destroyed, state.length, state.ended); + + if (!state.destroyed && (state.length || state.ended)) { + stream.emit('readable'); + state.emittedReadable = false; + } // The stream needs another readable event if + // 1. It is not flowing, as the flow mechanism will take + // care of it. + // 2. It is not ended. + // 3. It is below the highWaterMark, so we can schedule + // another readable later. + + + state.needReadable = !state.flowing && !state.ended && state.length <= state.highWaterMark; + flow(stream); +} // at this point, the user has presumably seen the 'readable' event, +// and called read() to consume some data. that may have triggered +// in turn another _read(n) call, in which case reading = true if +// it's in progress. +// However, if we're not ended, or reading, and the length < hwm, +// then go ahead and try to read some more preemptively. + + +function maybeReadMore(stream, state) { + if (!state.readingMore) { + state.readingMore = true; + process.nextTick(maybeReadMore_, stream, state); + } +} + +function maybeReadMore_(stream, state) { + // Attempt to read more data if we should. + // + // The conditions for reading more data are (one of): + // - Not enough data buffered (state.length < state.highWaterMark). The loop + // is responsible for filling the buffer with enough data if such data + // is available. If highWaterMark is 0 and we are not in the flowing mode + // we should _not_ attempt to buffer any extra data. We'll get more data + // when the stream consumer calls read() instead. + // - No data in the buffer, and the stream is in flowing mode. In this mode + // the loop below is responsible for ensuring read() is called. Failing to + // call read here would abort the flow and there's no other mechanism for + // continuing the flow if the stream consumer has just subscribed to the + // 'data' event. + // + // In addition to the above conditions to keep reading data, the following + // conditions prevent the data from being read: + // - The stream has ended (state.ended). + // - There is already a pending 'read' operation (state.reading). This is a + // case where the the stream has called the implementation defined _read() + // method, but they are processing the call asynchronously and have _not_ + // called push() with new data. In this case we skip performing more + // read()s. The execution ends in this method again after the _read() ends + // up calling push() with more data. + while (!state.reading && !state.ended && (state.length < state.highWaterMark || state.flowing && state.length === 0)) { + var len = state.length; + debug('maybeReadMore read 0'); + stream.read(0); + if (len === state.length) // didn't get any data, stop spinning. + break; + } + + state.readingMore = false; +} // abstract method. to be overridden in specific implementation classes. +// call cb(er, data) where data is <= n in length. +// for virtual (non-string, non-buffer) streams, "length" is somewhat +// arbitrary, and perhaps not very meaningful. + + +Readable.prototype._read = function (n) { + errorOrDestroy(this, new ERR_METHOD_NOT_IMPLEMENTED('_read()')); +}; + +Readable.prototype.pipe = function (dest, pipeOpts) { + var src = this; + var state = this._readableState; + + switch (state.pipesCount) { + case 0: + state.pipes = dest; + break; + + case 1: + state.pipes = [state.pipes, dest]; + break; + + default: + state.pipes.push(dest); + break; + } + + state.pipesCount += 1; + debug('pipe count=%d opts=%j', state.pipesCount, pipeOpts); + var doEnd = (!pipeOpts || pipeOpts.end !== false) && dest !== process.stdout && dest !== process.stderr; + var endFn = doEnd ? onend : unpipe; + if (state.endEmitted) process.nextTick(endFn);else src.once('end', endFn); + dest.on('unpipe', onunpipe); + + function onunpipe(readable, unpipeInfo) { + debug('onunpipe'); + + if (readable === src) { + if (unpipeInfo && unpipeInfo.hasUnpiped === false) { + unpipeInfo.hasUnpiped = true; + cleanup(); + } + } + } + + function onend() { + debug('onend'); + dest.end(); + } // when the dest drains, it reduces the awaitDrain counter + // on the source. This would be more elegant with a .once() + // handler in flow(), but adding and removing repeatedly is + // too slow. + + + var ondrain = pipeOnDrain(src); + dest.on('drain', ondrain); + var cleanedUp = false; + + function cleanup() { + debug('cleanup'); // cleanup event handlers once the pipe is broken + + dest.removeListener('close', onclose); + dest.removeListener('finish', onfinish); + dest.removeListener('drain', ondrain); + dest.removeListener('error', onerror); + dest.removeListener('unpipe', onunpipe); + src.removeListener('end', onend); + src.removeListener('end', unpipe); + src.removeListener('data', ondata); + cleanedUp = true; // if the reader is waiting for a drain event from this + // specific writer, then it would cause it to never start + // flowing again. + // So, if this is awaiting a drain, then we just call it now. + // If we don't know, then assume that we are waiting for one. + + if (state.awaitDrain && (!dest._writableState || dest._writableState.needDrain)) ondrain(); + } + + src.on('data', ondata); + + function ondata(chunk) { + debug('ondata'); + var ret = dest.write(chunk); + debug('dest.write', ret); + + if (ret === false) { + // If the user unpiped during `dest.write()`, it is possible + // to get stuck in a permanently paused state if that write + // also returned false. + // => Check whether `dest` is still a piping destination. + if ((state.pipesCount === 1 && state.pipes === dest || state.pipesCount > 1 && indexOf(state.pipes, dest) !== -1) && !cleanedUp) { + debug('false write response, pause', state.awaitDrain); + state.awaitDrain++; + } + + src.pause(); + } + } // if the dest has an error, then stop piping into it. + // however, don't suppress the throwing behavior for this. + + + function onerror(er) { + debug('onerror', er); + unpipe(); + dest.removeListener('error', onerror); + if (EElistenerCount(dest, 'error') === 0) errorOrDestroy(dest, er); + } // Make sure our error handler is attached before userland ones. + + + prependListener(dest, 'error', onerror); // Both close and finish should trigger unpipe, but only once. + + function onclose() { + dest.removeListener('finish', onfinish); + unpipe(); + } + + dest.once('close', onclose); + + function onfinish() { + debug('onfinish'); + dest.removeListener('close', onclose); + unpipe(); + } + + dest.once('finish', onfinish); + + function unpipe() { + debug('unpipe'); + src.unpipe(dest); + } // tell the dest that it's being piped to + + + dest.emit('pipe', src); // start the flow if it hasn't been started already. + + if (!state.flowing) { + debug('pipe resume'); + src.resume(); + } + + return dest; +}; + +function pipeOnDrain(src) { + return function pipeOnDrainFunctionResult() { + var state = src._readableState; + debug('pipeOnDrain', state.awaitDrain); + if (state.awaitDrain) state.awaitDrain--; + + if (state.awaitDrain === 0 && EElistenerCount(src, 'data')) { + state.flowing = true; + flow(src); + } + }; +} + +Readable.prototype.unpipe = function (dest) { + var state = this._readableState; + var unpipeInfo = { + hasUnpiped: false + }; // if we're not piping anywhere, then do nothing. + + if (state.pipesCount === 0) return this; // just one destination. most common case. + + if (state.pipesCount === 1) { + // passed in one, but it's not the right one. + if (dest && dest !== state.pipes) return this; + if (!dest) dest = state.pipes; // got a match. + + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + if (dest) dest.emit('unpipe', this, unpipeInfo); + return this; + } // slow case. multiple pipe destinations. + + + if (!dest) { + // remove all. + var dests = state.pipes; + var len = state.pipesCount; + state.pipes = null; + state.pipesCount = 0; + state.flowing = false; + + for (var i = 0; i < len; i++) { + dests[i].emit('unpipe', this, { + hasUnpiped: false + }); + } + + return this; + } // try to find the right one. + + + var index = indexOf(state.pipes, dest); + if (index === -1) return this; + state.pipes.splice(index, 1); + state.pipesCount -= 1; + if (state.pipesCount === 1) state.pipes = state.pipes[0]; + dest.emit('unpipe', this, unpipeInfo); + return this; +}; // set up data events if they are asked for +// Ensure readable listeners eventually get something + + +Readable.prototype.on = function (ev, fn) { + var res = Stream.prototype.on.call(this, ev, fn); + var state = this._readableState; + + if (ev === 'data') { + // update readableListening so that resume() may be a no-op + // a few lines down. This is needed to support once('readable'). + state.readableListening = this.listenerCount('readable') > 0; // Try start flowing on next tick if stream isn't explicitly paused + + if (state.flowing !== false) this.resume(); + } else if (ev === 'readable') { + if (!state.endEmitted && !state.readableListening) { + state.readableListening = state.needReadable = true; + state.flowing = false; + state.emittedReadable = false; + debug('on readable', state.length, state.reading); + + if (state.length) { + emitReadable(this); + } else if (!state.reading) { + process.nextTick(nReadingNextTick, this); + } + } + } + + return res; +}; + +Readable.prototype.addListener = Readable.prototype.on; + +Readable.prototype.removeListener = function (ev, fn) { + var res = Stream.prototype.removeListener.call(this, ev, fn); + + if (ev === 'readable') { + // We need to check if there is someone still listening to + // readable and reset the state. However this needs to happen + // after readable has been emitted but before I/O (nextTick) to + // support once('readable', fn) cycles. This means that calling + // resume within the same tick will have no + // effect. + process.nextTick(updateReadableListening, this); + } + + return res; +}; + +Readable.prototype.removeAllListeners = function (ev) { + var res = Stream.prototype.removeAllListeners.apply(this, arguments); + + if (ev === 'readable' || ev === undefined) { + // We need to check if there is someone still listening to + // readable and reset the state. However this needs to happen + // after readable has been emitted but before I/O (nextTick) to + // support once('readable', fn) cycles. This means that calling + // resume within the same tick will have no + // effect. + process.nextTick(updateReadableListening, this); + } + + return res; +}; + +function updateReadableListening(self) { + var state = self._readableState; + state.readableListening = self.listenerCount('readable') > 0; + + if (state.resumeScheduled && !state.paused) { + // flowing needs to be set to true now, otherwise + // the upcoming resume will not flow. + state.flowing = true; // crude way to check if we should resume + } else if (self.listenerCount('data') > 0) { + self.resume(); + } +} + +function nReadingNextTick(self) { + debug('readable nexttick read 0'); + self.read(0); +} // pause() and resume() are remnants of the legacy readable stream API +// If the user uses them, then switch into old mode. + + +Readable.prototype.resume = function () { + var state = this._readableState; + + if (!state.flowing) { + debug('resume'); // we flow only if there is no one listening + // for readable, but we still have to call + // resume() + + state.flowing = !state.readableListening; + resume(this, state); + } + + state.paused = false; + return this; +}; + +function resume(stream, state) { + if (!state.resumeScheduled) { + state.resumeScheduled = true; + process.nextTick(resume_, stream, state); + } +} + +function resume_(stream, state) { + debug('resume', state.reading); + + if (!state.reading) { + stream.read(0); + } + + state.resumeScheduled = false; + stream.emit('resume'); + flow(stream); + if (state.flowing && !state.reading) stream.read(0); +} + +Readable.prototype.pause = function () { + debug('call pause flowing=%j', this._readableState.flowing); + + if (this._readableState.flowing !== false) { + debug('pause'); + this._readableState.flowing = false; + this.emit('pause'); + } + + this._readableState.paused = true; + return this; +}; + +function flow(stream) { + var state = stream._readableState; + debug('flow', state.flowing); + + while (state.flowing && stream.read() !== null) { + ; + } +} // wrap an old-style stream as the async data source. +// This is *not* part of the readable stream interface. +// It is an ugly unfortunate mess of history. + + +Readable.prototype.wrap = function (stream) { + var _this = this; + + var state = this._readableState; + var paused = false; + stream.on('end', function () { + debug('wrapped end'); + + if (state.decoder && !state.ended) { + var chunk = state.decoder.end(); + if (chunk && chunk.length) _this.push(chunk); + } + + _this.push(null); + }); + stream.on('data', function (chunk) { + debug('wrapped data'); + if (state.decoder) chunk = state.decoder.write(chunk); // don't skip over falsy values in objectMode + + if (state.objectMode && (chunk === null || chunk === undefined)) return;else if (!state.objectMode && (!chunk || !chunk.length)) return; + + var ret = _this.push(chunk); + + if (!ret) { + paused = true; + stream.pause(); + } + }); // proxy all the other methods. + // important when wrapping filters and duplexes. + + for (var i in stream) { + if (this[i] === undefined && typeof stream[i] === 'function') { + this[i] = function methodWrap(method) { + return function methodWrapReturnFunction() { + return stream[method].apply(stream, arguments); + }; + }(i); + } + } // proxy certain important events. + + + for (var n = 0; n < kProxyEvents.length; n++) { + stream.on(kProxyEvents[n], this.emit.bind(this, kProxyEvents[n])); + } // when we try to consume some more bytes, simply unpause the + // underlying stream. + + + this._read = function (n) { + debug('wrapped _read', n); + + if (paused) { + paused = false; + stream.resume(); + } + }; + + return this; +}; + +if (typeof Symbol === 'function') { + Readable.prototype[Symbol.asyncIterator] = function () { + if (createReadableStreamAsyncIterator === undefined) { + createReadableStreamAsyncIterator = __nccwpck_require__(98480); + } + + return createReadableStreamAsyncIterator(this); + }; +} + +Object.defineProperty(Readable.prototype, 'readableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.highWaterMark; + } +}); +Object.defineProperty(Readable.prototype, 'readableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState && this._readableState.buffer; + } +}); +Object.defineProperty(Readable.prototype, 'readableFlowing', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.flowing; + }, + set: function set(state) { + if (this._readableState) { + this._readableState.flowing = state; + } + } +}); // exposed for testing purposes only. + +Readable._fromList = fromList; +Object.defineProperty(Readable.prototype, 'readableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._readableState.length; + } +}); // Pluck off n bytes from an array of buffers. +// Length is the combined lengths of all the buffers in the list. +// This function is designed to be inlinable, so please take care when making +// changes to the function body. + +function fromList(n, state) { + // nothing buffered + if (state.length === 0) return null; + var ret; + if (state.objectMode) ret = state.buffer.shift();else if (!n || n >= state.length) { + // read it all, truncate the list + if (state.decoder) ret = state.buffer.join('');else if (state.buffer.length === 1) ret = state.buffer.first();else ret = state.buffer.concat(state.length); + state.buffer.clear(); + } else { + // read part of list + ret = state.buffer.consume(n, state.decoder); + } + return ret; +} + +function endReadable(stream) { + var state = stream._readableState; + debug('endReadable', state.endEmitted); + + if (!state.endEmitted) { + state.ended = true; + process.nextTick(endReadableNT, state, stream); + } +} + +function endReadableNT(state, stream) { + debug('endReadableNT', state.endEmitted, state.length); // Check that we didn't get one last unshift. + + if (!state.endEmitted && state.length === 0) { + state.endEmitted = true; + stream.readable = false; + stream.emit('end'); + + if (state.autoDestroy) { + // In case of duplex streams we need a way to detect + // if the writable side is ready for autoDestroy as well + var wState = stream._writableState; + + if (!wState || wState.autoDestroy && wState.finished) { + stream.destroy(); + } + } + } +} + +if (typeof Symbol === 'function') { + Readable.from = function (iterable, opts) { + if (from === undefined) { + from = __nccwpck_require__(34187); + } + + return from(Readable, iterable, opts); + }; +} + +function indexOf(xs, x) { + for (var i = 0, l = xs.length; i < l; i++) { + if (xs[i] === x) return i; + } + + return -1; +} + +/***/ }), + +/***/ 88720: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +// a transform stream is a readable/writable stream where you do +// something with the data. Sometimes it's called a "filter", +// but that's not a great name for it, since that implies a thing where +// some bits pass through, and others are simply ignored. (That would +// be a valid example of a transform, of course.) +// +// While the output is causally related to the input, it's not a +// necessarily symmetric or synchronous transformation. For example, +// a zlib stream might take multiple plain-text writes(), and then +// emit a single compressed chunk some time in the future. +// +// Here's how this works: +// +// The Transform stream has all the aspects of the readable and writable +// stream classes. When you write(chunk), that calls _write(chunk,cb) +// internally, and returns false if there's a lot of pending writes +// buffered up. When you call read(), that calls _read(n) until +// there's enough pending readable data buffered up. +// +// In a transform stream, the written data is placed in a buffer. When +// _read(n) is called, it transforms the queued up data, calling the +// buffered _write cb's as it consumes chunks. If consuming a single +// written chunk would result in multiple output chunks, then the first +// outputted bit calls the readcb, and subsequent chunks just go into +// the read buffer, and will cause it to emit 'readable' if necessary. +// +// This way, back-pressure is actually determined by the reading side, +// since _read has to be called to start processing a new chunk. However, +// a pathological inflate type of transform can cause excessive buffering +// here. For example, imagine a stream where every byte of input is +// interpreted as an integer from 0-255, and then results in that many +// bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in +// 1kb of data being output. In this case, you could write a very small +// amount of input, and end up with a very large amount of output. In +// such a pathological inflating mechanism, there'd be no way to tell +// the system to stop doing the transform. A single 4MB write could +// cause the system to run out of memory. +// +// However, even in such a pathological case, only a single written chunk +// would be consumed, and then the rest would wait (un-transformed) until +// the results of the previous transformed chunk were consumed. + + +module.exports = Transform; + +var _require$codes = (__nccwpck_require__(8651)/* .codes */ .q), + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_TRANSFORM_ALREADY_TRANSFORMING = _require$codes.ERR_TRANSFORM_ALREADY_TRANSFORMING, + ERR_TRANSFORM_WITH_LENGTH_0 = _require$codes.ERR_TRANSFORM_WITH_LENGTH_0; + +var Duplex = __nccwpck_require__(26693); + +__nccwpck_require__(25333)(Transform, Duplex); + +function afterTransform(er, data) { + var ts = this._transformState; + ts.transforming = false; + var cb = ts.writecb; + + if (cb === null) { + return this.emit('error', new ERR_MULTIPLE_CALLBACK()); + } + + ts.writechunk = null; + ts.writecb = null; + if (data != null) // single equals check for both `null` and `undefined` + this.push(data); + cb(er); + var rs = this._readableState; + rs.reading = false; + + if (rs.needReadable || rs.length < rs.highWaterMark) { + this._read(rs.highWaterMark); + } +} + +function Transform(options) { + if (!(this instanceof Transform)) return new Transform(options); + Duplex.call(this, options); + this._transformState = { + afterTransform: afterTransform.bind(this), + needTransform: false, + transforming: false, + writecb: null, + writechunk: null, + writeencoding: null + }; // start out asking for a readable event once data is transformed. + + this._readableState.needReadable = true; // we have implemented the _read method, and done the other things + // that Readable wants before the first _read call, so unset the + // sync guard flag. + + this._readableState.sync = false; + + if (options) { + if (typeof options.transform === 'function') this._transform = options.transform; + if (typeof options.flush === 'function') this._flush = options.flush; + } // When the writable side finishes, then flush out anything remaining. + + + this.on('prefinish', prefinish); +} + +function prefinish() { + var _this = this; + + if (typeof this._flush === 'function' && !this._readableState.destroyed) { + this._flush(function (er, data) { + done(_this, er, data); + }); + } else { + done(this, null, null); + } +} + +Transform.prototype.push = function (chunk, encoding) { + this._transformState.needTransform = false; + return Duplex.prototype.push.call(this, chunk, encoding); +}; // This is the part where you do stuff! +// override this function in implementation classes. +// 'chunk' is an input chunk. +// +// Call `push(newChunk)` to pass along transformed output +// to the readable side. You may call 'push' zero or more times. +// +// Call `cb(err)` when you are done with this chunk. If you pass +// an error, then that'll put the hurt on the whole operation. If you +// never call cb(), then you'll never get another chunk. + + +Transform.prototype._transform = function (chunk, encoding, cb) { + cb(new ERR_METHOD_NOT_IMPLEMENTED('_transform()')); +}; + +Transform.prototype._write = function (chunk, encoding, cb) { + var ts = this._transformState; + ts.writecb = cb; + ts.writechunk = chunk; + ts.writeencoding = encoding; + + if (!ts.transforming) { + var rs = this._readableState; + if (ts.needTransform || rs.needReadable || rs.length < rs.highWaterMark) this._read(rs.highWaterMark); + } +}; // Doesn't matter what the args are here. +// _transform does all the work. +// That we got here means that the readable side wants more data. + + +Transform.prototype._read = function (n) { + var ts = this._transformState; + + if (ts.writechunk !== null && !ts.transforming) { + ts.transforming = true; + + this._transform(ts.writechunk, ts.writeencoding, ts.afterTransform); + } else { + // mark that we need a transform, so that any data that comes in + // will get processed, now that we've asked for it. + ts.needTransform = true; + } +}; + +Transform.prototype._destroy = function (err, cb) { + Duplex.prototype._destroy.call(this, err, function (err2) { + cb(err2); + }); +}; + +function done(stream, er, data) { + if (er) return stream.emit('error', er); + if (data != null) // single equals check for both `null` and `undefined` + stream.push(data); // TODO(BridgeAR): Write a test for these two error cases + // if there's nothing in the write buffer, then that means + // that nothing more will ever be provided + + if (stream._writableState.length) throw new ERR_TRANSFORM_WITH_LENGTH_0(); + if (stream._transformState.transforming) throw new ERR_TRANSFORM_ALREADY_TRANSFORMING(); + return stream.push(null); +} + +/***/ }), + +/***/ 19722: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. +// A bit simpler than readable streams. +// Implement an async ._write(chunk, encoding, cb), and it'll handle all +// the drain event emission and buffering. + + +module.exports = Writable; +/* */ + +function WriteReq(chunk, encoding, cb) { + this.chunk = chunk; + this.encoding = encoding; + this.callback = cb; + this.next = null; +} // It seems a linked list but it is not +// there will be only 2 of these for each stream + + +function CorkedRequest(state) { + var _this = this; + + this.next = null; + this.entry = null; + + this.finish = function () { + onCorkedFinish(_this, state); + }; +} +/* */ + +/**/ + + +var Duplex; +/**/ + +Writable.WritableState = WritableState; +/**/ + +var internalUtil = { + deprecate: __nccwpck_require__(31674) +}; +/**/ + +/**/ + +var Stream = __nccwpck_require__(69444); +/**/ + + +var Buffer = (__nccwpck_require__(14300).Buffer); + +var OurUint8Array = global.Uint8Array || function () {}; + +function _uint8ArrayToBuffer(chunk) { + return Buffer.from(chunk); +} + +function _isUint8Array(obj) { + return Buffer.isBuffer(obj) || obj instanceof OurUint8Array; +} + +var destroyImpl = __nccwpck_require__(31859); + +var _require = __nccwpck_require__(44095), + getHighWaterMark = _require.getHighWaterMark; + +var _require$codes = (__nccwpck_require__(8651)/* .codes */ .q), + ERR_INVALID_ARG_TYPE = _require$codes.ERR_INVALID_ARG_TYPE, + ERR_METHOD_NOT_IMPLEMENTED = _require$codes.ERR_METHOD_NOT_IMPLEMENTED, + ERR_MULTIPLE_CALLBACK = _require$codes.ERR_MULTIPLE_CALLBACK, + ERR_STREAM_CANNOT_PIPE = _require$codes.ERR_STREAM_CANNOT_PIPE, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED, + ERR_STREAM_NULL_VALUES = _require$codes.ERR_STREAM_NULL_VALUES, + ERR_STREAM_WRITE_AFTER_END = _require$codes.ERR_STREAM_WRITE_AFTER_END, + ERR_UNKNOWN_ENCODING = _require$codes.ERR_UNKNOWN_ENCODING; + +var errorOrDestroy = destroyImpl.errorOrDestroy; + +__nccwpck_require__(25333)(Writable, Stream); + +function nop() {} + +function WritableState(options, stream, isDuplex) { + Duplex = Duplex || __nccwpck_require__(26693); + options = options || {}; // Duplex streams are both readable and writable, but share + // the same options object. + // However, some cases require setting options to different + // values for the readable and the writable sides of the duplex stream, + // e.g. options.readableObjectMode vs. options.writableObjectMode, etc. + + if (typeof isDuplex !== 'boolean') isDuplex = stream instanceof Duplex; // object stream flag to indicate whether or not this stream + // contains buffers or objects. + + this.objectMode = !!options.objectMode; + if (isDuplex) this.objectMode = this.objectMode || !!options.writableObjectMode; // the point at which write() starts returning false + // Note: 0 is a valid value, means that we always return false if + // the entire buffer is not flushed immediately on write() + + this.highWaterMark = getHighWaterMark(this, options, 'writableHighWaterMark', isDuplex); // if _final has been called + + this.finalCalled = false; // drain event flag. + + this.needDrain = false; // at the start of calling end() + + this.ending = false; // when end() has been called, and returned + + this.ended = false; // when 'finish' is emitted + + this.finished = false; // has it been destroyed + + this.destroyed = false; // should we decode strings into buffers before passing to _write? + // this is here so that some node-core streams can optimize string + // handling at a lower level. + + var noDecode = options.decodeStrings === false; + this.decodeStrings = !noDecode; // Crypto is kind of old and crusty. Historically, its default string + // encoding is 'binary' so we have to make this configurable. + // Everything else in the universe uses 'utf8', though. + + this.defaultEncoding = options.defaultEncoding || 'utf8'; // not an actual buffer we keep track of, but a measurement + // of how much we're waiting to get pushed to some underlying + // socket or file. + + this.length = 0; // a flag to see when we're in the middle of a write. + + this.writing = false; // when true all writes will be buffered until .uncork() call + + this.corked = 0; // a flag to be able to tell if the onwrite cb is called immediately, + // or on a later tick. We set this to true at first, because any + // actions that shouldn't happen until "later" should generally also + // not happen before the first write call. + + this.sync = true; // a flag to know if we're processing previously buffered items, which + // may call the _write() callback in the same tick, so that we don't + // end up in an overlapped onwrite situation. + + this.bufferProcessing = false; // the callback that's passed to _write(chunk,cb) + + this.onwrite = function (er) { + onwrite(stream, er); + }; // the callback that the user supplies to write(chunk,encoding,cb) + + + this.writecb = null; // the amount that is being written when _write is called. + + this.writelen = 0; + this.bufferedRequest = null; + this.lastBufferedRequest = null; // number of pending user-supplied write callbacks + // this must be 0 before 'finish' can be emitted + + this.pendingcb = 0; // emit prefinish if the only thing we're waiting for is _write cbs + // This is relevant for synchronous Transform streams + + this.prefinished = false; // True if the error was already emitted and should not be thrown again + + this.errorEmitted = false; // Should close be emitted on destroy. Defaults to true. + + this.emitClose = options.emitClose !== false; // Should .destroy() be called after 'finish' (and potentially 'end') + + this.autoDestroy = !!options.autoDestroy; // count buffered requests + + this.bufferedRequestCount = 0; // allocate the first CorkedRequest, there is always + // one allocated and free to use, and we maintain at most two + + this.corkedRequestsFree = new CorkedRequest(this); +} + +WritableState.prototype.getBuffer = function getBuffer() { + var current = this.bufferedRequest; + var out = []; + + while (current) { + out.push(current); + current = current.next; + } + + return out; +}; + +(function () { + try { + Object.defineProperty(WritableState.prototype, 'buffer', { + get: internalUtil.deprecate(function writableStateBufferGetter() { + return this.getBuffer(); + }, '_writableState.buffer is deprecated. Use _writableState.getBuffer ' + 'instead.', 'DEP0003') + }); + } catch (_) {} +})(); // Test _writableState for inheritance to account for Duplex streams, +// whose prototype chain only points to Readable. + + +var realHasInstance; + +if (typeof Symbol === 'function' && Symbol.hasInstance && typeof Function.prototype[Symbol.hasInstance] === 'function') { + realHasInstance = Function.prototype[Symbol.hasInstance]; + Object.defineProperty(Writable, Symbol.hasInstance, { + value: function value(object) { + if (realHasInstance.call(this, object)) return true; + if (this !== Writable) return false; + return object && object._writableState instanceof WritableState; + } + }); +} else { + realHasInstance = function realHasInstance(object) { + return object instanceof this; + }; +} + +function Writable(options) { + Duplex = Duplex || __nccwpck_require__(26693); // Writable ctor is applied to Duplexes, too. + // `realHasInstance` is necessary because using plain `instanceof` + // would return false, as no `_writableState` property is attached. + // Trying to use the custom `instanceof` for Writable here will also break the + // Node.js LazyTransform implementation, which has a non-trivial getter for + // `_writableState` that would lead to infinite recursion. + // Checking for a Stream.Duplex instance is faster here instead of inside + // the WritableState constructor, at least with V8 6.5 + + var isDuplex = this instanceof Duplex; + if (!isDuplex && !realHasInstance.call(Writable, this)) return new Writable(options); + this._writableState = new WritableState(options, this, isDuplex); // legacy. + + this.writable = true; + + if (options) { + if (typeof options.write === 'function') this._write = options.write; + if (typeof options.writev === 'function') this._writev = options.writev; + if (typeof options.destroy === 'function') this._destroy = options.destroy; + if (typeof options.final === 'function') this._final = options.final; + } + + Stream.call(this); +} // Otherwise people can pipe Writable streams, which is just wrong. + + +Writable.prototype.pipe = function () { + errorOrDestroy(this, new ERR_STREAM_CANNOT_PIPE()); +}; + +function writeAfterEnd(stream, cb) { + var er = new ERR_STREAM_WRITE_AFTER_END(); // TODO: defer error events consistently everywhere, not just the cb + + errorOrDestroy(stream, er); + process.nextTick(cb, er); +} // Checks that a user-supplied chunk is valid, especially for the particular +// mode the stream is in. Currently this means that `null` is never accepted +// and undefined/non-string values are only allowed in object mode. + + +function validChunk(stream, state, chunk, cb) { + var er; + + if (chunk === null) { + er = new ERR_STREAM_NULL_VALUES(); + } else if (typeof chunk !== 'string' && !state.objectMode) { + er = new ERR_INVALID_ARG_TYPE('chunk', ['string', 'Buffer'], chunk); + } + + if (er) { + errorOrDestroy(stream, er); + process.nextTick(cb, er); + return false; + } + + return true; +} + +Writable.prototype.write = function (chunk, encoding, cb) { + var state = this._writableState; + var ret = false; + + var isBuf = !state.objectMode && _isUint8Array(chunk); + + if (isBuf && !Buffer.isBuffer(chunk)) { + chunk = _uint8ArrayToBuffer(chunk); + } + + if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (isBuf) encoding = 'buffer';else if (!encoding) encoding = state.defaultEncoding; + if (typeof cb !== 'function') cb = nop; + if (state.ending) writeAfterEnd(this, cb);else if (isBuf || validChunk(this, state, chunk, cb)) { + state.pendingcb++; + ret = writeOrBuffer(this, state, isBuf, chunk, encoding, cb); + } + return ret; +}; + +Writable.prototype.cork = function () { + this._writableState.corked++; +}; + +Writable.prototype.uncork = function () { + var state = this._writableState; + + if (state.corked) { + state.corked--; + if (!state.writing && !state.corked && !state.bufferProcessing && state.bufferedRequest) clearBuffer(this, state); + } +}; + +Writable.prototype.setDefaultEncoding = function setDefaultEncoding(encoding) { + // node::ParseEncoding() requires lower case. + if (typeof encoding === 'string') encoding = encoding.toLowerCase(); + if (!(['hex', 'utf8', 'utf-8', 'ascii', 'binary', 'base64', 'ucs2', 'ucs-2', 'utf16le', 'utf-16le', 'raw'].indexOf((encoding + '').toLowerCase()) > -1)) throw new ERR_UNKNOWN_ENCODING(encoding); + this._writableState.defaultEncoding = encoding; + return this; +}; + +Object.defineProperty(Writable.prototype, 'writableBuffer', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState && this._writableState.getBuffer(); + } +}); + +function decodeChunk(state, chunk, encoding) { + if (!state.objectMode && state.decodeStrings !== false && typeof chunk === 'string') { + chunk = Buffer.from(chunk, encoding); + } + + return chunk; +} + +Object.defineProperty(Writable.prototype, 'writableHighWaterMark', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.highWaterMark; + } +}); // if we're already writing something, then just put this +// in the queue, and wait our turn. Otherwise, call _write +// If we return false, then we need a drain event, so set that flag. + +function writeOrBuffer(stream, state, isBuf, chunk, encoding, cb) { + if (!isBuf) { + var newChunk = decodeChunk(state, chunk, encoding); + + if (chunk !== newChunk) { + isBuf = true; + encoding = 'buffer'; + chunk = newChunk; + } + } + + var len = state.objectMode ? 1 : chunk.length; + state.length += len; + var ret = state.length < state.highWaterMark; // we must ensure that previous needDrain will not be reset to false. + + if (!ret) state.needDrain = true; + + if (state.writing || state.corked) { + var last = state.lastBufferedRequest; + state.lastBufferedRequest = { + chunk: chunk, + encoding: encoding, + isBuf: isBuf, + callback: cb, + next: null + }; + + if (last) { + last.next = state.lastBufferedRequest; + } else { + state.bufferedRequest = state.lastBufferedRequest; + } + + state.bufferedRequestCount += 1; + } else { + doWrite(stream, state, false, len, chunk, encoding, cb); + } + + return ret; +} + +function doWrite(stream, state, writev, len, chunk, encoding, cb) { + state.writelen = len; + state.writecb = cb; + state.writing = true; + state.sync = true; + if (state.destroyed) state.onwrite(new ERR_STREAM_DESTROYED('write'));else if (writev) stream._writev(chunk, state.onwrite);else stream._write(chunk, encoding, state.onwrite); + state.sync = false; +} + +function onwriteError(stream, state, sync, er, cb) { + --state.pendingcb; + + if (sync) { + // defer the callback if we are being called synchronously + // to avoid piling up things on the stack + process.nextTick(cb, er); // this can emit finish, and it will always happen + // after error + + process.nextTick(finishMaybe, stream, state); + stream._writableState.errorEmitted = true; + errorOrDestroy(stream, er); + } else { + // the caller expect this to happen before if + // it is async + cb(er); + stream._writableState.errorEmitted = true; + errorOrDestroy(stream, er); // this can emit finish, but finish must + // always follow error + + finishMaybe(stream, state); + } +} + +function onwriteStateUpdate(state) { + state.writing = false; + state.writecb = null; + state.length -= state.writelen; + state.writelen = 0; +} + +function onwrite(stream, er) { + var state = stream._writableState; + var sync = state.sync; + var cb = state.writecb; + if (typeof cb !== 'function') throw new ERR_MULTIPLE_CALLBACK(); + onwriteStateUpdate(state); + if (er) onwriteError(stream, state, sync, er, cb);else { + // Check if we're actually ready to finish, but don't emit yet + var finished = needFinish(state) || stream.destroyed; + + if (!finished && !state.corked && !state.bufferProcessing && state.bufferedRequest) { + clearBuffer(stream, state); + } + + if (sync) { + process.nextTick(afterWrite, stream, state, finished, cb); + } else { + afterWrite(stream, state, finished, cb); + } + } +} + +function afterWrite(stream, state, finished, cb) { + if (!finished) onwriteDrain(stream, state); + state.pendingcb--; + cb(); + finishMaybe(stream, state); +} // Must force callback to be called on nextTick, so that we don't +// emit 'drain' before the write() consumer gets the 'false' return +// value, and has a chance to attach a 'drain' listener. + + +function onwriteDrain(stream, state) { + if (state.length === 0 && state.needDrain) { + state.needDrain = false; + stream.emit('drain'); + } +} // if there's something in the buffer waiting, then process it + + +function clearBuffer(stream, state) { + state.bufferProcessing = true; + var entry = state.bufferedRequest; + + if (stream._writev && entry && entry.next) { + // Fast case, write everything using _writev() + var l = state.bufferedRequestCount; + var buffer = new Array(l); + var holder = state.corkedRequestsFree; + holder.entry = entry; + var count = 0; + var allBuffers = true; + + while (entry) { + buffer[count] = entry; + if (!entry.isBuf) allBuffers = false; + entry = entry.next; + count += 1; + } + + buffer.allBuffers = allBuffers; + doWrite(stream, state, true, state.length, buffer, '', holder.finish); // doWrite is almost always async, defer these to save a bit of time + // as the hot path ends with doWrite + + state.pendingcb++; + state.lastBufferedRequest = null; + + if (holder.next) { + state.corkedRequestsFree = holder.next; + holder.next = null; + } else { + state.corkedRequestsFree = new CorkedRequest(state); + } + + state.bufferedRequestCount = 0; + } else { + // Slow case, write chunks one-by-one + while (entry) { + var chunk = entry.chunk; + var encoding = entry.encoding; + var cb = entry.callback; + var len = state.objectMode ? 1 : chunk.length; + doWrite(stream, state, false, len, chunk, encoding, cb); + entry = entry.next; + state.bufferedRequestCount--; // if we didn't call the onwrite immediately, then + // it means that we need to wait until it does. + // also, that means that the chunk and cb are currently + // being processed, so move the buffer counter past them. + + if (state.writing) { + break; + } + } + + if (entry === null) state.lastBufferedRequest = null; + } + + state.bufferedRequest = entry; + state.bufferProcessing = false; +} + +Writable.prototype._write = function (chunk, encoding, cb) { + cb(new ERR_METHOD_NOT_IMPLEMENTED('_write()')); +}; + +Writable.prototype._writev = null; + +Writable.prototype.end = function (chunk, encoding, cb) { + var state = this._writableState; + + if (typeof chunk === 'function') { + cb = chunk; + chunk = null; + encoding = null; + } else if (typeof encoding === 'function') { + cb = encoding; + encoding = null; + } + + if (chunk !== null && chunk !== undefined) this.write(chunk, encoding); // .end() fully uncorks + + if (state.corked) { + state.corked = 1; + this.uncork(); + } // ignore unnecessary end() calls. + + + if (!state.ending) endWritable(this, state, cb); + return this; +}; + +Object.defineProperty(Writable.prototype, 'writableLength', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + return this._writableState.length; + } +}); + +function needFinish(state) { + return state.ending && state.length === 0 && state.bufferedRequest === null && !state.finished && !state.writing; +} + +function callFinal(stream, state) { + stream._final(function (err) { + state.pendingcb--; + + if (err) { + errorOrDestroy(stream, err); + } + + state.prefinished = true; + stream.emit('prefinish'); + finishMaybe(stream, state); + }); +} + +function prefinish(stream, state) { + if (!state.prefinished && !state.finalCalled) { + if (typeof stream._final === 'function' && !state.destroyed) { + state.pendingcb++; + state.finalCalled = true; + process.nextTick(callFinal, stream, state); + } else { + state.prefinished = true; + stream.emit('prefinish'); + } + } +} + +function finishMaybe(stream, state) { + var need = needFinish(state); + + if (need) { + prefinish(stream, state); + + if (state.pendingcb === 0) { + state.finished = true; + stream.emit('finish'); + + if (state.autoDestroy) { + // In case of duplex streams we need a way to detect + // if the readable side is ready for autoDestroy as well + var rState = stream._readableState; + + if (!rState || rState.autoDestroy && rState.endEmitted) { + stream.destroy(); + } + } + } + } + + return need; +} + +function endWritable(stream, state, cb) { + state.ending = true; + finishMaybe(stream, state); + + if (cb) { + if (state.finished) process.nextTick(cb);else stream.once('finish', cb); + } + + state.ended = true; + stream.writable = false; +} + +function onCorkedFinish(corkReq, state, err) { + var entry = corkReq.entry; + corkReq.entry = null; + + while (entry) { + var cb = entry.callback; + state.pendingcb--; + cb(err); + entry = entry.next; + } // reuse the free corkReq. + + + state.corkedRequestsFree.next = corkReq; +} + +Object.defineProperty(Writable.prototype, 'destroyed', { + // making it explicit this property is not enumerable + // because otherwise some prototype manipulation in + // userland will fail + enumerable: false, + get: function get() { + if (this._writableState === undefined) { + return false; + } + + return this._writableState.destroyed; + }, + set: function set(value) { + // we ignore the value if the stream + // has not been initialized yet + if (!this._writableState) { + return; + } // backward compatibility, the user is explicitly + // managing destroyed + + + this._writableState.destroyed = value; + } +}); +Writable.prototype.destroy = destroyImpl.destroy; +Writable.prototype._undestroy = destroyImpl.undestroy; + +Writable.prototype._destroy = function (err, cb) { + cb(err); +}; + +/***/ }), + +/***/ 98480: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var _Object$setPrototypeO; + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var finished = __nccwpck_require__(20229); + +var kLastResolve = Symbol('lastResolve'); +var kLastReject = Symbol('lastReject'); +var kError = Symbol('error'); +var kEnded = Symbol('ended'); +var kLastPromise = Symbol('lastPromise'); +var kHandlePromise = Symbol('handlePromise'); +var kStream = Symbol('stream'); + +function createIterResult(value, done) { + return { + value: value, + done: done + }; +} + +function readAndResolve(iter) { + var resolve = iter[kLastResolve]; + + if (resolve !== null) { + var data = iter[kStream].read(); // we defer if data is null + // we can be expecting either 'end' or + // 'error' + + if (data !== null) { + iter[kLastPromise] = null; + iter[kLastResolve] = null; + iter[kLastReject] = null; + resolve(createIterResult(data, false)); + } + } +} + +function onReadable(iter) { + // we wait for the next tick, because it might + // emit an error with process.nextTick + process.nextTick(readAndResolve, iter); +} + +function wrapForNext(lastPromise, iter) { + return function (resolve, reject) { + lastPromise.then(function () { + if (iter[kEnded]) { + resolve(createIterResult(undefined, true)); + return; + } + + iter[kHandlePromise](resolve, reject); + }, reject); + }; +} + +var AsyncIteratorPrototype = Object.getPrototypeOf(function () {}); +var ReadableStreamAsyncIteratorPrototype = Object.setPrototypeOf((_Object$setPrototypeO = { + get stream() { + return this[kStream]; + }, + + next: function next() { + var _this = this; + + // if we have detected an error in the meanwhile + // reject straight away + var error = this[kError]; + + if (error !== null) { + return Promise.reject(error); + } + + if (this[kEnded]) { + return Promise.resolve(createIterResult(undefined, true)); + } + + if (this[kStream].destroyed) { + // We need to defer via nextTick because if .destroy(err) is + // called, the error will be emitted via nextTick, and + // we cannot guarantee that there is no error lingering around + // waiting to be emitted. + return new Promise(function (resolve, reject) { + process.nextTick(function () { + if (_this[kError]) { + reject(_this[kError]); + } else { + resolve(createIterResult(undefined, true)); + } + }); + }); + } // if we have multiple next() calls + // we will wait for the previous Promise to finish + // this logic is optimized to support for await loops, + // where next() is only called once at a time + + + var lastPromise = this[kLastPromise]; + var promise; + + if (lastPromise) { + promise = new Promise(wrapForNext(lastPromise, this)); + } else { + // fast path needed to support multiple this.push() + // without triggering the next() queue + var data = this[kStream].read(); + + if (data !== null) { + return Promise.resolve(createIterResult(data, false)); + } + + promise = new Promise(this[kHandlePromise]); + } + + this[kLastPromise] = promise; + return promise; + } +}, _defineProperty(_Object$setPrototypeO, Symbol.asyncIterator, function () { + return this; +}), _defineProperty(_Object$setPrototypeO, "return", function _return() { + var _this2 = this; + + // destroy(err, cb) is a private API + // we can guarantee we have that here, because we control the + // Readable class this is attached to + return new Promise(function (resolve, reject) { + _this2[kStream].destroy(null, function (err) { + if (err) { + reject(err); + return; + } + + resolve(createIterResult(undefined, true)); + }); + }); +}), _Object$setPrototypeO), AsyncIteratorPrototype); + +var createReadableStreamAsyncIterator = function createReadableStreamAsyncIterator(stream) { + var _Object$create; + + var iterator = Object.create(ReadableStreamAsyncIteratorPrototype, (_Object$create = {}, _defineProperty(_Object$create, kStream, { + value: stream, + writable: true + }), _defineProperty(_Object$create, kLastResolve, { + value: null, + writable: true + }), _defineProperty(_Object$create, kLastReject, { + value: null, + writable: true + }), _defineProperty(_Object$create, kError, { + value: null, + writable: true + }), _defineProperty(_Object$create, kEnded, { + value: stream._readableState.endEmitted, + writable: true + }), _defineProperty(_Object$create, kHandlePromise, { + value: function value(resolve, reject) { + var data = iterator[kStream].read(); + + if (data) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + resolve(createIterResult(data, false)); + } else { + iterator[kLastResolve] = resolve; + iterator[kLastReject] = reject; + } + }, + writable: true + }), _Object$create)); + iterator[kLastPromise] = null; + finished(stream, function (err) { + if (err && err.code !== 'ERR_STREAM_PREMATURE_CLOSE') { + var reject = iterator[kLastReject]; // reject if we are waiting for data in the Promise + // returned by next() and store the error + + if (reject !== null) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + reject(err); + } + + iterator[kError] = err; + return; + } + + var resolve = iterator[kLastResolve]; + + if (resolve !== null) { + iterator[kLastPromise] = null; + iterator[kLastResolve] = null; + iterator[kLastReject] = null; + resolve(createIterResult(undefined, true)); + } + + iterator[kEnded] = true; + }); + stream.on('readable', onReadable.bind(null, iterator)); + return iterator; +}; + +module.exports = createReadableStreamAsyncIterator; + +/***/ }), + +/***/ 87670: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } + +function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } + +function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; } + +var _require = __nccwpck_require__(14300), + Buffer = _require.Buffer; + +var _require2 = __nccwpck_require__(73837), + inspect = _require2.inspect; + +var custom = inspect && inspect.custom || 'inspect'; + +function copyBuffer(src, target, offset) { + Buffer.prototype.copy.call(src, target, offset); +} + +module.exports = +/*#__PURE__*/ +function () { + function BufferList() { + _classCallCheck(this, BufferList); + + this.head = null; + this.tail = null; + this.length = 0; + } + + _createClass(BufferList, [{ + key: "push", + value: function push(v) { + var entry = { + data: v, + next: null + }; + if (this.length > 0) this.tail.next = entry;else this.head = entry; + this.tail = entry; + ++this.length; + } + }, { + key: "unshift", + value: function unshift(v) { + var entry = { + data: v, + next: this.head + }; + if (this.length === 0) this.tail = entry; + this.head = entry; + ++this.length; + } + }, { + key: "shift", + value: function shift() { + if (this.length === 0) return; + var ret = this.head.data; + if (this.length === 1) this.head = this.tail = null;else this.head = this.head.next; + --this.length; + return ret; + } + }, { + key: "clear", + value: function clear() { + this.head = this.tail = null; + this.length = 0; + } + }, { + key: "join", + value: function join(s) { + if (this.length === 0) return ''; + var p = this.head; + var ret = '' + p.data; + + while (p = p.next) { + ret += s + p.data; + } + + return ret; + } + }, { + key: "concat", + value: function concat(n) { + if (this.length === 0) return Buffer.alloc(0); + var ret = Buffer.allocUnsafe(n >>> 0); + var p = this.head; + var i = 0; + + while (p) { + copyBuffer(p.data, ret, i); + i += p.data.length; + p = p.next; + } + + return ret; + } // Consumes a specified amount of bytes or characters from the buffered data. + + }, { + key: "consume", + value: function consume(n, hasStrings) { + var ret; + + if (n < this.head.data.length) { + // `slice` is the same for buffers and strings. + ret = this.head.data.slice(0, n); + this.head.data = this.head.data.slice(n); + } else if (n === this.head.data.length) { + // First chunk is a perfect match. + ret = this.shift(); + } else { + // Result spans more than one buffer. + ret = hasStrings ? this._getString(n) : this._getBuffer(n); + } + + return ret; + } + }, { + key: "first", + value: function first() { + return this.head.data; + } // Consumes a specified amount of characters from the buffered data. + + }, { + key: "_getString", + value: function _getString(n) { + var p = this.head; + var c = 1; + var ret = p.data; + n -= ret.length; + + while (p = p.next) { + var str = p.data; + var nb = n > str.length ? str.length : n; + if (nb === str.length) ret += str;else ret += str.slice(0, n); + n -= nb; + + if (n === 0) { + if (nb === str.length) { + ++c; + if (p.next) this.head = p.next;else this.head = this.tail = null; + } else { + this.head = p; + p.data = str.slice(nb); + } + + break; + } + + ++c; + } + + this.length -= c; + return ret; + } // Consumes a specified amount of bytes from the buffered data. + + }, { + key: "_getBuffer", + value: function _getBuffer(n) { + var ret = Buffer.allocUnsafe(n); + var p = this.head; + var c = 1; + p.data.copy(ret); + n -= p.data.length; + + while (p = p.next) { + var buf = p.data; + var nb = n > buf.length ? buf.length : n; + buf.copy(ret, ret.length - n, 0, nb); + n -= nb; + + if (n === 0) { + if (nb === buf.length) { + ++c; + if (p.next) this.head = p.next;else this.head = this.tail = null; + } else { + this.head = p; + p.data = buf.slice(nb); + } + + break; + } + + ++c; + } + + this.length -= c; + return ret; + } // Make sure the linked list only shows the minimal necessary information. + + }, { + key: custom, + value: function value(_, options) { + return inspect(this, _objectSpread({}, options, { + // Only inspect one level. + depth: 0, + // It should not recurse. + customInspect: false + })); + } + }]); + + return BufferList; +}(); + +/***/ }), + +/***/ 31859: +/***/ ((module) => { + +"use strict"; + // undocumented cb() API, needed for core, not for public API + +function destroy(err, cb) { + var _this = this; + + var readableDestroyed = this._readableState && this._readableState.destroyed; + var writableDestroyed = this._writableState && this._writableState.destroyed; + + if (readableDestroyed || writableDestroyed) { + if (cb) { + cb(err); + } else if (err) { + if (!this._writableState) { + process.nextTick(emitErrorNT, this, err); + } else if (!this._writableState.errorEmitted) { + this._writableState.errorEmitted = true; + process.nextTick(emitErrorNT, this, err); + } + } + + return this; + } // we set destroyed to true before firing error callbacks in order + // to make it re-entrance safe in case destroy() is called within callbacks + + + if (this._readableState) { + this._readableState.destroyed = true; + } // if this is a duplex stream mark the writable part as destroyed as well + + + if (this._writableState) { + this._writableState.destroyed = true; + } + + this._destroy(err || null, function (err) { + if (!cb && err) { + if (!_this._writableState) { + process.nextTick(emitErrorAndCloseNT, _this, err); + } else if (!_this._writableState.errorEmitted) { + _this._writableState.errorEmitted = true; + process.nextTick(emitErrorAndCloseNT, _this, err); + } else { + process.nextTick(emitCloseNT, _this); + } + } else if (cb) { + process.nextTick(emitCloseNT, _this); + cb(err); + } else { + process.nextTick(emitCloseNT, _this); + } + }); + + return this; +} + +function emitErrorAndCloseNT(self, err) { + emitErrorNT(self, err); + emitCloseNT(self); +} + +function emitCloseNT(self) { + if (self._writableState && !self._writableState.emitClose) return; + if (self._readableState && !self._readableState.emitClose) return; + self.emit('close'); +} + +function undestroy() { + if (this._readableState) { + this._readableState.destroyed = false; + this._readableState.reading = false; + this._readableState.ended = false; + this._readableState.endEmitted = false; + } + + if (this._writableState) { + this._writableState.destroyed = false; + this._writableState.ended = false; + this._writableState.ending = false; + this._writableState.finalCalled = false; + this._writableState.prefinished = false; + this._writableState.finished = false; + this._writableState.errorEmitted = false; + } +} + +function emitErrorNT(self, err) { + self.emit('error', err); +} + +function errorOrDestroy(stream, err) { + // We have tests that rely on errors being emitted + // in the same tick, so changing this is semver major. + // For now when you opt-in to autoDestroy we allow + // the error to be emitted nextTick. In a future + // semver major update we should change the default to this. + var rState = stream._readableState; + var wState = stream._writableState; + if (rState && rState.autoDestroy || wState && wState.autoDestroy) stream.destroy(err);else stream.emit('error', err); +} + +module.exports = { + destroy: destroy, + undestroy: undestroy, + errorOrDestroy: errorOrDestroy +}; + +/***/ }), + +/***/ 20229: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Ported from https://github.com/mafintosh/end-of-stream with +// permission from the author, Mathias Buus (@mafintosh). + + +var ERR_STREAM_PREMATURE_CLOSE = (__nccwpck_require__(8651)/* .codes.ERR_STREAM_PREMATURE_CLOSE */ .q.ERR_STREAM_PREMATURE_CLOSE); + +function once(callback) { + var called = false; + return function () { + if (called) return; + called = true; + + for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { + args[_key] = arguments[_key]; + } + + callback.apply(this, args); + }; +} + +function noop() {} + +function isRequest(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +} + +function eos(stream, opts, callback) { + if (typeof opts === 'function') return eos(stream, null, opts); + if (!opts) opts = {}; + callback = once(callback || noop); + var readable = opts.readable || opts.readable !== false && stream.readable; + var writable = opts.writable || opts.writable !== false && stream.writable; + + var onlegacyfinish = function onlegacyfinish() { + if (!stream.writable) onfinish(); + }; + + var writableEnded = stream._writableState && stream._writableState.finished; + + var onfinish = function onfinish() { + writable = false; + writableEnded = true; + if (!readable) callback.call(stream); + }; + + var readableEnded = stream._readableState && stream._readableState.endEmitted; + + var onend = function onend() { + readable = false; + readableEnded = true; + if (!writable) callback.call(stream); + }; + + var onerror = function onerror(err) { + callback.call(stream, err); + }; + + var onclose = function onclose() { + var err; + + if (readable && !readableEnded) { + if (!stream._readableState || !stream._readableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); + return callback.call(stream, err); + } + + if (writable && !writableEnded) { + if (!stream._writableState || !stream._writableState.ended) err = new ERR_STREAM_PREMATURE_CLOSE(); + return callback.call(stream, err); + } + }; + + var onrequest = function onrequest() { + stream.req.on('finish', onfinish); + }; + + if (isRequest(stream)) { + stream.on('complete', onfinish); + stream.on('abort', onclose); + if (stream.req) onrequest();else stream.on('request', onrequest); + } else if (writable && !stream._writableState) { + // legacy streams + stream.on('end', onlegacyfinish); + stream.on('close', onlegacyfinish); + } + + stream.on('end', onend); + stream.on('finish', onfinish); + if (opts.error !== false) stream.on('error', onerror); + stream.on('close', onclose); + return function () { + stream.removeListener('complete', onfinish); + stream.removeListener('abort', onclose); + stream.removeListener('request', onrequest); + if (stream.req) stream.req.removeListener('finish', onfinish); + stream.removeListener('end', onlegacyfinish); + stream.removeListener('close', onlegacyfinish); + stream.removeListener('finish', onfinish); + stream.removeListener('end', onend); + stream.removeListener('error', onerror); + stream.removeListener('close', onclose); + }; +} + +module.exports = eos; + +/***/ }), + +/***/ 34187: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } + +function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } + +function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; } + +function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; } + +function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } + +var ERR_INVALID_ARG_TYPE = (__nccwpck_require__(8651)/* .codes.ERR_INVALID_ARG_TYPE */ .q.ERR_INVALID_ARG_TYPE); + +function from(Readable, iterable, opts) { + var iterator; + + if (iterable && typeof iterable.next === 'function') { + iterator = iterable; + } else if (iterable && iterable[Symbol.asyncIterator]) iterator = iterable[Symbol.asyncIterator]();else if (iterable && iterable[Symbol.iterator]) iterator = iterable[Symbol.iterator]();else throw new ERR_INVALID_ARG_TYPE('iterable', ['Iterable'], iterable); + + var readable = new Readable(_objectSpread({ + objectMode: true + }, opts)); // Reading boolean to protect against _read + // being called before last iteration completion. + + var reading = false; + + readable._read = function () { + if (!reading) { + reading = true; + next(); + } + }; + + function next() { + return _next2.apply(this, arguments); + } + + function _next2() { + _next2 = _asyncToGenerator(function* () { + try { + var _ref = yield iterator.next(), + value = _ref.value, + done = _ref.done; + + if (done) { + readable.push(null); + } else if (readable.push((yield value))) { + next(); + } else { + reading = false; + } + } catch (err) { + readable.destroy(err); + } + }); + return _next2.apply(this, arguments); + } + + return readable; +} + +module.exports = from; + +/***/ }), + +/***/ 64690: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; +// Ported from https://github.com/mafintosh/pump with +// permission from the author, Mathias Buus (@mafintosh). + + +var eos; + +function once(callback) { + var called = false; + return function () { + if (called) return; + called = true; + callback.apply(void 0, arguments); + }; +} + +var _require$codes = (__nccwpck_require__(8651)/* .codes */ .q), + ERR_MISSING_ARGS = _require$codes.ERR_MISSING_ARGS, + ERR_STREAM_DESTROYED = _require$codes.ERR_STREAM_DESTROYED; + +function noop(err) { + // Rethrow the error if it exists to avoid swallowing it + if (err) throw err; +} + +function isRequest(stream) { + return stream.setHeader && typeof stream.abort === 'function'; +} + +function destroyer(stream, reading, writing, callback) { + callback = once(callback); + var closed = false; + stream.on('close', function () { + closed = true; + }); + if (eos === undefined) eos = __nccwpck_require__(20229); + eos(stream, { + readable: reading, + writable: writing + }, function (err) { + if (err) return callback(err); + closed = true; + callback(); + }); + var destroyed = false; + return function (err) { + if (closed) return; + if (destroyed) return; + destroyed = true; // request.destroy just do .end - .abort is what we want + + if (isRequest(stream)) return stream.abort(); + if (typeof stream.destroy === 'function') return stream.destroy(); + callback(err || new ERR_STREAM_DESTROYED('pipe')); + }; +} + +function call(fn) { + fn(); +} + +function pipe(from, to) { + return from.pipe(to); +} + +function popCallback(streams) { + if (!streams.length) return noop; + if (typeof streams[streams.length - 1] !== 'function') return noop; + return streams.pop(); +} + +function pipeline() { + for (var _len = arguments.length, streams = new Array(_len), _key = 0; _key < _len; _key++) { + streams[_key] = arguments[_key]; + } + + var callback = popCallback(streams); + if (Array.isArray(streams[0])) streams = streams[0]; + + if (streams.length < 2) { + throw new ERR_MISSING_ARGS('streams'); + } + + var error; + var destroys = streams.map(function (stream, i) { + var reading = i < streams.length - 1; + var writing = i > 0; + return destroyer(stream, reading, writing, function (err) { + if (!error) error = err; + if (err) destroys.forEach(call); + if (reading) return; + destroys.forEach(call); + callback(error); + }); + }); + return streams.reduce(pipe); +} + +module.exports = pipeline; + +/***/ }), + +/***/ 44095: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + + +var ERR_INVALID_OPT_VALUE = (__nccwpck_require__(8651)/* .codes.ERR_INVALID_OPT_VALUE */ .q.ERR_INVALID_OPT_VALUE); + +function highWaterMarkFrom(options, isDuplex, duplexKey) { + return options.highWaterMark != null ? options.highWaterMark : isDuplex ? options[duplexKey] : null; +} + +function getHighWaterMark(state, options, duplexKey, isDuplex) { + var hwm = highWaterMarkFrom(options, isDuplex, duplexKey); + + if (hwm != null) { + if (!(isFinite(hwm) && Math.floor(hwm) === hwm) || hwm < 0) { + var name = isDuplex ? duplexKey : 'highWaterMark'; + throw new ERR_INVALID_OPT_VALUE(name, hwm); + } + + return Math.floor(hwm); + } // Default value + + + return state.objectMode ? 16 : 16 * 1024; +} + +module.exports = { + getHighWaterMark: getHighWaterMark +}; + +/***/ }), + +/***/ 69444: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(12781); + + +/***/ }), + +/***/ 85635: +/***/ ((module, exports, __nccwpck_require__) => { + +var Stream = __nccwpck_require__(12781); +if (process.env.READABLE_STREAM === 'disable' && Stream) { + module.exports = Stream.Readable; + Object.assign(module.exports, Stream); + module.exports.Stream = Stream; +} else { + exports = module.exports = __nccwpck_require__(70681); + exports.Stream = Stream || exports; + exports.Readable = exports; + exports.Writable = __nccwpck_require__(19722); + exports.Duplex = __nccwpck_require__(26693); + exports.Transform = __nccwpck_require__(88720); + exports.PassThrough = __nccwpck_require__(44820); + exports.finished = __nccwpck_require__(20229); + exports.pipeline = __nccwpck_require__(64690); +} + + +/***/ }), + +/***/ 92307: +/***/ ((module, exports, __nccwpck_require__) => { + +/*! safe-buffer. MIT License. Feross Aboukhadijeh */ +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.prototype = Object.create(Buffer.prototype) + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 19096: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; +// Copyright Joyent, Inc. and other Node contributors. +// +// Permission is hereby granted, free of charge, to any person obtaining a +// copy of this software and associated documentation files (the +// "Software"), to deal in the Software without restriction, including +// without limitation the rights to use, copy, modify, merge, publish, +// distribute, sublicense, and/or sell copies of the Software, and to permit +// persons to whom the Software is furnished to do so, subject to the +// following conditions: +// +// The above copyright notice and this permission notice shall be included +// in all copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS +// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN +// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, +// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR +// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE +// USE OR OTHER DEALINGS IN THE SOFTWARE. + + + +/**/ + +var Buffer = (__nccwpck_require__(73571).Buffer); +/**/ + +var isEncoding = Buffer.isEncoding || function (encoding) { + encoding = '' + encoding; + switch (encoding && encoding.toLowerCase()) { + case 'hex':case 'utf8':case 'utf-8':case 'ascii':case 'binary':case 'base64':case 'ucs2':case 'ucs-2':case 'utf16le':case 'utf-16le':case 'raw': + return true; + default: + return false; + } +}; + +function _normalizeEncoding(enc) { + if (!enc) return 'utf8'; + var retried; + while (true) { + switch (enc) { + case 'utf8': + case 'utf-8': + return 'utf8'; + case 'ucs2': + case 'ucs-2': + case 'utf16le': + case 'utf-16le': + return 'utf16le'; + case 'latin1': + case 'binary': + return 'latin1'; + case 'base64': + case 'ascii': + case 'hex': + return enc; + default: + if (retried) return; // undefined + enc = ('' + enc).toLowerCase(); + retried = true; + } + } +}; + +// Do not cache `Buffer.isEncoding` when checking encoding names as some +// modules monkey-patch it to support additional encodings +function normalizeEncoding(enc) { + var nenc = _normalizeEncoding(enc); + if (typeof nenc !== 'string' && (Buffer.isEncoding === isEncoding || !isEncoding(enc))) throw new Error('Unknown encoding: ' + enc); + return nenc || enc; +} + +// StringDecoder provides an interface for efficiently splitting a series of +// buffers into a series of JS strings without breaking apart multi-byte +// characters. +exports.s = StringDecoder; +function StringDecoder(encoding) { + this.encoding = normalizeEncoding(encoding); + var nb; + switch (this.encoding) { + case 'utf16le': + this.text = utf16Text; + this.end = utf16End; + nb = 4; + break; + case 'utf8': + this.fillLast = utf8FillLast; + nb = 4; + break; + case 'base64': + this.text = base64Text; + this.end = base64End; + nb = 3; + break; + default: + this.write = simpleWrite; + this.end = simpleEnd; + return; + } + this.lastNeed = 0; + this.lastTotal = 0; + this.lastChar = Buffer.allocUnsafe(nb); +} + +StringDecoder.prototype.write = function (buf) { + if (buf.length === 0) return ''; + var r; + var i; + if (this.lastNeed) { + r = this.fillLast(buf); + if (r === undefined) return ''; + i = this.lastNeed; + this.lastNeed = 0; + } else { + i = 0; + } + if (i < buf.length) return r ? r + this.text(buf, i) : this.text(buf, i); + return r || ''; +}; + +StringDecoder.prototype.end = utf8End; + +// Returns only complete characters in a Buffer +StringDecoder.prototype.text = utf8Text; + +// Attempts to complete a partial non-UTF-8 character using bytes from a Buffer +StringDecoder.prototype.fillLast = function (buf) { + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, this.lastTotal - this.lastNeed, 0, buf.length); + this.lastNeed -= buf.length; +}; + +// Checks the type of a UTF-8 byte, whether it's ASCII, a leading byte, or a +// continuation byte. If an invalid byte is detected, -2 is returned. +function utf8CheckByte(byte) { + if (byte <= 0x7F) return 0;else if (byte >> 5 === 0x06) return 2;else if (byte >> 4 === 0x0E) return 3;else if (byte >> 3 === 0x1E) return 4; + return byte >> 6 === 0x02 ? -1 : -2; +} + +// Checks at most 3 bytes at the end of a Buffer in order to detect an +// incomplete multi-byte UTF-8 character. The total number of bytes (2, 3, or 4) +// needed to complete the UTF-8 character (if applicable) are returned. +function utf8CheckIncomplete(self, buf, i) { + var j = buf.length - 1; + if (j < i) return 0; + var nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self.lastNeed = nb - 1; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) self.lastNeed = nb - 2; + return nb; + } + if (--j < i || nb === -2) return 0; + nb = utf8CheckByte(buf[j]); + if (nb >= 0) { + if (nb > 0) { + if (nb === 2) nb = 0;else self.lastNeed = nb - 3; + } + return nb; + } + return 0; +} + +// Validates as many continuation bytes for a multi-byte UTF-8 character as +// needed or are available. If we see a non-continuation byte where we expect +// one, we "replace" the validated continuation bytes we've seen so far with +// a single UTF-8 replacement character ('\ufffd'), to match v8's UTF-8 decoding +// behavior. The continuation byte check is included three times in the case +// where all of the continuation bytes for a character exist in the same buffer. +// It is also done this way as a slight performance increase instead of using a +// loop. +function utf8CheckExtraBytes(self, buf, p) { + if ((buf[0] & 0xC0) !== 0x80) { + self.lastNeed = 0; + return '\ufffd'; + } + if (self.lastNeed > 1 && buf.length > 1) { + if ((buf[1] & 0xC0) !== 0x80) { + self.lastNeed = 1; + return '\ufffd'; + } + if (self.lastNeed > 2 && buf.length > 2) { + if ((buf[2] & 0xC0) !== 0x80) { + self.lastNeed = 2; + return '\ufffd'; + } + } + } +} + +// Attempts to complete a multi-byte UTF-8 character using bytes from a Buffer. +function utf8FillLast(buf) { + var p = this.lastTotal - this.lastNeed; + var r = utf8CheckExtraBytes(this, buf, p); + if (r !== undefined) return r; + if (this.lastNeed <= buf.length) { + buf.copy(this.lastChar, p, 0, this.lastNeed); + return this.lastChar.toString(this.encoding, 0, this.lastTotal); + } + buf.copy(this.lastChar, p, 0, buf.length); + this.lastNeed -= buf.length; +} + +// Returns all complete UTF-8 characters in a Buffer. If the Buffer ended on a +// partial character, the character's bytes are buffered until the required +// number of bytes are available. +function utf8Text(buf, i) { + var total = utf8CheckIncomplete(this, buf, i); + if (!this.lastNeed) return buf.toString('utf8', i); + this.lastTotal = total; + var end = buf.length - (total - this.lastNeed); + buf.copy(this.lastChar, 0, end); + return buf.toString('utf8', i, end); +} + +// For UTF-8, a replacement character is added when ending on a partial +// character. +function utf8End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) return r + '\ufffd'; + return r; +} + +// UTF-16LE typically needs two bytes per character, but even if we have an even +// number of bytes available, we need to check if we end on a leading/high +// surrogate. In that case, we need to wait for the next two bytes in order to +// decode the last character properly. +function utf16Text(buf, i) { + if ((buf.length - i) % 2 === 0) { + var r = buf.toString('utf16le', i); + if (r) { + var c = r.charCodeAt(r.length - 1); + if (c >= 0xD800 && c <= 0xDBFF) { + this.lastNeed = 2; + this.lastTotal = 4; + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + return r.slice(0, -1); + } + } + return r; + } + this.lastNeed = 1; + this.lastTotal = 2; + this.lastChar[0] = buf[buf.length - 1]; + return buf.toString('utf16le', i, buf.length - 1); +} + +// For UTF-16LE we do not explicitly append special replacement characters if we +// end on a partial character, we simply let v8 handle that. +function utf16End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) { + var end = this.lastTotal - this.lastNeed; + return r + this.lastChar.toString('utf16le', 0, end); + } + return r; +} + +function base64Text(buf, i) { + var n = (buf.length - i) % 3; + if (n === 0) return buf.toString('base64', i); + this.lastNeed = 3 - n; + this.lastTotal = 3; + if (n === 1) { + this.lastChar[0] = buf[buf.length - 1]; + } else { + this.lastChar[0] = buf[buf.length - 2]; + this.lastChar[1] = buf[buf.length - 1]; + } + return buf.toString('base64', i, buf.length - n); +} + +function base64End(buf) { + var r = buf && buf.length ? this.write(buf) : ''; + if (this.lastNeed) return r + this.lastChar.toString('base64', 0, 3 - this.lastNeed); + return r; +} + +// Pass bytes on through for single-byte encodings (e.g. ascii, latin1, hex) +function simpleWrite(buf) { + return buf.toString(this.encoding); +} + +function simpleEnd(buf) { + return buf && buf.length ? this.write(buf) : ''; +} + +/***/ }), + +/***/ 73571: +/***/ ((module, exports, __nccwpck_require__) => { + +/* eslint-disable node/no-deprecated-api */ +var buffer = __nccwpck_require__(14300) +var Buffer = buffer.Buffer + +// alternative to using Object.keys for old browsers +function copyProps (src, dst) { + for (var key in src) { + dst[key] = src[key] + } +} +if (Buffer.from && Buffer.alloc && Buffer.allocUnsafe && Buffer.allocUnsafeSlow) { + module.exports = buffer +} else { + // Copy properties from require('buffer') + copyProps(buffer, exports) + exports.Buffer = SafeBuffer +} + +function SafeBuffer (arg, encodingOrOffset, length) { + return Buffer(arg, encodingOrOffset, length) +} + +// Copy static methods from Buffer +copyProps(Buffer, SafeBuffer) + +SafeBuffer.from = function (arg, encodingOrOffset, length) { + if (typeof arg === 'number') { + throw new TypeError('Argument must not be a number') + } + return Buffer(arg, encodingOrOffset, length) +} + +SafeBuffer.alloc = function (size, fill, encoding) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + var buf = Buffer(size) + if (fill !== undefined) { + if (typeof encoding === 'string') { + buf.fill(fill, encoding) + } else { + buf.fill(fill) + } + } else { + buf.fill(0) + } + return buf +} + +SafeBuffer.allocUnsafe = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return Buffer(size) +} + +SafeBuffer.allocUnsafeSlow = function (size) { + if (typeof size !== 'number') { + throw new TypeError('Argument must be a number') + } + return buffer.SlowBuffer(size) +} + + +/***/ }), + +/***/ 25961: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var util = __nccwpck_require__(73837) +var bl = __nccwpck_require__(66738) +var headers = __nccwpck_require__(91141) + +var Writable = (__nccwpck_require__(85635).Writable) +var PassThrough = (__nccwpck_require__(85635).PassThrough) + +var noop = function () {} + +var overflow = function (size) { + size &= 511 + return size && 512 - size +} + +var emptyStream = function (self, offset) { + var s = new Source(self, offset) + s.end() + return s +} + +var mixinPax = function (header, pax) { + if (pax.path) header.name = pax.path + if (pax.linkpath) header.linkname = pax.linkpath + if (pax.size) header.size = parseInt(pax.size, 10) + header.pax = pax + return header +} + +var Source = function (self, offset) { + this._parent = self + this.offset = offset + PassThrough.call(this) +} + +util.inherits(Source, PassThrough) + +Source.prototype.destroy = function (err) { + this._parent.destroy(err) +} + +var Extract = function (opts) { + if (!(this instanceof Extract)) return new Extract(opts) + Writable.call(this, opts) + + opts = opts || {} + + this._offset = 0 + this._buffer = bl() + this._missing = 0 + this._partial = false + this._onparse = noop + this._header = null + this._stream = null + this._overflow = null + this._cb = null + this._locked = false + this._destroyed = false + this._pax = null + this._paxGlobal = null + this._gnuLongPath = null + this._gnuLongLinkPath = null + + var self = this + var b = self._buffer + + var oncontinue = function () { + self._continue() + } + + var onunlock = function (err) { + self._locked = false + if (err) return self.destroy(err) + if (!self._stream) oncontinue() + } + + var onstreamend = function () { + self._stream = null + var drain = overflow(self._header.size) + if (drain) self._parse(drain, ondrain) + else self._parse(512, onheader) + if (!self._locked) oncontinue() + } + + var ondrain = function () { + self._buffer.consume(overflow(self._header.size)) + self._parse(512, onheader) + oncontinue() + } + + var onpaxglobalheader = function () { + var size = self._header.size + self._paxGlobal = headers.decodePax(b.slice(0, size)) + b.consume(size) + onstreamend() + } + + var onpaxheader = function () { + var size = self._header.size + self._pax = headers.decodePax(b.slice(0, size)) + if (self._paxGlobal) self._pax = Object.assign({}, self._paxGlobal, self._pax) + b.consume(size) + onstreamend() + } + + var ongnulongpath = function () { + var size = self._header.size + this._gnuLongPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) + b.consume(size) + onstreamend() + } + + var ongnulonglinkpath = function () { + var size = self._header.size + this._gnuLongLinkPath = headers.decodeLongPath(b.slice(0, size), opts.filenameEncoding) + b.consume(size) + onstreamend() + } + + var onheader = function () { + var offset = self._offset + var header + try { + header = self._header = headers.decode(b.slice(0, 512), opts.filenameEncoding) + } catch (err) { + self.emit('error', err) + } + b.consume(512) + + if (!header) { + self._parse(512, onheader) + oncontinue() + return + } + if (header.type === 'gnu-long-path') { + self._parse(header.size, ongnulongpath) + oncontinue() + return + } + if (header.type === 'gnu-long-link-path') { + self._parse(header.size, ongnulonglinkpath) + oncontinue() + return + } + if (header.type === 'pax-global-header') { + self._parse(header.size, onpaxglobalheader) + oncontinue() + return + } + if (header.type === 'pax-header') { + self._parse(header.size, onpaxheader) + oncontinue() + return + } + + if (self._gnuLongPath) { + header.name = self._gnuLongPath + self._gnuLongPath = null + } + + if (self._gnuLongLinkPath) { + header.linkname = self._gnuLongLinkPath + self._gnuLongLinkPath = null + } + + if (self._pax) { + self._header = header = mixinPax(header, self._pax) + self._pax = null + } + + self._locked = true + + if (!header.size || header.type === 'directory') { + self._parse(512, onheader) + self.emit('entry', header, emptyStream(self, offset), onunlock) + return + } + + self._stream = new Source(self, offset) + + self.emit('entry', header, self._stream, onunlock) + self._parse(header.size, onstreamend) + oncontinue() + } + + this._onheader = onheader + this._parse(512, onheader) +} + +util.inherits(Extract, Writable) + +Extract.prototype.destroy = function (err) { + if (this._destroyed) return + this._destroyed = true + + if (err) this.emit('error', err) + this.emit('close') + if (this._stream) this._stream.emit('close') +} + +Extract.prototype._parse = function (size, onparse) { + if (this._destroyed) return + this._offset += size + this._missing = size + if (onparse === this._onheader) this._partial = false + this._onparse = onparse +} + +Extract.prototype._continue = function () { + if (this._destroyed) return + var cb = this._cb + this._cb = noop + if (this._overflow) this._write(this._overflow, undefined, cb) + else cb() +} + +Extract.prototype._write = function (data, enc, cb) { + if (this._destroyed) return + + var s = this._stream + var b = this._buffer + var missing = this._missing + if (data.length) this._partial = true + + // we do not reach end-of-chunk now. just forward it + + if (data.length < missing) { + this._missing -= data.length + this._overflow = null + if (s) return s.write(data, cb) + b.append(data) + return cb() + } + + // end-of-chunk. the parser should call cb. + + this._cb = cb + this._missing = 0 + + var overflow = null + if (data.length > missing) { + overflow = data.slice(missing) + data = data.slice(0, missing) + } + + if (s) s.end(data) + else b.append(data) + + this._overflow = overflow + this._onparse() +} + +Extract.prototype._final = function (cb) { + if (this._partial) return this.destroy(new Error('Unexpected end of data')) + cb() +} + +module.exports = Extract + + +/***/ }), + +/***/ 91141: +/***/ ((__unused_webpack_module, exports) => { + +var alloc = Buffer.alloc + +var ZEROS = '0000000000000000000' +var SEVENS = '7777777777777777777' +var ZERO_OFFSET = '0'.charCodeAt(0) +var USTAR_MAGIC = Buffer.from('ustar\x00', 'binary') +var USTAR_VER = Buffer.from('00', 'binary') +var GNU_MAGIC = Buffer.from('ustar\x20', 'binary') +var GNU_VER = Buffer.from('\x20\x00', 'binary') +var MASK = parseInt('7777', 8) +var MAGIC_OFFSET = 257 +var VERSION_OFFSET = 263 + +var clamp = function (index, len, defaultValue) { + if (typeof index !== 'number') return defaultValue + index = ~~index // Coerce to integer. + if (index >= len) return len + if (index >= 0) return index + index += len + if (index >= 0) return index + return 0 +} + +var toType = function (flag) { + switch (flag) { + case 0: + return 'file' + case 1: + return 'link' + case 2: + return 'symlink' + case 3: + return 'character-device' + case 4: + return 'block-device' + case 5: + return 'directory' + case 6: + return 'fifo' + case 7: + return 'contiguous-file' + case 72: + return 'pax-header' + case 55: + return 'pax-global-header' + case 27: + return 'gnu-long-link-path' + case 28: + case 30: + return 'gnu-long-path' + } + + return null +} + +var toTypeflag = function (flag) { + switch (flag) { + case 'file': + return 0 + case 'link': + return 1 + case 'symlink': + return 2 + case 'character-device': + return 3 + case 'block-device': + return 4 + case 'directory': + return 5 + case 'fifo': + return 6 + case 'contiguous-file': + return 7 + case 'pax-header': + return 72 + } + + return 0 +} + +var indexOf = function (block, num, offset, end) { + for (; offset < end; offset++) { + if (block[offset] === num) return offset + } + return end +} + +var cksum = function (block) { + var sum = 8 * 32 + for (var i = 0; i < 148; i++) sum += block[i] + for (var j = 156; j < 512; j++) sum += block[j] + return sum +} + +var encodeOct = function (val, n) { + val = val.toString(8) + if (val.length > n) return SEVENS.slice(0, n) + ' ' + else return ZEROS.slice(0, n - val.length) + val + ' ' +} + +/* Copied from the node-tar repo and modified to meet + * tar-stream coding standard. + * + * Source: https://github.com/npm/node-tar/blob/51b6627a1f357d2eb433e7378e5f05e83b7aa6cd/lib/header.js#L349 + */ +function parse256 (buf) { + // first byte MUST be either 80 or FF + // 80 for positive, FF for 2's comp + var positive + if (buf[0] === 0x80) positive = true + else if (buf[0] === 0xFF) positive = false + else return null + + // build up a base-256 tuple from the least sig to the highest + var tuple = [] + for (var i = buf.length - 1; i > 0; i--) { + var byte = buf[i] + if (positive) tuple.push(byte) + else tuple.push(0xFF - byte) + } + + var sum = 0 + var l = tuple.length + for (i = 0; i < l; i++) { + sum += tuple[i] * Math.pow(256, i) + } + + return positive ? sum : -1 * sum +} + +var decodeOct = function (val, offset, length) { + val = val.slice(offset, offset + length) + offset = 0 + + // If prefixed with 0x80 then parse as a base-256 integer + if (val[offset] & 0x80) { + return parse256(val) + } else { + // Older versions of tar can prefix with spaces + while (offset < val.length && val[offset] === 32) offset++ + var end = clamp(indexOf(val, 32, offset, val.length), val.length, val.length) + while (offset < end && val[offset] === 0) offset++ + if (end === offset) return 0 + return parseInt(val.slice(offset, end).toString(), 8) + } +} + +var decodeStr = function (val, offset, length, encoding) { + return val.slice(offset, indexOf(val, 0, offset, offset + length)).toString(encoding) +} + +var addLength = function (str) { + var len = Buffer.byteLength(str) + var digits = Math.floor(Math.log(len) / Math.log(10)) + 1 + if (len + digits >= Math.pow(10, digits)) digits++ + + return (len + digits) + str +} + +exports.decodeLongPath = function (buf, encoding) { + return decodeStr(buf, 0, buf.length, encoding) +} + +exports.encodePax = function (opts) { // TODO: encode more stuff in pax + var result = '' + if (opts.name) result += addLength(' path=' + opts.name + '\n') + if (opts.linkname) result += addLength(' linkpath=' + opts.linkname + '\n') + var pax = opts.pax + if (pax) { + for (var key in pax) { + result += addLength(' ' + key + '=' + pax[key] + '\n') + } + } + return Buffer.from(result) +} + +exports.decodePax = function (buf) { + var result = {} + + while (buf.length) { + var i = 0 + while (i < buf.length && buf[i] !== 32) i++ + var len = parseInt(buf.slice(0, i).toString(), 10) + if (!len) return result + + var b = buf.slice(i + 1, len - 1).toString() + var keyIndex = b.indexOf('=') + if (keyIndex === -1) return result + result[b.slice(0, keyIndex)] = b.slice(keyIndex + 1) + + buf = buf.slice(len) + } + + return result +} + +exports.encode = function (opts) { + var buf = alloc(512) + var name = opts.name + var prefix = '' + + if (opts.typeflag === 5 && name[name.length - 1] !== '/') name += '/' + if (Buffer.byteLength(name) !== name.length) return null // utf-8 + + while (Buffer.byteLength(name) > 100) { + var i = name.indexOf('/') + if (i === -1) return null + prefix += prefix ? '/' + name.slice(0, i) : name.slice(0, i) + name = name.slice(i + 1) + } + + if (Buffer.byteLength(name) > 100 || Buffer.byteLength(prefix) > 155) return null + if (opts.linkname && Buffer.byteLength(opts.linkname) > 100) return null + + buf.write(name) + buf.write(encodeOct(opts.mode & MASK, 6), 100) + buf.write(encodeOct(opts.uid, 6), 108) + buf.write(encodeOct(opts.gid, 6), 116) + buf.write(encodeOct(opts.size, 11), 124) + buf.write(encodeOct((opts.mtime.getTime() / 1000) | 0, 11), 136) + + buf[156] = ZERO_OFFSET + toTypeflag(opts.type) + + if (opts.linkname) buf.write(opts.linkname, 157) + + USTAR_MAGIC.copy(buf, MAGIC_OFFSET) + USTAR_VER.copy(buf, VERSION_OFFSET) + if (opts.uname) buf.write(opts.uname, 265) + if (opts.gname) buf.write(opts.gname, 297) + buf.write(encodeOct(opts.devmajor || 0, 6), 329) + buf.write(encodeOct(opts.devminor || 0, 6), 337) + + if (prefix) buf.write(prefix, 345) + + buf.write(encodeOct(cksum(buf), 6), 148) + + return buf +} + +exports.decode = function (buf, filenameEncoding) { + var typeflag = buf[156] === 0 ? 0 : buf[156] - ZERO_OFFSET + + var name = decodeStr(buf, 0, 100, filenameEncoding) + var mode = decodeOct(buf, 100, 8) + var uid = decodeOct(buf, 108, 8) + var gid = decodeOct(buf, 116, 8) + var size = decodeOct(buf, 124, 12) + var mtime = decodeOct(buf, 136, 12) + var type = toType(typeflag) + var linkname = buf[157] === 0 ? null : decodeStr(buf, 157, 100, filenameEncoding) + var uname = decodeStr(buf, 265, 32) + var gname = decodeStr(buf, 297, 32) + var devmajor = decodeOct(buf, 329, 8) + var devminor = decodeOct(buf, 337, 8) + + var c = cksum(buf) + + // checksum is still initial value if header was null. + if (c === 8 * 32) return null + + // valid checksum + if (c !== decodeOct(buf, 148, 8)) throw new Error('Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?') + + if (USTAR_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0) { + // ustar (posix) format. + // prepend prefix, if present. + if (buf[345]) name = decodeStr(buf, 345, 155, filenameEncoding) + '/' + name + } else if (GNU_MAGIC.compare(buf, MAGIC_OFFSET, MAGIC_OFFSET + 6) === 0 && + GNU_VER.compare(buf, VERSION_OFFSET, VERSION_OFFSET + 2) === 0) { + // 'gnu'/'oldgnu' format. Similar to ustar, but has support for incremental and + // multi-volume tarballs. + } else { + throw new Error('Invalid tar header: unknown format.') + } + + // to support old tar versions that use trailing / to indicate dirs + if (typeflag === 0 && name && name[name.length - 1] === '/') typeflag = 5 + + return { + name: name, + mode: mode, + uid: uid, + gid: gid, + size: size, + mtime: new Date(1000 * mtime), + type: type, + linkname: linkname, + uname: uname, + gname: gname, + devmajor: devmajor, + devminor: devminor + } +} + + +/***/ }), + +/***/ 40934: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +exports.extract = __nccwpck_require__(25961) +exports.pack = __nccwpck_require__(72382) + + +/***/ }), + +/***/ 72382: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +var constants = __nccwpck_require__(10009) +var eos = __nccwpck_require__(29361) +var inherits = __nccwpck_require__(25333) +var alloc = Buffer.alloc + +var Readable = (__nccwpck_require__(85635).Readable) +var Writable = (__nccwpck_require__(85635).Writable) +var StringDecoder = (__nccwpck_require__(71576).StringDecoder) + +var headers = __nccwpck_require__(91141) + +var DMODE = parseInt('755', 8) +var FMODE = parseInt('644', 8) + +var END_OF_TAR = alloc(1024) + +var noop = function () {} + +var overflow = function (self, size) { + size &= 511 + if (size) self.push(END_OF_TAR.slice(0, 512 - size)) +} + +function modeToType (mode) { + switch (mode & constants.S_IFMT) { + case constants.S_IFBLK: return 'block-device' + case constants.S_IFCHR: return 'character-device' + case constants.S_IFDIR: return 'directory' + case constants.S_IFIFO: return 'fifo' + case constants.S_IFLNK: return 'symlink' + } + + return 'file' +} + +var Sink = function (to) { + Writable.call(this) + this.written = 0 + this._to = to + this._destroyed = false +} + +inherits(Sink, Writable) + +Sink.prototype._write = function (data, enc, cb) { + this.written += data.length + if (this._to.push(data)) return cb() + this._to._drain = cb +} + +Sink.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var LinkSink = function () { + Writable.call(this) + this.linkname = '' + this._decoder = new StringDecoder('utf-8') + this._destroyed = false +} + +inherits(LinkSink, Writable) + +LinkSink.prototype._write = function (data, enc, cb) { + this.linkname += this._decoder.write(data) + cb() +} + +LinkSink.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var Void = function () { + Writable.call(this) + this._destroyed = false +} + +inherits(Void, Writable) + +Void.prototype._write = function (data, enc, cb) { + cb(new Error('No body allowed for this entry')) +} + +Void.prototype.destroy = function () { + if (this._destroyed) return + this._destroyed = true + this.emit('close') +} + +var Pack = function (opts) { + if (!(this instanceof Pack)) return new Pack(opts) + Readable.call(this, opts) + + this._drain = noop + this._finalized = false + this._finalizing = false + this._destroyed = false + this._stream = null +} + +inherits(Pack, Readable) + +Pack.prototype.entry = function (header, buffer, callback) { + if (this._stream) throw new Error('already piping an entry') + if (this._finalized || this._destroyed) return + + if (typeof buffer === 'function') { + callback = buffer + buffer = null + } + + if (!callback) callback = noop + + var self = this + + if (!header.size || header.type === 'symlink') header.size = 0 + if (!header.type) header.type = modeToType(header.mode) + if (!header.mode) header.mode = header.type === 'directory' ? DMODE : FMODE + if (!header.uid) header.uid = 0 + if (!header.gid) header.gid = 0 + if (!header.mtime) header.mtime = new Date() + + if (typeof buffer === 'string') buffer = Buffer.from(buffer) + if (Buffer.isBuffer(buffer)) { + header.size = buffer.length + this._encode(header) + var ok = this.push(buffer) + overflow(self, header.size) + if (ok) process.nextTick(callback) + else this._drain = callback + return new Void() + } + + if (header.type === 'symlink' && !header.linkname) { + var linkSink = new LinkSink() + eos(linkSink, function (err) { + if (err) { // stream was closed + self.destroy() + return callback(err) + } + + header.linkname = linkSink.linkname + self._encode(header) + callback() + }) + + return linkSink + } + + this._encode(header) + + if (header.type !== 'file' && header.type !== 'contiguous-file') { + process.nextTick(callback) + return new Void() + } + + var sink = new Sink(this) + + this._stream = sink + + eos(sink, function (err) { + self._stream = null + + if (err) { // stream was closed + self.destroy() + return callback(err) + } + + if (sink.written !== header.size) { // corrupting tar + self.destroy() + return callback(new Error('size mismatch')) + } + + overflow(self, header.size) + if (self._finalizing) self.finalize() + callback() + }) + + return sink +} + +Pack.prototype.finalize = function () { + if (this._stream) { + this._finalizing = true + return + } + + if (this._finalized) return + this._finalized = true + this.push(END_OF_TAR) + this.push(null) +} + +Pack.prototype.destroy = function (err) { + if (this._destroyed) return + this._destroyed = true + + if (err) this.emit('error', err) + this.emit('close') + if (this._stream && this._stream.destroy) this._stream.destroy() +} + +Pack.prototype._encode = function (header) { + if (!header.pax) { + var buf = headers.encode(header) + if (buf) { + this.push(buf) + return + } + } + this._encodePax(header) +} + +Pack.prototype._encodePax = function (header) { + var paxHeader = headers.encodePax({ + name: header.name, + linkname: header.linkname, + pax: header.pax + }) + + var newHeader = { + name: 'PaxHeader', + mode: header.mode, + uid: header.uid, + gid: header.gid, + size: paxHeader.length, + mtime: header.mtime, + type: 'pax-header', + linkname: header.linkname && 'PaxHeader', + uname: header.uname, + gname: header.gname, + devmajor: header.devmajor, + devminor: header.devminor + } + + this.push(headers.encode(newHeader)) + this.push(paxHeader) + overflow(this, paxHeader.length) + + newHeader.size = header.size + newHeader.type = header.type + this.push(headers.encode(newHeader)) +} + +Pack.prototype._read = function (n) { + var drain = this._drain + this._drain = noop + drain() +} + +module.exports = Pack + + +/***/ }), + +/***/ 24655: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +module.exports = __nccwpck_require__(55189); + + +/***/ }), + +/***/ 55189: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +var net = __nccwpck_require__(41808); +var tls = __nccwpck_require__(24404); +var http = __nccwpck_require__(13685); +var https = __nccwpck_require__(95687); +var events = __nccwpck_require__(82361); +var assert = __nccwpck_require__(39491); +var util = __nccwpck_require__(73837); + + +exports.httpOverHttp = httpOverHttp; +exports.httpsOverHttp = httpsOverHttp; +exports.httpOverHttps = httpOverHttps; +exports.httpsOverHttps = httpsOverHttps; + + +function httpOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + return agent; +} + +function httpsOverHttp(options) { + var agent = new TunnelingAgent(options); + agent.request = http.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + +function httpOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + return agent; +} + +function httpsOverHttps(options) { + var agent = new TunnelingAgent(options); + agent.request = https.request; + agent.createSocket = createSecureSocket; + agent.defaultPort = 443; + return agent; +} + + +function TunnelingAgent(options) { + var self = this; + self.options = options || {}; + self.proxyOptions = self.options.proxy || {}; + self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets; + self.requests = []; + self.sockets = []; + + self.on('free', function onFree(socket, host, port, localAddress) { + var options = toOptions(host, port, localAddress); + for (var i = 0, len = self.requests.length; i < len; ++i) { + var pending = self.requests[i]; + if (pending.host === options.host && pending.port === options.port) { + // Detect the request to connect same origin server, + // reuse the connection. + self.requests.splice(i, 1); + pending.request.onSocket(socket); + return; + } + } + socket.destroy(); + self.removeSocket(socket); + }); +} +util.inherits(TunnelingAgent, events.EventEmitter); + +TunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) { + var self = this; + var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress)); + + if (self.sockets.length >= this.maxSockets) { + // We are over limit so we'll add it to the queue. + self.requests.push(options); + return; + } + + // If we are under maxSockets create a new one. + self.createSocket(options, function(socket) { + socket.on('free', onFree); + socket.on('close', onCloseOrRemove); + socket.on('agentRemove', onCloseOrRemove); + req.onSocket(socket); + + function onFree() { + self.emit('free', socket, options); + } + + function onCloseOrRemove(err) { + self.removeSocket(socket); + socket.removeListener('free', onFree); + socket.removeListener('close', onCloseOrRemove); + socket.removeListener('agentRemove', onCloseOrRemove); + } + }); +}; + +TunnelingAgent.prototype.createSocket = function createSocket(options, cb) { + var self = this; + var placeholder = {}; + self.sockets.push(placeholder); + + var connectOptions = mergeOptions({}, self.proxyOptions, { + method: 'CONNECT', + path: options.host + ':' + options.port, + agent: false, + headers: { + host: options.host + ':' + options.port + } + }); + if (options.localAddress) { + connectOptions.localAddress = options.localAddress; + } + if (connectOptions.proxyAuth) { + connectOptions.headers = connectOptions.headers || {}; + connectOptions.headers['Proxy-Authorization'] = 'Basic ' + + new Buffer(connectOptions.proxyAuth).toString('base64'); + } + + debug('making CONNECT request'); + var connectReq = self.request(connectOptions); + connectReq.useChunkedEncodingByDefault = false; // for v0.6 + connectReq.once('response', onResponse); // for v0.6 + connectReq.once('upgrade', onUpgrade); // for v0.6 + connectReq.once('connect', onConnect); // for v0.7 or later + connectReq.once('error', onError); + connectReq.end(); + + function onResponse(res) { + // Very hacky. This is necessary to avoid http-parser leaks. + res.upgrade = true; + } + + function onUpgrade(res, socket, head) { + // Hacky. + process.nextTick(function() { + onConnect(res, socket, head); + }); + } + + function onConnect(res, socket, head) { + connectReq.removeAllListeners(); + socket.removeAllListeners(); + + if (res.statusCode !== 200) { + debug('tunneling socket could not be established, statusCode=%d', + res.statusCode); + socket.destroy(); + var error = new Error('tunneling socket could not be established, ' + + 'statusCode=' + res.statusCode); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + if (head.length > 0) { + debug('got illegal response body from proxy'); + socket.destroy(); + var error = new Error('got illegal response body from proxy'); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + return; + } + debug('tunneling connection has established'); + self.sockets[self.sockets.indexOf(placeholder)] = socket; + return cb(socket); + } + + function onError(cause) { + connectReq.removeAllListeners(); + + debug('tunneling socket could not be established, cause=%s\n', + cause.message, cause.stack); + var error = new Error('tunneling socket could not be established, ' + + 'cause=' + cause.message); + error.code = 'ECONNRESET'; + options.request.emit('error', error); + self.removeSocket(placeholder); + } +}; + +TunnelingAgent.prototype.removeSocket = function removeSocket(socket) { + var pos = this.sockets.indexOf(socket) + if (pos === -1) { + return; + } + this.sockets.splice(pos, 1); + + var pending = this.requests.shift(); + if (pending) { + // If we have pending requests and a socket gets closed a new one + // needs to be created to take over in the pool for the one that closed. + this.createSocket(pending, function(socket) { + pending.request.onSocket(socket); + }); + } +}; + +function createSecureSocket(options, cb) { + var self = this; + TunnelingAgent.prototype.createSocket.call(self, options, function(socket) { + var hostHeader = options.request.getHeader('host'); + var tlsOptions = mergeOptions({}, self.options, { + socket: socket, + servername: hostHeader ? hostHeader.replace(/:.*$/, '') : options.host + }); + + // 0 is dummy port for v0.6 + var secureSocket = tls.connect(0, tlsOptions); + self.sockets[self.sockets.indexOf(socket)] = secureSocket; + cb(secureSocket); + }); +} + + +function toOptions(host, port, localAddress) { + if (typeof host === 'string') { // since v0.10 + return { + host: host, + port: port, + localAddress: localAddress + }; + } + return host; // for v0.11 or later +} + +function mergeOptions(target) { + for (var i = 1, len = arguments.length; i < len; ++i) { + var overrides = arguments[i]; + if (typeof overrides === 'object') { + var keys = Object.keys(overrides); + for (var j = 0, keyLen = keys.length; j < keyLen; ++j) { + var k = keys[j]; + if (overrides[k] !== undefined) { + target[k] = overrides[k]; + } + } + } + } + return target; +} + + +var debug; +if (process.env.NODE_DEBUG && /\btunnel\b/.test(process.env.NODE_DEBUG)) { + debug = function() { + var args = Array.prototype.slice.call(arguments); + if (typeof args[0] === 'string') { + args[0] = 'TUNNEL: ' + args[0]; + } else { + args.unshift('TUNNEL:'); + } + console.error.apply(console, args); + } +} else { + debug = function() {}; +} +exports.debug = debug; // for test + + +/***/ }), + +/***/ 4661: +/***/ (function(module) { + +(function (root, factory) { + if (true) { + module.exports = factory(); + } else {} +}(this, function () { + /** + * @constructor + */ + function UrlTemplate() { + } + + /** + * @private + * @param {string} str + * @return {string} + */ + UrlTemplate.prototype.encodeReserved = function (str) { + return str.split(/(%[0-9A-Fa-f]{2})/g).map(function (part) { + if (!/%[0-9A-Fa-f]/.test(part)) { + part = encodeURI(part).replace(/%5B/g, '[').replace(/%5D/g, ']'); + } + return part; + }).join(''); + }; + + /** + * @private + * @param {string} str + * @return {string} + */ + UrlTemplate.prototype.encodeUnreserved = function (str) { + return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { + return '%' + c.charCodeAt(0).toString(16).toUpperCase(); + }); + } + + /** + * @private + * @param {string} operator + * @param {string} value + * @param {string} key + * @return {string} + */ + UrlTemplate.prototype.encodeValue = function (operator, value, key) { + value = (operator === '+' || operator === '#') ? this.encodeReserved(value) : this.encodeUnreserved(value); + + if (key) { + return this.encodeUnreserved(key) + '=' + value; + } else { + return value; + } + }; + + /** + * @private + * @param {*} value + * @return {boolean} + */ + UrlTemplate.prototype.isDefined = function (value) { + return value !== undefined && value !== null; + }; + + /** + * @private + * @param {string} + * @return {boolean} + */ + UrlTemplate.prototype.isKeyOperator = function (operator) { + return operator === ';' || operator === '&' || operator === '?'; + }; + + /** + * @private + * @param {Object} context + * @param {string} operator + * @param {string} key + * @param {string} modifier + */ + UrlTemplate.prototype.getValues = function (context, operator, key, modifier) { + var value = context[key], + result = []; + + if (this.isDefined(value) && value !== '') { + if (typeof value === 'string' || typeof value === 'number' || typeof value === 'boolean') { + value = value.toString(); + + if (modifier && modifier !== '*') { + value = value.substring(0, parseInt(modifier, 10)); + } + + result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); + } else { + if (modifier === '*') { + if (Array.isArray(value)) { + value.filter(this.isDefined).forEach(function (value) { + result.push(this.encodeValue(operator, value, this.isKeyOperator(operator) ? key : null)); + }, this); + } else { + Object.keys(value).forEach(function (k) { + if (this.isDefined(value[k])) { + result.push(this.encodeValue(operator, value[k], k)); + } + }, this); + } + } else { + var tmp = []; + + if (Array.isArray(value)) { + value.filter(this.isDefined).forEach(function (value) { + tmp.push(this.encodeValue(operator, value)); + }, this); + } else { + Object.keys(value).forEach(function (k) { + if (this.isDefined(value[k])) { + tmp.push(this.encodeUnreserved(k)); + tmp.push(this.encodeValue(operator, value[k].toString())); + } + }, this); + } + + if (this.isKeyOperator(operator)) { + result.push(this.encodeUnreserved(key) + '=' + tmp.join(',')); + } else if (tmp.length !== 0) { + result.push(tmp.join(',')); + } + } + } + } else { + if (operator === ';') { + if (this.isDefined(value)) { + result.push(this.encodeUnreserved(key)); + } + } else if (value === '' && (operator === '&' || operator === '?')) { + result.push(this.encodeUnreserved(key) + '='); + } else if (value === '') { + result.push(''); + } + } + return result; + }; + + /** + * @param {string} template + * @return {function(Object):string} + */ + UrlTemplate.prototype.parse = function (template) { + var that = this; + var operators = ['+', '#', '.', '/', ';', '?', '&']; + + return { + expand: function (context) { + return template.replace(/\{([^\{\}]+)\}|([^\{\}]+)/g, function (_, expression, literal) { + if (expression) { + var operator = null, + values = []; + + if (operators.indexOf(expression.charAt(0)) !== -1) { + operator = expression.charAt(0); + expression = expression.substr(1); + } + + expression.split(/,/g).forEach(function (variable) { + var tmp = /([^:\*]*)(?::(\d+)|(\*))?/.exec(variable); + values.push.apply(values, that.getValues(context, operator, tmp[1], tmp[2] || tmp[3])); + }); + + if (operator && operator !== '+') { + var separator = ','; + + if (operator === '?') { + separator = '&'; + } else if (operator !== '#') { + separator = operator; + } + return (values.length !== 0 ? operator : '') + values.join(separator); + } else { + return values.join(','); + } + } else { + return that.encodeReserved(literal); + } + }); + } + }; + }; + + return new UrlTemplate(); +})); + + +/***/ }), + +/***/ 31674: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + + +/** + * For Node.js, simply re-export the core `util.deprecate` function. + */ + +module.exports = __nccwpck_require__(73837).deprecate; + + +/***/ }), + +/***/ 88558: +/***/ ((__unused_webpack_module, exports) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +/** + * Convert array of 16 byte values to UUID string format of the form: + * XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX + */ +const byteToHex = []; + +for (let i = 0; i < 256; ++i) { + byteToHex.push((i + 0x100).toString(16).substr(1)); +} + +function bytesToUuid(buf, offset) { + const i = offset || 0; + const bth = byteToHex; // Note: Be careful editing this code! It's been tuned for performance + // and works in ways you may not expect. See https://github.com/uuidjs/uuid/pull/434 + + return (bth[buf[i + 0]] + bth[buf[i + 1]] + bth[buf[i + 2]] + bth[buf[i + 3]] + '-' + bth[buf[i + 4]] + bth[buf[i + 5]] + '-' + bth[buf[i + 6]] + bth[buf[i + 7]] + '-' + bth[buf[i + 8]] + bth[buf[i + 9]] + '-' + bth[buf[i + 10]] + bth[buf[i + 11]] + bth[buf[i + 12]] + bth[buf[i + 13]] + bth[buf[i + 14]] + bth[buf[i + 15]]).toLowerCase(); +} + +var _default = bytesToUuid; +exports["default"] = _default; + +/***/ }), + +/***/ 87631: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +Object.defineProperty(exports, "v1", ({ + enumerable: true, + get: function () { + return _v.default; + } +})); +Object.defineProperty(exports, "v3", ({ + enumerable: true, + get: function () { + return _v2.default; + } +})); +Object.defineProperty(exports, "v4", ({ + enumerable: true, + get: function () { + return _v3.default; + } +})); +Object.defineProperty(exports, "v5", ({ + enumerable: true, + get: function () { + return _v4.default; + } +})); + +var _v = _interopRequireDefault(__nccwpck_require__(51784)); + +var _v2 = _interopRequireDefault(__nccwpck_require__(33836)); + +var _v3 = _interopRequireDefault(__nccwpck_require__(96829)); + +var _v4 = _interopRequireDefault(__nccwpck_require__(32782)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +/***/ }), + +/***/ 33219: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function md5(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('md5').update(bytes).digest(); +} + +var _default = md5; +exports["default"] = _default; + +/***/ }), + +/***/ 4749: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = rng; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const rnds8 = new Uint8Array(16); + +function rng() { + return _crypto.default.randomFillSync(rnds8); +} + +/***/ }), + +/***/ 12854: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _crypto = _interopRequireDefault(__nccwpck_require__(6113)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function sha1(bytes) { + if (Array.isArray(bytes)) { + bytes = Buffer.from(bytes); + } else if (typeof bytes === 'string') { + bytes = Buffer.from(bytes, 'utf8'); + } + + return _crypto.default.createHash('sha1').update(bytes).digest(); +} + +var _default = sha1; +exports["default"] = _default; + +/***/ }), + +/***/ 51784: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(4749)); + +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(88558)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +// **`v1()` - Generate time-based UUID** +// +// Inspired by https://github.com/LiosK/UUID.js +// and http://docs.python.org/library/uuid.html +let _nodeId; + +let _clockseq; // Previous uuid creation time + + +let _lastMSecs = 0; +let _lastNSecs = 0; // See https://github.com/uuidjs/uuid for API details + +function v1(options, buf, offset) { + let i = buf && offset || 0; + const b = buf || []; + options = options || {}; + let node = options.node || _nodeId; + let clockseq = options.clockseq !== undefined ? options.clockseq : _clockseq; // node and clockseq need to be initialized to random values if they're not + // specified. We do this lazily to minimize issues related to insufficient + // system entropy. See #189 + + if (node == null || clockseq == null) { + const seedBytes = options.random || (options.rng || _rng.default)(); + + if (node == null) { + // Per 4.5, create and 48-bit node id, (47 random bits + multicast bit = 1) + node = _nodeId = [seedBytes[0] | 0x01, seedBytes[1], seedBytes[2], seedBytes[3], seedBytes[4], seedBytes[5]]; + } + + if (clockseq == null) { + // Per 4.2.2, randomize (14 bit) clockseq + clockseq = _clockseq = (seedBytes[6] << 8 | seedBytes[7]) & 0x3fff; + } + } // UUID timestamps are 100 nano-second units since the Gregorian epoch, + // (1582-10-15 00:00). JSNumbers aren't precise enough for this, so + // time is handled internally as 'msecs' (integer milliseconds) and 'nsecs' + // (100-nanoseconds offset from msecs) since unix epoch, 1970-01-01 00:00. + + + let msecs = options.msecs !== undefined ? options.msecs : Date.now(); // Per 4.2.1.2, use count of uuid's generated during the current clock + // cycle to simulate higher resolution clock + + let nsecs = options.nsecs !== undefined ? options.nsecs : _lastNSecs + 1; // Time since last uuid creation (in msecs) + + const dt = msecs - _lastMSecs + (nsecs - _lastNSecs) / 10000; // Per 4.2.1.2, Bump clockseq on clock regression + + if (dt < 0 && options.clockseq === undefined) { + clockseq = clockseq + 1 & 0x3fff; + } // Reset nsecs if clock regresses (new clockseq) or we've moved onto a new + // time interval + + + if ((dt < 0 || msecs > _lastMSecs) && options.nsecs === undefined) { + nsecs = 0; + } // Per 4.2.1.2 Throw error if too many uuids are requested + + + if (nsecs >= 10000) { + throw new Error("uuid.v1(): Can't create more than 10M uuids/sec"); + } + + _lastMSecs = msecs; + _lastNSecs = nsecs; + _clockseq = clockseq; // Per 4.1.4 - Convert from unix epoch to Gregorian epoch + + msecs += 12219292800000; // `time_low` + + const tl = ((msecs & 0xfffffff) * 10000 + nsecs) % 0x100000000; + b[i++] = tl >>> 24 & 0xff; + b[i++] = tl >>> 16 & 0xff; + b[i++] = tl >>> 8 & 0xff; + b[i++] = tl & 0xff; // `time_mid` + + const tmh = msecs / 0x100000000 * 10000 & 0xfffffff; + b[i++] = tmh >>> 8 & 0xff; + b[i++] = tmh & 0xff; // `time_high_and_version` + + b[i++] = tmh >>> 24 & 0xf | 0x10; // include version + + b[i++] = tmh >>> 16 & 0xff; // `clock_seq_hi_and_reserved` (Per 4.2.2 - include variant) + + b[i++] = clockseq >>> 8 | 0x80; // `clock_seq_low` + + b[i++] = clockseq & 0xff; // `node` + + for (let n = 0; n < 6; ++n) { + b[i + n] = node[n]; + } + + return buf || (0, _bytesToUuid.default)(b); +} + +var _default = v1; +exports["default"] = _default; + +/***/ }), + +/***/ 33836: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(85227)); + +var _md = _interopRequireDefault(__nccwpck_require__(33219)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v3 = (0, _v.default)('v3', 0x30, _md.default); +var _default = v3; +exports["default"] = _default; + +/***/ }), + +/***/ 85227: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = _default; +exports.URL = exports.DNS = void 0; + +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(88558)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function uuidToBytes(uuid) { + // Note: We assume we're being passed a valid uuid string + const bytes = []; + uuid.replace(/[a-fA-F0-9]{2}/g, function (hex) { + bytes.push(parseInt(hex, 16)); + }); + return bytes; +} + +function stringToBytes(str) { + str = unescape(encodeURIComponent(str)); // UTF8 escape + + const bytes = []; + + for (let i = 0; i < str.length; ++i) { + bytes.push(str.charCodeAt(i)); + } + + return bytes; +} + +const DNS = '6ba7b810-9dad-11d1-80b4-00c04fd430c8'; +exports.DNS = DNS; +const URL = '6ba7b811-9dad-11d1-80b4-00c04fd430c8'; +exports.URL = URL; + +function _default(name, version, hashfunc) { + function generateUUID(value, namespace, buf, offset) { + const off = buf && offset || 0; + if (typeof value === 'string') value = stringToBytes(value); + if (typeof namespace === 'string') namespace = uuidToBytes(namespace); + + if (!Array.isArray(value)) { + throw TypeError('value must be an array of bytes'); + } + + if (!Array.isArray(namespace) || namespace.length !== 16) { + throw TypeError('namespace must be uuid string or an Array of 16 byte values'); + } // Per 4.3 + + + const bytes = hashfunc(namespace.concat(value)); + bytes[6] = bytes[6] & 0x0f | version; + bytes[8] = bytes[8] & 0x3f | 0x80; + + if (buf) { + for (let idx = 0; idx < 16; ++idx) { + buf[off + idx] = bytes[idx]; + } + } + + return buf || (0, _bytesToUuid.default)(bytes); + } // Function#name is not settable on some platforms (#270) + + + try { + generateUUID.name = name; // eslint-disable-next-line no-empty + } catch (err) {} // For CommonJS default export support + + + generateUUID.DNS = DNS; + generateUUID.URL = URL; + return generateUUID; +} + +/***/ }), + +/***/ 96829: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _rng = _interopRequireDefault(__nccwpck_require__(4749)); + +var _bytesToUuid = _interopRequireDefault(__nccwpck_require__(88558)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +function v4(options, buf, offset) { + if (typeof options === 'string') { + buf = options === 'binary' ? new Uint8Array(16) : null; + options = null; + } + + options = options || {}; + + const rnds = options.random || (options.rng || _rng.default)(); // Per 4.4, set bits for version and `clock_seq_hi_and_reserved` + + + rnds[6] = rnds[6] & 0x0f | 0x40; + rnds[8] = rnds[8] & 0x3f | 0x80; // Copy bytes to buffer, if provided + + if (buf) { + const start = offset || 0; + + for (let i = 0; i < 16; ++i) { + buf[start + i] = rnds[i]; + } + + return buf; + } + + return (0, _bytesToUuid.default)(rnds); +} + +var _default = v4; +exports["default"] = _default; + +/***/ }), + +/***/ 32782: +/***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { + +"use strict"; + + +Object.defineProperty(exports, "__esModule", ({ + value: true +})); +exports["default"] = void 0; + +var _v = _interopRequireDefault(__nccwpck_require__(85227)); + +var _sha = _interopRequireDefault(__nccwpck_require__(12854)); + +function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } + +const v5 = (0, _v.default)('v5', 0x50, _sha.default); +var _default = v5; +exports["default"] = _default; + +/***/ }), + +/***/ 87509: +/***/ ((module) => { + +// Returns a wrapper function that returns a wrapped callback +// The wrapper function should do some stuff, and return a +// presumably different callback function. +// This makes sure that own properties are retained, so that +// decorations and such are not lost along the way. +module.exports = wrappy +function wrappy (fn, cb) { + if (fn && cb) return wrappy(fn)(cb) + + if (typeof fn !== 'function') + throw new TypeError('need wrapper function') + + Object.keys(fn).forEach(function (k) { + wrapper[k] = fn[k] + }) + + return wrapper + + function wrapper() { + var args = new Array(arguments.length) + for (var i = 0; i < args.length; i++) { + args[i] = arguments[i] + } + var ret = fn.apply(this, args) + var cb = args[args.length-1] + if (typeof ret === 'function' && ret !== cb) { + Object.keys(cb).forEach(function (k) { + ret[k] = cb[k] + }) + } + return ret + } +} + + +/***/ }), + +/***/ 39377: +/***/ ((module) => { + +"use strict"; + +module.exports = function (Yallist) { + Yallist.prototype[Symbol.iterator] = function* () { + for (let walker = this.head; walker; walker = walker.next) { + yield walker.value + } + } +} + + +/***/ }), + +/***/ 69678: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +"use strict"; + +module.exports = Yallist + +Yallist.Node = Node +Yallist.create = Yallist + +function Yallist (list) { + var self = this + if (!(self instanceof Yallist)) { + self = new Yallist() + } + + self.tail = null + self.head = null + self.length = 0 + + if (list && typeof list.forEach === 'function') { + list.forEach(function (item) { + self.push(item) + }) + } else if (arguments.length > 0) { + for (var i = 0, l = arguments.length; i < l; i++) { + self.push(arguments[i]) + } + } + + return self +} + +Yallist.prototype.removeNode = function (node) { + if (node.list !== this) { + throw new Error('removing node which does not belong to this list') + } + + var next = node.next + var prev = node.prev + + if (next) { + next.prev = prev + } + + if (prev) { + prev.next = next + } + + if (node === this.head) { + this.head = next + } + if (node === this.tail) { + this.tail = prev + } + + node.list.length-- + node.next = null + node.prev = null + node.list = null + + return next +} + +Yallist.prototype.unshiftNode = function (node) { + if (node === this.head) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var head = this.head + node.list = this + node.next = head + if (head) { + head.prev = node + } + + this.head = node + if (!this.tail) { + this.tail = node + } + this.length++ +} + +Yallist.prototype.pushNode = function (node) { + if (node === this.tail) { + return + } + + if (node.list) { + node.list.removeNode(node) + } + + var tail = this.tail + node.list = this + node.prev = tail + if (tail) { + tail.next = node + } + + this.tail = node + if (!this.head) { + this.head = node + } + this.length++ +} + +Yallist.prototype.push = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + push(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.unshift = function () { + for (var i = 0, l = arguments.length; i < l; i++) { + unshift(this, arguments[i]) + } + return this.length +} + +Yallist.prototype.pop = function () { + if (!this.tail) { + return undefined + } + + var res = this.tail.value + this.tail = this.tail.prev + if (this.tail) { + this.tail.next = null + } else { + this.head = null + } + this.length-- + return res +} + +Yallist.prototype.shift = function () { + if (!this.head) { + return undefined + } + + var res = this.head.value + this.head = this.head.next + if (this.head) { + this.head.prev = null + } else { + this.tail = null + } + this.length-- + return res +} + +Yallist.prototype.forEach = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.head, i = 0; walker !== null; i++) { + fn.call(thisp, walker.value, i, this) + walker = walker.next + } +} + +Yallist.prototype.forEachReverse = function (fn, thisp) { + thisp = thisp || this + for (var walker = this.tail, i = this.length - 1; walker !== null; i--) { + fn.call(thisp, walker.value, i, this) + walker = walker.prev + } +} + +Yallist.prototype.get = function (n) { + for (var i = 0, walker = this.head; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.next + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.getReverse = function (n) { + for (var i = 0, walker = this.tail; walker !== null && i < n; i++) { + // abort out of the list early if we hit a cycle + walker = walker.prev + } + if (i === n && walker !== null) { + return walker.value + } +} + +Yallist.prototype.map = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.head; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.next + } + return res +} + +Yallist.prototype.mapReverse = function (fn, thisp) { + thisp = thisp || this + var res = new Yallist() + for (var walker = this.tail; walker !== null;) { + res.push(fn.call(thisp, walker.value, this)) + walker = walker.prev + } + return res +} + +Yallist.prototype.reduce = function (fn, initial) { + var acc + var walker = this.head + if (arguments.length > 1) { + acc = initial + } else if (this.head) { + walker = this.head.next + acc = this.head.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = 0; walker !== null; i++) { + acc = fn(acc, walker.value, i) + walker = walker.next + } + + return acc +} + +Yallist.prototype.reduceReverse = function (fn, initial) { + var acc + var walker = this.tail + if (arguments.length > 1) { + acc = initial + } else if (this.tail) { + walker = this.tail.prev + acc = this.tail.value + } else { + throw new TypeError('Reduce of empty list with no initial value') + } + + for (var i = this.length - 1; walker !== null; i--) { + acc = fn(acc, walker.value, i) + walker = walker.prev + } + + return acc +} + +Yallist.prototype.toArray = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.head; walker !== null; i++) { + arr[i] = walker.value + walker = walker.next + } + return arr +} + +Yallist.prototype.toArrayReverse = function () { + var arr = new Array(this.length) + for (var i = 0, walker = this.tail; walker !== null; i++) { + arr[i] = walker.value + walker = walker.prev + } + return arr +} + +Yallist.prototype.slice = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = 0, walker = this.head; walker !== null && i < from; i++) { + walker = walker.next + } + for (; walker !== null && i < to; i++, walker = walker.next) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.sliceReverse = function (from, to) { + to = to || this.length + if (to < 0) { + to += this.length + } + from = from || 0 + if (from < 0) { + from += this.length + } + var ret = new Yallist() + if (to < from || to < 0) { + return ret + } + if (from < 0) { + from = 0 + } + if (to > this.length) { + to = this.length + } + for (var i = this.length, walker = this.tail; walker !== null && i > to; i--) { + walker = walker.prev + } + for (; walker !== null && i > from; i--, walker = walker.prev) { + ret.push(walker.value) + } + return ret +} + +Yallist.prototype.splice = function (start, deleteCount /*, ...nodes */) { + if (start > this.length) { + start = this.length - 1 + } + if (start < 0) { + start = this.length + start; + } + + for (var i = 0, walker = this.head; walker !== null && i < start; i++) { + walker = walker.next + } + + var ret = [] + for (var i = 0; walker && i < deleteCount; i++) { + ret.push(walker.value) + walker = this.removeNode(walker) + } + if (walker === null) { + walker = this.tail + } + + if (walker !== this.head && walker !== this.tail) { + walker = walker.prev + } + + for (var i = 2; i < arguments.length; i++) { + walker = insert(this, walker, arguments[i]) + } + return ret; +} + +Yallist.prototype.reverse = function () { + var head = this.head + var tail = this.tail + for (var walker = head; walker !== null; walker = walker.prev) { + var p = walker.prev + walker.prev = walker.next + walker.next = p + } + this.head = tail + this.tail = head + return this +} + +function insert (self, node, value) { + var inserted = node === self.head ? + new Node(value, null, node, self) : + new Node(value, node, node.next, self) + + if (inserted.next === null) { + self.tail = inserted + } + if (inserted.prev === null) { + self.head = inserted + } + + self.length++ + + return inserted +} + +function push (self, item) { + self.tail = new Node(item, self.tail, null, self) + if (!self.head) { + self.head = self.tail + } + self.length++ +} + +function unshift (self, item) { + self.head = new Node(item, null, self.head, self) + if (!self.tail) { + self.tail = self.head + } + self.length++ +} + +function Node (value, prev, next, list) { + if (!(this instanceof Node)) { + return new Node(value, prev, next, list) + } + + this.list = list + this.value = value + + if (prev) { + prev.next = this + this.prev = prev + } else { + this.prev = null + } + + if (next) { + next.prev = this + this.next = next + } else { + this.next = null + } +} + +try { + // add if support for Symbol.iterator is present + __nccwpck_require__(39377)(Yallist) +} catch (er) {} + + +/***/ }), + +/***/ 394: +/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { + +/** + * ZipStream + * + * @ignore + * @license [MIT]{@link https://github.com/archiverjs/node-zip-stream/blob/master/LICENSE} + * @copyright (c) 2014 Chris Talkington, contributors. + */ +var inherits = (__nccwpck_require__(73837).inherits); + +var ZipArchiveOutputStream = (__nccwpck_require__(64704).ZipArchiveOutputStream); +var ZipArchiveEntry = (__nccwpck_require__(64704).ZipArchiveEntry); + +var util = __nccwpck_require__(11342); + +/** + * @constructor + * @extends external:ZipArchiveOutputStream + * @param {Object} [options] + * @param {String} [options.comment] Sets the zip archive comment. + * @param {Boolean} [options.forceLocalTime=false] Forces the archive to contain local file times instead of UTC. + * @param {Boolean} [options.forceZip64=false] Forces the archive to contain ZIP64 headers. + * @param {Boolean} [options.store=false] Sets the compression method to STORE. + * @param {Object} [options.zlib] Passed to [zlib]{@link https://nodejs.org/api/zlib.html#zlib_class_options} + * to control compression. + */ +var ZipStream = module.exports = function(options) { + if (!(this instanceof ZipStream)) { + return new ZipStream(options); + } + + options = this.options = options || {}; + options.zlib = options.zlib || {}; + + ZipArchiveOutputStream.call(this, options); + + if (typeof options.level === 'number' && options.level >= 0) { + options.zlib.level = options.level; + delete options.level; + } + + if (!options.forceZip64 && typeof options.zlib.level === 'number' && options.zlib.level === 0) { + options.store = true; + } + + if (options.comment && options.comment.length > 0) { + this.setComment(options.comment); + } +}; + +inherits(ZipStream, ZipArchiveOutputStream); + +/** + * Normalizes entry data with fallbacks for key properties. + * + * @private + * @param {Object} data + * @return {Object} + */ +ZipStream.prototype._normalizeFileData = function(data) { + data = util.defaults(data, { + type: 'file', + name: null, + linkname: null, + date: null, + mode: null, + store: this.options.store, + comment: '' + }); + + var isDir = data.type === 'directory'; + var isSymlink = data.type === 'symlink'; + + if (data.name) { + data.name = util.sanitizePath(data.name); + + if (!isSymlink && data.name.slice(-1) === '/') { + isDir = true; + data.type = 'directory'; + } else if (isDir) { + data.name += '/'; + } + } + + if (isDir || isSymlink) { + data.store = true; + } + + data.date = util.dateify(data.date); + + return data; +}; + +/** + * Appends an entry given an input source (text string, buffer, or stream). + * + * @param {(Buffer|Stream|String)} source The input source. + * @param {Object} data + * @param {String} data.name Sets the entry name including internal path. + * @param {String} [data.comment] Sets the entry comment. + * @param {(String|Date)} [data.date=NOW()] Sets the entry date. + * @param {Number} [data.mode=D:0755/F:0644] Sets the entry permissions. + * @param {Boolean} [data.store=options.store] Sets the compression method to STORE. + * @param {String} [data.type=file] Sets the entry type. Defaults to `directory` + * if name ends with trailing slash. + * @param {Function} callback + * @return this + */ +ZipStream.prototype.entry = function(source, data, callback) { + if (typeof callback !== 'function') { + callback = this._emitErrorCallback.bind(this); + } + + data = this._normalizeFileData(data); + + if (data.type !== 'file' && data.type !== 'directory' && data.type !== 'symlink') { + callback(new Error(data.type + ' entries not currently supported')); + return; + } + + if (typeof data.name !== 'string' || data.name.length === 0) { + callback(new Error('entry name must be a non-empty string value')); + return; + } + + if (data.type === 'symlink' && typeof data.linkname !== 'string') { + callback(new Error('entry linkname must be a non-empty string value when type equals symlink')); + return; + } + + var entry = new ZipArchiveEntry(data.name); + entry.setTime(data.date, this.options.forceLocalTime); + + if (data.store) { + entry.setMethod(0); + } + + if (data.comment.length > 0) { + entry.setComment(data.comment); + } + + if (data.type === 'symlink' && typeof data.mode !== 'number') { + data.mode = 40960; // 0120000 + } + + if (typeof data.mode === 'number') { + if (data.type === 'symlink') { + data.mode |= 40960; + } + + entry.setUnixMode(data.mode); + } + + if (data.type === 'symlink' && typeof data.linkname === 'string') { + source = Buffer.from(data.linkname); + } + + return ZipArchiveOutputStream.prototype.entry.call(this, entry, source, callback); +}; + +/** + * Finalizes the instance and prevents further appending to the archive + * structure (queue will continue til drained). + * + * @return void + */ +ZipStream.prototype.finalize = function() { + this.finish(); +}; + +/** + * Returns the current number of bytes written to this stream. + * @function ZipStream#getBytesWritten + * @returns {Number} + */ + +/** + * Compress Commons ZipArchiveOutputStream + * @external ZipArchiveOutputStream + * @see {@link https://github.com/archiverjs/node-compress-commons} + */ + + +/***/ }), + +/***/ 27557: +/***/ ((module) => { + +module.exports = eval("require")("encoding"); + + +/***/ }), + +/***/ 13259: +/***/ ((module) => { + +module.exports = eval("require")("supports-color"); + + +/***/ }), + +/***/ 39491: +/***/ ((module) => { + +"use strict"; +module.exports = require("assert"); + +/***/ }), + +/***/ 14300: +/***/ ((module) => { + +"use strict"; +module.exports = require("buffer"); + +/***/ }), + +/***/ 32081: +/***/ ((module) => { + +"use strict"; +module.exports = require("child_process"); + +/***/ }), + +/***/ 22057: +/***/ ((module) => { + +"use strict"; +module.exports = require("constants"); + +/***/ }), + +/***/ 6113: +/***/ ((module) => { + +"use strict"; +module.exports = require("crypto"); + +/***/ }), + +/***/ 82361: +/***/ ((module) => { + +"use strict"; +module.exports = require("events"); + +/***/ }), + +/***/ 57147: +/***/ ((module) => { + +"use strict"; +module.exports = require("fs"); + +/***/ }), + +/***/ 13685: +/***/ ((module) => { + +"use strict"; +module.exports = require("http"); + +/***/ }), + +/***/ 95687: +/***/ ((module) => { + +"use strict"; +module.exports = require("https"); + +/***/ }), + +/***/ 41808: +/***/ ((module) => { + +"use strict"; +module.exports = require("net"); + +/***/ }), + +/***/ 22037: +/***/ ((module) => { + +"use strict"; +module.exports = require("os"); + +/***/ }), + +/***/ 71017: +/***/ ((module) => { + +"use strict"; +module.exports = require("path"); + +/***/ }), + +/***/ 63477: +/***/ ((module) => { + +"use strict"; +module.exports = require("querystring"); + +/***/ }), + +/***/ 12781: +/***/ ((module) => { + +"use strict"; +module.exports = require("stream"); + +/***/ }), + +/***/ 71576: +/***/ ((module) => { + +"use strict"; +module.exports = require("string_decoder"); + +/***/ }), + +/***/ 24404: +/***/ ((module) => { + +"use strict"; +module.exports = require("tls"); + +/***/ }), + +/***/ 76224: +/***/ ((module) => { + +"use strict"; +module.exports = require("tty"); + +/***/ }), + +/***/ 57310: +/***/ ((module) => { + +"use strict"; +module.exports = require("url"); + +/***/ }), + +/***/ 73837: +/***/ ((module) => { + +"use strict"; +module.exports = require("util"); + +/***/ }), + +/***/ 59796: +/***/ ((module) => { + +"use strict"; +module.exports = require("zlib"); + +/***/ }), + +/***/ 97254: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"_args":[["google-auth-library@6.0.0","C:\\\\Users\\\\sin\\\\G\\\\Personal\\\\upload-to-drive"]],"_from":"google-auth-library@6.0.0","_id":"google-auth-library@6.0.0","_inBundle":false,"_integrity":"sha512-uLydy1t6SHN/EvYUJrtN3GCHFrnJ0c8HJjOxXiGjoTuYHIoCUT3jVxnzmjHwVnSdkfE9Akasm2rM6qG1COTXfQ==","_location":"/google-auth-library","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"google-auth-library@6.0.0","name":"google-auth-library","escapedName":"google-auth-library","rawSpec":"6.0.0","saveSpec":null,"fetchSpec":"6.0.0"},"_requiredBy":["/googleapis","/googleapis-common"],"_resolved":"https://registry.npmjs.org/google-auth-library/-/google-auth-library-6.0.0.tgz","_spec":"6.0.0","_where":"C:\\\\Users\\\\sin\\\\G\\\\Personal\\\\upload-to-drive","author":{"name":"Google Inc."},"bugs":{"url":"https://github.com/googleapis/google-auth-library-nodejs/issues"},"dependencies":{"arrify":"^2.0.0","base64-js":"^1.3.0","ecdsa-sig-formatter":"^1.0.11","fast-text-encoding":"^1.0.0","gaxios":"^3.0.0","gcp-metadata":"^4.0.0","gtoken":"^5.0.0","jws":"^4.0.0","lru-cache":"^5.0.0"},"description":"Google APIs Authentication Client Library for Node.js","devDependencies":{"@compodoc/compodoc":"^1.1.7","@types/base64-js":"^1.2.5","@types/chai":"^4.1.7","@types/jws":"^3.1.0","@types/lru-cache":"^5.0.0","@types/mocha":"^7.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/node":"^10.5.1","@types/sinon":"^7.0.0","@types/tmp":"^0.1.0","assert-rejects":"^1.0.0","c8":"^7.0.0","chai":"^4.2.0","codecov":"^3.0.2","execa":"^4.0.0","gts":"^2.0.0-alpha.8","is-docker":"^2.0.0","karma":"^4.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^1.3.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.0","keypair":"^1.0.1","linkinator":"^2.0.0","mocha":"^7.0.0","mv":"^2.1.1","ncp":"^2.0.0","nock":"^12.0.0","null-loader":"^3.0.0","puppeteer":"^2.0.0","sinon":"^9.0.0","tmp":"^0.1.0","ts-loader":"^6.0.0","typescript":"^3.8.3","webpack":"^4.20.2","webpack-cli":"^3.1.1"},"engines":{"node":">=10"},"files":["build/src","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/google-auth-library-nodejs#readme","keywords":["google","api","google apis","client","client library"],"license":"Apache-2.0","main":"./build/src/index.js","name":"google-auth-library","repository":{"type":"git","url":"git+https://github.com/googleapis/google-auth-library-nodejs.git"},"scripts":{"browser-test":"karma start","clean":"gts clean","compile":"tsc -p .","docs":"compodoc src/","docs-test":"linkinator docs","fix":"gts fix && eslint --fix \'**/*.js\'","lint":"gts check","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm i","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","samples-test":"cd samples/ && npm link ../ && npm test && cd ../","system-test":"mocha build/system-test --timeout 60000","test":"c8 mocha build/test","webpack":"webpack"},"types":"./build/src/index.d.ts","version":"6.0.0"}'); + +/***/ }), + +/***/ 75251: +/***/ ((module) => { + +"use strict"; +module.exports = JSON.parse('{"_args":[["googleapis-common@4.2.0","C:\\\\Users\\\\sin\\\\G\\\\Personal\\\\upload-to-drive"]],"_from":"googleapis-common@4.2.0","_id":"googleapis-common@4.2.0","_inBundle":false,"_integrity":"sha512-Z6MTCEvvfPEGz+qfYOA8trZ6if3EdGXwJwRa6mCTjJv+LKdUHxjdsak6dOETDqVnIhytWQAUpURFsLCaxDI8rg==","_location":"/googleapis-common","_phantomChildren":{},"_requested":{"type":"version","registry":true,"raw":"googleapis-common@4.2.0","name":"googleapis-common","escapedName":"googleapis-common","rawSpec":"4.2.0","saveSpec":null,"fetchSpec":"4.2.0"},"_requiredBy":["/googleapis"],"_resolved":"https://registry.npmjs.org/googleapis-common/-/googleapis-common-4.2.0.tgz","_spec":"4.2.0","_where":"C:\\\\Users\\\\sin\\\\G\\\\Personal\\\\upload-to-drive","author":{"name":"Google LLC"},"bugs":{"url":"https://github.com/googleapis/nodejs-googleapis-common/issues"},"dependencies":{"extend":"^3.0.2","gaxios":"^3.0.0","google-auth-library":"^6.0.0","qs":"^6.7.0","url-template":"^2.0.8","uuid":"^8.0.0"},"description":"A common tooling library used by the googleapis npm module. You probably don\'t want to use this directly.","devDependencies":{"@compodoc/compodoc":"^1.1.9","@types/execa":"^0.9.0","@types/extend":"^3.0.1","@types/mocha":"^7.0.0","@types/mv":"^2.1.0","@types/ncp":"^2.0.1","@types/nock":"^10.0.3","@types/qs":"^6.5.3","@types/tmp":"0.2.0","@types/url-template":"^2.0.28","@types/uuid":"^8.0.0","c8":"^7.0.0","codecov":"^3.5.0","execa":"^4.0.0","gts":"^2.0.0","is-docker":"^2.0.0","karma":"^5.0.0","karma-chrome-launcher":"^3.0.0","karma-coverage":"^2.0.0","karma-firefox-launcher":"^1.1.0","karma-mocha":"^2.0.0","karma-remap-coverage":"^0.1.5","karma-sourcemap-loader":"^0.3.7","karma-webpack":"^4.0.2","linkinator":"^2.0.0","mocha":"^7.1.1","mv":"^2.1.1","ncp":"^2.0.0","nock":"^12.0.0","null-loader":"^4.0.0","puppeteer":"^3.0.0","tmp":"^0.2.0","ts-loader":"^7.0.0","typescript":"^3.8.3","webpack":"^4.35.0","webpack-cli":"^3.3.5"},"engines":{"node":">=10"},"files":["build/src","!build/src/**/*.map"],"homepage":"https://github.com/googleapis/nodejs-googleapis-common#readme","keywords":[],"license":"Apache-2.0","main":"build/src/index.js","name":"googleapis-common","repository":{"type":"git","url":"git+https://github.com/googleapis/nodejs-googleapis-common.git"},"scripts":{"browser-test":"karma start","clean":"gts clean","compile":"tsc -p .","docs":"compodoc src/","docs-test":"linkinator docs","fix":"gts fix","lint":"gts check","precompile":"gts clean","predocs-test":"npm run docs","prelint":"cd samples; npm link ../; npm install","prepare":"npm run compile","presystem-test":"npm run compile","pretest":"npm run compile","samples-test":"mocha build/samples-test","system-test":"mocha build/system-test","test":"c8 mocha build/test","webpack":"webpack"},"types":"build/src/index.d.ts","version":"4.2.0"}'); + +/***/ }) + +/******/ }); +/************************************************************************/ +/******/ // The module cache +/******/ var __webpack_module_cache__ = {}; +/******/ +/******/ // The require function +/******/ function __nccwpck_require__(moduleId) { +/******/ // Check if module is in cache +/******/ var cachedModule = __webpack_module_cache__[moduleId]; +/******/ if (cachedModule !== undefined) { +/******/ return cachedModule.exports; +/******/ } +/******/ // Create a new module (and put it into the cache) +/******/ var module = __webpack_module_cache__[moduleId] = { +/******/ id: moduleId, +/******/ loaded: false, +/******/ exports: {} +/******/ }; +/******/ +/******/ // Execute the module function +/******/ var threw = true; +/******/ try { +/******/ __webpack_modules__[moduleId].call(module.exports, module, module.exports, __nccwpck_require__); +/******/ threw = false; +/******/ } finally { +/******/ if(threw) delete __webpack_module_cache__[moduleId]; +/******/ } +/******/ +/******/ // Flag the module as loaded +/******/ module.loaded = true; +/******/ +/******/ // Return the exports of the module +/******/ return module.exports; +/******/ } +/******/ +/************************************************************************/ +/******/ /* webpack/runtime/node module decorator */ +/******/ (() => { +/******/ __nccwpck_require__.nmd = (module) => { +/******/ module.paths = []; +/******/ if (!module.children) module.children = []; +/******/ return module; +/******/ }; +/******/ })(); +/******/ +/******/ /* webpack/runtime/compat */ +/******/ +/******/ if (typeof __nccwpck_require__ !== 'undefined') __nccwpck_require__.ab = __dirname + "/"; +/******/ +/************************************************************************/ +var __webpack_exports__ = {}; +// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk. +(() => { +const actions = __nccwpck_require__(43876); +const { google } = __nccwpck_require__(12187); +const fs = __nccwpck_require__(57147); +const archiver = __nccwpck_require__(70957); + +/** Google Service Account credentials encoded in base64 */ +const credentials = actions.getInput('credentials', { required: true }); +/** Google Drive Folder ID to upload the file/folder to */ +const folder = actions.getInput('folder', { required: true }); +/** Local path to the file/folder to upload */ +const target = actions.getInput('target', { required: true }); +/** Optional name for the zipped file */ +const name = actions.getInput('name', { required: false }); +/** Link to the Drive folder */ +const link = 'link'; + +const credentialsJSON = JSON.parse(Buffer.from(credentials, 'base64').toString()); +const scopes = ['https://www.googleapis.com/auth/drive']; +const auth = new google.auth.JWT(credentialsJSON.client_email, null, credentialsJSON.private_key, scopes); +const drive = google.drive({ version: 'v3', auth }); + +const driveLink = `https://drive.google.com/drive/folders/${folder}` +let filename = target.split('/').pop(); + +async function main() { + actions.setOutput(link, driveLink); + + if (fs.lstatSync(target).isDirectory()){ + filename = `${name || target}.zip` + + actions.info(`Folder detected in ${target}`) + actions.info(`Zipping ${target}...`) + + zipDirectory(target, filename) + .then(() => uploadToDrive()) + .catch(e => { + actions.error('Zip failed'); + throw e; + }); + } + else + uploadToDrive(); +} + +/** + * Zips a directory and stores it in memory + * @param {string} source File or folder to be zipped + * @param {string} out Name of the resulting zipped file + */ +function zipDirectory(source, out) { + const archive = archiver('zip', { zlib: { level: 9 }}); + const stream = fs.createWriteStream(out); + + return new Promise((resolve, reject) => { + archive + .directory(source, false) + .on('error', err => reject(err)) + .pipe(stream); + + stream.on('close', + () => { + actions.info(`Folder successfully zipped: ${archive.pointer()} total bytes written`); + return resolve(); + }); + archive.finalize(); + }); +} + +/** + * Uploads the file to Google Drive + */ +function uploadToDrive() { + actions.info('Uploading file to Goole Drive...'); + drive.files.create({ + requestBody: { + name: filename, + parents: [folder] + }, + media: { + body: fs.createReadStream(`${name || target}${fs.lstatSync(target).isDirectory() ? '.zip' : ''}`) + }, + supportsAllDrives: true + }).then(() => actions.info('File uploaded successfully')) + .catch(e => { + actions.error('Upload failed'); + throw e; + }); +} + +main().catch(e => actions.setFailed(e)); + +})(); + +module.exports = __webpack_exports__; +/******/ })() +; \ No newline at end of file diff --git a/index.js b/index.js index 6d2dc13..a4b7a99 100644 --- a/index.js +++ b/index.js @@ -78,7 +78,8 @@ function uploadToDrive() { }, media: { body: fs.createReadStream(`${name || target}${fs.lstatSync(target).isDirectory() ? '.zip' : ''}`) - } + }, + supportsAllDrives: true }).then(() => actions.info('File uploaded successfully')) .catch(e => { actions.error('Upload failed');